:root {
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, #0e7490 0%, transparent 58%),
             radial-gradient(900px 500px at -10% 10%, #312e81 0%, transparent 55%),
             linear-gradient(180deg, #0b1220 0%, #1e1b4b 100%);
  --surface: #ffffff;
  --surface-alt: #f6f7f4;
  --surface-soft: #eef4f6;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --line-strong: #cbd5e1;
  --accent: #0891b2;
  --accent-2: #1e40af;
  --accent-ink: #155e75;
  --accent-grad: linear-gradient(135deg, #1e40af 0%, #0891b2 55%, #06b6d4 100%);
  --warm: #fb923c;
  --warm-2: #fbbf24;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1180px;
  --max-narrow: 760px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, .22);
  --font: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", Consolas, SFMono-Regular, Menlo, monospace;
  --letter-spacing-default: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: var(--letter-spacing-default); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: var(--letter-spacing-default); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-top: 2rem; }
h3 { font-size: 1.15rem; margin-top: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { color: var(--ink-soft); padding-left: 1.2em; }
li { margin: .25em 0; }
strong { color: var(--ink); }
code { background: var(--surface-alt); padding: 0 .35em; border-radius: 4px; font-size: .92em; font-family: var(--font-mono); }
::selection { background: rgba(8, 145, 178, .22); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: var(--max-narrow); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.centered { justify-content: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.eyebrow.on-dark { color: #67e8f9; }

/* Skip link */
.skip-link {
  position: absolute; left: -1000px; top: 0;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  border-radius: 0 0 6px 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo-img {
  display: block;
  width: auto;
  height: 52px;
  max-width: none;
}
.brand-logo-img.header-logo-img {
  width: 230px;
  height: auto;
}
.brand-logo-img.sm {
  height: 42px;
}
.brand-logo-img.footer-logo-img {
  width: 170px;
  height: auto;
}
.brand-mark {
  display: inline-block;
  width: 56px; height: 56px; border-radius: 14px;
  background-image: url('/assets/favicon.svg?v=3');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 8px 24px rgba(8, 145, 178, .35);
  /* Hide legacy text fallback inside the span; keep DOM for a11y. */
  font-size: 0;
  color: transparent;
  line-height: 0;
  overflow: hidden;
  text-indent: -9999px;
}
.brand-mark.sm { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px rgba(8, 145, 178, .3); }
.brand-name { font-size: 1.15rem; letter-spacing: var(--letter-spacing-default); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: .55rem; }
.btn-signin {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .58rem 1.1rem; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem;
  border: 1px solid var(--ink);
  transition: background .15s, transform .05s;
}
.btn-signin:hover { background: #1e293b; color: #fff; }
.btn-signin:active { transform: translateY(1px); }
.btn-signin svg { width: 14px; height: 14px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  padding: .45rem .55rem; border-radius: 8px; cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle:hover { background: var(--surface-alt); }

/* Hero */
.hero {
  background: var(--bg-grad);
  background-color: #0b1220;
  color: #fff;
  padding: 5.5rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='1' cy='1' r='1' fill='%23ffffff' fill-opacity='0.05'/></svg>");
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #cffafe; font-size: .82rem; font-weight: 500;
  margin-bottom: 1.2rem;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25);
}
.hero h1 {
  color: #fff; max-width: 880px;
  background: linear-gradient(180deg, #ffffff 0%, #a5f3fc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede { color: #cbd5e1; font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 720px; }
.cta-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.8rem; }
.cta {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .8rem 1.4rem; border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s, box-shadow .15s, border-color .15s;
  cursor: pointer;
}
.cta:hover { text-decoration: none; transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.cta.primary {
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 10px 26px rgba(8, 145, 178, .4);
}
.cta.primary:hover { box-shadow: 0 14px 32px rgba(8, 145, 178, .55); color: #fff; }
.cta.secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.cta.secondary:hover { background: rgba(255,255,255,.14); color: #fff; }
.cta.outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.cta.outline:hover { background: var(--surface-alt); color: var(--ink); }
.cta svg { width: 16px; height: 16px; }

.security-note { margin-top: 1.6rem; }
.security-note a { color: #aac0ff; }

.support-cta-row { margin-top: 2rem; }
.support-cta-gap { margin-left: .5rem; }

.hero-trust {
  margin-top: 2.4rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center;
  color: #94a3b8; font-size: .85rem;
}
.hero-trust .badge-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #cffafe; font-weight: 500;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--surface-alt); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: #cbd5e1; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section-head h2 { margin-top: 0; }
.section-head p { font-size: 1.05rem; }

/* Stats */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); max-width: 880px; margin: 0 auto; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 64, 175, .12), rgba(8, 145, 178, .14));
  color: var(--accent);
  margin-bottom: .9rem;
}
.card .icon svg { width: 22px; height: 22px; }

/* How-it-works steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 1rem; right: 1.1rem;
  font-size: 1.1rem; font-weight: 800;
  color: var(--accent); opacity: .35;
  font-family: var(--font-mono);
}
.step h3 { margin-top: 0; }

/* Security checks */
.checks { list-style: none; padding: 0; max-width: 820px; margin: 0 auto; }
.checks li {
  position: relative; padding: .7rem 0 .7rem 2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.checks li:last-child { border-bottom: none; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1rem;
  width: 18px; height: 18px;
  background: var(--accent-grad); border-radius: 50%;
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 1.35rem;
  width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.section.dark .checks li { border-bottom-color: rgba(255,255,255,.08); color: #cbd5e1; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: .7rem;
  transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--accent);
  transition: transform .2s; line-height: 1; font-weight: 400;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .8rem; margin-bottom: 0; }

/* CTA banner */
.cta-banner {
  background: var(--accent-grad);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -50%, rgba(255,255,255,.18), transparent);
  pointer-events: none;
}
.cta-banner > .container { position: relative; }
.cta-banner h2 { color: #fff; margin-top: 0; }
.cta-banner p { color: #e0f2fe; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .cta.primary { background: #fff; color: var(--accent-ink); box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.cta-banner .cta.primary:hover { background: #fff; color: var(--accent-ink); }
.cta-banner .cta.secondary { color: #fff; }

/* Legal pages */
.legal { padding: 3.5rem 0 5rem; }
.legal h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.legal h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal h3 { margin-top: 1.2rem; font-size: 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  background: #0b1220;
  color: #cbd5e1;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.foot-brand .brand-name { color: #fff; }
.foot-brand p { color: #94a3b8; font-size: .9rem; max-width: 280px; }
.footer-brand-link { color: #fff !important; }
.footer-brand-link:hover { color: #fff !important; }
.footer-brand-strong { color: #fff; }
.foot-col h4 {
  color: #fff; font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 .9rem;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin: .45rem 0; }
.foot-col a { font-size: .92rem; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .85rem; color: #94a3b8;
}
.foot-bottom .links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* 404 page */
.notfound {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1rem;
}
.notfound .code {
  font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.notfound-cta-row { justify-content: center; margin-top: 1.5rem; }
.foot-bottom-compact { border: none; padding-top: 0; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .lede, .hero .cta-row, .hero .hero-badge, .hero-trust {
  animation: fadeUp .7s ease both;
}
.hero .lede { animation-delay: .1s; }
.hero .cta-row { animation-delay: .2s; }
.hero-trust { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .btn-signin .label { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-logo-img.header-logo-img { width: 190px; }
  .site-header.is-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1rem;
    box-shadow: var(--shadow);
  }
  .site-header.is-open .nav-links a {
    padding: .8rem 0; border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav-links a:last-child { border-bottom: none; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .brand-logo-img.header-logo-img { width: 160px; }
  .brand-logo-img.footer-logo-img { width: 144px; }
  .cta { width: 100%; justify-content: center; }
  .hero .cta-row { flex-direction: column; }
}
