:root {
  color-scheme: light;
  --bg: #F7F9FF;
  --bg-strong: #EAF0FF;
  --paper: #FFFFFF;
  --paper-soft: #F9FBFF;
  --text: #071333;
  --muted: #5F6B86;
  --line: #D8E0F1;
  --accent: #3168FF;
  --accent-dark: #1744C8;
  --accent-soft: #EEF3FF;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --warning: #F59E0B;
  --warning-soft: #FFF7ED;
  --success: #16A34A;
  --success-soft: #ECFDF3;
  --shadow: 0 24px 80px rgba(24, 46, 113, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(49, 104, 255, 0.16), transparent 36rem),
    linear-gradient(180deg, var(--bg) 0%, #FFFFFF 56%, var(--paper-soft) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(49, 104, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 104, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 72%);
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent-dark);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--accent);
  box-shadow: var(--shadow);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(49, 104, 255, 0.24);
}

.brand span {
  display: grid;
  color: var(--text);
  font-weight: 800;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.download-button,
.nav .download-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(49, 104, 255, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.download-button:hover,
.nav .download-button:hover,
.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(49, 104, 255, 0.28);
}

.button.secondary,
.button.ghost {
  background: var(--paper);
  color: var(--accent);
  box-shadow: none;
}

.button.secondary:hover,
.button.ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

main {
  min-height: 100vh;
}

.section,
.section-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 64px;
  min-height: calc(100vh - 76px);
  padding-top: 72px;
}

.eyebrow,
.support-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11.5ch;
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 98px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

h1::selection,
h2::selection,
h3::selection,
p::selection,
strong::selection,
span::selection,
li::selection {
  background: var(--accent-soft);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

p {
  margin-bottom: 0;
}

.hero-lede,
.section-header p,
.insight-card p,
.step-card p,
.mode-card p,
.mode-card li,
.rule-card p,
.debt-copy p,
.debt-metrics span,
.progress-card p,
.final-cta p,
.support-link span,
.site-footer p {
  color: var(--muted);
}

.hero-lede {
  max-width: 690px;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.45;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.debt-metrics strong,
.support-link strong,
.progress-card strong {
  display: block;
  color: var(--text);
}

.debt-metrics span,
.support-link span {
  display: block;
  margin-top: 4px;
}

.phone-showcase {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.phone-glow {
  position: absolute;
  width: 310px;
  height: 460px;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(49, 104, 255, 0.34), rgba(22, 163, 74, 0.18));
  filter: blur(36px);
  transform: rotate(-8deg);
}

.phone-frame {
  position: relative;
  width: min(340px, 100%);
  min-height: 610px;
  padding: 18px;
  border: 10px solid #0B1229;
  border-radius: 46px;
  background:
    linear-gradient(180deg, rgba(247, 249, 255, 0.98), rgba(255, 255, 255, 0.96)),
    var(--paper);
  box-shadow:
    0 34px 90px rgba(7, 19, 51, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.phone-frame::before {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 108px;
  height: 28px;
  border-radius: 0 0 18px 18px;
  background: #0B1229;
  content: "";
  transform: translateX(-50%);
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px 22px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.phone-pill {
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: rgba(7, 19, 51, 0.12);
}

.app-card,
.rule-list,
.reward-strip {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(24, 46, 113, 0.09);
}

.room-card {
  padding: 24px;
  color: #FFFFFF;
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 42%),
    linear-gradient(135deg, #1744C8, #3168FF 58%, #6C8DFF);
}

.room-status {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 850;
}

.room-card strong {
  display: block;
  font-size: 58px;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.room-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.rule-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
}

.rule-list div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.rule-list strong {
  color: var(--text);
  font-size: 12px;
}

.rule-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.rule-dot.success {
  background: var(--success);
}

.rule-dot.warning {
  background: var(--warning);
}

.reward-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
}

.reward-strip span {
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.section {
  border-top: 1px solid rgba(216, 224, 241, 0.78);
}

.section-header {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-header.narrow {
  max-width: 820px;
}

.split-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 36px;
  max-width: none;
}

.insight-grid,
.steps-grid,
.mode-grid,
.rules-grid,
.progress-grid,
.support-links {
  display: grid;
  gap: 18px;
}

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

.steps-grid,
.progress-grid,
.support-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.insight-card,
.step-card,
.mode-card,
.rule-card,
.progress-card,
.support-link {
  position: relative;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 42px rgba(24, 46, 113, 0.06);
}

.insight-card,
.rule-card,
.progress-card {
  background: var(--paper);
}

.insight-card,
.step-card,
.rule-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 16px;
}

.insight-card p,
.step-card p,
.rule-card p {
  grid-column: 1 / -1;
}

.insight-card .card-icon,
.step-card .step-number,
.rule-card .rule-symbol {
  margin-bottom: 0;
}

.insight-card h3,
.step-card h3,
.rule-card h3 {
  margin-bottom: 0;
}

.card-icon,
.rule-symbol {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 20px;
}

.step-number {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mode-card {
  overflow: hidden;
  padding: 28px;
}

.mode-card::after {
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  content: "";
  opacity: 0.52;
}

.mode-card.calm::after {
  background: var(--success-soft);
}

.mode-card.standard::after {
  background: var(--accent-soft);
}

.mode-card.hardcore::after {
  background: var(--danger-soft);
}

.featured-mode {
  border-color: rgba(49, 104, 255, 0.42);
  box-shadow: 0 24px 70px rgba(49, 104, 255, 0.14);
}

.mode-badge {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}

.mode-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.mode-head span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-weight: 900;
}

.calm .mode-head span {
  background: var(--success-soft);
  color: var(--success);
}

.standard .mode-head span {
  background: var(--accent-soft);
  color: var(--accent);
}

.hardcore .mode-head span {
  background: var(--danger-soft);
  color: var(--danger);
}

.mode-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.mode-card li {
  position: relative;
  padding-left: 20px;
}

.mode-card li::before {
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.debt-board,
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  align-items: center;
  gap: 38px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius-lg);
  color: #FFFFFF;
  background:
    radial-gradient(circle at 18% 10%, rgba(49, 104, 255, 0.35), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.22), transparent 28%),
    linear-gradient(135deg, #071333, #111D42 64%, #162765);
  box-shadow: var(--shadow);
}

.debt-board .eyebrow,
.final-cta .eyebrow {
  color: #8EAAFF;
}

.debt-copy p,
.final-cta p {
  color: rgba(255, 255, 255, 0.72);
}

.debt-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.debt-metrics div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.debt-metrics strong {
  color: #FFFFFF;
  font-size: 22px;
}

.debt-metrics span {
  color: rgba(255, 255, 255, 0.68);
}

.progress-card strong {
  margin-bottom: 12px;
  font-size: 18px;
}

.audience-section {
  text-align: center;
}

.audience-section .section-header {
  margin-inline: auto;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.audience-list span {
  display: inline-flex;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 700;
}

.final-cta-section {
  padding-bottom: 70px;
}

.final-cta {
  margin-bottom: 22px;
}

.final-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.support-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.support-link {
  color: inherit;
  text-decoration: none;
}

.support-link:hover {
  border-color: rgba(49, 104, 255, 0.42);
  transform: translateY(-1px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 36px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
}

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

  .hero,
  .split-header,
  .debt-board,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    min-height: auto;
  }

  .phone-showcase {
    min-height: auto;
  }

  .phone-frame {
    width: min(360px, 100%);
  }

  .insight-grid,
  .mode-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .progress-grid,
  .support-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
    padding: 18px 20px;
  }

  .nav {
    gap: 10px 14px;
  }

  .section,
  .section-shell {
    padding: 68px 20px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    max-width: 10.8ch;
    font-size: clamp(46px, 16vw, 72px);
  }

  h2 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .steps-grid,
  .progress-grid,
  .support-links,
  .debt-metrics {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    min-height: auto;
    border-width: 8px;
    border-radius: 38px;
  }

  .reward-strip {
    grid-template-columns: 1fr;
  }

  .debt-board,
  .final-cta {
    padding: 28px;
  }

  .audience-section {
    text-align: left;
  }

  .audience-list {
    justify-content: flex-start;
  }
}
