/* ============================================================
   Field of Dreams — Visitor Homepage
   ============================================================ */

:root {
  --indigo-50:  oklch(0.972 0.018 285);
  --indigo-100: oklch(0.935 0.038 285);
  --indigo-200: oklch(0.885 0.060 285);
  --indigo-300: oklch(0.808 0.090 285);
  --indigo-400: oklch(0.700 0.140 285);
  --indigo-500: oklch(0.605 0.190 285);
  --indigo-600: oklch(0.535 0.210 285);
  --indigo-700: oklch(0.470 0.195 285);
  --indigo-800: oklch(0.405 0.165 285);
  --indigo-900: oklch(0.345 0.130 285);
  --violet-500: oklch(0.60 0.20 305);
  --violet-600: oklch(0.50 0.19 305);

  --accent: var(--indigo-600);
  --accent-hover: var(--indigo-700);
  --accent-soft: var(--indigo-50);
  --accent-ring: oklch(0.605 0.190 285 / 0.30);

  --green-50:  oklch(0.965 0.030 155);
  --green-100: oklch(0.925 0.060 155);
  --green-200: oklch(0.875 0.090 158);
  --green-500: oklch(0.660 0.150 158);
  --green-600: oklch(0.585 0.140 158);
  --green-700: oklch(0.500 0.120 158);

  --amber-500: oklch(0.770 0.150 75);

  --canvas:    oklch(0.985 0.004 95);
  --surface:   oklch(1 0 0);
  --surface-2: oklch(0.978 0.005 95);
  --surface-3: oklch(0.962 0.006 95);
  --ink-900:   oklch(0.22 0.03 285);
  --line:      oklch(0.915 0.006 95);
  --line-2:    oklch(0.870 0.008 95);

  --ink:       oklch(0.255 0.012 285);
  --ink-2:     oklch(0.430 0.014 285);
  --ink-3:     oklch(0.585 0.014 285);
  --ink-soft:  oklch(0.680 0.012 285);

  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  --sh-sm: 0 1px 2px oklch(0.45 0.05 285 / 0.05), 0 2px 8px oklch(0.45 0.05 285 / 0.06);
  --sh-md: 0 2px 6px oklch(0.45 0.05 285 / 0.05), 0 10px 28px oklch(0.45 0.05 285 / 0.09);
  --sh-lg: 0 8px 20px oklch(0.45 0.05 285 / 0.09), 0 28px 64px oklch(0.40 0.06 285 / 0.16);
  --sh-glow: 0 10px 32px oklch(0.535 0.21 285 / 0.30);

  --font-ui: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-ring); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--indigo-700); text-transform: uppercase;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.08; margin: 14px 0 0; text-wrap: balance;
}
.section-sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); margin: 16px 0 0;
  line-height: 1.55; max-width: 620px; text-wrap: pretty;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: var(--r-pill); font-weight: 700;
  font-size: 15.5px; letter-spacing: -0.01em; padding: 14px 26px; cursor: pointer;
  transition: transform .14s ease, box-shadow .24s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--sh-glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 14px 38px oklch(0.535 0.21 285 / 0.40); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-sm); }
.btn-ghost:hover { border-color: var(--ink-soft); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-light:hover { background: rgba(255,255,255,0.22); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---- Chips / pills ---- */
.pill {
  display: inline-flex; align-items: center; gap: 7px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; padding: 6px 13px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2);
}
.pill svg { width: 15px; height: 15px; }
.pill-green { background: var(--green-50); color: var(--green-700); border-color: var(--green-200); }
.pill-accent { background: var(--accent-soft); color: var(--indigo-700); border-color: var(--indigo-200); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--canvas) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in oklch, var(--canvas) 92%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--indigo-500), var(--indigo-700));
  box-shadow: var(--sh-glow); display: grid; place-items: center;
}
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-tag { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-top: -2px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600;
  color: var(--ink-2); transition: all .15s ease; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-3); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ============ HERO ============ */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 78% 8%, oklch(0.88 0.09 290 / 0.55), transparent 62%),
    radial-gradient(620px 380px at 12% 18%, oklch(0.90 0.06 155 / 0.42), transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 500px at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 500px at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.02; margin: 22px auto 0; max-width: 16ch; text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--indigo-600), var(--violet-500) 60%, var(--indigo-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-2); margin: 22px auto 0;
  max-width: 600px; line-height: 1.55; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; justify-content: center; margin-top: 26px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--green-600); }

/* hero product shot */
.hero-shot { position: relative; z-index: 1; margin: 56px auto 0; max-width: 1000px; }
.hero-shot .browser { transform: perspective(2200px) rotateX(3deg); transform-origin: 50% 0; }
.hero-float {
  position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 13px 16px;
  display: flex; align-items: center; gap: 12px; animation: floaty 5s ease-in-out infinite;
}
.hero-float-a { top: 16%; left: -3%; }
.hero-float-b { bottom: 12%; right: -3%; animation-delay: -2.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---- Browser frame ---- */
.browser {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2);
  background: var(--surface); box-shadow: var(--sh-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-url {
  margin: 0 auto; font-size: 12.5px; color: var(--ink-3); font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 16px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.browser-url svg { width: 13px; height: 13px; color: var(--green-600); }
.browser img { width: 100%; display: block; }

/* ============ MARQUEE / TRUST ============ */
.trust-bar { padding: 30px 0 8px; }
.trust-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; margin-top: 22px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--ink-2); }
.trust-item svg { width: 22px; height: 22px; color: var(--ink-3); }

/* ============ STATS ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 8px 0; }
.stat { text-align: center; padding: 8px; }
.stat-num { font-size: clamp(34px, 4.4vw, 50px); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(120deg, var(--indigo-600), var(--violet-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 14.5px; color: var(--ink-3); font-weight: 600; margin-top: 10px; }

/* ============ SECTION shell ============ */
section { position: relative; }
.section-pad { padding: 88px 0; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ============ STEPS (alternating) ============ */
.step-row { display: grid; grid-template-columns: 1fr 1.18fr; gap: 56px; align-items: center; }
.step-row + .step-row { margin-top: 96px; }
.step-row.flip .step-copy { order: 2; }
.step-row.flip .step-visual { order: 1; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 13px; background: var(--accent-soft); color: var(--indigo-700);
  font-weight: 800; font-size: 19px; border: 1px solid var(--indigo-200);
}
.step-copy h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.025em; margin: 18px 0 0; line-height: 1.1; }
.step-copy p { font-size: 17px; color: var(--ink-2); margin: 14px 0 0; line-height: 1.55; text-wrap: pretty; }
.step-feats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.step-feats li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.step-feats .tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; margin-top: 1px; }
.step-feats .tick svg { width: 15px; height: 15px; }
.step-visual { position: relative; }
.step-visual .browser { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.step-visual .glow {
  position: absolute; inset: -10% -6%; z-index: -1; border-radius: 40px; filter: blur(46px); opacity: 0.5;
  background: radial-gradient(circle at 50% 40%, oklch(0.7 0.16 290 / 0.55), transparent 70%);
}

/* ============ PROFESSOR SPOTLIGHT ============ */
.prof {
  background: linear-gradient(160deg, var(--ink-900), oklch(0.30 0.07 285));
  color: #fff; border-radius: var(--r-xl); overflow: hidden; position: relative;
}
.prof-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 56px 56px; }
.prof-glow { position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 10%, oklch(0.6 0.2 300 / 0.45), transparent 60%); pointer-events: none; }
.prof-copy { position: relative; z-index: 1; }
.prof-copy .eyebrow { color: oklch(0.82 0.09 290); }
.prof-copy h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 0; line-height: 1.1; }
.prof-copy p { font-size: 17.5px; color: oklch(0.86 0.02 285); margin: 18px 0 0; line-height: 1.55; }
.prof-feats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.prof-feats .pill { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: oklch(0.92 0.02 285); }
.prof-feats .pill svg { color: oklch(0.82 0.1 290); }

/* chat mock */
.chat-mock { position: relative; z-index: 1; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.prof-av { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: radial-gradient(circle at 32% 28%, var(--indigo-400), var(--indigo-700)); display: grid; place-items: center; color: #fff; }
.prof-av svg { width: 20px; height: 20px; }
.chat-head b { font-size: 14.5px; }
.chat-head .on { font-size: 11px; color: var(--green-700); display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.chat-head .on i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); }
.chat-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 13px; background: var(--surface-2); }
.msg { max-width: 88%; font-size: 14px; line-height: 1.5; padding: 11px 14px; border-radius: 16px; overflow-wrap: anywhere; }
.msg.prof { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; color: var(--ink); }
.msg.user { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; box-shadow: var(--sh-glow); }
.msg b { font-weight: 700; }

/* ============ FEATURE GRID ============ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px;
  box-shadow: var(--sh-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--indigo-200); }
.feat-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feat-ic svg { width: 25px; height: 25px; }
.feat-card h4 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 18px 0 0; }
.feat-card p { font-size: 14.5px; color: var(--ink-2); margin: 9px 0 0; line-height: 1.55; }

/* ============ SECURITY ============ */
.sec-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.sec-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-badge { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--sh-sm); }
.sec-badge .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; }
.sec-badge .ic svg { width: 22px; height: 22px; }
.sec-badge b { display: block; font-size: 15.5px; font-weight: 700; margin-top: 14px; }
.sec-badge span { font-size: 13.5px; color: var(--ink-3); }

/* ============ TESTIMONIAL ============ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; }
.quote .stars { display: flex; gap: 3px; color: var(--amber-500); }
.quote .stars svg { width: 17px; height: 17px; fill: currentColor; }
.quote p { font-size: 15.5px; line-height: 1.55; color: var(--ink); margin: 16px 0 0; flex: 1; text-wrap: pretty; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.quote .who b { font-size: 14.5px; }
.quote .who span { font-size: 13px; color: var(--ink-3); }

/* ============ FAQ ============ */
.faq { max-width: 780px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 4px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-size: 17.5px; font-weight: 700; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; transition: transform .25s ease, background .25s; }
.faq summary .q-ic svg { width: 18px; height: 18px; color: var(--ink-2); }
.faq details[open] summary .q-ic { transform: rotate(45deg); background: var(--accent-soft); }
.faq details[open] summary .q-ic svg { color: var(--accent); }
.faq .a { padding: 0 4px 24px; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; max-width: 660px; }

/* ============ FINAL CTA ============ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--indigo-600), var(--violet-600)); color: #fff; padding: 64px 48px; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 20% 10%, rgba(255,255,255,0.18), transparent 60%); pointer-events: none; }
.cta-band h2 { position: relative; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.06; text-wrap: balance; }
.cta-band p { position: relative; font-size: 18px; color: rgba(255,255,255,0.9); margin: 18px auto 0; max-width: 520px; }
.cta-band .hero-actions { margin-top: 30px; }

/* ============ FOOTER ============ */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 14px; color: var(--ink-3); margin: 16px 0 0; max-width: 280px; line-height: 1.55; }
.footer-col h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin: 0 0 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-bottom small { font-size: 13px; color: var(--ink-soft); }
.footer-bottom .disc { font-size: 12px; color: var(--ink-soft); max-width: 640px; line-height: 1.5; }

/* ---- reveal: visible base (no transition dependency) ---- */
.reveal { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .step-row, .prof-grid, .sec-wrap { grid-template-columns: 1fr; gap: 32px; }
  .step-row.flip .step-copy { order: 1; } .step-row.flip .step-visual { order: 2; }
  .step-row + .step-row { margin-top: 60px; }
  .feat-grid, .quotes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .prof-grid { padding: 40px 28px; }
  .hero-float { display: none; }
  .prof, .cta-band { border-radius: var(--r-lg); }
}
@media (max-width: 540px) {
  .section-pad { padding: 60px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-shot .browser { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float { animation: none !important; }
}
