:root {
  color-scheme: dark;
  --bg: #0e1014;
  --bg-elevated: #151922;
  --bg-soft: #1b202b;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f3f7fc;
  --muted: #a3afc0;
  --accent: #5ad1d1;
  --accent-strong: #83e6e2;
  --accent-warm: #d5a055;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1120px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f0e8;
  --bg-elevated: #fbf8f2;
  --bg-soft: #ece5d9;
  --border: rgba(25, 32, 42, 0.1);
  --text: #1b2330;
  --muted: #5c6674;
  --accent: #0e8c8c;
  --accent-strong: #0f6f74;
  --accent-warm: #d18e21;
  --shadow: 0 24px 60px rgba(29, 27, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(90, 209, 209, 0.12), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, #0b0d12 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.55;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top, rgba(14, 140, 140, 0.08), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, #efe8dc 100%);
}

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

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

button {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
}

.site-header {
  padding: 24px 0 10px;
}

.site-header__inner,
.site-header__actions,
.hero-actions,
.site-footer__inner,
.footer-links,
.legal-topbar {
  display: flex;
  align-items: center;
}

.site-header__inner,
.site-footer__inner {
  justify-content: space-between;
  gap: 18px;
}

.site-header__actions,
.legal-topbar {
  gap: 12px;
}

.brand,
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.hero-logo,
.legal-brand__icon {
  width: clamp(132px, 18vw, 220px);
  height: clamp(132px, 18vw, 220px);
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.24));
}

.brand__logo--dark,
.hero-logo--dark,
.legal-brand__icon--dark {
  display: none;
}

:root[data-theme="dark"] .brand__logo--light,
:root[data-theme="dark"] .hero-logo--light,
:root[data-theme="dark"] .legal-brand__icon--light {
  display: none;
}

:root[data-theme="dark"] .brand__logo--dark,
:root[data-theme="dark"] .hero-logo--dark,
:root[data-theme="dark"] .legal-brand__icon--dark {
  display: block;
}

.brand__name,
.hero-wordmark,
.hero-subhead,
h1,
h2,
h3,
.legal-wordmark {
  font-family: "Montserrat", "Inter", sans-serif;
}

.brand__name,
.legal-wordmark {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .nav-links a:hover,
:root[data-theme="light"] .nav-links a:focus-visible,
:root[data-theme="light"] .nav-links a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.04);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__icon--sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle__icon--sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle__icon--moon {
  display: none;
}

.hero {
  padding: 54px 0 62px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 52px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero-wordmark {
  margin: 8px 0 0;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: 0.08em;
}

.hero-subhead {
  margin: 26px 0 18px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.04;
  color: var(--text);
}

.hero-support,
.hero-value,
.hero-footnote,
.hero-meta,
.feature p,
.legal-intro,
.legal-section p,
.legal-summary li {
  color: var(--muted);
}

.hero-support {
  max-width: 560px;
  margin: 0;
  font-size: 1.15rem;
}

.hero-value {
  margin: 18px 0 0;
  color: var(--text);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-footnote {
  margin: 10px 0 0;
  font-size: 0.8rem;
}

.hero-actions {
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

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

.button--primary {
  background: linear-gradient(180deg, #89ece8 0%, #5ad1d1 45%, #0e8c8c 100%);
  color: #092021;
  font-weight: 700;
}

:root[data-theme="light"] .button--primary {
  background: linear-gradient(180deg, #6ad6d6 0%, #0e8c8c 100%);
  color: #f7fffe;
}

.hero-meta {
  margin-top: 16px;
}

.hero-video-frame,
.section-card,
.legal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-video-frame {
  width: min(100%, 340px);
  padding: 12px;
}

.hero-video {
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--bg-soft);
}

.section {
  padding: 18px 0 62px;
}

.section h2,
.preview-card p {
  margin-top: 0;
}

.section h2 {
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.04;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 2rem;
}

.feature-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 2rem;
}

.uses-card {
  padding: 18px 18px 16px;
}

.uses-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.uses-card p {
  font-size: 0.95rem;
}

.section-card,
.legal-card {
  padding: 24px;
}

.feature h3,
.legal-summary__block h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.feature p {
  margin: 0;
  font-size: 1rem;
}

.how-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.how-flow--padded {
  padding: 0 3rem;
  gap: 22px;
}

.how-flow__step {
  position: relative;
  padding-top: 14px;
}

.how-flow__step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
}

.how-flow__index {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.how-flow__step h3 {
  margin-bottom: 8px;
}

.how-flow__step p {
  margin: 0;
  color: var(--muted);
}

.how-flow__image {
  margin-top: 14px;
  width: min(100%, 220px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.how-flow__image--dark {
  display: none;
}

:root[data-theme="dark"] .how-flow__image--light {
  display: none;
}

:root[data-theme="dark"] .how-flow__image--dark {
  display: block;
}

.how-flow__image--timer {
  width: min(100%, 188px);
}

.feature-rows {
  display: grid;
  gap: 0;
  padding: 0 2rem;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:first-child {
  border-top: 1px solid var(--border);
}

.feature-row h3,
.feature-row p {
  margin: 0;
}

.feature-row h3 {
  font-size: 1.05rem;
}

.footnote-mark {
  position: relative;
  top: -0.42em;
  font-size: 0.55em;
  font-weight: 600;
}

.feature-row p {
  color: var(--muted);
  font-size: 1rem;
}

.feature-footnotes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 2rem 0;
}

.feature-footnotes p {
  margin: 0;
  width: fit-content;
  max-width: 40rem;
  text-align: right;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.feature-footnotes__marker {
  color: var(--muted);
  font-weight: 500;
}

.closing-message {
  display: flex;
  justify-content: center;
}

.closing-lines {
  text-align: center;
}

.closing-lines p {
  margin: 0;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
}

.section-title__accent {
  color: var(--accent);
}

.site-footer {
  padding: 20px 0 28px;
}

.site-footer__inner {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.footer-links {
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover,
.muted-link:hover {
  color: var(--accent-strong);
}

.legal-header {
  padding: 30px 0 18px;
}

.legal-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.legal-brand {
  flex-direction: column;
  gap: 18px;
}

.legal-wordmark {
  font-size: clamp(2.2rem, 7vw, 4.6rem);
}

.nav-links--center {
  justify-content: center;
}

.legal {
  padding: 0 0 52px;
}

.legal-card {
  max-width: 860px;
  margin: 0 auto;
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  line-height: 1.05;
}

.legal-meta {
  margin: 14px 0 22px;
  color: var(--muted);
}

.legal-summary {
  margin-top: 32px;
}

.legal-summary__block+.legal-summary__block,
.legal-section+.legal-section {
  margin-top: 24px;
}

.legal-summary h2,
.legal-section h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.legal-summary ul,
.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-summary li+li,
.legal-section li+li {
  margin-top: 8px;
}

.muted-link {
  color: var(--accent);
}

@media (max-width: 980px) {

  .hero-grid,
  .feature-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .uses-grid,
  .feature-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .how-flow--padded {
    padding: 0 1.25rem;
    gap: 16px;
  }

  .how-flow__image {
    width: min(100%, 180px);
  }

  .how-flow__image--timer {
    width: min(100%, 150px);
  }

  .hero-video-frame {
    width: min(100%, 320px);
  }

  .site-footer__inner {
    display: grid;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .site-header {
    padding-top: 18px;
  }

  .site-header__inner {
    align-items: center;
    gap: 12px;
  }

  .brand {
    justify-content: flex-start;
  }

  .theme-toggle {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .uses-grid,
  .how-flow {
    grid-template-columns: 1fr;
  }

  .how-flow--padded,
  .feature-rows,
  .uses-grid,
  .feature-grid {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-copy,
  .hero-media {
    width: 100%;
    margin: 0 auto;
  }

  .how-flow__step {
    width: min(100%, 360px);
    margin: 0 auto;
    text-align: center;
  }

  .how-flow__step:last-child {
    grid-column: auto;
    justify-self: auto;
    width: min(100%, 360px);
  }

  .how-flow__image {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-video-frame {
    width: 100%;
    max-width: 300px;
  }

  .section,
  .legal {
    padding-bottom: 46px;
  }
}
