:root {
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --ink: #162645;
  --navy: #234280;
  --navy-deep: #13264d;
  --azure: #5a8fe7;
  --teal: #2b9685;
  --mint: #60cdb0;
  --gold: #efbf66;
  --coral: #f07b60;
  --sand: #fff3df;
  --paper: rgba(255, 255, 255, 0.74);
  --paper-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(35, 66, 128, 0.12);
  --line-strong: rgba(35, 66, 128, 0.18);
  --muted: #5d6f8d;
  --shadow-soft: 0 18px 36px rgba(16, 30, 62, 0.08);
  --shadow-card: 0 28px 70px rgba(16, 30, 62, 0.12);
  --page-aura-1: rgba(90, 143, 231, 0.22);
  --page-aura-2: rgba(43, 150, 133, 0.16);
}

.privacy-page {
  --page-aura-1: rgba(43, 150, 133, 0.18);
  --page-aura-2: rgba(239, 191, 102, 0.14);
}

.terms-page {
  --page-aura-1: rgba(240, 123, 96, 0.14);
  --page-aura-2: rgba(90, 143, 231, 0.16);
}

.support-page {
  --page-aura-1: rgba(96, 205, 176, 0.18);
  --page-aura-2: rgba(240, 123, 96, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, var(--page-aura-1), transparent 28%),
    radial-gradient(circle at 86% 10%, var(--page-aura-2), transparent 24%),
    linear-gradient(180deg, #f9f4ea 0%, #fffaf3 48%, #edf5ff 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: auto auto 12% -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 191, 102, 0.18), transparent 70%);
  filter: blur(8px);
}

body::after {
  inset: 18% -120px auto auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 143, 231, 0.14), transparent 68%);
  filter: blur(8px);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p,
li {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 30;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #fff;
}

.skip-link:focus {
  left: 20px;
  top: 16px;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 52px;
  position: relative;
  z-index: 1;
}

.panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 18px auto 26px;
  padding: 14px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 18px;
  z-index: 20;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(35, 66, 128, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(20, 35, 72, 0.08);
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.34);
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-links a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.sidebar-group a:hover,
.sidebar-group a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-pill {
  color: #fff !important;
  background: linear-gradient(135deg, var(--navy-deep), var(--azure));
  box-shadow: 0 16px 28px rgba(25, 49, 94, 0.18);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 123, 96, 0.14), transparent 70%);
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero h1,
.section h2,
.page-hero h1,
.doc-section h2,
.cta h2 {
  font-family: var(--font-display);
  color: var(--navy-deep);
}

.hero h1 {
  margin: 10px 0 18px;
  max-width: 11ch;
  font-size: clamp(2.9rem, 7vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero .lede {
  margin: 0;
  max-width: 42rem;
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions,
.chip-row,
.meta-row,
.inline-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 26px;
}

.chip-row {
  margin-top: 24px;
}

.meta-row {
  margin-top: 18px;
}

.button,
.inline-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button {
  padding: 14px 20px;
}

.button:hover,
.button:focus-visible,
.inline-links a:hover,
.inline-links a:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-deep), var(--azure));
  box-shadow: 0 18px 32px rgba(25, 49, 94, 0.18);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-strong);
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(35, 66, 128, 0.1);
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(35, 66, 128, 0.1);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-card,
.card {
  border: 1px solid rgba(35, 66, 128, 0.1);
  border-radius: 28px;
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 245, 226, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.logo-stage {
  min-height: 300px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(35, 66, 128, 0.08);
  background:
    radial-gradient(circle at 50% 28%, rgba(239, 191, 102, 0.28), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #fff5e5 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-stage img {
  width: min(100%, 420px);
  transform: scale(1.08);
  filter: drop-shadow(0 18px 30px rgba(20, 35, 72, 0.12));
}

.stat-grid,
.feature-grid,
.surface-grid,
.document-grid,
.timeline,
.doc-content {
  display: grid;
  gap: 18px;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(35, 66, 128, 0.08);
}

.stat-label,
.card-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.stat-label {
  color: var(--navy);
}

.stat-card strong,
.card h3,
.timeline-step h3,
.surface-card h3,
.document-card h3 {
  color: var(--ink);
}

.stat-card strong {
  font-size: 1rem;
  line-height: 1.45;
}

.section,
.page-hero,
.doc-section,
.cta {
  padding: clamp(24px, 4vw, 42px);
}

.section {
  margin-top: 28px;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 28px;
}

.section h2,
.cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.section-heading p,
.card p,
.timeline-step p,
.surface-card p,
.document-card p,
.page-hero p,
.cta p,
.doc-section p {
  margin: 0;
  line-height: 1.8;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.surface-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.document-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-tag {
  color: var(--teal);
}

.card h3,
.timeline-step h3,
.surface-card h3,
.document-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.timeline {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  counter-reset: step;
}

.timeline-step {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(35, 66, 128, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 248, 255, 0.88));
  position: relative;
  overflow: hidden;
}

.timeline-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--navy), var(--azure));
  box-shadow: 0 12px 22px rgba(35, 66, 128, 0.18);
}

.surface-card,
.document-card {
  min-height: 100%;
}

.surface-card {
  padding: 22px;
}

.surface-card span,
.document-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.document-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.document-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.page-hero {
  margin-bottom: 22px;
}

.page-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 0.98;
}

.page-hero p {
  max-width: 44rem;
  font-size: 1.06rem;
}

.doc-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.doc-sidebar {
  display: grid;
  gap: 20px;
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 128px;
}

.back-link,
.sidebar-group a {
  display: block;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(35, 66, 128, 0.08);
  transition: background-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.sidebar-group {
  display: grid;
  gap: 10px;
}

.sidebar-group + .sidebar-group {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(35, 66, 128, 0.08);
}

.sidebar-group h2 {
  margin: 0 0 2px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.doc-section {
  display: grid;
  gap: 12px;
}

.doc-section h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.08;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.clean-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.7;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  box-shadow: 0 0 0 5px rgba(43, 150, 133, 0.08);
}

.doc-note {
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 245, 226, 0.95), rgba(255, 255, 255, 0.74));
}

.inline-links a {
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.cta {
  margin-top: 28px;
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at right top, rgba(239, 191, 102, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(240, 246, 255, 0.9));
}

.cta p {
  max-width: 44rem;
}

.footer {
  margin-top: 28px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.footer p {
  margin: 0;
  line-height: 1.7;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.reveal {
  animation: rise 700ms ease both;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 160ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .footer {
    grid-template-columns: 1fr;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: calc(100% - 20px);
  }

  .topbar {
    margin-top: 10px;
    border-radius: 24px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-copy span {
    font-size: 0.84rem;
  }

  .hero,
  .section,
  .page-hero,
  .doc-section,
  .cta {
    padding: 22px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
  }

  .button,
  .inline-links a,
  .nav-links a,
  .sidebar-group a,
  .back-link {
    transition: none;
  }
}
