:root {
  --navy: #0b1f55;
  --navy-2: #0e2a6b;
  --teal: #1f4fae;
  --teal-2: #4c7fe0;
  --sky: #8fb4ff;
  --cream: #f3f6fc;
  --ink: #1d2733;
  --muted: #5a6675;
  --line: #d9e2ea;
  --bg: #ffffff;
  --ok: #1d7a4c;
  --err: #b42318;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--teal); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 85, .55);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s, box-shadow .3s;
}
.topbar.scrolled { background: rgba(11, 31, 85, .92); box-shadow: 0 8px 30px rgba(5, 15, 45, .25); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-size: 1.25rem; letter-spacing: -.01em; font-weight: 500; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 4px 14px rgba(31,79,174,.5); transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand b { font-weight: 800; background: linear-gradient(90deg, var(--sky), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topnav { display: flex; align-items: center; gap: 24px; }
.topnav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.topnav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.topnav a:hover { color: #fff; }
.topnav a:hover::after { transform: scaleX(1); }
.nav-cta { white-space: nowrap; background: #fff; color: var(--navy) !important; padding: 8px 16px; border-radius: 999px; font-weight: 700 !important; transition: transform .2s, box-shadow .2s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(143,180,255,.45); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, #2a5bd0 0%, transparent 60%),
              linear-gradient(160deg, #0b1f55 0%, #12348a 55%, #1a47b3 100%);
  padding: 72px 0 72px; margin-top: -68px; padding-top: 140px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orb-1 { width: 420px; height: 420px; background: #3d6ff0; top: -120px; left: -120px; }
.orb-2 { width: 360px; height: 360px; background: #6a4dff; bottom: -140px; right: 10%; animation-duration: 22s; opacity: .35; }
.orb-3 { width: 260px; height: 260px; background: #22b8ff; top: 40%; left: 45%; animation-duration: 26s; opacity: .25; }
.dots {
  position: absolute; inset: -40px;
  background-image: radial-gradient(rgba(190, 205, 235, .35) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 35%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 70% 35%, #000 0%, transparent 70%);
  animation: dots-pan 40s linear infinite;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700;
  color: #dbe6ff; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee6a8; box-shadow: 0 0 0 0 rgba(94,230,168,.7); animation: pulse 2s infinite; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.03em; font-weight: 800; }
.grad {
  background: linear-gradient(90deg, #8fb4ff, #c9b8ff, #7fe3ff, #8fb4ff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
.lead { font-size: 1.2rem; color: rgba(230, 238, 255, .86); max-width: 560px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; }
.logo-card {
  position: absolute; inset: 14%; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(3, 10, 40, .55), 0 0 0 1px rgba(255,255,255,.18);
  animation: float 7s ease-in-out infinite;
}
.logo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-100%); animation: sweep 5.5s ease-in-out infinite;
}
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(190, 210, 255, .35); animation: spin 40s linear infinite; }
.ring-2 { inset: 6%; border-style: solid; border-color: rgba(190, 210, 255, .14); animation-duration: 28s; animation-direction: reverse; }
.ring-1::before { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 16px var(--sky); }
.chip {
  position: absolute; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: 7px 12px; border-radius: 999px; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.chip-1 { top: 6%; left: 2%; }
.chip-2 { top: 18%; right: -2%; animation-delay: -1.5s; }
.chip-3 { bottom: 14%; left: -4%; animation-delay: -3s; }
.chip-4 { bottom: 4%; right: 8%; animation-delay: -4.5s; }

/* Buttons */
.btn {
  font: inherit; font-weight: 700; background: var(--teal); color: #fff; border: 0; border-radius: 10px;
  padding: 13px 22px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block;
  position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,79,174,.35); }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 120%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eaf0ff; box-shadow: 0 10px 28px rgba(143,180,255,.45); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px #fff; }

/* Choices */
.choose-label { margin: 56px 0 14px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: rgba(220,232,255,.75); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.choice {
  text-align: left; font: inherit; color: #fff; cursor: pointer; position: relative; overflow: hidden;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 8px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), border-color .25s, background .25s, box-shadow .35s, color .25s;
}
.choice::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(143,180,255,.9), transparent 40%, transparent 60%, rgba(201,184,255,.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.choice:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); box-shadow: 0 18px 40px rgba(3,10,40,.35); }
.choice:hover::before { opacity: 1; }
.choice:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.choice[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 20px 50px rgba(3,10,40,.4); }
.choice-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; margin-bottom: 6px; transition: background .25s, color .25s, transform .35s var(--ease); }
.choice:hover .choice-icon { transform: scale(1.08) rotate(-4deg); }
.choice[aria-pressed="true"] .choice-icon { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; }
.choice-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.choice[aria-pressed="true"] .choice-title { color: var(--navy); }
.choice-text { color: rgba(225,235,255,.78); }
.choice[aria-pressed="true"] .choice-text { color: var(--muted); }
.choice-cta { color: var(--sky); font-weight: 700; margin-top: 6px; }
.choice[aria-pressed="true"] .choice-cta { color: var(--teal); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
.choice:hover .arrow { transform: translateX(5px); }

/* Form */
.signup {
  margin-top: 20px; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 24px 60px rgba(3,10,40,.35); animation: pop .45s var(--ease);
}
.signup h2 { font-size: 1.35rem; margin-bottom: 4px; }
.form-sub { color: var(--muted); margin: 0 0 18px; }
.field-label { display: block; font-weight: 600; margin-bottom: 6px; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; min-width: 0; font: inherit; padding: 13px 14px; border: 1px solid #b9c6d2; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.field-row input:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 4px rgba(76,127,224,.2); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.turnstile:not(:empty) { margin-top: 14px; }
.status { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.status.ok { color: var(--ok); animation: pop .4s var(--ease); }
.status.err { color: var(--err); animation: shake .4s; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sections ---------- */
h2 { color: var(--navy); font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.02em; margin: 0 0 24px; }
h3 { color: var(--navy); font-size: 1.15rem; margin: 0 0 12px; }
.section { padding: 80px 0; }
.section.alt { background: var(--cream); position: relative; }
.kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 6px; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(14,42,107,.12); border-color: transparent; }
.step strong { color: var(--navy); font-size: 1.12rem; }
.step span:last-child { color: var(--muted); }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-2));
  box-shadow: 0 8px 20px rgba(31,79,174,.3); transition: transform .4s var(--ease);
}
.step:hover .step-num { transform: rotate(-8deg) scale(1.08); }

.qual-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.qual-card { background: linear-gradient(160deg, var(--navy), var(--teal)); color: #e6eeff; border-radius: var(--radius); padding: 26px; box-shadow: 0 18px 40px rgba(14,42,107,.2); }
.qual-card p { margin: 0 0 12px; }
.conditions { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.conditions li { position: relative; padding-left: 30px; color: #fff; font-weight: 600; }
.conditions li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; background: #5ee6a8; color: var(--navy); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(14,42,107,.08); }
.req { width: 100%; border-collapse: collapse; background: #fff; }
.req th { background: var(--navy-2); color: #fff; text-align: left; padding: 12px 16px; font-size: .92rem; }
.req td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; transition: background .2s; }
.req tr:hover td { background: #f6f9ff; }
.req td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.note { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.disclaimer { color: var(--muted); font-size: .95rem; border-left: 4px solid var(--teal-2); padding: 4px 0 4px 18px; }
.disclaimer p { max-width: 820px; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(220,232,255,.7); padding: 28px 0; font-size: .9rem; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; }
.footer a { color: #dbe6ff; }
.brand-sm { font-size: 1rem; }
.brand-sm img { width: 28px; height: 28px; border-radius: 7px; }

/* ---------- Legal page ---------- */
.legal { padding: 48px 16px; max-width: 760px; }
.legal h1 { font-size: 2rem; color: var(--navy); }
.legal h2 { font-size: 1.2rem; margin: 28px 0 10px; }
.page-plain .topbar { position: static; background: var(--navy); }

/* ---------- Animations ---------- */
.anim { opacity: 0; animation: rise .8s var(--ease) forwards; animation-delay: var(--d, 0s); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes dots-pan { from { background-position: 0 0; } to { background-position: 220px 220px; } }
@keyframes shine { to { background-position: 300% 0; } }
@keyframes sweep { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,230,168,.7); } 70% { box-shadow: 0 0 0 10px rgba(94,230,168,0); } 100% { box-shadow: 0 0 0 0 rgba(94,230,168,0); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 300px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .qual-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topnav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 112px; padding-bottom: 52px; }
  .hero-visual { max-width: 240px; }
  .chip { font-size: .7rem; padding: 5px 10px; }
  .choose-label { margin-top: 40px; }
  .choices { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .signup .btn { width: 100%; padding: 14px; }
  .hero-actions .btn { flex: 1 1 140px; text-align: center; padding: 13px 14px; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 36px; height: 36px; }
  .section { padding: 56px 0; }
  .req thead { display: none; }
  .req, .req tbody, .req tr, .req td { display: block; width: 100%; }
  .req tr { border-top: 1px solid var(--line); padding: 8px 0; }
  .req td { border: 0; padding: 4px 14px; white-space: normal !important; }
  .req td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--navy); }
  .footer .wrap { flex-direction: column; text-align: center; }
}
