:root {
  --bg: #080b16;
  --bg-2: #0c1322;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #eef1f7;
  --text-soft: #9aa4b8;
  --text-faint: #677087;
  --brand: #3b82f6;
  --brand-2: #6366f1;
  --grad: linear-gradient(135deg, #3b82f6, #6366f1);
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(99,102,241,0.18));
  --radius: 18px;
  --maxw: 1440px;
}

/* ===== Light theme (default) ===== */
:root[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --surface: rgba(15, 23, 42, 0.035);
  --surface-2: rgba(15, 23, 42, 0.06);
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-soft: #475569;
  --text-faint: #64748b;
}
/* Solid, well-defined boxes on the light background (instead of faint dark tint). */
:root[data-theme="light"] .card,
:root[data-theme="light"] .step,
:root[data-theme="light"] .security-panel,
:root[data-theme="light"] .strip {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 26px rgba(15, 23, 42, 0.05);
}
:root[data-theme="light"] .card:hover { border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 6px 14px rgba(79, 92, 240, 0.12), 0 16px 38px rgba(15, 23, 42, 0.08); }
:root[data-theme="light"] .section-alt { background: #f0f3fa; }
/* Feature icon chips: darker icon + slightly stronger tint for clear contrast. */
:root[data-theme="light"] .card-ic { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.24); color: #4f46e5; }
/* Pill + chips read clearly on white. */
:root[data-theme="light"] .pill { background: #ffffff; border-color: rgba(15, 23, 42, 0.12); color: #334155; }
:root[data-theme="light"] .ht-ic { background: rgba(16, 185, 129, 0.12); }
:root[data-theme="light"] .vc-foot { color: var(--text-soft); }
:root[data-theme="light"] .ep-ghost { background: #f1f4f9; color: #475569; }
:root[data-theme="light"] .bg-orbs span { opacity: 0.28; }
:root[data-theme="light"] .site-header { background: rgba(246, 248, 252, 0.82); }
:root[data-theme="light"] .eyebrow { color: #4f46e5; }
:root[data-theme="light"] .vault-card,
:root[data-theme="light"] .ext-prompt { background: linear-gradient(180deg, #ffffff, #f3f6fc); box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16); }
:root[data-theme="light"] .ext-chip { background: rgba(255, 255, 255, 0.97); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16); }
:root[data-theme="light"] .vc-search,
:root[data-theme="light"] .ep-site { background: rgba(15, 23, 42, 0.03); }
:root[data-theme="light"] .sp-plain { color: #dc2626; }
:root[data-theme="light"] .sp-cipher { background: rgba(59, 130, 246, 0.08); color: #2563eb; }
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .vc-fill,
:root[data-theme="light"] .vc-logo,
:root[data-theme="light"] .ep-logo,
:root[data-theme="light"] .ext-chip-ic,
:root[data-theme="light"] .step-n,
:root[data-theme="light"] .brand-logo { color: #fff; }
:root[data-theme="light"] .cta-inner h2,
:root[data-theme="light"] .cta-inner p { color: #fff; }
:root[data-theme="light"] .cta-btn { background: #fff; color: #14203a; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }

/* Background orbs */
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.bg-orbs span:nth-child(1) { width: 620px; height: 620px; top: -240px; right: -160px; background: radial-gradient(circle, rgba(99,102,241,0.45), transparent 70%); }
.bg-orbs span:nth-child(2) { width: 520px; height: 520px; top: 540px; left: -220px; background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 70%); }

.eyebrow { color: #93a4ff; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.6rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-soft); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; font-weight: 700; font-size: 0.92rem; padding: 0.62rem 1.15rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease; white-space: nowrap; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(79, 92, 240, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(99, 102, 241, 0.5); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: #6366f1; }
.cta-btn { background: #fff; color: #14203a; box-shadow: 0 12px 34px rgba(2, 6, 23, 0.35); }
.cta-btn:hover { transform: translateY(-2px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(8, 11, 22, 0.7); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.08rem; }
.brand-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(79, 92, 240, 0.45); }
.brand-sub { color: var(--text-soft); font-weight: 600; font-size: 0.86rem; }
.nav-links { margin-left: auto; display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-soft); font-weight: 600; font-size: 0.92rem; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-soft); cursor: pointer; transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease; flex: 0 0 auto; }
.theme-toggle:hover { color: var(--text); background: var(--surface-2); border-color: var(--brand-2); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); color: #c2cbe0; font-size: 0.78rem; font-weight: 700; margin-bottom: 1.3rem; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 900; margin-bottom: 1.1rem; }
.lead { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--text-soft); margin: 0 0 1.8rem; max-width: 40ch; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 0.6rem; color: var(--text-faint); font-size: 0.86rem; margin-top: 1.4rem; }
.ht-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); color: #34d399; }

/* Hero visual */
.hero-visual { position: relative; display: grid; place-items: center; }
.glow { position: absolute; inset: -10% -6%; background: radial-gradient(circle at 60% 40%, rgba(99,102,241,0.4), transparent 65%); filter: blur(34px); z-index: 0; }
.vault-card { position: relative; z-index: 1; width: 100%; max-width: 372px; background: linear-gradient(180deg, rgba(20, 28, 48, 0.92), rgba(11, 17, 33, 0.95)); border: 1px solid var(--border-strong); border-radius: 22px; padding: 1.05rem; box-shadow: 0 40px 90px rgba(2, 6, 23, 0.65); }
.vault-card-head { display: flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0.5rem 0.9rem; }
.vc-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; }
.vc-title { font-weight: 800; }
.vc-status { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; color: #8b96ad; font-weight: 600; }
.vc-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.16); }
.vc-search { color: var(--text-faint); font-size: 0.85rem; padding: 0.55rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(2,6,23,0.4); margin-bottom: 0.5rem; }
.vc-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem; border-radius: 12px; transition: background 0.15s ease; }
.vc-row:hover { background: var(--surface); }
.vc-row > div { flex: 1; min-width: 0; }
.vc-row strong { display: block; font-size: 0.9rem; }
.vc-row span { color: var(--text-faint); font-size: 0.8rem; }
.vc-fav { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-weight: 800; color: #fff; flex: 0 0 auto; font-size: 0.92rem; }
.vc-fav.g { background: linear-gradient(135deg,#1f2937,#374151); }
.vc-fav.s { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.vc-fav.a { background: linear-gradient(135deg,#f59e0b,#f97316); }
/* Selector kept at .vc-row .vc-fill so it outranks `.vc-row span` (which would
   otherwise force the grey --text-faint color onto this blue button). */
.vc-row .vc-fill { color: #fff; background: var(--grad); padding: 0.28rem 0.8rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; flex: 0 0 auto; line-height: 1.4; }
.vc-foot { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.5rem; padding: 0.75rem 0.6rem 0.25rem; border-top: 1px solid var(--border); color: var(--text-soft); font-size: 0.8rem; }
.ext-chip { position: absolute; z-index: 2; right: -8px; bottom: 8px; display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.85rem; border-radius: 14px; background: rgba(15, 23, 42, 0.95); border: 1px solid var(--border-strong); box-shadow: 0 18px 40px rgba(2,6,23,0.6); }
.ext-chip-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; }
.ext-chip span span { display: block; }
.ext-chip strong { font-size: 0.82rem; }
.ext-chip span span:last-child { color: var(--text-faint); font-size: 0.74rem; }

/* Spec strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 1.4rem; }
.strip-grid div { display: grid; gap: 0.15rem; }
.strip-grid strong { font-size: 1.08rem; }
.strip-grid span { color: var(--text-faint); font-size: 0.82rem; }

/* Sections */
.section { padding: clamp(3.2rem, 6.5vw, 6rem) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-sub { color: var(--text-soft); font-size: 1.04rem; margin: 0.7rem 0 0; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.55); background: var(--surface-2); }
.card-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--grad-soft); border: 1px solid rgba(99,102,241,0.3); color: #a5b4ff; }
.card-ic svg { width: 22px; height: 22px; }
.card h3 { margin: 1rem 0 0.45rem; font-size: 1.14rem; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.93rem; }

/* Security */
.security-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.85rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--text-soft); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0.05rem; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: rgba(52, 211, 153, 0.16); color: #34d399; font-size: 0.78rem; font-weight: 800; }
.ticks strong { color: var(--text); }
.security-panel { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1.8rem; text-align: center; }
.sp-label { color: var(--text-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.sp-plain { margin: 0.5rem 0 0; font-family: ui-monospace, Menlo, monospace; font-size: 1.1rem; color: #fca5a5; }
.sp-arrow { display: flex; align-items: center; justify-content: center; gap: 0.6rem; color: var(--text-faint); font-size: 0.8rem; margin: 1.1rem 0; }
.sp-arrow span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--border-strong)); }
.sp-cipher { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.32); border-radius: 12px; padding: 0.9rem; font-family: ui-monospace, Menlo, monospace; color: #93c5fd; letter-spacing: 0.05em; word-break: break-all; font-size: 0.82rem; line-height: 1.7; }
.sp-foot { color: var(--text-faint); font-size: 0.8rem; margin-top: 0.9rem; }

/* Extension showcase */
.ext-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3.5rem; align-items: center; }
.ext-visual { display: grid; place-items: center; }
.ext-prompt { width: 100%; max-width: 340px; background: linear-gradient(180deg, rgba(20, 28, 48, 0.95), rgba(11, 17, 33, 0.97)); border: 1px solid var(--border-strong); border-radius: 18px; padding: 1.1rem; box-shadow: 0 30px 70px rgba(2,6,23,0.6); }
.ep-head { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 0.9rem; color: #cbd5e1; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border); }
.ep-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; }
.ep-title { font-weight: 800; font-size: 1.05rem; margin: 0.9rem 0; }
.ep-site { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(2,6,23,0.4); }
.ep-site strong { display: block; font-size: 0.9rem; }
.ep-site span:last-child { color: var(--text-faint); font-size: 0.8rem; }
.ep-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.6rem; margin-top: 1rem; }
.ep-ghost, .ep-primary { padding: 0.6rem; border-radius: 10px; font-weight: 700; font-size: 0.88rem; border: 1px solid var(--border-strong); cursor: default; }
.ep-ghost { background: var(--surface); color: var(--text-soft); }
.ep-primary { background: var(--grad); color: #fff; border-color: transparent; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; }
.step-n { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 0.9rem; box-shadow: 0 8px 20px rgba(79,92,240,0.4); }
.step h3 { margin: 0 0 0.45rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-soft); font-size: 0.93rem; }

/* CTA */
.cta-inner { text-align: center; background: var(--grad); border-radius: 28px; padding: clamp(2.4rem, 5vw, 4rem); box-shadow: 0 40px 90px rgba(79, 70, 229, 0.45); position: relative; overflow: hidden; }
.cta-inner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% -20%, rgba(255,255,255,0.25), transparent 50%); pointer-events: none; }
.cta-inner h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-inner p { color: rgba(255, 255, 255, 0.92); margin: 0 0 1.7rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 1.6rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand .muted { font-size: 0.9rem; margin: 0.7rem 0 0; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-h { color: var(--text); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.footer-col a { color: var(--text-soft); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .security-grid, .ext-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual, .ext-visual { order: -1; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards, .steps, .strip-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
