@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: oklch(0% 0.006 34);
  --glass: oklch(18.5% 0.009 34 / 0.86);
  --surface: oklch(24% 0.01 34);
  --surface-selected: oklch(31% 0.012 34);
  --text-primary: oklch(98% 0.006 34);
  --text-secondary: oklch(76% 0.014 250);
  --text-muted: oklch(61% 0.012 250);
  --ember: oklch(66% 0.22 31);
  --ember-dark: oklch(58% 0.2 31);
  --ember-soft: oklch(66% 0.22 31 / 0.16);
  --border-subtle: oklch(98% 0.006 34 / 0.12);
  --border-strong: oklch(98% 0.006 34 / 0.24);
  --radius-card: 24px;
  --radius-button: 16px;
  --radius-pill: 999px;
  --max: 1180px;
  --text-display: clamp(2.875rem, 6.8vw, 5.625rem);
  --text-title-1: clamp(1.75rem, 3.6vw, 3.375rem);
  --text-title-2: clamp(1.375rem, 2.4vw, 2.25rem);
  --text-title-3: clamp(1.1875rem, 1.7vw, 1.625rem);
  --text-title-4: 1.0625rem;
  --text-body: 1.0625rem;
  --text-body-small: 0.9375rem;
  --text-caption: 0.8125rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 18%, oklch(48% 0.12 33 / 0.2), transparent 26rem),
    radial-gradient(circle at 8% 42%, oklch(28% 0.04 45 / 0.32), transparent 34rem),
    var(--canvas);
  color: var(--text-primary);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(oklch(100% 0 0 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0 / 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

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

.site-header {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 5;
}

.brand img {
  width: 152px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: oklch(18.5% 0.009 34 / 0.66);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: var(--text-caption);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
  background: oklch(100% 0 0 / 0.08);
  outline: none;
}

.nav-links .nav-cta {
  color: var(--text-primary);
  background: var(--ember);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: var(--ember-dark);
}

.hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(30px, 5.5vw, 84px);
  padding: clamp(44px, 7vw, 84px) 0 76px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: var(--text-display);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.hero-lede {
  max-width: 66ch;
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  width: 172px;
  border-radius: 12px;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.app-store-link img {
  width: 100%;
  height: auto;
}

.app-store-link:hover,
.app-store-link:focus-visible {
  transform: translateY(-2px);
  opacity: 0.9;
  outline: none;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  padding: 16px 24px;
  font-size: var(--text-body);
  font-weight: 500;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--ember);
  color: var(--text-primary);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--ember-dark);
}

.button-secondary {
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: oklch(98% 0.006 34 / 0.42);
  background: oklch(100% 0 0 / 0.05);
}

.microcopy {
  max-width: 54ch;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-body-small);
  line-height: 1.55;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 48vw, 600px);
}

.device-mockup {
  position: relative;
  width: min(54vw, 640px);
  max-width: none;
  min-width: 360px;
  mix-blend-mode: multiply;
  
}

.promise-band,
.truth-section,
.download-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--glass);
}

.promise-band {
  padding: clamp(24px, 4vw, 44px);
}

.promise-band p {
  max-width: 760px;
  margin: 0;
  font-size: var(--text-title-2);
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.flow-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(92px, 12vw, 156px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

h2 {
  margin-bottom: 18px;
  font-size: var(--text-title-1);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.flow-steps {
  display: grid;
  grid-template-columns: 1.08fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

.step {
  min-height: 280px;
  padding: clamp(24px, 3.5vw, 42px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: oklch(18.5% 0.009 34 / 0.68);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.step-wide {
  grid-row: span 2;
  min-height: 576px;
  background:
    radial-gradient(circle at 78% 16%, oklch(66% 0.22 31 / 0.15), transparent 16rem),
    var(--glass);
}

.step-number {
  width: fit-content;
  margin-bottom: auto;
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: var(--text-caption);
  font-weight: 500;
}

.step h3 {
  margin-bottom: 12px;
  font-size: var(--text-title-3);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.step p,
.truth-copy p,
.download-section p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: 1.6;
}

.truth-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px);
}

.truth-copy p {
  max-width: 62ch;
}

.truth-list {
  display: grid;
  gap: 12px;
}

.truth-list div {
  padding: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: oklch(100% 0 0 / 0.045);
}

.truth-list strong,
.truth-list span {
  display: block;
}

.truth-list strong {
  margin-bottom: 6px;
  font-size: var(--text-title-4);
  font-weight: 600;
}

.truth-list span {
  color: var(--text-secondary);
  font-size: var(--text-body-small);
  line-height: 1.55;
}

.download-section {
  margin-top: clamp(92px, 12vw, 156px);
  margin-bottom: 28px;
  padding: clamp(28px, 4.6vw, 56px);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
}

.download-logo {
  width: 96px;
}

.download-section h2 {
  max-width: 820px;
  margin-bottom: 12px;
}

.download-section .button {
  white-space: nowrap;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: var(--text-muted);
}

.site-footer img {
  width: 144px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.site-footer p {
  max-width: 420px;
  font-size: var(--text-caption);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.site-footer a {
  color: var(--text-secondary);
  font-size: var(--text-caption);
  font-weight: 500;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text-primary);
  outline: none;
}

.legal-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) 0 72px;
}

.legal-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--glass);
}

.legal-card h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: var(--text-display);
  line-height: 1;
}

.legal-card h2 {
  margin: 36px 0 10px;
  font-size: var(--text-title-3);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.legal-card p {
  max-width: 70ch;
  font-size: var(--text-body);
  color: var(--text-secondary);
}

.legal-card a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
}

.legal-date {
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: var(--text-body-small);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    max-width: 52vw;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  h1 {
    max-width: 10ch;
  }

  .hero-stage {
    min-height: 480px;
  }

  .device-mockup {
    width: min(88vw, 560px);
    min-width: 0;
  }

  .flow-steps,
  .truth-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .step-wide {
    min-height: 360px;
  }

  .download-section {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 28px, var(--max));
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    max-width: none;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero,
  .promise-band,
  .flow-section,
  .truth-section,
  .download-section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: auto;
    padding-bottom: 44px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .app-store-link {
    width: 164px;
  }

  .hero-stage {
    min-height: 360px;
  }

  .device-mockup {
    width: min(96vw, 430px);
  }

  .flow-section {
    padding: 72px 0;
  }

  .step,
  .step-wide {
    min-height: 280px;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
