/* ============================================================
   Counsiq — Design System
   Enterprise legal SaaS. Restrained, premium, confident.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700;800&display=swap');

:root {
  /* Neutrals (light theme) */
  --bg:        #fbfbfd;
  --bg-alt:    #f3f5fa;
  --surface:   #ffffff;
  --surface-2: #f7f9fc;
  --border:    rgba(13, 22, 46, 0.08);
  --border-2:  rgba(13, 22, 46, 0.12);
  --ink:       #0b1220;
  --ink-soft:  #27324a;
  --muted:     #5b6577;
  --muted-2:   #838d9e;

  /* Brand */
  --navy:      #0e1633;
  --navy-2:    #17224b;
  --indigo:    #4338ca;
  --brand:     #2b53f0;   /* royal/electric blue */
  --brand-600: #1f45e0;
  --brand-400: #5b7dff;
  --cyan:      #22d3ee;

  --ring: rgba(43, 83, 240, 0.35);
  --shadow-sm: 0 1px 2px rgba(13,22,46,.06), 0 1px 1px rgba(13,22,46,.04);
  --shadow:    0 10px 30px -12px rgba(13,22,46,.18), 0 4px 10px -6px rgba(13,22,46,.10);
  --shadow-lg: 0 40px 80px -24px rgba(13,22,46,.28), 0 12px 28px -12px rgba(13,22,46,.16);
  --shadow-brand: 0 18px 40px -14px rgba(43,83,240,.45);

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

.dark {
  --bg:        #070a14;
  --bg-alt:    #0b1020;
  --surface:   #0e1424;
  --surface-2: #121a2e;
  --border:    rgba(255,255,255,0.09);
  --border-2:  rgba(255,255,255,0.14);
  --ink:       #f2f5fb;
  --ink-soft:  #d6dcea;
  --muted:     #9aa6bd;
  --muted-2:   #74809a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 20px 40px -18px rgba(0,0,0,.6);
  --shadow-lg: 0 50px 90px -30px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(43,83,240,.18); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1,h2,h3,h4 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 700; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font);
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.dark .eyebrow { color: var(--brand-400); }
.h-display { font-size: clamp(2.6rem, 5.4vw, 4.1rem); }
.h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); line-height: 1.65; }
.muted { color: var(--muted); }
.balance { text-wrap: balance; }
.grad-text {
  background: linear-gradient(100deg, var(--brand) 0%, var(--indigo) 55%, var(--cyan) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--brand-400) -30%, var(--brand) 45%, var(--brand-600) 130%);
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -14px rgba(43,83,240,.55), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-outline {
  color: var(--ink); background: var(--surface); border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border-2)); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { color: var(--brand); }
.btn-dark { color:#fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.btn-dark:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 13px; }

/* ---------- Nav ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2.5px; width: 0%; z-index: 100;
  background: linear-gradient(90deg, var(--brand), var(--cyan)); transition: width .1s linear; }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; transition: all .3s ease; padding: 16px 0; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 12px 10px 18px; border-radius: 16px;
  border: 1px solid transparent; transition: all .3s ease;
}
.nav.scrolled .nav-inner {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color:#fff;
  background: linear-gradient(140deg, var(--brand-400), var(--indigo) 70%, var(--navy));
  box-shadow: var(--shadow-brand); flex: none;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-mark.logo { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 3px; }
.brand-mark.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dark .brand-mark.logo { background: var(--surface-2); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: all .18s ease; }
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-2); border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .6;
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-a { width: 620px; height: 620px; top: -260px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(43,83,240,.30), transparent 65%); }
.glow-b { width: 420px; height: 420px; top: 60px; right: -120px;
  background: radial-gradient(circle, rgba(34,211,238,.18), transparent 65%); }
.glow-c { width: 460px; height: 460px; top: 140px; left: -160px;
  background: radial-gradient(circle, rgba(79,70,229,.18), transparent 65%); }

.hero-inner { position: relative; z-index: 2; display: grid; gap: 34px; }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-copy .lead { max-width: 640px; margin: 22px auto 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 26px; }
.trust-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.trust-item svg { width: 15px; height: 15px; color: var(--brand); }
.dark .trust-item svg { color: var(--brand-400); }

.announce {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 auto;
  padding: 6px 6px 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--ink-soft);
}
.announce .tag { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight: 600; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.dark .announce .tag { color: var(--brand-400); }
.announce .chev { color: var(--muted-2); }

/* ---------- Product window (dashboard mockup) ---------- */
.window-wrap { position: relative; z-index: 2; margin-top: 20px; }
.window {
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.window::after { content:''; position:absolute; inset:0; border-radius:16px; pointer-events:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.dark .window::after { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.win-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.win-dots i:nth-child(1){ background:#ef6a5f; } .win-dots i:nth-child(2){ background:#f5bf4f; } .win-dots i:nth-child(3){ background:#61c554; }
.win-url { flex: 1; text-align: center; font-size: 12.5px; color: var(--muted-2); font-family: var(--font);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; max-width: 340px; margin: 0 auto; }

/* app shell inside window */
.app { display: grid; grid-template-columns: 210px 1fr; min-height: 470px; }
.app-side { border-right: 1px solid var(--border); padding: 16px 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.side-brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; font-family: var(--display); font-weight: 700; font-size: 15px; }
.side-brand .brand-mark { width: 24px; height: 24px; border-radius: 7px; }
.side-brand .brand-mark svg { width: 13px; height: 13px; }
.nav-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--muted); }
.nav-i svg { width: 15px; height: 15px; }
.nav-i.active { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight: 600; }
.dark .nav-i.active { color: var(--brand-400); }
.nav-i .count { margin-left: auto; font-size: 10.5px; font-weight: 600; background: var(--brand); color:#fff; border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-top: 1px solid var(--border); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display:grid; place-items:center; color:#fff; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, var(--indigo), var(--brand)); flex:none; }

.app-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-title { font-family: var(--display); font-weight: 700; font-size: 17px; }
.app-search { display:flex; align-items:center; gap:8px; font-size:12px; color: var(--muted-2); background: var(--surface-2); border:1px solid var(--border); border-radius: 9px; padding: 6px 10px; }
.app-search svg { width: 13px; height: 13px; }
.kbd { border:1px solid var(--border-2); border-radius: 5px; padding: 0 5px; font-size: 10px; margin-left: 4px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; background: var(--surface); }
.kpi .lab { font-size: 11px; color: var(--muted); font-weight: 500; display:flex; align-items:center; gap:6px; }
.kpi .lab svg { width: 13px; height: 13px; color: var(--brand); }
.dark .kpi .lab svg { color: var(--brand-400); }
.kpi .val { font-family: var(--display); font-weight: 700; font-size: 22px; margin-top: 6px; }
.kpi .delta { font-size: 11px; font-weight: 600; margin-top: 2px; }
.up { color: #16a34a; } .down { color: #dc2626; }

.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.panel { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 14px; }
.panel-h { display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; }
.panel-h b { font-family: var(--display); font-size: 13.5px; }
.panel-h span { font-size: 11px; color: var(--muted-2); }

/* chart */
.chart { display: flex; align-items: flex-end; gap: 9px; height: 118px; padding-top: 6px; }
.bar { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand-400), var(--brand)); position: relative; opacity: .9; }
.bar.alt { background: linear-gradient(180deg, color-mix(in srgb, var(--indigo) 55%, transparent), var(--indigo)); }
.chart-x { display:flex; gap:9px; margin-top:6px; }
.chart-x span { flex:1; text-align:center; font-size:9.5px; color: var(--muted-2); }

/* case rows / table */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; background: var(--surface-2); border:1px solid var(--border); }
.row .rt { font-size: 12.5px; font-weight: 600; }
.row .rs { font-size: 10.5px; color: var(--muted); }
.pill { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.blue { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.pill.green { background: rgba(22,163,74,.12); color:#16a34a; }
.pill.amber { background: rgba(217,119,6,.14); color:#d97706; }
.pill.grey { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); }
.dark .pill.blue { color: var(--brand-400); }

/* floating cards around window */
.float { position: absolute; z-index: 5; background: var(--surface); border: 1px solid var(--border);
  border-radius: 13px; box-shadow: var(--shadow-lg); padding: 12px 14px; }
.float-a { top: 64px; left: -34px; width: 216px; }
.float-b { bottom: 60px; right: -30px; width: 232px; }
.float-c { bottom: -26px; left: 60px; width: 200px; }
.f-head { display:flex; align-items:center; gap:9px; }
.f-ic { width: 30px; height: 30px; border-radius: 9px; display:grid; place-items:center; flex:none; }
.f-ic svg { width: 15px; height: 15px; color:#fff; }
.f-ic.b { background: linear-gradient(135deg, var(--brand-400), var(--brand)); }
.f-ic.g { background: linear-gradient(135deg, #34d399, #059669); }
.f-ic.i { background: linear-gradient(135deg, #818cf8, var(--indigo)); }
.f-t { font-size: 12.5px; font-weight: 700; font-family: var(--display); }
.f-s { font-size: 11px; color: var(--muted); }

/* ---------- Logos / credibility strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip-inner { display:flex; align-items:center; justify-content:center; gap: 14px 40px; flex-wrap:wrap; padding: 30px 0; }
.strip-lab { width: 100%; text-align:center; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight:600; margin-bottom: 6px; }
.logo-i { display:flex; align-items:center; gap:9px; color: var(--muted); font-weight:600; font-family: var(--display); font-size: 16px; opacity:.85; }
.logo-i svg { width: 20px; height: 20px; }

/* ---------- Section header block ---------- */
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head .lead { margin-top: 16px; }

/* ---------- Feature cards grid ---------- */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-2); }
.card-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent); }
.dark .card-ic { color: var(--brand-400); }
.card-ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.card .learn { display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-size:13.5px; font-weight:600; color: var(--brand); opacity:0; transform: translateY(4px); transition: all .25s ease; }
.dark .card .learn { color: var(--brand-400); }
.card:hover .learn { opacity:1; transform: translateY(0); }
.card .learn svg { width: 15px; height: 15px; }

/* problem card variant */
.card-problem .card-ic { background: rgba(220,38,38,.08); color:#dc2626; border-color: rgba(220,38,38,.16); }
.card-solve .tick { display:flex; gap:10px; align-items:flex-start; margin-top:10px; font-size:14px; color: var(--ink-soft); }
.card-solve .tick svg { width:17px; height:17px; color:#16a34a; flex:none; margin-top:2px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.rev .split-visual { order: -1; }
.split-copy h2 { margin: 16px 0 14px; }
.feat-list { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.feat-list .fi { width: 34px; height: 34px; border-radius: 9px; display:grid; place-items:center; flex:none;
  background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); border:1px solid color-mix(in srgb,var(--brand) 16%, transparent); }
.dark .feat-list .fi { color: var(--brand-400); }
.feat-list .fi svg { width: 17px; height: 17px; }
.feat-list b { font-size: 14.5px; display:block; margin-bottom: 2px; }
.feat-list span { font-size: 13.5px; color: var(--muted); }
.split ul { padding: 0; margin: 0; }

/* mini mock visuals inside splits */
.mock { border:1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.mock-h { padding: 12px 16px; border-bottom: 1px solid var(--border); display:flex; align-items:center; justify-content:space-between; background: var(--surface-2); }
.mock-h b { font-family: var(--display); font-size: 13.5px; }
.mock-b { padding: 16px; display:flex; flex-direction:column; gap: 10px; }

/* calendar mini */
.cal { display:grid; grid-template-columns: repeat(7,1fr); gap:6px; }
.cal .d { aspect-ratio: 1; border-radius:7px; background: var(--surface-2); border:1px solid var(--border); display:grid; place-items:center; font-size:11px; color: var(--muted); position:relative; }
.cal .d.ev { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight:700; border-color: color-mix(in srgb,var(--brand) 22%, transparent); }
.cal .d.ev::after{ content:''; position:absolute; bottom:4px; width:4px; height:4px; border-radius:50%; background: var(--brand); }
.dark .cal .d.ev { color: var(--brand-400); }

/* chat mini */
.chat-line { display:flex; gap:9px; align-items:flex-end; }
.chat-line.me { flex-direction: row-reverse; }
.bubble { max-width: 76%; padding: 8px 12px; border-radius: 13px; font-size: 12.5px; line-height:1.45; }
.bubble.them { background: var(--surface-2); border:1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble.me { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color:#fff; border-bottom-right-radius: 4px; }
.chat-meta { font-size: 10px; color: var(--muted-2); margin-bottom: 3px; }

/* ---------- Portals (two-up) ---------- */
.portal { border:1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow:hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s ease; }
.portal:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.portal-top { padding: 26px 26px 0; }
.portal-top .tag2 { font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color: var(--brand); }
.dark .portal-top .tag2 { color: var(--brand-400); }
.portal-top h3 { font-size: 22px; margin: 8px 0 10px; }
.portal-top p { font-size: 14.5px; color: var(--muted); }
.portal-list { padding: 18px 26px 26px; display:flex; flex-direction:column; gap:10px; }
.portal-list div { display:flex; gap:10px; align-items:center; font-size:13.5px; color: var(--ink-soft); }
.portal-list svg { width:16px; height:16px; color:#16a34a; flex:none; }

/* ---------- Security (dark section) ---------- */
.dark-sec { background: linear-gradient(165deg, #0a1230 0%, #0c153a 45%, #0a1026 100%); color: #eef1f8; position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.dark-sec .lead { color: #a9b4cc; }
.dark-sec .eyebrow { color: #7f9bff; background: rgba(91,125,255,.12); border-color: rgba(91,125,255,.28); }
.dark-sec h2, .dark-sec h3 { color:#fff; }
.dark-sec .sec-grid { position:absolute; inset:0; opacity:.4;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 80%); }
.dark-sec .glow-s { position:absolute; width:600px; height:600px; border-radius:50%; filter: blur(100px); opacity:.4;
  background: radial-gradient(circle, rgba(43,83,240,.5), transparent 65%); top:-200px; right:-120px; }
.sec-card { background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.10); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(6px); transition: transform .25s ease, background .25s ease; }
.sec-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
.sec-card .card-ic { background: rgba(91,125,255,.14); color:#8ea6ff; border-color: rgba(91,125,255,.28); }
.sec-card h3 { font-size: 17px; margin-bottom: 8px; color:#fff; }
.sec-card p { font-size: 14px; color:#a9b4cc; }
.sec-badges { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top: 40px; }
.sec-badge { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:#c7d0e6;
  padding:9px 16px; border-radius:999px; background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); }
.sec-badge svg { width:15px; height:15px; color:#7f9bff; }

/* ---------- How it works ---------- */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: s; }
.step { position: relative; }
.step .num { width: 40px; height:40px; border-radius: 11px; display:grid; place-items:center; font-family: var(--display); font-weight:700; font-size:16px;
  color:#fff; background: linear-gradient(140deg, var(--brand-400), var(--indigo)); box-shadow: var(--shadow-brand); margin-bottom:16px; }
.step h3 { font-size:17px; margin-bottom:8px; }
.step p { font-size:14px; color: var(--muted); }
.step::after { content:''; position:absolute; top:20px; left:52px; right:-11px; height:1px; background: linear-gradient(90deg, var(--border-2), transparent); }
.steps .step:last-child::after { display:none; }

/* ---------- Integrations ---------- */
.integ { display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.integ-card { display:flex; align-items:center; gap:13px; padding:16px; border:1px solid var(--border); border-radius:14px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.integ-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.integ-ic { width:40px; height:40px; border-radius:10px; display:grid; place-items:center; flex:none; background: var(--surface-2); border:1px solid var(--border); color: var(--ink-soft); }
.integ-ic svg { width:19px; height:19px; }
.integ-card b { font-size:14px; display:block; }
.integ-card span { font-size:12px; color: var(--muted); }
.soon { font-size:9.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color: var(--brand); background: color-mix(in srgb,var(--brand) 12%, transparent); padding:2px 7px; border-radius:999px; margin-left:auto; }
.dark .soon { color: var(--brand-400); }

/* ---------- Pricing ---------- */
.price-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price { display:flex; flex-direction:column; border:1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 30px; box-shadow: var(--shadow-sm); position:relative; transition: transform .25s ease, box-shadow .25s ease; }
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price.feat { border-color: color-mix(in srgb, var(--brand) 40%, transparent); box-shadow: var(--shadow); }
.price.feat::before { content:'Most popular'; position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  font-size:11px; font-weight:700; letter-spacing:.04em; color:#fff; padding:5px 14px; border-radius:999px;
  background: linear-gradient(135deg, var(--brand), var(--indigo)); box-shadow: var(--shadow-brand); }
.price .pname { font-family: var(--display); font-weight:700; font-size:18px; }
.price .pdesc { font-size:13px; color: var(--muted); margin-top:4px; min-height: 38px; }
.price .amount { font-family: var(--display); font-weight:800; font-size: 40px; margin: 16px 0 2px; letter-spacing:-.03em; }
.price .amount small { font-size:15px; font-weight:600; color: var(--muted); letter-spacing:0; }
.price .pnote { font-size:12.5px; color: var(--muted-2); margin-bottom: 20px; }
.price ul { list-style:none; padding:0; margin: 0 0 24px; display:flex; flex-direction:column; gap:11px; }
.price li { display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color: var(--ink-soft); }
.price li svg { width:16px; height:16px; color: var(--brand); flex:none; margin-top:2px; }
.dark .price li svg { color: var(--brand-400); }
.price .btn { width: 100%; margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display:flex; flex-direction:column; gap: 12px; }
.qa { border:1px solid var(--border); border-radius: 14px; background: var(--surface); overflow:hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.qa.open { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.qa-q { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; text-align:left; cursor:pointer;
  padding: 19px 22px; background:none; border:none; font-family: var(--display); font-weight:600; font-size: 16px; color: var(--ink); }
.qa-q svg { width:19px; height:19px; color: var(--muted); flex:none; transition: transform .25s ease; }
.qa.open .qa-q svg { transform: rotate(45deg); color: var(--brand); }
.qa-a { max-height: 0; overflow:hidden; transition: max-height .3s ease; }
.qa-a p { padding: 0 22px 20px; font-size: 14.5px; color: var(--muted); line-height:1.65; }

/* ---------- CTA band ---------- */
.cta {
  border-radius: 28px; padding: 68px 40px; text-align:center; position: relative; overflow:hidden;
  background: linear-gradient(150deg, #0e1633 0%, #17224b 50%, #24337a 120%);
  box-shadow: var(--shadow-lg);
}
.cta::before { content:''; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%); }
.cta .glow-s { position:absolute; width:500px; height:500px; border-radius:50%; filter:blur(90px); opacity:.5;
  background: radial-gradient(circle, rgba(43,83,240,.6), transparent 65%); top:-180px; left:50%; transform:translateX(-50%); }
.cta h2 { color:#fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); position:relative; z-index:2; }
.cta p { color:#b9c3dc; max-width: 560px; margin: 16px auto 0; position:relative; z-index:2; font-size: 1.08rem; }
.cta .hero-actions { position:relative; z-index:2; }
.cta .trust-item { color:#98a3bf; }
.cta .trust-item svg { color:#7f9bff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 64px 0 34px; }
.foot-grid { display:grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.foot-brand p { font-size:13.5px; color: var(--muted); margin-top:16px; max-width: 280px; line-height:1.6; }
.foot-col h4 { font-size:13px; font-family: var(--font); text-transform:uppercase; letter-spacing:.06em; color: var(--muted-2); margin-bottom:16px; }
.foot-col a { display:block; font-size:13.5px; color: var(--muted); padding:5px 0; transition: color .18s ease; }
.foot-col a:hover { color: var(--brand); }
.dark .foot-col a:hover { color: var(--brand-400); }
.foot-bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top: 48px; padding-top: 26px; border-top:1px solid var(--border); }
.foot-bottom p { font-size:13px; color: var(--muted-2); }
.foot-social { display:flex; gap:10px; }
.foot-social a { width:34px; height:34px; border-radius:9px; display:grid; place-items:center; border:1px solid var(--border); color: var(--muted); transition: all .18s ease; }
.foot-social a:hover { color: var(--brand); border-color: color-mix(in srgb,var(--brand) 40%, var(--border)); }
.foot-social svg { width:16px; height:16px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.blur-in { filter: blur(10px); } .blur-in.in { filter: blur(0); }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
.floaty { animation: floaty 6s ease-in-out infinite; }
.floaty.slow { animation-duration: 8s; }
.floaty.delay { animation-delay: 1.4s; }

@keyframes barGrow { from { height: 0 !important; } }
@keyframes shine { to { background-position: 200% center; } }

.marquee-track { display:flex; gap: 40px; animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .float-a, .float-b, .float-c { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-visual { order: 0; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step::after { display:none; }
  .integ { grid-template-columns: repeat(2,1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile { display: none; }
  .nav-mobile.open { display: flex; }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .price.feat { order: -1; }
}
@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .hero { padding: 130px 0 60px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2,1fr); }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps, .integ { grid-template-columns: 1fr; }
  .cta { padding: 48px 22px; border-radius: 22px; }
  .win-url { display: none; }
  .hero-actions .btn { flex: 1; }
}

/* mobile nav menu */
.nav-mobile { display: none; }
@media (max-width: 860px) {
  .nav-mobile {
    flex-direction: column; gap: 4px; margin-top: 10px; padding: 14px;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  }
  .nav-mobile a { padding: 11px 14px; border-radius: 10px; font-weight: 500; color: var(--ink-soft); }
  .nav-mobile a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
  .nav-mobile .btn { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
