/* ==========================================================================
   BriefGate — landing styles
   Dark theme, cyan/amber palette, aurora background, scroll reveals.
   ========================================================================== */

:root {
  --bg:        #060a14;
  --bg-2:      #090e1c;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.15);
  --text:      #eef1f8;
  --muted:     #96a3b8;
  --faint:     #5f6b7e;

  --cyan:    #06b6d4;
  --cyan-2:  #22d3ee;
  --teal:    #0d9488;
  --amber:   #f59e0b;
  --orange:  #f97316;
  --green:   #10b981;
  --red:     #f87171;

  --grad: linear-gradient(120deg, #06b6d4 0%, #0891b2 40%, #f59e0b 100%);
  --grad-soft: linear-gradient(135deg, #0e7490, #0891b2);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--muted); text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

/* ---------- animated background ---------- */
.bg-aurora {
  position: fixed; inset: -20vh -10vw; z-index: -3; pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 12% 8%, rgba(6,182,212,0.28), transparent 60%),
    radial-gradient(36vw 36vw at 88% 12%, rgba(245,158,11,0.15), transparent 60%),
    radial-gradient(48vw 48vw at 72% 82%, rgba(13,148,136,0.22), transparent 62%),
    radial-gradient(32vw 32vw at 18% 88%, rgba(6,182,212,0.10), transparent 60%);
  filter: blur(32px) saturate(1.2);
  animation: drift 24s var(--ease) infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.07); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 40%, transparent 85%);
}
.bg-vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% -10%, transparent 55%, rgba(3,5,12,0.88) 100%);
}

/* ---------- scroll progress + nav ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--grad); z-index: 100; box-shadow: 0 0 12px rgba(6,182,212,0.6);
}
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,10,20,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad-soft); box-shadow: 0 6px 20px rgba(6,182,212,0.4);
}
.brand .mark svg { width: 17px; height: 17px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.link { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a.link:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; will-change: transform;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #020a14; background: var(--grad);
  box-shadow: 0 10px 30px -8px rgba(6,182,212,0.55);
}
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(6,182,212,0.7); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.26); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 172px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); font-weight: 800; letter-spacing: -0.038em; }
.hero .lede { color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); max-width: 30em; margin-top: 22px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 30px; color: var(--faint); font-size: 13.5px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- live intake card ---------- */
.card-stage { position: relative; perspective: 1200px; }
.intake-card {
  position: relative; border-radius: 20px; padding: 22px 24px;
  background: linear-gradient(180deg, rgba(14,20,40,0.92), rgba(8,12,28,0.86));
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  transform: rotateX(5deg) rotateY(-8deg);
  transition: transform .5s var(--ease);
}
.card-stage:hover .intake-card { transform: rotateX(2deg) rotateY(-3deg); }
.ic-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ic-title { font-weight: 700; font-size: 14px; color: var(--text); }
.ic-subtitle { font-size: 12px; color: var(--faint); font-family: var(--mono); }
.ic-progress { margin-bottom: 18px; }
.ic-progress-bar-bg { height: 4px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.ic-progress-fill {
  height: 100%; background: var(--grad); border-radius: 99px;
  transition: width 0.6s var(--ease);
}
.ic-progress-label { font-size: 12px; color: var(--faint); margin-top: 6px; }
.ic-items { display: grid; gap: 8px; }
.ic-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); font-size: 13px;
  transition: background .3s, border-color .3s;
}
.ic-item.submitted { border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.05); }
.ic-item-label { color: var(--muted); }
.ic-item.submitted .ic-item-label { color: var(--text); }
.ic-item-status { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.ic-item-status.pending { color: var(--faint); }
.ic-item-status.submitted { color: var(--green); }
.ic-item-status svg { width: 13px; height: 13px; }
.ic-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: rgba(6,182,212,0.12); color: var(--cyan-2);
  border: 1px solid rgba(6,182,212,0.28);
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 17px; line-height: 1.7; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
[data-delay="5"] { transition-delay: .40s; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.step {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.step::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.step:hover::before { opacity: 0.45; }
.step .num { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); font-weight: 600; }
.step .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.22); margin: 14px 0 16px;
}
.step .ico svg { width: 21px; height: 21px; color: var(--cyan-2); }
.step h3 { font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  padding: 30px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), rgba(255,255,255,0.02));
  border: 1px solid var(--border); transition: transform .4s var(--ease), border-color .4s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-2); }
.feature .fico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); box-shadow: 0 10px 26px -8px rgba(6,182,212,0.45);
}
.feature .fico svg { width: 23px; height: 23px; color: #fff; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); margin-top: 10px; font-size: 15px; line-height: 1.7; }

/* ---------- terminal / code block ---------- */
.code-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.terminal {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border-2);
  background: #080c1c; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term-bar i:nth-child(1){background:#ff5f57;} .term-bar i:nth-child(2){background:#febc2e;} .term-bar i:nth-child(3){background:#28c840;}
.term-bar .term-title { margin-left: 10px; color: var(--faint); font-size: 12.5px; font-family: var(--mono); }
.terminal pre {
  margin: 0; padding: 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  color: #c8d3e8; overflow-x: auto; white-space: pre; min-height: 280px;
}
.terminal .cursor { display: inline-block; width: 8px; height: 15px; background: var(--cyan); vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tok-cmd   { color: var(--cyan-2); }
.tok-fn    { color: #7dd3fc; }
.tok-key   { color: #93c5fd; }
.tok-str   { color: #86efac; }
.tok-num   { color: var(--amber); }
.tok-punc  { color: #6b7280; }
.tok-ok    { color: var(--green); }
.tok-url   { color: var(--amber); }
.tok-com   { color: #4b5563; font-style: italic; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0;
  transition: transform .35s var(--ease), border-color .35s;
}
.price:hover { transform: translateY(-4px); }
.price.pop {
  border-color: rgba(6,182,212,0.45);
  background: linear-gradient(180deg, rgba(6,182,212,0.09), var(--surface));
  box-shadow: 0 30px 70px -30px rgba(6,182,212,0.5);
}
.price .tag {
  position: absolute; top: -11px; left: 24px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 999px;
  background: var(--grad); color: #020a14;
}
.price .plan { font-size: 13.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.price .amt { font-size: 36px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -0.04em; }
.price .amt span { font-size: 15px; color: var(--faint); font-weight: 500; }
.price .period-note { font-size: 12.5px; color: var(--faint); margin-bottom: 20px; min-height: 18px; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; }
.price li { color: var(--muted); font-size: 14px; display: flex; gap: 9px; align-items: flex-start; }
.price li svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }
.price li.dim svg { color: var(--faint); }
.price li.dim { opacity: 0.5; }
.price-cta { margin-top: 22px; }
.price-note { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 16px;
  color: var(--text); transition: color .2s; gap: 16px; user-select: none;
}
.faq-q:hover { color: var(--cyan-2); }
.faq-q svg { width: 18px; height: 18px; color: var(--faint); flex-shrink: 0; transition: transform .3s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--cyan); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 44em; }
.faq-a-inner a { color: var(--cyan-2); text-decoration: underline; text-underline-offset: 3px; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- CTA band + footer ---------- */
.cta-band { text-align: center; padding: 84px 0; }
.cta-band h2 { font-size: clamp(28px, 4.4vw, 46px); }
.cta-band p { color: var(--muted); margin: 16px auto 30px; max-width: 32em; font-size: 17px; line-height: 1.7; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); font-size: 14px; margin-left: 22px; transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer .copy { color: var(--faint); font-size: 13px; }

/* ---------- magnetic button effect ---------- */
.magnetic { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .code-wrap { grid-template-columns: 1fr; }
  .card-stage { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .nav-links .link { display: none; }
}
@media (max-width: 580px) {
  .hero { padding-top: 132px; }
  .steps, .pricing { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer a { margin: 0 11px; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { text-align: center; justify-content: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bg-aurora { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .intake-card { transform: none; }
  .cursor { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ── Waitlist form (early access CTA) ─────────────────────────────── */
.waitlist{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:26px}
.waitlist input[type=email]{
  flex:1 1 280px;max-width:340px;padding:13px 16px;border-radius:12px;
  border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);
  color:#fff;font:inherit;font-size:15px;
  transition:border-color .2s ease,background .2s ease}
.waitlist input[type=email]::placeholder{color:rgba(255,255,255,.42)}
.waitlist input[type=email]:focus{
  outline:none;border-color:var(--cyan,#22d3ee);background:rgba(255,255,255,.09)}
.waitlist input[type=email]:disabled{opacity:.55}
.waitlist button[disabled]{opacity:.6;cursor:default}
.waitlist-note{margin-top:14px;font-size:13.5px;opacity:.62}
.waitlist-note.is-error{color:#fca5a5;opacity:1}
.waitlist-note.is-done{color:#6ee7b7;opacity:1}
