:root{
  --bg0: #070a10;
  --bg1: rgba(10,14,20,.58);
  --bg2: rgba(12,18,28,.72);
  --cardBorder: rgba(255,255,255,.08);
  --cardBorder2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.58);
  --accent: #6b7bff;
  --accentA: rgba(107,123,255,.18);
  --shadow: rgba(0,0,0,.35);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(45,85,255,.18), transparent 55%),
    radial-gradient(1200px 700px at 95% 10%, rgba(155,80,255,.16), transparent 55%),
    linear-gradient(180deg, #060913, #070a10 55%, #060913);
}

.page{ padding: 22px 14px 44px; }
.container{ max-width: 1120px; margin: 0 auto; }
.wrap{ max-width: 1120px; margin: 0 auto; padding: 18px 14px 34px; }

.muted{ color: var(--muted); }
.muted2{ color: var(--muted2); }

.logoDot{
  width: 12px; height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(107,123,255,.9));
  box-shadow: 0 10px 30px rgba(107,123,255,.20);
}

.brand{ display:flex; align-items:center; gap: 10px; }
.brandText{ font-weight: 900; letter-spacing: .2px; }
.brandLink{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight: 900;
  letter-spacing: .2px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 6px;
  margin-bottom: 8px;
}
.topbarRight{ display:flex; gap: 10px; align-items:center; }

.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--cardBorder2);
  background: rgba(12,18,28,.60);
  font-size: 12px;
  color: rgba(255,255,255,.78);
  margin-bottom: 10px;
}

.h1{
  font-size: 56px;
  line-height: 1.03;
  margin: 0 0 12px;
  letter-spacing: -0.8px;
}
.subhead{
  font-size: 16px;
  color: rgba(255,255,255,.80);
  max-width: 78ch;
  margin: 0 0 16px;
}

.btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,18,28,.55);
  color: rgba(255,255,255,.88);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-weight: 700;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.16); }
.btn:disabled{ opacity: .6; cursor: not-allowed; transform: none; }
.btn.small{ padding: 7px 10px; border-radius: 10px; font-size: 12px; }

.btn.primary{
  background: linear-gradient(180deg, rgba(107,123,255,.95), rgba(86,104,255,.85));
  border-color: rgba(107,123,255,.65);
  color: white;
}
.btn.primary:hover{ border-color: rgba(107,123,255,.85); }

.btn.ghost{
  background: transparent;
  border-color: rgba(255,255,255,.14);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--cardBorder2);
  background: rgba(12,18,28,.60);
  color: rgba(255,255,255,.78);
}

.ctaRow{
  display:flex;
  gap: 10px;
  align-items:center;
  margin: 12px 0 16px;
}

/* ---------- CLEAN HOME ---------- */
.heroClean{
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--cardBorder);
  background: var(--bg1);
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
}

.cleanH1{ font-size: 54px; }
.cleanSub{ max-width: 72ch; }

.miniPoints{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.miniPoint{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(12,18,28,.50);
}
.miniTitle{
  font-weight: 900;
  margin-bottom: 4px;
}

.howSimple{ margin-top: 18px; }
.sectionTitle{
  font-weight: 900;
  font-size: 18px;
  margin: 12px 6px;
}
.stepsSimple{
  border-radius: 18px;
  border: 1px solid var(--cardBorder);
  background: var(--bg1);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  padding: 14px;
}
.stepLine{
  display:flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
}
.stepLine + .stepLine{
  border-top: 1px solid rgba(255,255,255,.06);
}
.stepDot{
  width: 30px; height: 30px;
  border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(107,123,255,.14);
  border: 1px solid rgba(107,123,255,.26);
  font-weight: 900;
  flex: 0 0 auto;
}
.stepTitle{ font-weight: 900; margin-bottom: 4px; }

.footer{
  text-align:center;
  padding: 18px 0 6px;
}

/* ---------- DEMO PAGE ---------- */
.demoHeader{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  padding: 10px 6px 0;
}
.demoHeaderLeft{ max-width: 78ch; }
.demoHeaderRight{ text-align:right; }
.demoHeaderCtas{ display:flex; gap: 10px; justify-content:flex-end; margin-top: 8px; }

.demoH1{ font-size: 54px; }
.demoSub{ max-width: 78ch; }

.chipRow{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.chip{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,18,28,.55);
  color: rgba(255,255,255,.86);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.chip:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); }

.demoFrameSection{ margin-top: 14px; }
.demoFrameCard{
  border-radius: 18px;
  border: 1px solid var(--cardBorder);
  background: var(--bg1);
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
  padding: 14px;
}
.demoFrameTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 6px 6px 10px;
}
.demoFrameTitle{ font-weight: 900; }

.demoFrameWrap{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(6,10,16,.55);
  height: min(78vh, 860px); /* BIG */
}
.demoFrameWrap iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.demoFrameFooter{
  padding: 10px 6px 2px;
  font-size: 12px;
}

/* ---------- FORMS ---------- */
input, textarea, select{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,18,28,.60);
  color: rgba(255,255,255,.90);
  padding: 10px 12px;
  outline: none;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(107,123,255,.65);
  box-shadow: 0 0 0 4px rgba(107,123,255,.12);
}
label{
  display:block;
  font-size: 12px;
  color: rgba(255,255,255,.70);
  margin-bottom: 6px;
}
.formRow{ margin-bottom: 12px; }

/* ---------- BUSINESS PAGE CHAT (existing templates) ---------- */
.card{
  border-radius: 18px;
  border: 1px solid var(--cardBorder);
  background: var(--bg1);
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
  padding: 18px;
}
.cardTitle{
  font-weight: 900;
  letter-spacing: .2px;
}

.chatBox{
  height: 420px;
  overflow:auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(6,10,16,.55);
  padding: 12px;
}
.bubble{
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 10px;
  line-height: 1.35;
  white-space: pre-wrap;
}
.bubble.bot{
  background: rgba(12,18,28,.70);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.90);
}
.bubble.user{
  margin-left: auto;
  background: rgba(107,123,255,.18);
  border: 1px solid rgba(107,123,255,.28);
  color: rgba(255,255,255,.92);
}
.chatComposer{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}
.chatInput{ flex: 1; }

.leadInline{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,18,28,.55);
}
.leadTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.footerNote{ font-size: 12px; color: rgba(255,255,255,.55); }

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(12,18,28,.92);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: 10px 14px;
  z-index: 9999;
  box-shadow: 0 18px 60px var(--shadow);
  display:flex;
  gap: 10px;
  align-items:center;
}
.toastShow{ animation: toastIn .18s ease-out; }
@keyframes toastIn{
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0px); }
}

/* Responsive */
@media (max-width: 980px){
  .h1{ font-size: 42px; }
  .cleanH1, .demoH1{ font-size: 42px; }
  .miniPoints{ grid-template-columns: 1fr; }
  .demoHeader{ flex-direction: column; align-items:flex-start; }
  .demoHeaderRight{ text-align:left; }
  .demoHeaderCtas{ justify-content:flex-start; }
  .demoFrameWrap{ height: min(76vh, 780px); }
}

/* TEMP FIX: prevent occasional white-screen from animation starting at opacity:0 */
html, body, .page, .container, .wrap {
  opacity: 1 !important;
  visibility: visible !important;
}

