:root {
  --bg: #08101f;
  --bg-2: #0d1730;
  --surface: #101c37;
  --surface-2: #152445;
  --surface-light: #f6f8fc;
  --ink: #0b1020;
  --text: #edf3ff;
  --muted: #9eb0cf;
  --muted-dark: #5f6d85;
  --primary: #5b8cff;
  --primary-2: #7a6cff;
  --accent: #35e6c4;
  --accent-2: #82f3df;
  --warning: #ffbf69;
  --danger: #ff6b7a;
  --border: rgba(148, 169, 209, 0.16);
  --border-light: #dfe6f1;
  --shadow: 0 28px 90px rgba(1, 7, 20, 0.28);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(91,140,255,.22), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(53,230,196,.10), transparent 30%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(91,140,255,.45); color: #fff; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: 104px 0; position: relative; }
.section-sm { padding: 70px 0; }
.light { background: var(--surface-light); color: var(--ink); }
.light .eyebrow { color: #315ed8; }
.light .lead, .light .muted { color: var(--muted-dark); }
.dark-alt { background: linear-gradient(180deg, rgba(21,36,69,.35), rgba(8,16,31,0)); }

.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(8,16,31,.78);
  border-bottom: 1px solid var(--border);
}
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 820; letter-spacing: .13em; font-size: 18px; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font-size: 9px; color: var(--muted); letter-spacing: .08em; font-weight: 650; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 24px; color: #c8d4eb; font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 760; font-size: 14px;
  transition: .2s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; box-shadow: 0 14px 34px rgba(91,140,255,.25); }
.btn-primary:hover { box-shadow: 0 18px 42px rgba(91,140,255,.35); }
.btn-secondary { background: rgba(255,255,255,.06); border-color: var(--border); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,.10); }
.btn-light { background: #fff; color: var(--ink); border-color: #e5eaf2; box-shadow: 0 10px 28px rgba(7,18,41,.08); }
.btn-ghost { color: #d8e2f5; border-color: transparent; }

.hero { padding: 95px 0 82px; overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .15em; text-transform: uppercase; font-size: 12px; margin-bottom: 18px; }
h1 { font-size: clamp(46px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 24px; max-width: 920px; }
h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 20px; }
h3 { font-size: 21px; line-height: 1.2; margin: 0 0 10px; }
.lead { color: #bac9e2; font-size: clamp(18px, 2vw, 21px); line-height: 1.65; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pill { border: 1px solid var(--border); background: rgba(255,255,255,.045); color: #c5d2e9; border-radius: 999px; padding: 8px 12px; font-size: 12px; }

.ai-panel { position: relative; padding: 1px; border-radius: 26px; background: linear-gradient(145deg, rgba(91,140,255,.7), rgba(53,230,196,.18), rgba(122,108,255,.6)); box-shadow: var(--shadow); }
.ai-panel-inner { border-radius: 25px; background: #0a1428; border: 1px solid rgba(255,255,255,.06); padding: 22px; overflow: hidden; position: relative; }
.window-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.window-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 750; }
.window-dot { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 18px rgba(53,230,196,.8); }
.chat-thread { padding: 20px 0 4px; display: grid; gap: 14px; }
.bubble { max-width: 88%; border-radius: 15px; padding: 13px 15px; font-size: 13px; line-height: 1.55; }
.bubble.user { justify-self: end; background: linear-gradient(135deg, #375fc4, #5948bb); }
.bubble.ai { background: #152342; border: 1px solid var(--border); }
.citation { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(53,230,196,.08); border: 1px solid rgba(53,230,196,.18); color: #c8fbf1; padding: 10px 12px; border-radius: 12px; font-size: 11px; }
.citation strong { color: #fff; }
.security-row { margin-top: 15px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mini-stat { background: rgba(255,255,255,.035); border: 1px solid var(--border); padding: 11px; border-radius: 12px; }
.mini-stat b { display: block; font-size: 12px; }
.mini-stat span { color: var(--muted); font-size: 10px; }
.orbit { position: absolute; width: 380px; height: 380px; border: 1px solid rgba(91,140,255,.12); border-radius: 50%; right: -110px; bottom: -190px; }
.orbit::before, .orbit::after { content:""; position:absolute; border: 1px solid rgba(53,230,196,.10); border-radius:50%; inset: 50px; }
.orbit::after { inset: 110px; }

.logo-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.logo-strip-inner { min-height: 80px; display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; color: #9fb0cc; font-size: 12px; letter-spacing: .05em; }
.logo-strip strong { color: #dbe6f8; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 42px; }
.section-head p { margin: 0; max-width: 620px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.card { background: rgba(255,255,255,.045); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.light .card { background: #fff; border-color: var(--border-light); box-shadow: 0 14px 34px rgba(17,31,59,.06); }
.card-icon { width: 46px; height: 46px; border-radius: 14px; display:grid; place-items:center; background: linear-gradient(135deg, rgba(91,140,255,.18), rgba(53,230,196,.12)); color: var(--accent); margin-bottom: 18px; font-weight: 900; }
.card p { color: var(--muted); margin: 0; font-size: 14px; }
.light .card p { color: var(--muted-dark); }
.card ul { padding-left: 18px; color: var(--muted); }
.light .card ul { color: var(--muted-dark); }

.feature-split { display:grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items:center; }
.feature-list { display:grid; gap: 14px; margin-top: 26px; }
.feature-item { display:grid; grid-template-columns: 34px 1fr; gap: 12px; align-items:start; }
.check { width: 26px; height:26px; border-radius: 8px; display:grid; place-items:center; background: rgba(53,230,196,.12); color: var(--accent); font-weight:900; }
.feature-item p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.light .feature-item p { color: var(--muted-dark); }

.diagram { border-radius: 24px; border: 1px solid var(--border); background: radial-gradient(circle at 50% 35%, rgba(91,140,255,.13), transparent 42%), #0a1427; padding: 28px; min-height: 420px; display:flex; flex-direction:column; justify-content:center; }
.flow { display:grid; gap: 14px; }
.flow-node { display:flex; align-items:center; gap: 14px; padding: 14px; border:1px solid var(--border); border-radius:14px; background:rgba(255,255,255,.035); }
.flow-node b { display:block; font-size:13px; }
.flow-node span { display:block; color:var(--muted); font-size:11px; }
.flow-arrow { text-align:center; color:#6d82aa; height: 10px; line-height: 10px; }
.flow-badge { margin-left:auto; font-size:10px; padding:5px 8px; border-radius:999px; color:#c9faf1; border:1px solid rgba(53,230,196,.22); background:rgba(53,230,196,.08); }

.stat-band { background: linear-gradient(135deg, rgba(91,140,255,.13), rgba(53,230,196,.06)); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.stat-grid { display:grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 34px 24px; border-right:1px solid var(--border); }
.stat:last-child { border-right:0; }
.stat b { font-size: 23px; display:block; margin-bottom:4px; }
.stat span { color:var(--muted); font-size:13px; }

.timeline { display:grid; grid-template-columns: repeat(4,1fr); gap: 0; counter-reset: step; }
.step { padding: 26px; border-top:1px solid var(--border); position:relative; }
.step::before { counter-increment: step; content:"0" counter(step); color:var(--accent); font-size:12px; font-weight:800; letter-spacing:.12em; }
.step::after { content:""; position:absolute; top:-4px; left:26px; width:8px; height:8px; border-radius:50%; background:var(--primary); box-shadow:0 0 0 6px rgba(91,140,255,.12); }
.step p { color:var(--muted); font-size:13px; }

.quote-card { padding: 34px; border-radius: var(--radius); border:1px solid var(--border); background:linear-gradient(145deg, rgba(91,140,255,.08), rgba(53,230,196,.04)); }
.quote-card blockquote { margin:0; font-size:24px; line-height:1.45; letter-spacing:-.015em; }
.quote-card footer { margin-top:18px; color:var(--muted); font-size:13px; }

.cta { padding: 46px; border-radius: 30px; background: linear-gradient(135deg, #2c4fbd 0%, #5d56d7 46%, #159f91 130%); box-shadow: 0 34px 90px rgba(43,75,180,.3); display:grid; grid-template-columns: 1fr auto; gap: 28px; align-items:center; }
.cta h2 { font-size: clamp(32px,4vw,48px); margin-bottom:10px; }
.cta p { margin:0; color:#dfe9ff; max-width:700px; }
.cta .btn { background:#fff; color:#10182a; }

.page-hero { padding: 88px 0 70px; border-bottom:1px solid var(--border); }
.page-hero h1 { font-size: clamp(44px, 6vw, 68px); max-width:980px; }
.page-hero .lead { max-width:800px; }
.breadcrumb { font-size:12px; color:var(--muted); margin-bottom:24px; }
.breadcrumb a:hover { color:#fff; }

.tabs { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px; }
.tab { padding:9px 13px; border-radius:10px; border:1px solid var(--border); background:transparent; color:#c7d4ea; }
.tab.active { background:rgba(91,140,255,.14); color:#fff; border-color:rgba(91,140,255,.34); }

.table-wrap { overflow-x:auto; border-radius:18px; border:1px solid var(--border-light); }
table { width:100%; border-collapse:collapse; min-width:720px; background:#fff; color:var(--ink); }
th, td { padding:16px 18px; text-align:left; border-bottom:1px solid #e8edf5; font-size:13px; }
th { background:#f7f9fc; color:#52617a; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
tr:last-child td { border-bottom:0; }
.good { color:#11826e; font-weight:760; }

.faq { display:grid; gap:10px; }
.faq-item { border:1px solid var(--border); border-radius:14px; overflow:hidden; background:rgba(255,255,255,.03); }
.light .faq-item { background:#fff; border-color:var(--border-light); }
.faq-q { width:100%; border:0; background:transparent; color:inherit; display:flex; justify-content:space-between; gap:20px; text-align:left; padding:18px 20px; font-weight:760; }
.faq-a { display:none; padding:0 20px 20px; color:var(--muted); font-size:14px; }
.light .faq-a { color:var(--muted-dark); }
.faq-item.open .faq-a { display:block; }
.faq-item.open .faq-q span:last-child { transform:rotate(45deg); }

.form-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:14px; }
.field { display:grid; gap:7px; }
.field.full { grid-column:1/-1; }
label { font-size:12px; font-weight:720; color:#becbe0; }
.light label { color:#56647a; }
input, textarea, select { width:100%; border:1px solid var(--border); background:#0b1529; color:#fff; border-radius:12px; padding:13px 14px; outline:none; }
.light input, .light textarea, .light select { background:#fff; color:var(--ink); border-color:#dce4ef; }
input:focus, textarea:focus, select:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(91,140,255,.12); }
textarea { min-height:128px; resize:vertical; }
.form-note { color:var(--muted); font-size:11px; }
.form-status { margin-top:12px; font-size:13px; min-height:20px; }
.form-status.success { color:var(--accent); }
.form-status.error { color:var(--danger); }

.demo-shell { display:grid; grid-template-columns: 280px 1fr; min-height:580px; border:1px solid var(--border); border-radius:24px; overflow:hidden; background:#0a1428; box-shadow:var(--shadow); }
.demo-side { padding:22px; border-right:1px solid var(--border); background:#0d1830; }
.demo-side h3 { font-size:15px; }
.demo-doc { padding:10px; border-radius:10px; color:#9fb0cd; font-size:11px; margin-top:8px; border:1px solid transparent; }
.demo-doc.active { background:rgba(91,140,255,.1); border-color:rgba(91,140,255,.2); color:#fff; }
.demo-main { display:flex; flex-direction:column; }
.demo-messages { flex:1; padding:28px; display:grid; align-content:start; gap:14px; }
.demo-composer { border-top:1px solid var(--border); padding:16px; display:flex; gap:10px; }
.demo-composer input { flex:1; }
.demo-suggestions { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.demo-suggestion { font-size:11px; border:1px solid var(--border); background:rgba(255,255,255,.04); color:#becce2; padding:8px 10px; border-radius:999px; }

.footer { border-top:1px solid var(--border); padding:58px 0 30px; background:#060c17; }
.footer-grid { display:grid; grid-template-columns:1.4fr repeat(3,.8fr); gap:38px; }
.footer h4 { margin:0 0 13px; font-size:13px; }
.footer a { color:#98a9c4; display:block; margin:8px 0; font-size:12px; }
.footer a:hover { color:#fff; }
.footer-copy { margin-top:40px; padding-top:20px; border-top:1px solid var(--border); display:flex; justify-content:space-between; gap:20px; color:#7789a7; font-size:11px; }

.notice { padding:15px 16px; border:1px solid rgba(255,191,105,.22); background:rgba(255,191,105,.08); color:#ffe0ad; border-radius:13px; font-size:12px; }
.light .notice { color:#855400; background:#fff8eb; border-color:#ffe1af; }

@media (max-width: 980px) {
  .nav-links { display:none; position:absolute; top:76px; left:0; right:0; padding:20px; background:#08101f; border-bottom:1px solid var(--border); flex-direction:column; align-items:flex-start; }
  .nav-links.open { display:flex; }
  .menu-btn { display:block; }
  .nav-actions .btn-ghost { display:none; }
  .hero-grid, .feature-split { grid-template-columns:1fr; }
  .hero-grid { gap:42px; }
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:1fr; }
  .timeline { grid-template-columns:repeat(2,1fr); }
  .stat-grid { grid-template-columns:repeat(2,1fr); }
  .stat:nth-child(2) { border-right:0; }
  .stat:nth-child(-n+2) { border-bottom:1px solid var(--border); }
  .cta { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 680px) {
  .container, .narrow { width:min(calc(100% - 28px), var(--max)); }
  .section { padding:76px 0; }
  .hero { padding-top:68px; }
  h1 { font-size:44px; }
  h2 { font-size:34px; }
  .grid-2, .grid-4, .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .timeline, .stat-grid { grid-template-columns:1fr; }
  .stat { border-right:0; border-bottom:1px solid var(--border); }
  .stat:last-child { border-bottom:0; }
  .section-head { align-items:start; flex-direction:column; }
  .cta { padding:30px; }
  .demo-shell { grid-template-columns:1fr; }
  .demo-side { border-right:0; border-bottom:1px solid var(--border); }
  .footer-grid { grid-template-columns:1fr; }
  .footer-copy { flex-direction:column; }
  .security-row { grid-template-columns:1fr; }
}
