/* ============================================================
   Corner Coach — single-page site
   Dark editorial layout, BLD-inspired, purple primary accent
   ============================================================ */

:root {
  --bg:        #07080c;
  --bg-2:      #0b0d14;
  --panel:     #0e111a;
  --panel-2:   #121622;
  --line:      rgba(150, 145, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);

  --ink:       #e8e5df;
  --ink-dim:   #9d9aa8;
  --ink-mute:  #8a8794;

  --purple:    #8f7bff;
  --purple-2:  #b3a6ff;
  --purple-dim:rgba(143, 123, 255, 0.14);
  --orange:    #ff7a3c;
  --mint:      #6fe3c4;
  --gold:      #ffd15c;
  --coral:     #ff6b6b;
  --blue:      #5ca8ff;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 14px;

  --font-display: 'Saira Semi Condensed', 'Oswald', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(143, 123, 255, 0.13), transparent 62%),
    radial-gradient(700px 460px at 4% 22%, rgba(255, 122, 60, 0.055), transparent 66%);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 5vw, 3.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: 0.01em; }

h1 em, h2 em {
  font-style: normal;
  color: var(--purple-2);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { color: #fff; font-weight: 600; }
em { color: var(--ink); }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(143, 123, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--purple-2);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: #0a0812;
  padding: 10px 16px;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------ nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--pad);
  border-bottom: 1px solid transparent;
  background: rgba(7, 8, 12, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(7, 8, 12, 0.9);
  border-bottom-color: var(--line);
  padding-top: 10px;
  padding-bottom: 10px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  filter: saturate(115%);
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand-word b { font-weight: 700; color: var(--purple-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--purple);
  transition: right 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  padding: 8px 11px;
  cursor: pointer;
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--purple);
  background: var(--purple);
  color: #0a0714;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 10px 34px -14px rgba(143, 123, 255, 0.85);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--purple-2);
  box-shadow: 0 16px 40px -14px rgba(143, 123, 255, 0.95);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.74rem;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(143, 123, 255, 0.09);
  border-color: rgba(143, 123, 255, 0.5);
  box-shadow: none;
}

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: clamp(120px, 16vh, 190px) 0 clamp(56px, 8vh, 96px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 780px;
  height: 780px;
  right: -220px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 123, 255, 0.2), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-40px, 46px, 0) scale(1.08); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 22px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(143, 123, 255, 0.05);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(89, 224, 176, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(89, 224, 176, 0.14); }
  50%      { box-shadow: 0 0 0 7px rgba(89, 224, 176, 0.03); }
}

.hero h1 { margin-bottom: 22px; }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-dim);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.micro {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  line-height: 1.7;
  word-break: break-word;
}

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

.logo-ring {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 0;
  background: #000;
  border: 1px solid rgba(143, 123, 255, 0.28);
  box-shadow:
    0 40px 100px -40px rgba(143, 123, 255, 0.55),
    0 0 90px -10px rgba(143, 123, 255, 0.22);
  animation: float 8s ease-in-out infinite;
}

.logo-ring::after {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px dashed rgba(143, 123, 255, 0.22);
  pointer-events: none;
}

.logo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ------------------------------------------------------------ stats */

.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(143, 123, 255, 0.03), transparent);
}

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

.stat {
  padding: 30px 10px;
  text-align: center;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ------------------------------------------------------------ sections */

.section {
  padding: clamp(70px, 11vh, 130px) 0;
  position: relative;
  scroll-margin-top: 84px;
}

.chapter {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.section h2 { margin-bottom: 18px; max-width: 20ch; }

.section-lede {
  color: var(--ink-dim);
  max-width: 62ch;
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  margin-bottom: 46px;
}

.aside {
  margin-top: 30px;
  padding: 16px 20px;
  border-left: 2px solid var(--purple);
  background: rgba(143, 123, 255, 0.05);
  color: var(--ink-dim);
  font-size: 0.9rem;
  max-width: 70ch;
}

/* ------------------------------------------------------------ philosophy */

.philosophy {
  background:
    radial-gradient(760px 420px at 12% 0%, rgba(143, 123, 255, 0.06), transparent 70%);
}

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

.belief {
  position: relative;
  padding: 32px 26px 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel), rgba(10, 12, 18, 0.6));
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.belief::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), transparent);
  opacity: 0.6;
}

.belief:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}

.belief-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--purple);
  margin-bottom: 18px;
}

.belief h3 { margin-bottom: 12px; }
.belief p { color: var(--ink-dim); font-size: 0.94rem; }
.belief p em { color: var(--purple-2); font-style: italic; }

/* ------------------------------------------------------------ feature split */

.feature-grid,
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.feature-grid > *,
.split-grid > *,
.rolling-inner > *,
.download-inner > * { min-width: 0; }

.feature-copy h2,
.split-copy h2 { margin-bottom: 20px; }

.feature-copy p,
.split-copy p {
  color: var(--ink-dim);
  font-size: 0.98rem;
  max-width: 52ch;
}

.ticks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-dim);
  font-size: 0.93rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--purple);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(143, 123, 255, 0.6);
}

.feature-art,
.split-art { margin: 0; }

.feature-art img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(143, 123, 255, 0.08);
}

figcaption {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
  line-height: 1.6;
}

.split { border-top: 1px solid var(--line-soft); }

.split.reverse .split-grid { direction: rtl; }
.split.reverse .split-grid > * { direction: ltr; }

/* ------------------------------------------------------------ gates */

.gates {
  background:
    radial-gradient(700px 380px at 88% 20%, rgba(255, 122, 60, 0.055), transparent 70%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.gate-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gate {
  position: relative;
  padding: 26px 20px 24px;
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--gate, var(--purple));
  border-radius: 0 0 10px 10px;
  background: rgba(14, 17, 26, 0.7);
  transition: background 0.25s ease, transform 0.25s ease;
}

.gate:hover {
  background: rgba(20, 24, 36, 0.95);
  transform: translateY(-3px);
}

.gate-k {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gate, var(--purple));
  margin-bottom: 12px;
}

.gate p { color: var(--ink-dim); font-size: 0.88rem; margin: 0; }

/* ------------------------------------------------------------ report card mock */

.report-card {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 22px 22px 26px;
  border-radius: 12px;
  border: 1px dashed rgba(143, 123, 255, 0.45);
  background: rgba(9, 11, 17, 0.92);
  box-shadow: 0 40px 90px -46px rgba(143, 123, 255, 0.55);
}

.rc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.rc-delta {
  color: var(--mint);
  letter-spacing: 0.06em;
  font-size: 0.86rem;
}

.report-card h4 {
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.rc-cue {
  font-size: 0.88rem;
  color: var(--purple-2);
  font-style: italic;
  margin-bottom: 20px;
}

.rc-bars { display: grid; gap: 11px; }

.rc-bars > div {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 12px;
}

.rc-bars span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.rc-bars i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple) var(--v), rgba(255, 255, 255, 0.07) var(--v));
}

/* ------------------------------------------------------------ app window mock */

.app-window {
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0c0f18, #080a10);
  overflow: hidden;
  box-shadow: 0 46px 100px -50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(143, 123, 255, 0.06);
  font-size: 0.72rem;
}

.aw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(143, 123, 255, 0.05);
  overflow: hidden;
}

.aw-logo {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  color: var(--purple-2);
  font-size: 0.68rem;
  white-space: nowrap;
}

.aw-tag {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  font-size: 0.62rem;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aw-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 0;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.aw-tabs span {
  padding: 6px 11px;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 2px solid transparent;
}

.aw-tabs .on {
  color: var(--ink);
  border-bottom-color: var(--purple);
  background: rgba(143, 123, 255, 0.07);
}

.aw-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 250px;
}

.aw-list {
  padding: 14px;
  border-right: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.012);
}

.aw-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin: 0 0 10px;
}

.aw-group {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 14px 0 6px;
}

.aw-item {
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--ink-dim);
  margin: 0 0 3px;
}

.aw-item.on {
  background: rgba(143, 123, 255, 0.14);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--purple);
}

.aw-inspector { padding: 14px; }

.aw-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 12px;
}

.aw-seg {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 16px;
}

.aw-seg span {
  flex: 1;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.aw-seg .on {
  background: rgba(143, 123, 255, 0.22);
  color: #fff;
}

.aw-slider {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.aw-slider span {
  font-size: 0.62rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}

.aw-slider i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple) var(--v), rgba(255, 255, 255, 0.08) var(--v));
}

.aw-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }

.aw-chip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.aw-chip.on {
  border-color: rgba(143, 123, 255, 0.5);
  color: var(--purple-2);
  background: rgba(143, 123, 255, 0.12);
}

/* ------------------------------------------------------------ rolling start */

.rolling {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(760px 420px at 80% 50%, rgba(89, 224, 176, 0.05), transparent 70%);
}

.rolling-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 70px);
  align-items: center;
}

.rolling-inner h2 { margin-bottom: 18px; }
.rolling-inner p { color: var(--ink-dim); max-width: 54ch; }

.chip-demo {
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

.chip {
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 122, 60, 0.4);
  background: rgba(255, 122, 60, 0.07);
  display: grid;
  gap: 3px;
}

.chip b {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.chip span {
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.chip.green {
  border-color: rgba(89, 224, 176, 0.4);
  background: rgba(89, 224, 176, 0.07);
}
.chip.green b { color: var(--mint); }

/* ------------------------------------------------------------ cards */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.card {
  padding: 24px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(14, 17, 26, 0.55);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--line);
  background: rgba(18, 22, 34, 0.9);
  transform: translateY(-3px);
}

.card h3 {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 9px;
  color: #fff;
}

.card p {
  font-size: 0.84rem;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------ gallery */

.gallery {
  border-top: 1px solid var(--line-soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.shot {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.shot:hover img { transform: scale(1.02); }

.shot figcaption {
  padding: 12px 16px;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.76rem;
}

/* ------------------------------------------------------------ download */

.download {
  padding: clamp(70px, 11vh, 130px) 0;
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(143, 123, 255, 0.12), transparent 68%),
    linear-gradient(180deg, #080a10, #06070a);
  border-top: 1px solid var(--line);
}

.download-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.download h2 { margin-bottom: 18px; }
.download p { color: var(--ink-dim); max-width: 50ch; }

.download .micro {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.dl-list {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 15, 23, 0.85);
}

.dl-list h3 {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--purple-2);
  margin-bottom: 14px;
}

.dl-list ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.dl-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

.dl-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

/* ------------------------------------------------------------ footer */

.footer {
  border-top: 1px solid var(--line-soft);
  background: #05060a;
  padding-top: 54px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer .brand-word { font-size: 1.1rem; margin-bottom: 12px; }

.foot-h {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-dim);
  padding: 3px 0;
  transition: color 0.2s ease;
}
.footer-grid a:hover { color: var(--purple-2); }

.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  padding-bottom: 26px;
}

.foot-bottom p {
  font-size: 0.74rem;
  color: var(--ink-mute);
  margin: 0;
}

/* ------------------------------------------------------------ reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.beliefs .reveal:nth-child(2) { transition-delay: 0.08s; }
.beliefs .reveal:nth-child(3) { transition-delay: 0.16s; }
.gate-row .reveal:nth-child(2)  { transition-delay: 0.07s; }
.gate-row .reveal:nth-child(3)  { transition-delay: 0.14s; }
.gate-row .reveal:nth-child(4)  { transition-delay: 0.21s; }
.cards .reveal:nth-child(2n)    { transition-delay: 0.06s; }
.cards .reveal:nth-child(3n)    { transition-delay: 0.12s; }
.stats-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .logo-ring, .dot { animation: none; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .logo-ring { width: min(62%, 260px); }
  .beliefs { grid-template-columns: 1fr; }
  .gate-row { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .split-grid, .rolling-inner, .download-inner { grid-template-columns: 1fr; }
  .split.reverse .split-grid { direction: ltr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--pad) 20px;
    background: rgba(7, 8, 12, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.86rem;
  }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav > .btn-sm { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }

  .gate-row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  .aw-body { grid-template-columns: 1fr; }
  .aw-list { border-right: 0; border-bottom: 1px solid var(--line-soft); }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding-top: 112px; }
  .section h2 { max-width: none; }
}

@media (max-width: 420px) {
  .brand-word { font-size: 0.9rem; letter-spacing: 0.1em; }
  .btn { padding: 12px 20px; font-size: 0.8rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ============================================================
   1.3 additions
   ============================================================ */

/* responsive video embed (watch section) */
.video { position: relative; width: 100%; max-width: 860px; margin: 18px 0 8px; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* hero: one of the author's shots, darkened behind the copy */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  opacity: 0.32;
  filter: saturate(110%);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.96) 0%, rgba(7, 8, 12, 0.75) 45%, rgba(7, 8, 12, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.2) 60%, var(--bg) 100%);
}

.stats-grid { grid-template-columns: repeat(5, 1fr); }
.stats-grid .reveal:nth-child(5) { transition-delay: 0.24s; }

.beliefs-4 { grid-template-columns: repeat(4, 1fr); }
.beliefs .reveal:nth-child(4) { transition-delay: 0.24s; }

/* what's new */
.new-cards { margin-top: 0; }
.card .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(89, 224, 176, 0.35);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 12px;
}

/* wide in-game screenshots */
.wide-shot { margin: 40px 0 0; }
.wide-shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.wide-shot figcaption b, .section-lede b, .split-copy b, .pn-copy b { color: #fff; font-weight: 600; }

/* pace notes */
.pacenotes {
  background: radial-gradient(760px 420px at 10% 10%, rgba(89, 224, 176, 0.05), transparent 70%);
  border-top: 1px solid var(--line-soft);
}
.pn-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.pn {
  margin: 0;
  padding: 18px 16px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(14, 17, 26, 0.6);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pn-icon {
  aspect-ratio: 1;
  width: 100%;
  max-width: 132px;
  margin: 0 auto;
  border-radius: 10px;
  background: #090b11;
  border: 1px solid var(--line-soft);
  padding: 12%;
}
.pn-icon.small { width: 84px; flex: 0 0 84px; padding: 10px; }
.pn-icon svg { width: 100%; height: 100%; display: block; }
.pn figcaption { margin: 0; }
.pn h3 { font-size: 0.92rem; letter-spacing: 0.04em; color: #fff; margin-bottom: 6px; }
.pn p { font-size: 0.8rem; color: var(--ink-dim); line-height: 1.5; margin-bottom: 10px; }
.pn-calls { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pn-calls li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 4px;
}
.pn-calls span { color: var(--ink-mute); }
.pn-calls b { font-family: var(--font-display); letter-spacing: 0.06em; color: var(--gold); font-weight: 600; }

.pn-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: 26px;
}
.pn-split > * { min-width: 0; }
.pn-copy h3 { margin-bottom: 4px; }
.pn-copy .ticks { margin-top: 14px; }
.chicane-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 24px 0 14px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(14, 17, 26, 0.6);
}
.chicane-row p { font-size: 0.86rem; color: var(--ink-dim); margin: 0; }

/* off-track help */
.ot-demo {
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 107, 107, 0.06), transparent 60%),
    #0a0c12;
}
.ot-row {
  display: grid;
  gap: 2px;
  padding: 12px 0 14px;
  border-bottom: 1px dashed var(--line);
  text-align: center;
}
.ot-row:last-child { border-bottom: 0; }
.ot-cause {
  font-family: 'Oswald', var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  letter-spacing: 0.02em;
  color: #ffa04a;
  text-shadow: 0 0 18px rgba(255, 122, 60, 0.55);
}
.ot-cue { font-family: var(--font-display); font-weight: 600; color: #eef2ff; font-size: 0.98rem; }
.ot-detail { font-size: 0.72rem; color: var(--ink-mute); letter-spacing: 0.06em; }
.ticks.cols { grid-template-columns: 1fr 1fr; column-gap: 20px; }

/* every overlay */
.overlays { border-top: 1px solid var(--line-soft); }
.ov-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ov-col {
  padding: 22px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(14, 17, 26, 0.55);
}
.ov-col h3 {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--purple-2);
  margin-bottom: 14px;
}
.ov-col dl { margin: 0; }
.ov-col dt { font-weight: 600; color: #fff; font-size: 0.9rem; margin-top: 12px; }
.ov-col dt:first-child { margin-top: 0; }
.ov-col dd { margin: 2px 0 0; font-size: 0.8rem; color: var(--ink-dim); line-height: 1.5; }

.layers {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}
.layers > * { min-width: 0; }
.layers-copy {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(143, 123, 255, 0.05);
}
.layers-copy h3 { font-size: 1rem; margin-bottom: 10px; }
.layers-copy p { font-size: 0.84rem; color: var(--ink-dim); }
.layers-shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); }
.layers-shot img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }

/* telemetry */
.telemetry { border-top: 1px solid var(--line-soft); }
.tele-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tele {
  padding: 30px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel), rgba(10, 12, 18, 0.6));
}
.tele h3 { margin-bottom: 12px; }
.tele p { color: var(--ink-dim); font-size: 0.94rem; }
.tele .ticks { margin-top: 18px; }

/* real app screenshots */
.aw-shot {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(143, 123, 255, 0.08);
}

/* gallery: ultrawide shots span the row */
.shot.wide { grid-column: 1 / -1; }
.shot.wide img { aspect-ratio: 3 / 1; }

/* download */
.notice {
  margin: 4px 0 14px;
  padding: 14px 18px;
  border-left: 2px solid var(--gold);
  background: rgba(255, 209, 92, 0.06);
  font-size: 0.9rem;
}
.notice b { color: var(--gold); }
.side-dl {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(14, 17, 26, 0.6);
}
.side-dl h3 { font-size: 1rem; margin-bottom: 6px; }
.side-dl p { font-size: 0.86rem; margin-bottom: 12px; }
.side-dl .micro { margin: 10px 0 0; }
.dl-list .support a { color: var(--purple-2); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.dl-list .support a:hover { border-color: var(--purple-2); }

@media (max-width: 1100px) {
  .pn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beliefs-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .pn-split, .tele-grid { grid-template-columns: 1fr; }
  .layers { grid-template-columns: 1fr 1fr; }
  .layers-copy { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(2n+1) { border-right: 1px solid var(--line-soft); }
  .stat:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .beliefs-4 { grid-template-columns: 1fr; }
  .pn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-grid, .layers { grid-template-columns: 1fr; }
  .ticks.cols { grid-template-columns: 1fr; }
  .shot.wide img { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .pn-grid { grid-template-columns: 1fr; }
}

/* chapter labels inside split / feature copy keep their own style (the paragraph rule above is more specific) */
.split-copy .chapter,
.feature-copy .chapter {
  font-size: 0.72rem;
  color: var(--purple);
  max-width: none;
}

/* full-bleed photo bands between sections: the author's shots, just for the look */
.photo-band {
  margin: 0;
  position: relative;
  height: clamp(220px, 34vw, 460px);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
.photo-band.reveal { transform: none; }
