:root {
  --bg: #05070d;
  --bg2: #0a0f1c;
  --card: #0d1322;
  --card2: #111828;
  --border: #1c2538;
  --border-hi: #2a3a5c;
  --text: #f2f6ff;
  --muted: #98a2b8;
  --muted2: #6b7690;
  --blue: #4d9fff;
  --blue-deep: #2f7bff;
  --blue-dim: #1e3a6e;
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; }
.glow-a { width: 700px; height: 700px; background: radial-gradient(circle, #12306e 0%, transparent 70%); top: -250px; left: 50%; transform: translateX(-50%); }
.glow-b { width: 500px; height: 500px; background: radial-gradient(circle, #0e2a5e 0%, transparent 70%); top: 38%; left: -180px; opacity: .35; }
.glow-c { width: 550px; height: 550px; background: radial-gradient(circle, #123a7d 0%, transparent 70%); top: 62%; right: -200px; opacity: .3; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(77,159,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(77,159,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5,7,13,.78); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, #12306e, #0a0f1c); border: 1px solid var(--border-hi);
  color: var(--blue); font-weight: 800; font-size: 16px;
}
.brand-name { font-weight: 800; letter-spacing: .18em; font-size: 15px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; border-radius: 10px; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-deep), #1f5fd6); color: #fff;
  box-shadow: 0 4px 24px rgba(47,123,255,.35), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(47,123,255,.5), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-hi); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { padding: 170px 24px 90px; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  border: 1px solid var(--border-hi); background: rgba(47,123,255,.08);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 26px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(77,159,255,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(77,159,255,0); } 100% { box-shadow: 0 0 0 0 rgba(77,159,255,0); } }
.hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 22px; }
.grad { background: linear-gradient(100deg, #7db9ff, var(--blue-deep) 60%, #7db9ff); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lede { color: var(--muted); font-size: 18px; max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.sysreq { display: flex; align-items: center; gap: 14px; color: var(--muted2); font-size: 13.5px; font-weight: 500; }
.sysreq i { width: 4px; height: 4px; border-radius: 50%; background: var(--border-hi); }
.sysreq.center { justify-content: center; margin-top: 26px; }

/* ---------- app mock ---------- */
.hero-visual { position: relative; }
.app-window {
  background: rgba(13,19,34,.92); border: 1px solid var(--border-hi); border-radius: 16px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(47,123,255,.12);
  backdrop-filter: blur(8px); transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .5s;
}
.hero-visual:hover .app-window { transform: perspective(1200px) rotateY(-2deg) rotateX(0deg); }
.app-titlebar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.app-title { margin-left: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 320px; }
.app-side { border-right: 1px solid var(--border); padding: 16px 12px; background: rgba(0,0,0,.25); }
.side-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted2); margin-bottom: 10px; padding: 0 8px; }
.side-item { font-size: 13px; color: var(--muted); padding: 8px 10px; border-radius: 8px; margin-bottom: 4px; }
.side-item.active { background: rgba(47,123,255,.14); color: var(--text); border: 1px solid rgba(47,123,255,.25); }
.app-main { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 92%; font-size: 13.5px; line-height: 1.55; border-radius: 12px; padding: 12px 15px; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, #1c4b9e, #163a7c); border: 1px solid #2a5cb8; }
.msg.assistant { align-self: flex-start; background: var(--card2); border: 1px solid var(--border); }
.msg.assistant strong { color: var(--blue); }
.cite { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 6px; background: rgba(77,159,255,.16); border: 1px solid rgba(77,159,255,.35); color: var(--blue); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.sources { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.source { font-size: 12px; color: var(--muted); background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; font-family: var(--mono); }
.src-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: rgba(77,159,255,.16); color: var(--blue); font-weight: 700; margin-right: 8px; font-family: var(--font); }
.msg.typing { display: flex; gap: 6px; padding: 14px 18px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted2); animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.hero-badge {
  position: absolute; bottom: -24px; left: 36px; background: rgba(13,19,34,.95); border: 1px solid var(--border-hi);
  border-radius: 12px; padding: 13px 20px; font-size: 13.5px; font-weight: 600; line-height: 1.5;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); border-left: 3px solid var(--blue);
}

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(10,15,28,.6); }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 46px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat { text-align: center; }
.stat-num { font-size: 46px; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(120deg, #fff, #9cc4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.stat-label span { color: var(--muted2); font-size: 12.5px; }

/* ---------- sections ---------- */
.section { padding: 110px 24px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap.narrow { max-width: 820px; }
.sec-head { margin-bottom: 56px; }
.sec-head.center, .center { text-align: center; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.sec-sub { color: var(--muted); font-size: 17px; max-width: 640px; margin-top: 18px; }
.sec-sub code, .faq-a code, .req-grid code { font-family: var(--mono); font-size: .88em; background: rgba(77,159,255,.1); border: 1px solid rgba(77,159,255,.2); padding: 2px 7px; border-radius: 6px; color: #a9ccff; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: linear-gradient(180deg, var(--card), rgba(13,19,34,.4)); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px; transition: transform .25s, border-color .25s, box-shadow .25s; position: relative; overflow: hidden; }
.step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blue-deep), transparent); opacity: 0; transition: opacity .25s; }
.step:hover { transform: translateY(-6px); border-color: var(--border-hi); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.step:hover::before { opacity: 1; }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--blue); letter-spacing: .1em; margin-bottom: 16px; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15px; }

/* flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.flow-step { background: linear-gradient(180deg, var(--card2), rgba(17,24,40,.5)); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: transform .25s, border-color .25s; }
.flow-step:hover { transform: translateY(-4px); border-color: var(--blue-dim); }
.flow-icon { font-size: 26px; color: var(--blue); margin-bottom: 14px; }
.flow-step h4 { font-size: 17px; margin-bottom: 10px; }
.flow-step p { color: var(--muted); font-size: 13.5px; }
.flow-arrow { align-self: center; color: var(--blue-deep); font-size: 22px; font-weight: 700; }
.flow-note { text-align: center; color: var(--muted2); font-size: 14px; margin-top: 30px; }

/* table */
.table-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead th { text-align: left; padding: 20px 24px; background: rgba(47,123,255,.06); font-size: 15px; }
thead th span { display: block; font-size: 12px; font-weight: 500; color: var(--muted2); margin-top: 2px; }
tbody td { padding: 17px 24px; border-top: 1px solid var(--border); color: var(--muted); vertical-align: top; }
tbody td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(77,159,255,.04); }
td.hl { color: var(--text); }
thead th.hl { color: var(--blue); }
.table-note { color: var(--muted2); font-size: 14px; margin-top: 22px; max-width: 760px; }

/* requirements */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.req-grid h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.req-card { background: linear-gradient(180deg, var(--card2), rgba(17,24,40,.5)); border: 1px solid var(--border-hi); border-radius: var(--radius); padding: 36px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.req-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: 22px; }
.req-card ul { list-style: none; }
.req-card li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.req-card li:last-child { border-bottom: none; }
.req-card li span { color: var(--muted); }
.req-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); background: rgba(47,123,255,.07); border: 1px solid rgba(47,123,255,.2); border-radius: 10px; padding: 14px 16px; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--border-hi); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: none; border: none; color: var(--text); font-family: var(--font); font-size: 16.5px; font-weight: 600; padding: 22px 26px; cursor: pointer; text-align: left; }
.faq-q span { color: var(--blue); font-size: 22px; font-weight: 400; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 26px 24px; color: var(--muted); font-size: 15px; }

/* cta band */
.cta-band { padding: 120px 24px; text-align: center; border-top: 1px solid var(--border); background: radial-gradient(ellipse 70% 90% at 50% 110%, rgba(47,123,255,.14), transparent 70%); }
.cta-band h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 18px; }
.cta-band p { color: var(--muted); font-size: 17px; margin-bottom: 34px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 34px 24px; }
.foot-inner { display: flex; align-items: center; gap: 28px; }
.foot-links { display: flex; gap: 22px; margin-left: auto; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.foot-links a:hover { color: var(--text); }
.foot-copy { color: var(--muted2); font-size: 13px; }

/* legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 150px 24px 90px; }
.legal h1 { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.legal .updated { color: var(--muted2); font-size: 13.5px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--blue); }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero { padding-top: 130px; }
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .stats-inner { grid-template-columns: 1fr; gap: 36px; }
  .req-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-inner { flex-direction: column; gap: 16px; text-align: center; }
  .foot-links { margin-left: 0; }
  .app-window { transform: none; }
  .hero-badge { left: 16px; }
  thead th:nth-child(3), tbody td:nth-child(3) { display: none; }
}
