/* =========================================================
   Illusion — Chat Manager Landing
   Cyan / teal neon · dark-teal · Mobile-first · zero-image
   ========================================================= */

:root {
  /* Backgrounds — deep teal-black */
  --bg-0: #04120F;
  --bg-1: #061812;
  --bg-2: #0A211B;

  /* Surfaces & borders */
  --surface:        rgba(255, 255, 255, 0.025);
  --surface-2:      rgba(255, 255, 255, 0.045);
  --border:         rgba(173, 255, 245, 0.09);
  --border-strong:  rgba(173, 255, 245, 0.17);

  /* Text — slightly cool white */
  --text:       #E7F5F1;
  --text-muted: #8FB0AA;
  --text-dim:   #5C7C76;

  /* Accents — neon aqua / teal + magenta */
  --aqua:        #2DE6D2;
  --aqua-bright: #7FFFEF;
  --teal:        #14B8A6;
  --cyan-blue:   #0EA5B7;
  --magenta:     #FF3DB5;
  --grad:        linear-gradient(120deg, #7FFFEF 0%, #2DE6D2 46%, #12B8B0 100%);
  --grad-soft:   linear-gradient(135deg, rgba(45,230,210,.16), rgba(20,184,166,.14));
  --on-accent:   #04140F; /* dark text on bright cyan */

  /* Type */
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Geometry */
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 22px;
  --maxw: 560px;

  --glow: 0 0 0 1px rgba(45,230,210,.35), 0 18px 50px -12px rgba(45,230,210,.5);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--aqua-bright); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding-block: 56px; }
main > .section:first-of-type { padding-top: 40px; }

/* =========================================================
   Ambient background (fixed, pure CSS/SVG)
   ========================================================= */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.orb-1 { top: -160px; left: 50%; width: 460px; height: 460px; transform: translateX(-50%);
         background: radial-gradient(circle, rgba(45,230,210,.45), transparent 65%); }
.orb-2 { top: 10%; right: -140px; width: 360px; height: 360px;
         background: radial-gradient(circle, rgba(14,165,183,.34), transparent 65%); }
.orb-3 { top: 46%; left: -160px; width: 380px; height: 380px;
         background: radial-gradient(circle, rgba(20,184,166,.26), transparent 65%); }
.ambient .gem {
  position: absolute; top: 26px; right: -64px;
  width: 230px; height: 230px;
  color: #5EEAD4; opacity: .14;
  filter: drop-shadow(0 0 30px rgba(45,230,210,.25));
}
.ambient .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(173,255,245,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173,255,245,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 70%);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(4, 14, 11, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  color: var(--aqua-bright);
  filter: drop-shadow(0 0 6px rgba(45,230,210,.6));
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-text {
  font-family: var(--font-display);
  display: inline-flex; flex-direction: column;
  font-weight: 800; font-size: 19px; line-height: .92;
  letter-spacing: .12em; text-transform: uppercase;
  color: #EAFBF8;
}
.logo-text small {
  font-size: 8px; font-weight: 600; letter-spacing: .3em;
  color: var(--magenta); margin-top: 4px;
}
.logo-sm .logo-mark { width: 26px; height: 26px; }
.logo-sm .logo-text { font-size: 16px; }
.logo-sm .logo-text small { font-size: 7.5px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --pad-y: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .15s var(--ease), box-shadow .25s var(--ease),
              border-color .25s, background .25s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --pad-y: 8px; padding: 8px 16px; font-size: 14px; }
.btn-lg { --pad-y: 15px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(45,230,210,.7), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover { box-shadow: 0 16px 44px -10px rgba(45,230,210,.9), inset 0 1px 0 rgba(255,255,255,.4); transform: translateY(-1px); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn[disabled] { opacity: .65; cursor: not-allowed; pointer-events: none; }

/* spinner inside submit */
.btn-spinner {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(4,20,16,.35); border-top-color: var(--on-accent);
  display: none; animation: spin .7s linear infinite;
}
.btn.is-loading .btn-label { opacity: .55; }
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-top: 36px; padding-bottom: 28px; text-align: center; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 8.4vw, 50px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.07;
  margin-bottom: 18px;
  text-shadow: 0 0 30px rgba(45,230,210,.16);
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero h1 .grad { white-space: nowrap; filter: drop-shadow(0 0 16px rgba(45,230,210,.55)); }

.hero-sub {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 460px; margin-inline: auto;
  margin-bottom: 28px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-bullets { display: grid; gap: 10px; text-align: left; margin-bottom: 30px; }
.bullet {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 15px; color: var(--text); font-weight: 500;
}
.bullet-ic {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border);
  color: var(--aqua-bright);
}
.bullet-ic svg { width: 19px; height: 19px; }

.hero-cta { display: grid; gap: 12px; }

/* =========================================================
   Metrics
   ========================================================= */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.metric {
  text-align: center; padding: 18px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
}
.metric-value { display: block; font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: 0; }
.metric-label { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-muted); }

/* =========================================================
   Section heads
   ========================================================= */
.section-head { text-align: center; margin-bottom: 26px; }
.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 12px;
}
.section-title { font-family: var(--font-display); font-size: clamp(24px, 6.4vw, 30px); font-weight: 700; letter-spacing: -0.01em; }
.section-sub { color: var(--text-muted); font-size: 15px; margin-top: 10px; }

/* =========================================================
   Cards (duties)
   ========================================================= */
.cards { display: grid; gap: 12px; }
.card {
  position: relative; padding: 22px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.card:hover {
  border-color: var(--border-strong); transform: translateY(-3px);
  box-shadow: 0 22px 50px -24px rgba(45,230,210,.5);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border);
  color: var(--aqua-bright); margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 7px; }
.card p { color: var(--text-muted); font-size: 14.5px; }

/* =========================================================
   Checklist (terms)
   ========================================================= */
.checklist { display: grid; gap: 10px; }
.check-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  font-size: 15px; color: var(--text-muted);
}
.check-item strong { color: var(--text); font-weight: 600; }
.check-icon {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(45,230,210,.14); color: var(--aqua-bright);
  border: 1px solid rgba(45,230,210,.32);
}
.check-icon svg { width: 15px; height: 15px; }

/* =========================================================
   Platform preview
   ========================================================= */
.preview-card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(10,28,24,.92), rgba(6,18,15,.94));
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.9), inset 0 1px 0 rgba(173,255,245,.06);
}
.preview-top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(173,255,245,.02);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.preview-dots i:first-child { background: rgba(45,230,210,.7); }
.preview-title { font-size: 12.5px; color: var(--text-muted); }
.preview-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #7CE7B0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }

.preview-body { padding: 16px; display: grid; gap: 14px; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pstat { padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
.pstat-label { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 6px; }
.pstat-value { font-size: 17px; font-weight: 700; }
.badge-ok { font-size: 13px !important; color: #7CE7B0; }

.preview-chart { height: 90px; border-radius: var(--r-sm); background: rgba(173,255,245,.02); border: 1px solid var(--border); padding: 6px; }
.preview-chart svg { width: 100%; height: 100%; }

.preview-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); }
.preview-name { font-size: 13.5px; color: var(--text); font-weight: 500; }
.preview-prog { flex: 1; height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.preview-prog span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.preview-pct { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.preview-caption { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 14px; }

/* =========================================================
   Requirements
   ========================================================= */
.req-grid { display: grid; gap: 12px; }
.req { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.req-icon {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--aqua-bright);
}
.req-icon svg { width: 22px; height: 22px; }
.req h3 { font-size: 16.5px; margin-bottom: 5px; }
.req p { color: var(--text-muted); font-size: 14px; }
.req p strong { color: #FBC9C9; font-weight: 600; }

/* =========================================================
   Quiz / form
   ========================================================= */
.form-wrap {
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(45,230,210,.10), transparent 60%),
    var(--bg-1);
  padding: 26px 22px 28px;
  box-shadow: 0 40px 90px -50px rgba(45,230,210,.6), inset 0 1px 0 rgba(173,255,245,.06);
}
.form-head { text-align: center; margin-bottom: 22px; }
.form-head .kicker { margin-bottom: 10px; }

.quiz-progress { height: 5px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.quiz-bar { display: block; height: 100%; width: 25%; border-radius: 999px; background: var(--grad); transition: width .4s var(--ease); }
.quiz-meta { display: flex; align-items: center; gap: 10px; margin: 12px 0 18px; min-height: 28px; }
.quiz-back { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.quiz-back svg { width: 16px; height: 16px; }
.quiz-count { margin-left: auto; font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.quiz-count b { color: var(--text); }

.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.field-label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.field {
  width: 100%; padding: 15px 16px;
  font-size: 16px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field::placeholder { color: var(--text-dim); }
.field:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(45,230,210,.25); background: #0A2620; }
.field.is-invalid { border-color: #EF6B6B; box-shadow: 0 0 0 3px rgba(239,107,107,.18); }

.field-tg { position: relative; }
.field-prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; pointer-events: none; }
.field.has-prefix { padding-left: 32px; }

.choice-group { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; font-size: 16px; font-weight: 500; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--r);
  transition: border-color .2s, background .2s, transform .12s; text-align: left;
}
.choice:hover { border-color: var(--aqua); }
.choice .choice-ic {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  display: grid; place-items: center; font-size: 13px;
  background: rgba(255,255,255,.06); color: var(--text-muted);
  transition: background .2s, color .2s;
}
.choice.is-selected { border-color: var(--aqua); background: rgba(45,230,210,.12); }
.choice.is-selected .choice-ic { background: var(--grad); color: var(--on-accent); }

.error { color: #FB8C8C; font-size: 13px; min-height: 18px; margin-top: 8px; }
.hint { color: var(--text-muted); font-size: 13px; margin-top: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
[data-next], [data-submit] { margin-top: 18px; }
.form-note { text-align: center; color: var(--text-dim); font-size: 12px; margin-top: 14px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--border); margin-top: 20px; padding-block: 30px 90px; }
.footer-inner { text-align: center; display: grid; gap: 12px; justify-items: center; }
.footer-note { color: var(--text-muted); font-size: 13.5px; }
.footer-copy { color: var(--text-dim); font-size: 12.5px; }

/* =========================================================
   Sticky mobile CTA
   ========================================================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(4,18,15,.96) 60%, transparent);
  transform: translateY(120%);
  transition: transform .35s var(--ease);
  pointer-events: none;
}
.sticky-cta.is-visible { transform: translateY(0); pointer-events: auto; }

/* =========================================================
   Thank you overlay
   ========================================================= */
.thankyou {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(45,230,210,.20), transparent 55%), rgba(4,18,15,.94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .4s var(--ease);
}
.thankyou[hidden] { display: none; }
.ty-card {
  text-align: center; max-width: 420px; padding: 36px 26px;
  background: var(--bg-1); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: var(--glow); animation: stepIn .45s var(--ease);
}
.ty-icon {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 20px;
  background: var(--grad); color: var(--on-accent);
  box-shadow: 0 0 0 8px rgba(45,230,210,.16), 0 14px 40px -10px rgba(45,230,210,.7);
  animation: pop .5s var(--ease) both .1s;
}
.ty-icon svg { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ty-card h2 { font-family: var(--font-display); font-size: 27px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 12px; }
.ty-card p { color: var(--text-muted); font-size: 15px; }
.ty-sub { margin-top: 14px !important; font-size: 13px !important; color: var(--text-dim) !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Desktop — center into a refined narrow "app" column
   ========================================================= */
@media (min-width: 600px) {
  .section { padding-block: 72px; }
  .hero { padding-top: 64px; }
  .hero-cta { grid-auto-flow: column; justify-content: center; }
  .hero-cta .btn { padding-inline: 30px; }
  .cards { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: none; }
  .form-wrap { padding: 34px 32px 36px; }
  .ambient .gem { width: 320px; height: 320px; right: -40px; top: 40px; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .req-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  :root { --maxw: 600px; }
  .hero h1 { font-size: 52px; }
}

/* =========================================================
   Accessibility — reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
