:root {
  --ink: #132033;
  --muted: #5c677a;
  --brand: #0145fe;
  --brand-deep: #0a3a8c;
  --sky-top: #8fbbe0;
  --sky: #d4e6f6;
  --meadow: #dce8d6;
  --paper: #f2f5f1;
  --paper-soft: #e9efe6;
  --line: rgba(19, 32, 51, 0.1);
  --line-strong: rgba(19, 32, 51, 0.16);
  --white: #ffffff;
  --warn: #7a4518;
  --warn-bg: #fff6ea;
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --pad-x: clamp(18px, 4vw, 28px);
  --content: 760px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 40px;
  --space-7: 56px;
  --space-8: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16.5px/1.55 var(--font);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--brand-deep); }
strong { font-weight: 700; }
p { margin: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 12px; top: calc(12px + var(--safe-top)); }

/* —— Header —— */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: calc(8px + var(--safe-top)) var(--pad-x) 8px;
  background: rgba(242, 245, 241, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.top-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}
.top-nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}
.top-nav a:hover {
  color: var(--brand);
  background: rgba(1, 69, 254, 0.06);
}
.top-nav a[aria-current="page"] {
  color: var(--brand);
  background: rgba(1, 69, 254, 0.08);
}
.top-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.top-cta:hover { background: var(--brand-deep); }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--ink);
}
.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 78% 8%, rgba(1, 69, 254, 0.2), transparent 58%),
    radial-gradient(ellipse 55% 45% at 12% 22%, rgba(255, 255, 255, 0.7), transparent 52%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 38%, #e4eedf 70%, var(--meadow) 100%);
  animation: skyShift 18s ease-in-out infinite alternate;
}
.hero-ground {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -10%;
  height: 38%;
  background:
    radial-gradient(ellipse 48% 42% at 22% 55%, rgba(54, 104, 58, 0.16), transparent 70%),
    radial-gradient(ellipse 42% 36% at 78% 65%, rgba(54, 104, 58, 0.12), transparent 70%),
    linear-gradient(180deg, transparent, rgba(70, 110, 72, 0.18));
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transform-origin: 50% 100%;
  animation: groundBreathe 12s ease-in-out infinite alternate;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 2 * var(--pad-x)));
  margin: 0 auto;
  padding: 72px 0 48px;
}
.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(11, 61, 145, 0.2);
  animation: logoIn 0.85s ease both;
}
.hero-brand {
  margin: 16px 0 6px;
  font-family: var(--display);
  font-size: clamp(2.15rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--brand-deep);
  animation: fadeUp 0.75s ease 0.06s both;
}
.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.28;
  animation: fadeUp 0.75s ease 0.12s both;
}
.hero-lead {
  margin-top: 12px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
  animation: fadeUp 0.75s ease 0.18s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  animation: fadeUp 0.75s ease 0.24s both;
}
.hero-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  animation: fadeUp 0.75s ease 0.3s both;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(1, 69, 254, 0.22);
}
.btn.primary:hover {
  background: var(--brand-deep);
  box-shadow: 0 10px 24px rgba(10, 58, 140, 0.25);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(1, 69, 254, 0.22);
  color: var(--brand-deep) !important;
  backdrop-filter: blur(8px);
}
.btn.ghost:hover {
  background: #fff;
  border-color: var(--brand);
}

/* —— Sections —— */
.section {
  padding: var(--space-7) 0;
}
.section.alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15)),
    linear-gradient(180deg, #eef3ea, var(--paper));
}
.wrap {
  width: min(var(--content), calc(100% - 2 * var(--pad-x)));
  margin: 0 auto;
}
.wrap.narrow { width: min(640px, calc(100% - 2 * var(--pad-x))); }

.section-head {
  max-width: 54ch;
  margin-bottom: var(--space-5);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.section h2,
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.22;
}
.lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 52ch;
}

/* —— Steps —— */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, rgba(1, 69, 254, 0.35), rgba(1, 69, 254, 0.08));
  border-radius: 2px;
}
.steps li {
  position: relative;
  padding: 16px 16px 16px 64px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.steps li.in {
  opacity: 1;
  transform: none;
}
.steps li:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 22px rgba(19, 32, 51, 0.05);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1;
  box-shadow: 0 6px 14px rgba(1, 69, 254, 0.25);
}
.steps h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.steps p + p { margin-top: 6px; }

/* —— Callouts —— */
.callout {
  margin-top: 16px;
  padding: 16px 16px 15px 18px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  border-left: 3px solid #e0a15a;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.callout.in,
.block.in,
.tile.in {
  opacity: 1;
  transform: none;
}
.callout.soft {
  background: rgba(1, 69, 254, 0.055);
  border-left-color: var(--brand);
}
.callout h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.callout p,
.callout li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}
.callout p + p { margin-top: 6px; }
.callout ul {
  margin: 8px 0 0;
  padding-left: 1.1rem;
}
.callout li + li { margin-top: 5px; }

/* —— Cards / tiles —— */
.grid-2,
.grid-3 {
  display: grid;
  gap: 12px;
  margin-top: 0;
}
.block,
.tile {
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s ease;
}
.block:hover,
.tile:hover {
  border-color: var(--line-strong);
}
.block h3,
.tile h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.block ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.block li + li { margin-top: 6px; }
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.stack-gap {
  display: grid;
  gap: 12px;
  margin-top: var(--space-4);
}
.stack-gap .callout { margin-top: 0; }
.section .hero-actions { margin-top: var(--space-4); }

/* —— Footer —— */
.foot {
  padding: 28px 0 calc(28px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.foot-brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.foot-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.foot-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}
.foot-brand span,
.foot p {
  color: var(--muted);
  font-size: 0.86rem;
}
.foot p { margin: 0; }
.foot a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.foot a:hover { color: var(--brand); }

/* —— Legal docs —— */
.doc {
  padding: var(--space-6) 0 var(--space-7);
}
.doc h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.6vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.doc-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.doc h2 {
  margin: 1.65rem 0 0.55rem;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.doc p,
.doc li {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}
.doc p { margin-top: 0.55rem; }
.doc ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
}
.doc li + li { margin-top: 0.4rem; }
.doc .lead {
  margin-top: 12px;
  color: var(--muted);
}
.doc-note {
  margin-top: var(--space-5);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(1, 69, 254, 0.055);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.doc-nav {
  margin-top: var(--space-5);
  line-height: 1.75;
  font-size: 0.95rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes logoIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes skyShift {
  from { filter: saturate(1); }
  to { filter: saturate(1.06) brightness(1.02); }
}
@keyframes groundBreathe {
  from { transform: scaleX(1) translateY(0); }
  to { transform: scaleX(1.025) translateY(-4px); }
}

@media (min-width: 880px) {
  body { font-size: 17px; }
  .top-nav { display: flex; }
  .top-cta { margin-left: 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: min(72vh, 620px); }
  .hero-inner { padding: 88px 0 56px; }
  .section { padding: var(--space-8) 0; }
  .steps li { padding: 18px 20px 18px 68px; }
  .steps li::before { left: 14px; top: 16px; }
  .steps::before { left: 31px; }
}

@media (max-width: 520px) {
  .hero { min-height: auto; }
  .hero-inner { padding: 56px 0 40px; }
  .section { padding: var(--space-6) 0; }
  .steps li { padding-left: 58px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sky,
  .hero-ground,
  .hero-logo,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-note {
    animation: none !important;
  }
  .steps li,
  .block,
  .tile,
  .callout {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
