:root {
  color-scheme: dark;
  --ink: #080b14;
  --board: #080d18;
  --surface: #111a2e;
  --surface-high: #18243a;
  --surface-soft: #0e1627;
  --border: #2a3a55;
  --border-soft: rgb(149 162 185 / 18%);
  --text: #f5f7ed;
  --muted: #95a2b9;
  --dim: #66738a;
  --action: #d8ff4f;
  --rush: #64d8ff;
  --calm: #ff8a68;
  --chain: #a884ff;
  --danger: #ff5470;
  --mint: #73e6b1;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --max: 1180px;
  --gutter: 28px;
  --nav-height: 72px;
  --radius-lg: 24px;
  --shadow: 0 30px 90px rgb(0 0 0 / 42%);
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 22%, rgb(100 216 255 / 8%), transparent 26rem),
    radial-gradient(circle at 8% 68%, rgb(168 132 255 / 6%), transparent 32rem),
    var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgb(149 162 185 / 5.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(149 162 185 / 5.5%) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

nav,
main,
footer {
  position: relative;
  z-index: 1;
}

body,
button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.25rem, 7.8vw, 6.65rem);
  letter-spacing: -0.072em;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

h3 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}

p {
  color: var(--muted);
  text-wrap: pretty;
}

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

ul,
ol {
  list-style: none;
}

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

::selection {
  background: var(--action);
  color: var(--ink);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-180%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--action);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 140ms ease;
}

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

.wrap {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(42 58 85 / 72%);
  background: rgb(8 11 20 / 82%);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: var(--nav-height);
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 34%);
}

.brand span {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.brand small {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.nav-links a,
.footer-links a {
  transition: color 150ms ease;
}

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

.language-switch {
  display: inline-flex;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 750;
}

.language-switch a {
  min-width: 34px;
  padding: 5px 8px;
  color: var(--dim);
  text-align: center;
}

.language-switch a + a {
  border-left: 1px solid var(--border);
}

.language-switch a.active {
  background: var(--action);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-inline: 17px;
  border: 1px solid var(--action);
  border-radius: 12px;
  background: var(--action);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgb(216 255 79 / 20%);
}

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - var(--nav-height)));
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--ink);
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero::before {
  z-index: 2;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgb(8 11 20 / 96%) 34%, rgb(8 11 20 / 36%) 68%, rgb(8 11 20 / 5%) 100%),
    linear-gradient(0deg, rgb(8 11 20 / 84%) 0%, transparent 30%);
}

.hero::after {
  z-index: 0;
  background: radial-gradient(circle at 20% 48%, rgb(100 216 255 / 8%), transparent 24rem);
}

.prism-scene {
  position: absolute;
  z-index: 1;
  top: 0;
  right: -3%;
  width: 61%;
  height: 100%;
  overflow: hidden;
  perspective: 1100px;
  pointer-events: none;
}

.prism-scene::before {
  position: absolute;
  inset: 6% 0 0 7%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 38%, rgb(216 255 79 / 13%), transparent 14rem),
    radial-gradient(circle at 42% 54%, rgb(100 216 255 / 16%), transparent 18rem),
    radial-gradient(circle at 72% 62%, rgb(168 132 255 / 13%), transparent 20rem);
  filter: blur(4px);
  content: "";
}

.glass-cube {
  --cube: var(--rush);
  --rotation: 12deg;
  position: absolute;
  z-index: 4;
  width: clamp(78px, 8vw, 126px);
  aspect-ratio: 1;
  border: 2px solid color-mix(in srgb, white 68%, var(--cube));
  border-radius: 25%;
  background:
    radial-gradient(circle at 28% 20%, rgb(255 255 255 / 92%) 0 4%, transparent 19%),
    linear-gradient(145deg, color-mix(in srgb, white 35%, var(--cube)), var(--cube) 52%, color-mix(in srgb, var(--cube) 48%, black));
  box-shadow:
    inset 0 0 0 9px color-mix(in srgb, white 12%, transparent),
    inset -12px -15px 23px rgb(0 0 0 / 22%),
    0 0 24px color-mix(in srgb, var(--cube) 58%, transparent),
    0 28px 54px rgb(0 0 0 / 34%);
  transform: rotate(var(--rotation));
  animation: cube-drift 4.8s ease-in-out infinite alternate;
}

.glass-cube::after {
  position: absolute;
  inset: 10%;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 19%;
  box-shadow: inset 0 8px 11px rgb(255 255 255 / 16%);
  content: "";
}

.cube--lime {
  --cube: var(--action);
  --rotation: 18deg;
  top: 10%;
  left: 48%;
  animation-delay: -1.1s;
}

.cube--cyan {
  --cube: var(--rush);
  --rotation: -13deg;
  top: 31%;
  left: 31%;
  animation-delay: -2.7s;
}

.cube--coral {
  --cube: var(--calm);
  --rotation: 9deg;
  top: 48%;
  left: 51%;
  animation-delay: -0.4s;
}

.cube--lilac {
  --cube: var(--chain);
  --rotation: -18deg;
  top: 5%;
  left: 73%;
  width: clamp(65px, 6.7vw, 105px);
  animation-delay: -3.6s;
}

.energy-ring {
  position: absolute;
  z-index: 2;
  border: 2px solid var(--rush);
  border-radius: 50%;
  opacity: 0.35;
  filter: drop-shadow(0 0 9px var(--rush));
  transform: rotate(-24deg);
}

.energy-ring--one {
  top: 28%;
  right: 9%;
  width: 430px;
  height: 180px;
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.energy-ring--two {
  top: 38%;
  right: 2%;
  width: 540px;
  height: 250px;
  border-color: var(--chain);
  border-top-color: transparent;
  border-left-color: transparent;
  animation: ring-pulse 5s ease-in-out infinite alternate;
}

.spark {
  position: absolute;
  z-index: 5;
  width: 16px;
  height: 16px;
  background: var(--action);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 8px var(--action));
  animation: sparkle 2.8s ease-in-out infinite;
}

.spark--one {
  top: 37%;
  left: 60%;
}

.spark--two {
  top: 58%;
  left: 35%;
  width: 12px;
  height: 12px;
  background: var(--rush);
  filter: drop-shadow(0 0 8px var(--rush));
  animation-delay: -1.4s;
}

.prism-board {
  position: absolute;
  z-index: 3;
  right: -3%;
  bottom: -19%;
  width: 82%;
  aspect-ratio: 1.35;
  overflow: hidden;
  border: 2px solid rgb(100 216 255 / 66%);
  border-radius: 38px;
  background-color: rgb(8 13 24 / 88%);
  background-image:
    linear-gradient(rgb(42 58 85 / 82%) 2px, transparent 2px),
    linear-gradient(90deg, rgb(42 58 85 / 82%) 2px, transparent 2px);
  background-size: 16.67% 20%;
  box-shadow: 0 0 45px rgb(100 216 255 / 18%), inset 0 0 50px rgb(100 216 255 / 6%);
  transform: rotateX(57deg) rotateZ(-8deg);
  transform-origin: center;
}

.board-gem {
  --gem: var(--rush);
  position: absolute;
  width: 15%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, white 55%, var(--gem));
  border-radius: 23%;
  background: linear-gradient(145deg, color-mix(in srgb, white 34%, var(--gem)), var(--gem));
  box-shadow: inset -8px -9px 12px rgb(0 0 0 / 20%), 0 0 15px color-mix(in srgb, var(--gem) 52%, transparent);
}

.gem--lime { --gem: var(--action); }
.gem--cyan { --gem: var(--rush); }
.gem--coral { --gem: var(--calm); }
.gem--lilac { --gem: var(--chain); }
.gem-a { left: 17%; bottom: 21%; }
.gem-b { left: 34%; bottom: 21%; }
.gem-c { left: 51%; bottom: 21%; }
.gem-d { left: 68%; bottom: 21%; }
.gem-e { left: 51%; bottom: 42%; }
.gem-f { left: 68%; bottom: 42%; }

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: min(820px, calc(100svh - var(--nav-height)));
  padding-block: 72px;
}

.hero-copy {
  width: min(660px, 58%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 23px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--action);
  box-shadow: 0 0 0 5px rgb(216 255 79 / 12%);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 span {
  color: var(--action);
  text-shadow: 0 0 42px rgb(216 255 79 / 16%);
}

.hero-lede {
  max-width: 59ch;
  margin-top: 30px;
  font-size: clamp(1.03rem, 1.7vw, 1.2rem);
  line-height: 1.72;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 35px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 13px 22px;
  border: 1px solid var(--border);
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button--primary {
  border-color: var(--action);
  background: var(--action);
  color: var(--ink);
  box-shadow: 0 14px 38px rgb(216 255 79 / 14%);
}

.button--primary:hover {
  box-shadow: 0 17px 46px rgb(216 255 79 / 22%);
}

.button--ghost {
  border-color: rgb(149 162 185 / 34%);
  background: rgb(17 26 46 / 58%);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.button--ghost:hover {
  border-color: var(--rush);
  background: rgb(17 26 46 / 82%);
  color: var(--rush);
}

.button--large {
  min-height: 62px;
  padding-inline: 30px;
  font-size: 1rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 28px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.hero-facts li {
  position: relative;
  padding-left: 15px;
}

.hero-facts li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rush);
  content: "";
}

.signal-strip {
  border-bottom: 1px solid var(--border);
  background: rgb(17 26 46 / 70%);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-grid > div {
  display: grid;
  gap: 2px;
  padding: 24px 26px;
  border-left: 1px solid var(--border);
}

.signal-grid > div:last-child {
  border-right: 1px solid var(--border);
}

.signal-grid strong {
  color: var(--action);
  font-family: var(--mono);
  font-size: 1.3rem;
  line-height: 1;
}

.signal-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding-block: 112px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: var(--nav-height);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 46px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.section-kicker span:first-child {
  color: var(--action);
}

.section-kicker i {
  height: 1px;
  flex: 1;
  background: var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading p {
  max-width: 52ch;
}

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

.mode-card {
  --mode-accent: var(--rush);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.48fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--mode-accent) 36%, var(--border));
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--mode-accent) 13%, transparent), transparent 22rem),
    linear-gradient(145deg, rgb(24 36 58 / 94%), rgb(13 21 37 / 96%));
  box-shadow: 0 26px 72px rgb(0 0 0 / 24%);
}

.mode-card::before {
  position: absolute;
  top: 0;
  right: 70px;
  left: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mode-accent), transparent);
  content: "";
  opacity: 0.76;
}

.mode-card--calm {
  --mode-accent: var(--calm);
}

.mode-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 20px 46px 42px;
}

.mode-label {
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--mode-accent) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--mode-accent) 9%, transparent);
  color: var(--mode-accent);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mode-card h3 {
  margin-bottom: 18px;
}

.mode-copy > p:not(.mode-label) {
  font-size: 0.95rem;
}

.feature-list {
  display: grid;
  gap: 11px;
  margin-top: 27px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
}

.feature-list li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 8px;
  height: 3px;
  border-radius: 99px;
  background: var(--mode-accent);
  content: "";
}

.mode-demo {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 5px;
  width: 220px;
  aspect-ratio: 5 / 8;
  max-width: 116%;
  margin: 0 -6px -45px auto;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--mode-accent) 44%, var(--border));
  border-radius: 28px;
  background:
    linear-gradient(rgb(42 58 85 / 28%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(42 58 85 / 28%) 1px, transparent 1px),
    var(--board);
  background-size: 20% 12.5%;
  box-shadow: -24px 24px 70px rgb(0 0 0 / 40%);
  transform: rotate(2.2deg);
  transition: transform 260ms ease;
}

.mode-demo i {
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 8px;
  background: linear-gradient(145deg, color-mix(in srgb, white 22%, var(--mode-accent)), var(--mode-accent));
  box-shadow: inset -5px -6px 9px rgb(0 0 0 / 17%), 0 0 10px color-mix(in srgb, var(--mode-accent) 38%, transparent);
}

.mode-demo i:nth-child(1) { grid-area: 2 / 2; }
.mode-demo i:nth-child(2) { grid-area: 3 / 2; }
.mode-demo i:nth-child(3) { grid-area: 3 / 3; }
.mode-demo i:nth-child(4) { grid-area: 3 / 4; }
.mode-demo i:nth-child(5) { grid-area: 7 / 1; }
.mode-demo i:nth-child(6) { grid-area: 7 / 2; }
.mode-demo i:nth-child(7) { grid-area: 7 / 3; }
.mode-demo i:nth-child(8) { grid-area: 7 / 4; }
.mode-demo i:nth-child(9) { grid-area: 7 / 5; }

.mode-demo--rush i:nth-child(4n + 1) { --mode-accent: var(--rush); }
.mode-demo--rush i:nth-child(4n + 2) { --mode-accent: var(--chain); }
.mode-demo--rush i:nth-child(4n + 3) { --mode-accent: var(--action); }
.mode-demo--rush i:nth-child(4n) { --mode-accent: var(--calm); }

.mode-demo--calm {
  transform: rotate(-2.2deg);
}

.mode-demo--calm i:nth-child(1) { grid-area: 2 / 1; }
.mode-demo--calm i:nth-child(2) { grid-area: 2 / 2; }
.mode-demo--calm i:nth-child(3) { grid-area: 3 / 4; }
.mode-demo--calm i:nth-child(4) { grid-area: 4 / 2; }
.mode-demo--calm i:nth-child(5) { grid-area: 4 / 3; }
.mode-demo--calm i:nth-child(6) { grid-area: 5 / 1; }
.mode-demo--calm i:nth-child(7) { grid-area: 5 / 2; }
.mode-demo--calm i:nth-child(8) { grid-area: 5 / 3; }
.mode-demo--calm i:nth-child(9) { grid-area: 5 / 4; }
.mode-demo--calm i:nth-child(3n + 1) { --mode-accent: var(--calm); }
.mode-demo--calm i:nth-child(3n + 2) { --mode-accent: var(--chain); }
.mode-demo--calm i:nth-child(3n) { --mode-accent: var(--action); }

.mode-card:hover .mode-demo {
  transform: translateY(-8px) rotate(0);
}

.journey-section {
  background:
    radial-gradient(circle at 14% 20%, rgb(168 132 255 / 10%), transparent 28rem),
    radial-gradient(circle at 86% 76%, rgb(100 216 255 / 8%), transparent 30rem),
    var(--surface-soft);
}

.journey-heading {
  align-items: center;
}

.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 16px;
}

.level-console,
.achievement-console {
  min-width: 0;
  padding: 28px;
  border: 1px solid rgb(168 132 255 / 34%);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgb(168 132 255 / 8%), transparent 44%),
    rgb(17 26 46 / 88%);
  box-shadow: 0 24px 70px rgb(0 0 0 / 24%);
}

.achievement-console {
  border-color: rgb(216 255 79 / 30%);
  background:
    linear-gradient(145deg, rgb(216 255 79 / 6%), transparent 42%),
    rgb(17 26 46 / 88%);
}

.level-topline,
.xp-caption,
.weekly-header,
.achievement-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.level-topline > span {
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.level-topline > strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgb(216 255 79 / 35%);
  border-radius: 999px;
  background: rgb(8 11 20 / 48%);
  color: var(--action);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.level-topline > strong i {
  width: 9px;
  height: 9px;
  border: 1px solid currentcolor;
  transform: rotate(45deg);
}

.xp-track {
  height: 9px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(8 11 20 / 72%);
}

.xp-track i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--chain), var(--action));
  box-shadow: 0 0 18px rgb(216 255 79 / 34%);
}

.xp-caption {
  margin-top: 8px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 750;
}

.weekly-header {
  align-items: end;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.weekly-header > div,
.achievement-total > span {
  display: grid;
  gap: 4px;
}

.weekly-header small,
.achievement-total small {
  color: var(--chain);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.weekly-header b,
.achievement-total b {
  color: var(--text);
  font-size: 0.96rem;
}

.weekly-header > strong {
  color: var(--rush);
  font-family: var(--mono);
  font-size: 0.64rem;
  white-space: nowrap;
}

.weekly-list,
.achievement-stack {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.weekly-row {
  --weekly-accent: var(--rush);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--weekly-accent) 24%, var(--border));
  border-radius: 13px;
  background: color-mix(in srgb, var(--weekly-accent) 5%, transparent);
}

.weekly-row--done { --weekly-accent: var(--action); }
.weekly-row--calm { --weekly-accent: var(--calm); }

.weekly-row span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.weekly-row i {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--weekly-accent) 14%, transparent);
  color: var(--weekly-accent);
  font-style: normal;
}

.weekly-row b {
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-row > strong {
  flex: 0 0 auto;
  color: var(--weekly-accent);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.level-console > p,
.achievement-console > p {
  margin-top: 18px;
  color: var(--dim);
  font-size: 0.78rem;
}

.achievement-total {
  align-items: end;
}

.achievement-total > strong {
  color: var(--action);
  font-family: var(--mono);
  font-size: 3.3rem;
  line-height: 0.82;
  text-shadow: 0 0 25px rgb(216 255 79 / 20%);
}

.achievement-total small {
  color: var(--action);
}

.achievement-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgb(8 11 20 / 35%);
}

.achievement-item--open {
  border-color: rgb(216 255 79 / 36%);
  background: rgb(216 255 79 / 5%);
}

.achievement-item > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgb(168 132 255 / 13%);
  color: var(--chain);
  font-style: normal;
}

.achievement-item--open > i {
  background: rgb(216 255 79 / 13%);
  color: var(--action);
}

.achievement-item > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.achievement-item b {
  overflow: hidden;
  color: var(--text);
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-item small {
  overflow: hidden;
  color: var(--dim);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-item em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 800;
}

.journey-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.journey-stats span {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgb(8 11 20 / 30%);
}

.journey-stats small {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1.35;
}

.journey-stats b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.93rem;
}

.fair-progression-note {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
  padding: 17px 20px;
  border: 1px solid rgb(115 230 177 / 28%);
  border-radius: 16px;
  background: rgb(115 230 177 / 5%);
}

.fair-progression-note > i {
  color: var(--mint);
  font-size: 1.45rem;
  font-style: normal;
}

.fair-progression-note p {
  color: var(--muted);
  font-size: 0.82rem;
}

.fair-progression-note strong {
  color: var(--mint);
}

.flow-section {
  background:
    radial-gradient(circle at 12% 48%, rgb(168 132 255 / 9%), transparent 27rem),
    rgb(8 13 24 / 64%);
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 88px;
  align-items: start;
}

.flow-heading {
  display: block;
  margin: 0;
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}

.flow-heading p {
  margin-top: 25px;
}

.step-list {
  border-top: 1px solid var(--border);
}

.step-list li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 24px;
  padding-block: 31px;
  border-bottom: 1px solid var(--border);
}

.step-list > li > span {
  color: var(--action);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
}

.step-list h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.step-list p {
  font-size: 0.92rem;
}

.identity-section {
  overflow: hidden;
}

.identity-heading {
  align-items: center;
}

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

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.theme-card {
  --theme-bg: #080b14;
  --theme-surface: #111a2e;
  --theme-one: #64d8ff;
  --theme-two: #a884ff;
  --theme-three: #ff8a68;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--theme-two) 42%, var(--border));
  border-radius: 21px;
  background:
    radial-gradient(circle at 75% 10%, color-mix(in srgb, var(--theme-two) 16%, transparent), transparent 10rem),
    var(--theme-surface);
  transition: transform 220ms ease, border-color 220ms ease;
}

.theme-card--aurora {
  --theme-bg: #06100f;
  --theme-surface: #0e1d1b;
  --theme-one: #62eec5;
  --theme-two: #9ba8ff;
  --theme-three: #ff8a68;
}

.theme-card--ember {
  --theme-bg: #130a0b;
  --theme-surface: #211116;
  --theme-one: #ffb060;
  --theme-two: #d19aff;
  --theme-three: #ff6f70;
}

.theme-card--midnight {
  --theme-bg: #070717;
  --theme-surface: #101126;
  --theme-one: #62d5ff;
  --theme-two: #b694ff;
  --theme-three: #ff7ba7;
}

.theme-card:hover {
  transform: translateY(-5px);
  border-color: var(--theme-two);
}

.theme-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  height: 82px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--theme-two) 30%, transparent);
  border-radius: 14px;
  background:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px),
    var(--theme-bg);
  background-size: 16px 16px;
}

.theme-preview i {
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 8px;
  box-shadow: inset -4px -5px 8px rgb(0 0 0 / 18%);
}

.theme-preview i:nth-child(1) { background: var(--theme-one); }
.theme-preview i:nth-child(2) { background: var(--theme-two); }
.theme-preview i:nth-child(3) { background: var(--theme-three); }

.theme-card > small {
  display: block;
  margin-top: 17px;
  color: var(--theme-one);
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.theme-card h3 {
  margin-top: 8px;
  font-size: 1.45rem;
}

.theme-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.theme-footnote {
  max-width: 75ch;
  margin: 22px auto 0;
  color: var(--dim);
  font-size: 0.8rem;
  text-align: center;
}

.habit-section {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 15% 25%, rgb(100 216 255 / 8%), transparent 34%),
    radial-gradient(circle at 88% 70%, rgb(216 255 79 / 7%), transparent 32%);
}

.habit-heading {
  max-width: 760px;
}

.habit-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
}

.habit-card {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgb(20 31 54 / 94%), rgb(10 15 28 / 96%));
}

.habit-card::after {
  position: absolute;
  inset: auto -34px -54px auto;
  width: 150px;
  height: 150px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 38px;
  content: "";
  transform: rotate(24deg);
}

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

.habit-card small {
  display: block;
  margin-bottom: 20px;
  color: var(--rush);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

.habit-card--streak small,
.habit-card--streak .streak-mark span {
  color: var(--action);
}

.habit-card--mastery small {
  color: var(--calm);
}

.habit-card h3 {
  margin: 18px 0 9px;
  font-size: 1.25rem;
}

.habit-card p {
  font-size: 0.84rem;
}

.daily-console {
  display: grid;
  gap: 11px;
  margin-bottom: 18px;
}

.daily-goal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 14px;
  border: 1px solid rgb(100 216 255 / 25%);
  border-radius: 14px;
  background: rgb(100 216 255 / 5%);
}

.daily-goal--calm {
  border-color: rgb(255 138 104 / 25%);
  background: rgb(255 138 104 / 5%);
}

.daily-goal span {
  display: grid;
  gap: 3px;
}

.daily-goal b,
.daily-goal strong {
  color: var(--rush);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.daily-goal--calm b,
.daily-goal--calm strong {
  color: var(--calm);
}

.daily-goal em {
  color: var(--text);
  font-size: 0.78rem;
  font-style: normal;
}

.daily-goal > i {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
}

.daily-goal > i > u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rush);
  box-shadow: 0 0 14px rgb(100 216 255 / 50%);
}

.daily-goal > i > .progress-67 { width: 67%; }
.daily-goal > i > .progress-100 { width: 100%; }

.daily-goal--calm > i > u {
  background: var(--calm);
  box-shadow: 0 0 14px rgb(255 138 104 / 50%);
}

.streak-mark {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.streak-mark strong {
  color: var(--action);
  font-family: var(--mono);
  font-size: 4.3rem;
  line-height: 0.9;
  text-shadow: 0 0 28px rgb(216 255 79 / 24%);
}

.streak-mark span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.mastery-mark {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mastery-mark i {
  width: 50px;
  height: 50px;
  border: 2px solid var(--calm);
  border-radius: 15px;
  box-shadow: inset 0 0 22px rgb(255 138 104 / 16%), 0 0 22px rgb(255 138 104 / 12%);
  transform: rotate(45deg);
}

.mastery-mark strong {
  color: var(--calm);
  font-family: var(--mono);
  font-size: 2.2rem;
}

.identity-card {
  --identity-accent: var(--rush);
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 76% 22%, color-mix(in srgb, var(--identity-accent) 13%, transparent), transparent 14rem),
    var(--surface);
  padding: 29px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.identity-card--action { --identity-accent: var(--action); }
.identity-card--calm { --identity-accent: var(--calm); }

.identity-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--identity-accent) 68%, var(--border));
}

.identity-card small {
  display: block;
  margin: 25px 0 15px;
  color: var(--identity-accent);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.identity-card h3 {
  margin-bottom: 13px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.identity-card p {
  font-size: 0.89rem;
}

.identity-swatch {
  display: block;
  width: 88px;
  height: 88px;
  border: 1px solid rgb(255 255 255 / 52%);
  border-radius: 24px;
  background:
    radial-gradient(circle at 27% 20%, white 0 4%, transparent 20%),
    linear-gradient(145deg, #b9efff, var(--rush) 52%, #258ebd);
  box-shadow: inset -10px -12px 18px rgb(0 0 0 / 18%), 0 0 26px rgb(100 216 255 / 30%);
  transform: rotate(-8deg);
}

.action-orb {
  display: grid;
  place-items: center;
  width: 122px;
  height: 60px;
  border: 1px solid #ecff9b;
  border-radius: 18px;
  background: var(--action);
  color: var(--ink);
  box-shadow: 0 15px 38px rgb(216 255 79 / 22%);
  font-size: 1.7rem;
  font-weight: 900;
}

.calm-cluster {
  position: relative;
  width: 112px;
  height: 88px;
}

.calm-cluster i {
  position: absolute;
  width: 52px;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 15px;
  background: linear-gradient(145deg, #ffb49f, var(--calm) 55%, #c6533b);
  box-shadow: inset -7px -8px 12px rgb(0 0 0 / 16%), 0 0 17px rgb(255 138 104 / 25%);
}

.calm-cluster i:nth-child(1) { top: 0; left: 0; }
.calm-cluster i:nth-child(2) { top: 0; left: 58px; }
.calm-cluster i:nth-child(3) { top: 58px; left: 0; }

.store-section {
  padding-block: 82px;
  background:
    radial-gradient(circle at 82% 42%, rgb(216 255 79 / 12%), transparent 25rem),
    var(--surface-soft);
}

.store-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 60px;
  align-items: center;
  padding: 46px 50px;
  border: 1px solid rgb(216 255 79 / 38%);
  border-radius: 28px;
  background:
    linear-gradient(125deg, rgb(216 255 79 / 8%), transparent 44%),
    rgb(17 26 46 / 94%);
  box-shadow: var(--shadow);
}

.store-copy h2 {
  font-size: clamp(2.35rem, 4.5vw, 4rem);
}

.store-copy > p:not(.eyebrow) {
  max-width: 67ch;
  margin-top: 18px;
}

.store-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.store-platform {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgb(8 11 20 / 35%);
}

.store-platform small {
  color: var(--action);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.store-platform strong {
  color: var(--text);
  font-size: 1.08rem;
}

.store-platform span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.store-action {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgb(95 225 255 / 24%);
  border-radius: 20px;
  background: linear-gradient(145deg, rgb(95 225 255 / 9%), rgb(8 11 20 / 42%));
}

.store-action p {
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.65;
}

.store-status-line {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.store-status-line i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--action);
  box-shadow: 0 0 14px rgb(216 255 79 / 58%);
}

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

.faq-grid details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgb(17 26 46 / 66%);
}

.faq-grid details[open] {
  border-color: rgb(168 132 255 / 52%);
  background: var(--surface);
}

.faq-grid summary {
  position: relative;
  padding: 21px 52px 21px 22px;
  color: var(--text);
  cursor: pointer;
  font-weight: 760;
  list-style: none;
}

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

.faq-grid summary::after {
  position: absolute;
  top: 19px;
  right: 21px;
  color: var(--chain);
  font-family: var(--mono);
  font-size: 1.05rem;
  content: "+";
}

.faq-grid details[open] summary::after {
  content: "−";
}

.faq-grid details p {
  padding: 0 22px 23px;
  font-size: 0.88rem;
}

.closing-section {
  padding-block: 84px;
  background:
    linear-gradient(90deg, rgb(100 216 255 / 7%), transparent 38%, rgb(255 138 104 / 7%)),
    var(--ink);
}

.closing-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
}

.closing-inner .eyebrow {
  margin-bottom: 12px;
  color: var(--chain);
}

.closing-inner h2 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.site-footer {
  padding-block: 38px;
  border-top: 1px solid var(--border);
  background: var(--board);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
}

.brand--footer img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.footer-inner > p {
  color: var(--dim);
  font-size: 0.76rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 17px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

/* Legal and support pages */
.subpage-main {
  width: min(calc(100% - (var(--gutter) * 2)), 860px);
  min-height: calc(100svh - var(--nav-height));
  margin-inline: auto;
  padding-block: 74px 110px;
}

.subpage-header {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
}

.subpage-header h1 {
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.subpage-header > p:not(.eyebrow) {
  max-width: 66ch;
  font-size: 1.05rem;
}

.legal-content section {
  padding-block: 34px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  margin-bottom: 15px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.legal-content h3 {
  margin: 24px 0 9px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.legal-content p + p {
  margin-top: 14px;
}

.legal-content ul {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.legal-content li {
  position: relative;
  padding-left: 21px;
  color: var(--muted);
}

.legal-content li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 3px;
  border-radius: 99px;
  background: var(--action);
  content: "";
}

.legal-content a,
.support-grid a,
.inline-link {
  color: var(--rush);
  text-decoration: underline;
  text-decoration-color: rgb(100 216 255 / 34%);
  text-underline-offset: 0.2em;
}

.policy-note {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgb(168 132 255 / 34%);
  border-radius: 14px;
  background: rgb(168 132 255 / 6%);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.support-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.support-card h2 {
  margin-bottom: 11px;
  font-size: 1.25rem;
}

.support-card p {
  font-size: 0.9rem;
}

.support-card a {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.86rem;
  font-weight: 750;
}

.error-main {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--nav-height));
  padding: 40px var(--gutter);
  text-align: center;
}

.error-card {
  width: min(580px, 100%);
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.error-code {
  color: var(--action);
  font-family: var(--mono);
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 900;
  line-height: 1;
}

.error-card h1 {
  margin-top: 14px;
  font-size: 2rem;
}

.error-card p {
  margin: 14px auto 24px;
}

@keyframes cube-drift {
  from { transform: translate3d(0, -7px, 0) rotate(var(--rotation)); }
  to { transform: translate3d(8px, 12px, 0) rotate(calc(var(--rotation) + 7deg)); }
}

@keyframes ring-pulse {
  from { opacity: 0.18; transform: rotate(-24deg) scale(0.94); }
  to { opacity: 0.42; transform: rotate(-19deg) scale(1.04); }
}

@keyframes sparkle {
  50% { opacity: 0.34; transform: rotate(45deg) scale(0.72); }
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 10px rgb(216 255 79 / 0%); }
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  .language-switch {
    margin-left: auto;
  }

  .hero-copy {
    width: min(650px, 68%);
  }

  .mode-card {
    grid-template-columns: 1fr;
    min-height: 680px;
  }

  .mode-copy {
    align-self: start;
    padding: 36px 36px 0;
  }

  .mode-demo {
    position: absolute;
    right: 10px;
    bottom: -95px;
    width: 230px;
    opacity: 0.74;
  }

  .feature-list {
    width: 62%;
  }

  .flow-layout {
    gap: 54px;
  }

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

@media (max-width: 780px) {
  :root {
    --gutter: 20px;
    --nav-height: 64px;
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    min-height: 39px;
    padding-inline: 13px;
  }

  .hero {
    min-height: 760px;
  }

  .prism-scene {
    right: -4%;
    width: 84%;
    opacity: 0.68;
    transform: translate(18%, -12%) scale(0.84);
    transform-origin: top right;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgb(8 11 20 / 96%) 0%, rgb(8 11 20 / 75%) 65%, rgb(8 11 20 / 25%) 100%),
      linear-gradient(0deg, var(--ink) 0%, rgb(8 11 20 / 15%) 50%, rgb(8 11 20 / 36%) 100%);
  }

  .hero-inner {
    min-height: 760px;
    align-items: end;
    padding-block: 74px 62px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-lede {
    max-width: 52ch;
  }

  .signal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-grid > div:nth-child(3),
  .signal-grid > div:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .section {
    padding-block: 82px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .mode-grid,
  .journey-grid,
  .flow-layout,
  .habit-grid,
  .identity-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 570px;
  }

  .mode-copy {
    padding: 34px 32px 0;
  }

  .feature-list {
    width: 64%;
  }

  .mode-demo {
    bottom: -100px;
    width: 220px;
  }

  .flow-heading {
    position: static;
  }

  .identity-card {
    min-height: 300px;
  }

  .level-console,
  .achievement-console {
    padding: 24px;
  }

  .store-card {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 38px 32px;
  }

  .store-action {
    max-width: none;
  }

  .closing-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

@media (max-width: 520px) {
  :root {
    --gutter: 16px;
  }

  .site-nav .brand strong {
    font-size: 0.78rem;
    letter-spacing: 0.13em;
  }

  .site-nav .brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .nav-inner {
    gap: 10px;
  }

  .language-switch {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 720px;
  }

  .prism-scene {
    top: -4%;
    right: -8%;
    width: 108%;
    height: 70%;
    opacity: 0.46;
    transform: translate(25%, -10%) scale(0.68);
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgb(8 11 20 / 94%) 0%, rgb(8 11 20 / 68%) 84%, rgb(8 11 20 / 35%) 100%),
      linear-gradient(0deg, var(--ink) 0%, rgb(8 11 20 / 8%) 48%, rgb(8 11 20 / 36%) 100%);
  }

  .hero-inner {
    min-height: 720px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.5rem);
  }

  .hero-lede {
    margin-top: 23px;
    font-size: 0.98rem;
  }

  .button-row {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    gap: 8px 15px;
  }

  .signal-grid > div {
    padding: 19px 16px;
  }

  .signal-grid span {
    font-size: 0.7rem;
  }

  .section-kicker {
    margin-bottom: 32px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .mode-card {
    min-height: 610px;
  }

  .mode-copy {
    padding: 28px 24px 0;
  }

  .mode-copy > p:not(.mode-label) {
    font-size: 0.9rem;
  }

  .feature-list {
    width: 61%;
    font-size: 0.76rem;
  }

  .mode-demo {
    right: -18px;
    bottom: -76px;
    width: 220px;
  }

  .step-list li {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

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

  .level-console,
  .achievement-console {
    padding: 20px;
    border-radius: 20px;
  }

  .level-topline,
  .weekly-header,
  .achievement-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .weekly-row {
    gap: 9px;
  }

  .weekly-row b,
  .achievement-item b,
  .achievement-item small {
    white-space: normal;
  }

  .fair-progression-note {
    align-items: flex-start;
  }

  .store-card {
    padding: 30px 23px;
  }

  .store-platforms {
    grid-template-columns: 1fr;
  }

  .faq-grid summary {
    padding-left: 18px;
  }

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

  .subpage-main {
    padding-block: 52px 80px;
  }
}

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

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