:root {
  color-scheme: dark;
  --ink: #f8f3e8;
  --ink-soft: #c9c8c6;
  --muted: #979da7;
  --night: #05070c;
  --night-2: #090d16;
  --panel: rgba(17, 23, 36, 0.82);
  --panel-solid: #111724;
  --line: rgba(255, 255, 255, 0.1);
  --line-gold: rgba(224, 180, 87, 0.26);
  --gold: #d8ab53;
  --gold-light: #f1d894;
  --gold-deep: #9f712e;
  --blue: #70a9ff;
  --green: #71d7a4;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
  --radius: 28px;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 22%, rgba(56, 84, 138, 0.15), transparent 28rem),
    radial-gradient(circle at 5% 62%, rgba(173, 112, 37, 0.08), transparent 34rem),
    var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("assets/bg-academy-night.webp");
  background-position: center top;
  background-size: cover;
  opacity: 0.035;
  content: "";
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--night);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 6.7vw, 6.25rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.section-heading > p:last-child,
.section-intro {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: #efcf83;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, #bc8435);
  box-shadow: 0 12px 34px rgba(202, 146, 58, 0.26), inset 0 1px rgba(255, 255, 255, 0.42);
  color: #171005;
}

.button-primary:hover {
  box-shadow: 0 18px 42px rgba(202, 146, 58, 0.36), inset 0 1px rgba(255, 255, 255, 0.42);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(8, 12, 20, 0.52);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.button-secondary:hover {
  border-color: rgba(240, 208, 135, 0.46);
  background: rgba(17, 23, 35, 0.78);
}

.button-small {
  min-height: 42px;
  padding: 11px 17px;
  font-size: 0.81rem;
}

.button-wide {
  width: 100%;
}

.button-icon {
  font-size: 1.15em;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
body.menu-open .site-header {
  border-color: var(--line);
  background: rgba(5, 7, 12, 0.88);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 13px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
  transition: color 180ms ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 9px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 850px;
  place-items: center;
  overflow: hidden;
  padding: 142px 0 92px;
}

.hero-sky,
.hero-vignette,
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-sky {
  background: url("assets/bg-academy-night.webp") center 34% / cover no-repeat;
  opacity: 0.58;
  transform: scale(1.02);
}

.hero-vignette {
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.94) 0%, rgba(5, 7, 12, 0.72) 43%, rgba(5, 7, 12, 0.2) 78%, rgba(5, 7, 12, 0.5) 100%),
    linear-gradient(0deg, var(--night) 0%, transparent 25%, rgba(3, 5, 9, 0.16) 74%, rgba(3, 5, 9, 0.55) 100%);
}

.stars {
  background-image:
    radial-gradient(circle, rgba(255, 246, 205, 0.85) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px);
  background-position: 0 0, 70px 90px;
  background-size: 170px 170px, 240px 240px;
  opacity: 0.18;
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: clamp(48px, 7vw, 100px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 em {
  display: block;
  background: linear-gradient(92deg, #fff3c7, var(--gold) 58%, #f4ca77);
  background-clip: text;
  color: transparent;
  font-style: normal;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: #d6d6d5;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.availability {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.availability-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 7, 12, 0.4);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(113, 215, 164, 0.1);
}

.status-dot.soon {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 171, 83, 0.1);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 590px;
  place-items: center;
}

.phone-glow {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 181, 91, 0.18), rgba(81, 115, 177, 0.08) 42%, transparent 70%);
  filter: blur(8px);
}

.phone {
  position: relative;
  width: min(330px, 82vw);
  padding: 10px;
  border: 1px solid rgba(246, 224, 174, 0.43);
  border-radius: 42px;
  background: linear-gradient(150deg, #303648, #090c13 26%, #20283b 72%, #090c13);
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, 0.025);
  transform: rotate(2.4deg);
}

.phone::before {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 50%;
  width: 82px;
  height: 22px;
  border-radius: 99px;
  background: #05070c;
  content: "";
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: 33px;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.08), rgba(5, 8, 14, 0.92)),
    url("assets/hero-avatar.webp") center top / cover no-repeat;
}

.phone-screen::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.phone-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 46px 22px 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.level-badge {
  padding: 5px 9px;
  border: 1px solid rgba(240, 208, 135, 0.4);
  border-radius: 999px;
  background: rgba(5, 8, 14, 0.64);
  color: var(--gold-light);
}

.focus-card {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 22px;
  left: 18px;
  padding: 23px 20px 20px;
  border: 1px solid rgba(232, 198, 119, 0.3);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.92), rgba(7, 11, 19, 0.86));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
  text-align: center;
  backdrop-filter: blur(18px);
}

.focus-label {
  margin-bottom: 8px;
  color: var(--gold-light);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timer {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  box-shadow: 0 0 20px rgba(223, 180, 84, 0.5);
}

.focus-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  background: rgba(10, 15, 25, 0.84);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  font-size: 0.74rem;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.float-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.float-card.xp {
  top: 95px;
  right: -28px;
}

.float-card.streak {
  bottom: 100px;
  left: -46px;
}

.float-card strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.93rem;
}

.float-card span {
  color: var(--muted);
  font-size: 0.63rem;
}

.how-it-works {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018), transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  overflow: hidden;
  min-height: 275px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 28, 42, 0.64), rgba(10, 14, 23, 0.72));
}

.step::after {
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 169, 73, 0.1), transparent 66%);
  content: "";
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 46px;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: rgba(218, 171, 83, 0.07);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 700;
}

.step p,
.feature-copy p,
.trust-card p,
.store-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  display: grid;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-solid);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.18);
  grid-column: span 5;
}

.feature-card.wide {
  grid-column: span 7;
}

.feature-card:nth-child(3) {
  grid-column: span 7;
}

.feature-card:nth-child(4) {
  grid-column: span 5;
}

.feature-art {
  position: absolute;
  inset: 0;
}

.feature-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 8, 14, 0.98) 4%, rgba(5, 8, 14, 0.56) 45%, rgba(5, 8, 14, 0.04) 82%);
  content: "";
}

.feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
}

.feature-card:hover .feature-art img {
  transform: scale(1.035);
}

.feature-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 34px;
}

.feature-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(5, 8, 14, 0.56);
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.feature-card.compact-art .feature-art img {
  object-position: center 28%;
}

.quote-section {
  padding: 66px 0 90px;
}

.quote-card {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 82px);
  border: 1px solid var(--line-gold);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(110deg, rgba(7, 10, 17, 0.97), rgba(7, 10, 17, 0.77)),
    url("assets/academy-house.webp") 75% center / cover no-repeat;
  box-shadow: var(--shadow);
}

.quote-card::before {
  position: absolute;
  top: -40px;
  right: 2%;
  color: rgba(240, 207, 131, 0.1);
  content: "“";
  font-family: Georgia, serif;
  font-size: 20rem;
  line-height: 1;
}

.quote-card blockquote {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.4;
}

.quote-card footer {
  margin-top: 24px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.install-section {
  background: linear-gradient(180deg, transparent, rgba(70, 91, 133, 0.08), transparent);
}

.install-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(44px, 8vw, 100px);
  align-items: center;
}

.install-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--ink-soft);
}

.install-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.install-note img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.store-stack {
  display: grid;
  gap: 14px;
}

.store-card {
  display: grid;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(20, 27, 42, 0.78), rgba(10, 14, 23, 0.82));
  grid-template-columns: auto 1fr auto;
  transition: border-color 180ms ease, transform 180ms ease;
}

.store-card.active:hover {
  border-color: var(--line-gold);
  transform: translateY(-2px);
}

.store-card.soon {
  opacity: 0.65;
}

.store-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 1.55rem;
}

.store-card h3 {
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 1rem;
}

.store-card p {
  font-size: 0.79rem;
}

.store-status {
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(14, 19, 30, 0.54);
}

.trust-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 15px;
  background: rgba(216, 171, 83, 0.07);
  color: var(--gold-light);
  font-size: 1.2rem;
}

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 24px 50px 24px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 5px;
  color: var(--gold-light);
  content: "+";
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 400;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  max-width: 740px;
  margin-bottom: 24px;
  color: var(--ink-soft);
}

.final-cta {
  padding-top: 80px;
}

.final-card {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 8vw, 88px) clamp(28px, 8vw, 92px);
  border: 1px solid var(--line-gold);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(110deg, rgba(5, 8, 14, 0.97) 10%, rgba(5, 8, 14, 0.62) 66%, rgba(5, 8, 14, 0.82)),
    url("assets/stats-scene.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.final-card::after {
  position: absolute;
  top: 22px;
  right: 30px;
  width: 90px;
  height: 90px;
  background: url("assets/crest.webp") center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.46));
  opacity: 0.58;
}

.final-card > * {
  position: relative;
  z-index: 1;
}

.final-card p:not(.eyebrow) {
  max-width: 660px;
  color: var(--ink-soft);
}

.final-card .final-actions {
  margin-top: 28px;
}

.site-footer {
  padding: 64px 0 34px;
}

.footer-grid {
  display: grid;
  align-items: start;
  gap: 34px;
  padding-bottom: 40px;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-size: 0.84rem;
  transition: color 180ms ease;
}

.footer-column a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #737986;
  font-size: 0.75rem;
}

.install-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line-gold);
  border-radius: 28px;
  background: #0c111b;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.72);
  color: var(--ink);
}

.install-dialog::backdrop {
  background: rgba(2, 4, 8, 0.78);
  backdrop-filter: blur(8px);
}

.dialog-inner {
  padding: clamp(27px, 5vw, 44px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-header h2 {
  margin-bottom: 7px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.dialog-header p {
  color: var(--ink-soft);
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 1.35rem;
}

.dialog-tabs {
  display: flex;
  gap: 8px;
  margin: 28px 0 24px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.dialog-tab {
  flex: 1;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.dialog-tab[aria-selected="true"] {
  background: rgba(217, 172, 82, 0.13);
  color: var(--gold-light);
}

.dialog-panel[hidden] {
  display: none;
}

.dialog-panel ol {
  margin: 0 0 26px;
  padding: 0;
  counter-reset: install-steps;
  list-style: none;
}

.dialog-panel li {
  position: relative;
  min-height: 42px;
  margin: 15px 0;
  padding: 8px 0 8px 50px;
  color: var(--ink-soft);
  counter-increment: install-steps;
}

.dialog-panel li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: rgba(216, 171, 83, 0.06);
  color: var(--gold-light);
  content: counter(install-steps);
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 700;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
}

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

@media (max-width: 980px) {
  .section {
    padding: 88px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    border-bottom: 1px solid transparent;
    background: rgba(5, 7, 12, 0.97);
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 240ms ease, opacity 180ms ease, transform 180ms ease, padding 240ms ease;
  }

  body.menu-open .nav-links {
    max-height: 520px;
    padding-block: 18px 26px;
    border-color: var(--line);
    opacity: 1;
    transform: translateY(0);
  }

  .nav-link,
  .nav-links .button {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 10px;
  }

  .nav-links .button {
    justify-content: center;
    margin-top: 8px;
  }

  body.menu-open .nav-toggle span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  body.menu-open .nav-toggle span:nth-child(3) {
    opacity: 0;
  }

  body.menu-open .nav-toggle span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
  }

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

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

  .hero-visual {
    min-height: 640px;
  }

  .phone {
    transform: rotate(1deg);
  }

  .steps,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
  }

  .step-number {
    margin-bottom: 32px;
  }

  .feature-card,
  .feature-card.wide,
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) {
    grid-column: span 12;
  }

  .install-copy {
    max-width: 650px;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 72px 0;
  }

  .nav-shell {
    min-height: 68px;
  }

  .nav-links {
    top: 68px;
  }

  .brand span {
    font-size: 0.82rem;
  }

  .hero {
    padding: 120px 0 55px;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(5, 7, 12, 0.6), rgba(5, 7, 12, 0.84) 50%, var(--night) 100%),
      linear-gradient(90deg, rgba(5, 7, 12, 0.66), rgba(5, 7, 12, 0.1));
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .hero-actions,
  .final-actions {
    display: grid;
  }

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

  .hero-visual {
    min-height: 570px;
  }

  .phone-screen {
    min-height: 530px;
  }

  .float-card.xp {
    top: 65px;
    right: -4px;
  }

  .float-card.streak {
    bottom: 42px;
    left: -4px;
  }

  .feature-card {
    min-height: 390px;
  }

  .feature-copy {
    padding: 27px;
  }

  .store-card {
    align-items: start;
    grid-template-columns: auto 1fr;
  }

  .store-status {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin: 7px 0;
  }

  .dialog-tabs {
    overflow-x: auto;
  }

  .dialog-tab {
    min-width: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

/* Page-specific composition */
.nav-shell,
.hero-shell,
.footer-shell,
.footer-bottom {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(5, 7, 12, 0.88);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.brand > span {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  font-weight: 700;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav > a:not(.button) {
  padding: 10px 13px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
  transition: color 180ms ease;
}

.site-nav > a:not(.button):hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 10px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.button-gold {
  border-color: #efcf83;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, #bc8435);
  box-shadow: 0 12px 34px rgba(202, 146, 58, 0.26), inset 0 1px rgba(255, 255, 255, 0.42);
  color: #171005;
}

.button-gold:hover {
  box-shadow: 0 18px 42px rgba(202, 146, 58, 0.36), inset 0 1px rgba(255, 255, 255, 0.42);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(8, 12, 20, 0.52);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.button-large {
  min-height: 58px;
  padding: 17px 25px;
}

.hero-shell {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, 0.84fr);
  gap: clamp(48px, 7vw, 100px);
}

.hero-copy h1 em {
  display: inline;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 30px;
  color: #d6d6d5;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.availability > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 7, 12, 0.4);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.status-dot {
  display: inline-block;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(240, 213, 148, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 480px;
  height: 480px;
}

.orbit-two {
  width: 580px;
  height: 580px;
  border-style: dashed;
  opacity: 0.56;
}

.phone-speaker {
  position: absolute;
  z-index: 4;
  top: 17px;
  left: 50%;
  width: 78px;
  height: 22px;
  border-radius: 99px;
  background: #05070c;
  transform: translateX(-50%);
}

.phone-scene {
  position: relative;
  height: 330px;
  overflow: hidden;
}

.phone-scene::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0a0e17 1%, transparent 55%);
  content: "";
}

.phone-scene > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-level {
  position: absolute;
  z-index: 2;
  top: 43px;
  right: 17px;
  display: grid;
  padding: 6px 9px;
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  background: rgba(4, 7, 12, 0.7);
  text-align: center;
  backdrop-filter: blur(8px);
}

.phone-level span,
.phone-level strong {
  color: var(--gold-light);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.phone-hud {
  position: relative;
  z-index: 3;
  display: grid;
  margin-top: -26px;
  padding: 0 22px;
  justify-items: center;
}

.tiny-label {
  color: var(--gold-light);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.phone-hud .timer {
  margin: 6px 0 10px;
  font-size: 2.8rem;
}

.subject {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.subject i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.phone-hud button {
  width: 100%;
  margin-top: 15px;
  padding: 11px;
  border: 1px solid #eccb7b;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #171005;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.progress-card {
  margin: 16px 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.progress-card > div {
  display: grid;
}

.progress-card span {
  color: var(--muted);
  font-size: 0.51rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.progress-card strong {
  font-family: var(--serif);
  font-size: 0.71rem;
}

.progress-value {
  float: right;
  margin-top: -21px;
}

.progress-card > i {
  display: block;
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-card > i b {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
}

.phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 18px 28px 15px;
}

.phone-nav b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.phone-nav b:nth-child(3) {
  background: var(--gold);
  box-shadow: 0 0 9px rgba(216, 171, 83, 0.6);
}

.floating-chip {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 128px;
  padding: 11px 14px;
  border: 1px solid var(--line-gold);
  border-radius: 15px;
  background: rgba(10, 15, 25, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.floating-chip small {
  color: var(--muted);
  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.floating-chip strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 0.86rem;
}

.chip-xp {
  top: 94px;
  right: -28px;
}

.chip-streak {
  bottom: 98px;
  left: -42px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 23px;
  background: linear-gradient(var(--gold), transparent);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.section-kicker::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

.centered .section-kicker {
  justify-content: center;
}

.steps {
  align-items: center;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
}

.step-card {
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 28, 42, 0.64), rgba(10, 14, 23, 0.72));
}

.step-card .step-number {
  margin-bottom: 22px;
}

.step-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
}

.step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.step-card p {
  color: var(--ink-soft);
}

.step-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
}

.split-heading {
  display: grid;
  max-width: none;
  align-items: end;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
}

.split-heading p {
  margin-bottom: 10px;
}

.feature-card.feature-large,
.feature-card.feature-quests,
.feature-card.feature-stats,
.feature-card.feature-social {
  grid-column: span 6;
}

.feature-focus {
  background:
    radial-gradient(circle at 50% 42%, rgba(78, 119, 184, 0.26), transparent 34%),
    linear-gradient(145deg, #141b2b, #090d16);
}

.feature-card > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
}

.feature-card:hover > img {
  transform: scale(1.035);
}

.feature-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 8, 14, 0.98) 3%, rgba(5, 8, 14, 0.48) 52%, transparent 86%);
  content: "";
}

.feature-card .feature-copy {
  align-self: end;
}

.feature-card .feature-copy > span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold-light);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.mini-timer {
  position: absolute;
  z-index: 2;
  top: 48px;
  left: 50%;
  display: grid;
  width: min(270px, calc(100% - 64px));
  padding: 24px;
  border: 1px solid var(--line-gold);
  border-radius: 24px;
  background: rgba(8, 12, 21, 0.74);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.mini-timer small,
.stats-overlay span {
  color: var(--gold-light);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.mini-timer strong {
  margin: 7px 0;
  font-family: var(--serif);
  font-size: 2.8rem;
}

.mini-timer > span {
  color: var(--muted);
  font-size: 0.67rem;
}

.mini-timer i {
  height: 5px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-timer i b {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
}

.stats-overlay {
  position: absolute;
  z-index: 2;
  top: 36px;
  right: 32px;
  display: grid;
  padding: 15px 17px;
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  background: rgba(6, 10, 17, 0.75);
  backdrop-filter: blur(12px);
}

.stats-overlay strong {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.stats-overlay small {
  color: var(--green);
  font-size: 0.58rem;
}

.social-art {
  position: absolute;
  inset: 0;
}

.social-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.crest-mini {
  position: absolute;
  top: 34px;
  left: 36px;
  display: grid;
  width: 70px;
  height: 70px;
  padding: 12px;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: rgba(6, 10, 17, 0.72);
  backdrop-filter: blur(12px);
}

.quote-shell {
  position: relative;
  width: min(1020px, calc(100% - 48px));
  margin-inline: auto;
  padding: 45px 65px;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  text-align: center;
}

.quote-shell > img {
  width: 52px;
  margin: 0 auto 25px;
  opacity: 0.68;
}

.quote-shell blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.55rem);
  line-height: 1.45;
}

.quote-shell cite {
  display: block;
  margin-top: 20px;
  color: var(--gold-light);
  font-size: 0.69rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.install-shell {
  display: grid;
  align-items: center;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(44px, 8vw, 100px);
}

.install-copy > p {
  color: var(--ink-soft);
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.text-button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.platforms {
  display: grid;
  gap: 14px;
}

.platform-card {
  display: grid;
  align-items: center;
  gap: 17px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: linear-gradient(120deg, rgba(20, 27, 42, 0.78), rgba(10, 14, 23, 0.82));
  grid-template-columns: auto 1fr auto;
}

.platform-card.available {
  border-color: var(--line-gold);
}

.platform-card.muted {
  opacity: 0.58;
}

.platform-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--gold-light);
  font-size: 1.3rem;
}

.platform-card > div {
  display: grid;
}

.platform-card small {
  color: var(--gold-light);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.platform-card strong {
  margin: 2px 0;
  font-family: var(--serif);
}

.platform-card div span {
  color: var(--muted);
  font-size: 0.69rem;
}

.platform-card > i {
  color: var(--gold-light);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.trust-grid {
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 8vw, 110px);
}

.trust-copy p {
  color: var(--ink-soft);
}

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

.trust-list li {
  display: grid;
  align-items: start;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto 1fr;
}

.trust-list li > span {
  color: var(--gold-light);
  font-size: 1.3rem;
}

.trust-list li div {
  display: grid;
}

.trust-list small {
  margin-top: 4px;
  color: var(--muted);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 50px 24px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span::before,
.faq-list summary span::after {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 15px;
  height: 1px;
  background: var(--gold-light);
  content: "";
  transition: transform 180ms ease;
}

.faq-list summary span::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary span::after {
  transform: rotate(0);
}

.faq-list details p {
  max-width: 740px;
  margin-bottom: 24px;
  color: var(--ink-soft);
}

.final-cta {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #05080e;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 14, 0.96), rgba(5, 8, 14, 0.5) 60%, rgba(5, 8, 14, 0.72)),
    url("assets/bg-academy-night.webp") center 42% / cover no-repeat;
  opacity: 0.78;
}

.final-cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(760px, calc(100% - 48px));
  min-height: 620px;
  margin-inline: auto;
  padding: 90px 0;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.final-cta-content > img {
  width: 82px;
  margin-bottom: 23px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.final-cta-content p {
  max-width: 620px;
  color: var(--ink-soft);
}

.final-cta-content .button {
  margin-top: 22px;
}

.footer-shell {
  display: grid;
  align-items: start;
  gap: 70px;
  padding-bottom: 42px;
  grid-template-columns: 0.8fr 1.2fr;
}

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

.footer-brand img {
  width: 46px;
  height: 46px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-links > div {
  display: grid;
  align-content: start;
}

.footer-links strong {
  margin-bottom: 10px;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  margin: 5px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.dialog-card {
  position: relative;
  padding: clamp(28px, 5vw, 46px);
}

.dialog-card > .dialog-close {
  position: absolute;
  top: 22px;
  right: 22px;
}

.dialog-card > h2 {
  max-width: 510px;
  padding-right: 40px;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.dialog-intro,
.dialog-note {
  color: var(--ink-soft);
}

.device-tabs {
  display: flex;
  gap: 7px;
  margin: 28px 0 24px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.device-tabs button {
  flex: 1;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
}

.device-tabs button.active {
  background: rgba(217, 172, 82, 0.13);
  color: var(--gold-light);
}

.device-panel {
  display: none;
}

.device-panel.active {
  display: block;
}

.device-panel ol {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.device-panel li {
  display: grid;
  min-height: 42px;
  align-items: center;
  gap: 13px;
  margin: 12px 0;
  color: var(--ink-soft);
  grid-template-columns: 38px 1fr;
}

.device-panel li > b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 0.75rem;
}

.dialog-action {
  width: 100%;
}

.dialog-note {
  display: block;
  margin-top: 16px;
  font-size: 0.7rem;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    border-bottom: 1px solid transparent;
    background: rgba(5, 7, 12, 0.98);
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 240ms ease, opacity 180ms ease, transform 180ms ease, padding 240ms ease;
  }

  .site-nav.open {
    max-height: 520px;
    padding-block: 18px 26px;
    border-color: var(--line);
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav > a,
  .site-nav .button {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 10px;
  }

  .site-nav .button {
    justify-content: center;
    margin-top: 8px;
  }

  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-shell,
  .install-shell,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-line {
    display: none;
  }

  .step-card {
    min-height: 0;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-card.feature-large,
  .feature-card.feature-quests,
  .feature-card.feature-stats,
  .feature-card.feature-social {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .hero-shell,
  .footer-shell,
  .footer-bottom {
    width: min(100% - 32px, 1180px);
  }

  .site-nav {
    top: 68px;
  }

  .hero-copy h1 br {
    display: none;
  }

  .phone {
    width: min(310px, 86vw);
  }

  .phone-screen {
    min-height: 530px;
  }

  .phone-scene {
    height: 286px;
  }

  .chip-xp {
    right: -2px;
  }

  .chip-streak {
    bottom: 32px;
    left: -2px;
  }

  .scroll-cue {
    display: none;
  }

  .quote-shell {
    width: calc(100% - 32px);
    padding: 42px 16px;
  }

  .platform-card {
    align-items: start;
    grid-template-columns: auto 1fr;
  }

  .platform-card > i {
    grid-column: 2;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .device-tabs {
    overflow-x: auto;
  }

  .device-tabs button {
    min-width: 98px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Current product captures */
.hero-visual {
  min-height: 720px;
}

.phone {
  width: min(344px, 84vw);
  padding: 8px;
  border-radius: 38px;
}

.phone-screen {
  min-height: 0;
  aspect-ratio: 463 / 1020;
  background: #050914;
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.feature-card.feature-large,
.feature-card.feature-quests,
.feature-card.feature-rewards,
.feature-card.feature-stats,
.feature-card.feature-social {
  min-height: 520px;
  grid-column: span 6;
}

.feature-card > img {
  right: 0;
  left: auto;
  width: 54%;
  height: 100%;
  border-left: 1px solid rgba(224, 180, 87, 0.18);
  object-fit: cover;
  object-position: top center;
  opacity: 0.92;
}

.feature-card::after {
  background: linear-gradient(90deg, rgba(5, 8, 14, 1) 0%, rgba(5, 8, 14, 0.97) 36%, rgba(5, 8, 14, 0.38) 68%, rgba(5, 8, 14, 0.08) 100%);
}

.feature-card .feature-copy {
  width: 52%;
  align-self: center;
  padding: 34px;
}

@media (max-width: 980px) {
  .feature-card.feature-large,
  .feature-card.feature-quests,
  .feature-card.feature-rewards,
  .feature-card.feature-stats,
  .feature-card.feature-social {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .hero-visual {
    min-height: 690px;
  }

  .phone {
    width: min(326px, 88vw);
  }

  .phone-screen {
    min-height: 0;
  }

  .feature-card.feature-large,
  .feature-card.feature-quests,
  .feature-card.feature-rewards,
  .feature-card.feature-stats,
  .feature-card.feature-social {
    min-height: 620px;
  }

  .feature-card > img {
    top: 0;
    width: 100%;
    height: 74%;
    border-left: 0;
    border-bottom: 1px solid rgba(224, 180, 87, 0.18);
    object-fit: cover;
  }

  .feature-card::after {
    background: linear-gradient(0deg, rgba(5, 8, 14, 1) 0%, rgba(5, 8, 14, 0.96) 25%, rgba(5, 8, 14, 0.18) 65%, rgba(5, 8, 14, 0.04) 100%);
  }

  .feature-card .feature-copy {
    width: auto;
    align-self: end;
    padding: 28px;
  }
}
