:root {
  --color-primary: #0F172A;
  --color-on-primary: #FFFFFF;
  --color-secondary: #1E3A8A;
  --color-accent: #A16207;
  --color-accent-soft: #CA8A04;
  --color-background: #F8FAFC;
  --color-foreground: #020617;
  --color-muted: #E8ECF1;
  --color-border: #E2E8F0;
  --color-destructive: #DC2626;
  --color-ring: #0F172A;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-card: 0 10px 40px -12px rgba(2, 6, 23, 0.18);
  --shadow-lift: 0 30px 60px -15px rgba(2, 6, 23, 0.3);
  --radius: 18px;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; height: auto; }

a { color: var(--color-secondary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent); }
a, button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 92%); margin: 0 auto; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff; padding: 10px 18px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
  z-index: 120;
}

/* ============ NAV ============ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-nav.scrolled {
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(2, 6, 23, 0.5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--color-on-primary); font-weight: 700; letter-spacing: .01em; }
.brand:hover { color: #fff; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 14px rgba(2,6,23,.4); }
.brand small { display: block; font-size: .68rem; font-weight: 400; color: #94A3B8; letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a:not(.btn) {
  color: #CBD5E1; font-weight: 500; font-size: .95rem;
  padding: 10px 14px; border-radius: 10px; transition: background .2s ease, color .2s ease;
}
.nav-links a:not(.btn):hover { color: #fff; background: rgba(148, 163, 184, 0.14); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--color-accent); color: #fff; font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 12px; border: 0;
  box-shadow: 0 12px 28px -10px rgba(161, 98, 7, 0.55);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { background: var(--color-accent-soft); color: #fff; transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(161, 98, 7, 0.6); }
.btn-ghost {
  background: transparent; color: var(--color-on-primary);
  border: 1.5px solid rgba(148, 163, 184, 0.45); box-shadow: none;
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.12); color: #fff; }
.btn-dark { background: var(--color-primary); box-shadow: 0 12px 28px -12px rgba(15, 23, 42, .5); }
.btn-dark:hover { background: var(--color-secondary); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: var(--color-on-primary);
  overflow: hidden; isolation: isolate;
}
.hero-video, .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; transform: scale(1.05);
  filter: saturate(0.9);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 75% 10%, rgba(30, 58, 138, 0.55), transparent 60%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.72) 0%, rgba(15, 23, 42, 0.6) 45%, rgba(2, 6, 23, 0.92) 100%);
}
.hero-content { text-align: center; padding: 140px 0 120px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: #93C5FD; border: 1px solid rgba(147, 197, 253, 0.35);
  padding: 9px 18px; border-radius: 999px; margin-bottom: 30px;
  background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.98; font-weight: 700; letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: block; transform: translateY(110%) rotateX(38deg);
  transform-origin: top center; opacity: 0;
  animation: line-up .9s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes line-up { to { transform: none; opacity: 1; } }
.hero h1 .accent { color: var(--color-accent-soft); }
.hero-sub {
  max-width: 640px; margin: 26px auto 38px; color: #CBD5E1;
  font-size: clamp(1rem, 1.6vw, 1.18rem); font-weight: 300;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  color: #94A3B8; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll svg { animation: bounce 2s infinite ease-in-out; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ============ STATS ============ */
.stats { background: var(--color-primary); color: #fff; border-top: 1px solid rgba(148,163,184,.15); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 20px; text-align: center; border-left: 1px solid rgba(148,163,184,.12); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--color-accent-soft); letter-spacing: -0.03em; }
.stat span { color: #94A3B8; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; }

/* ============ SECTIONS ============ */
section { padding: clamp(70px, 10vw, 130px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-accent); font-size: .78rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; margin-bottom: 16px;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; color: var(--color-primary); }
.section-head p { margin-top: 18px; color: #475569; font-size: 1.06rem; }

/* 3D reveal on scroll */
.reveal {
  opacity: 0;
  transform: perspective(1100px) rotateX(14deg) translateY(56px) scale(0.98);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: none; }

/* Tilt cards */
.tilt {
  transform-style: preserve-3d; transform: perspective(900px);
  transition: box-shadow .3s ease;
}
.tilt .pop { transform: translateZ(46px); }

/* About split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media .frame {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lift); transform: rotateZ(-1.5deg);
  border: 1px solid var(--color-border);
}
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .float-card {
  position: absolute; right: -18px; bottom: -26px;
  background: var(--color-primary); color: #fff;
  border-radius: 14px; padding: 18px 22px;
  box-shadow: var(--shadow-lift); display: flex; gap: 14px; align-items: center;
  border: 1px solid rgba(148,163,184,.2);
}
.float-card svg { color: var(--color-accent-soft); }
.float-card b { display: block; font-size: 1.05rem; }
.float-card span { color: #94A3B8; font-size: .82rem; }
.lead { color: #475569; font-size: 1.08rem; margin: 20px 0 14px; }
.text p { color: #475569; margin-bottom: 14px; }
.text ul { margin: 8px 0 14px 4px; list-style: none; }
.text li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; color: #334155; }
.text li svg { flex: 0 0 auto; color: var(--color-accent); margin-top: 4px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 20% 0%, rgba(30, 58, 138, 0.07), transparent 70%);
  pointer-events: none;
}
.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-accent-soft);
  box-shadow: 0 10px 22px -8px rgba(15, 23, 42, 0.5);
}
.card h3 { font-size: 1.22rem; color: var(--color-primary); letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: #64748B; font-size: .96rem; }

/* Login steps (sticky 2-col) */
.steps-section { background: var(--color-primary); color: #fff; position: relative; overflow: hidden; }
.steps-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(30,58,138,.5), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(161,98,7,.16), transparent 60%);
}
.steps-section .container { position: relative; }
.steps-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.steps-sticky { position: sticky; top: 110px; }
.steps-sticky h2 { color: #fff; }
.steps-sticky p { color: #94A3B8; margin: 18px 0 28px; }
.steps-sticky img { border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 1px solid rgba(148,163,184,.2); margin-top: 8px; }
.step {
  display: flex; gap: 26px; padding: 34px 0;
  border-bottom: 1px solid rgba(148,163,184,.16);
}
.step:last-child { border-bottom: 0; }
.step-num {
  flex: 0 0 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 700; color: var(--color-accent-soft);
  background: rgba(202, 138, 4, 0.12); border: 1px solid rgba(202, 138, 4, 0.4);
  transform: translateZ(0);
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; color: #F1F5F9; }
.step p { color: #94A3B8; font-size: .97rem; }
.step code {
  background: rgba(148,163,184,.12); border: 1px solid rgba(148,163,184,.2);
  padding: 2px 8px; border-radius: 6px; color: #BFDBFE; font-size: .88em;
}

/* Security */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 14px; }
.sec-card {
  display: flex; gap: 18px; background: #fff; padding: 28px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.sec-card svg { flex: 0 0 auto; color: var(--color-accent); }
.sec-card b { color: var(--color-primary); display: block; margin-bottom: 6px; }
.sec-card p { color: #64748B; font-size: .94rem; }

/* States */
.states-section { background: #fff; }
.states-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.state-card {
  background: var(--color-background); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 30px 26px; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.state-card:hover { transform: translateY(-8px) rotateX(6deg); box-shadow: var(--shadow-lift); border-color: var(--color-accent); }
.state-card .pin { color: var(--color-secondary); margin-bottom: 12px; }
.state-card b { color: var(--color-primary); font-size: 1.15rem; display: block; }
.state-card span { color: #64748B; font-size: .9rem; }

/* CTA */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff; border-radius: calc(var(--radius) + 8px);
  padding: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 40px; align-items: center; box-shadow: var(--shadow-lift);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(202,138,4,.35), transparent 65%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #CBD5E1; margin-top: 14px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* FAQ */
.faq-list { max-width: 840px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--color-border); border-radius: 16px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 4px 18px -8px rgba(2,6,23,.08); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: none; border: 0; text-align: left; font-family: inherit;
  font-size: 1.06rem; font-weight: 600; color: var(--color-primary);
  padding: 22px 26px; transition: background .2s ease;
}
.faq-q:hover { background: var(--color-muted); }
.faq-q svg { flex: 0 0 auto; transition: transform .35s ease; color: var(--color-accent); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.2,.7,.2,1); }
.faq-a-inner { padding: 0 26px 24px; color: #475569; font-size: .98rem; }
.faq-a-inner a { font-weight: 600; }

/* Policy pages */
.page-hero { background: var(--color-primary); color: #fff; padding: calc(var(--nav-h) + 70px) 0 64px; }
.page-hero .eyebrow { color: var(--color-accent-soft); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #94A3B8; margin-top: 14px; max-width: 700px; }
.policy-body { max-width: 860px; margin: -40px 0 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-card); padding: clamp(34px, 5vw, 60px); position: relative; z-index: 2; }
.policy-body h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p, .policy-body li { color: #475569; font-size: .98rem; }
.policy-body ul { margin: 10px 0 16px 22px; }
.policy-body .updated { font-size: .85rem; color: #94A3B8; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 26px; }
.policy-footer-cta { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--color-border); display: flex; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--color-primary); color: #94A3B8; padding: 70px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.footer-grid h4 { color: #E2E8F0; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #94A3B8; font-size: .94rem; }
.footer-grid a:hover { color: var(--color-accent-soft); }
.footer-brand p { font-size: .94rem; margin-top: 16px; max-width: 340px; }
.footer-bottom { border-top: 1px solid rgba(148,163,184,.15); padding-top: 26px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .85rem; }
.disclaimer { background: rgba(148,163,184,.08); border: 1px solid rgba(148,163,184,.15); border-radius: 14px; padding: 18px 22px; font-size: .85rem; margin-bottom: 36px; }
.disclaimer b { color: #E2E8F0; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 50%; transform: translate(-50%, 140%);
  bottom: 22px; width: min(680px, calc(100% - 32px));
  background: var(--color-primary); color: #E2E8F0;
  border: 1px solid rgba(148,163,184,.25); border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(2,6,23,.6);
  padding: 22px 26px; z-index: 150;
  display: flex; gap: 18px; align-items: center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.cookie-banner.show { transform: translate(-50%, 0); }
.cookie-banner .c-icon { flex: 0 0 auto; color: var(--color-accent-soft); }
.cookie-banner p { font-size: .9rem; color: #CBD5E1; }
.cookie-banner p a { color: #93C5FD; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-direction: column; flex: 0 0 auto; }
.cookie-actions .btn { padding: 10px 18px; font-size: .88rem; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .states-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(15, 23, 42, 0.97); backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; padding: 22px 5%;
    gap: 4px; transform: translateY(-130%); transition: transform .4s ease;
    box-shadow: 0 24px 40px -20px rgba(2,6,23,.6);
  }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { padding: 14px; }
  .nav-toggle { display: block; }
  .split, .steps-grid, .cta-band { grid-template-columns: 1fr; }
  .steps-sticky { position: static; }
  .cta-actions { justify-content: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid rgba(148,163,184,.12); }
  .security-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .cookie-actions { flex-direction: row; justify-content: center; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .states-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line span { transform: none; opacity: 1; animation: none; }
}
