/* =========================================================
   8xGear landing — color tokens (edit here, used everywhere)
   ========================================================= */
:root {
  --accent: #007AFF;
  --bg: #FAF9FB;
  --green: #34C759;
  --red: #FF3B30;
  --orange: #FF9500;

  --ink: #111318;
  --muted: #6B7280;
  --line: rgba(17, 19, 24, 0.08);
  --card: #ffffff;
  --accent-soft: rgba(0, 122, 255, 0.1);
  --green-soft: rgba(52, 199, 89, 0.12);
  --red-soft: rgba(255, 59, 48, 0.1);
  --orange-soft: rgba(255, 149, 0, 0.12);
  --shadow: 0 16px 40px rgba(17, 19, 24, 0.07);
  --radius: 22px;
  --header-h: 68px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

h1, h2, h3, h4 {
  font-family: "Unbounded", "Manrope", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.kicker i {
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 86%, white);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.is-active:not(.btn)::after {
  transform: scaleX(1);
}

.menu-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 35;
  padding: 28px 24px;
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-nav a {
  font-family: "Unbounded", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
}

body.nav-lock {
  overflow: hidden;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  box-shadow: none;
  background: #fff;
}

.btn-green {
  background: var(--green);
}

.btn-green:hover {
  box-shadow: 0 10px 24px rgba(52, 199, 89, 0.28);
}

/* ---------- Gear shifter (desktop) ---------- */
.shifter {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 36px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  margin-bottom: 12px;
}

.hero .sub {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.time-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.time-chip {
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
}

.time-chip b {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
}

.time-chip span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.68rem;
}

.time-chip.is-8 { color: var(--accent); }
.time-chip.is-16 { color: var(--green); }
.time-chip.is-24 { color: var(--orange); }

.sport-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.sport-dots em {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.eight-mark {
  position: absolute;
  inset: 0;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
}

.eight-mark svg {
  width: 100%;
  height: 100%;
}

.hero-visual .device {
  position: relative;
  width: min(230px, 68vw);
  z-index: 1;
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.orbit-badge {
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.orbit-badge svg {
  width: 18px;
  height: 18px;
}

.orbit-a { top: 8%; left: 0; }
.orbit-b { bottom: 14%; right: 0; }

/* ---------- Shared section ---------- */
.section {
  padding: 72px 0;
  position: relative;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* ---------- Sports ---------- */
.sports {
  display: grid;
  gap: 14px;
}

.sport-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid transparent;
}

.sport-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}

.sport-ico svg {
  width: 26px;
  height: 26px;
}

.sport-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.sport-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.sport-card[data-tone="blue"] .sport-ico { background: var(--accent); }
.sport-card[data-tone="green"] .sport-ico { background: var(--green); }
.sport-card[data-tone="red"] .sport-ico { background: var(--red); }
.sport-card[data-tone="orange"] .sport-ico { background: var(--orange); }

/* ---------- Method steps ---------- */
.steps {
  display: grid;
  gap: 14px;
}

.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 22px 22px 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  font-family: "Unbounded", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  min-width: 1.4em;
}

.step:nth-child(2) .step-num { color: var(--green); }
.step:nth-child(3) .step-num { color: var(--orange); }
.step:nth-child(4) .step-num { color: var(--red); }

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Devices / screens ---------- */
.device {
  filter: drop-shadow(0 18px 30px rgba(17, 19, 24, 0.16));
}

.device-bezel {
  background: #1a1c20;
  border-radius: 32px;
  padding: 9px;
}

.device-bezel img {
  width: 100%;
  aspect-ratio: 9 / 19.4;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  background: var(--bg);
}

.screen-rack {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 4px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screen-rack .device {
  flex: 0 0 210px;
  scroll-snap-align: center;
}

.screen-rack figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- Session strip ---------- */
.session-layout {
  display: grid;
  gap: 28px;
}

.eight-list {
  background: var(--card);
  border-radius: 26px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.eight-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
}

.eight-item:last-child {
  border-bottom: 0;
}

.eight-item b {
  font-family: "Unbounded", sans-serif;
  font-size: 0.95rem;
  color: #c5c7cc;
}

.eight-item strong {
  display: block;
  font-size: 0.95rem;
}

.eight-item small {
  color: var(--muted);
  font-size: 0.8rem;
}

.pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  white-space: nowrap;
}

.feature-stack {
  display: grid;
  gap: 12px;
}

.feature-line {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.feature-line:last-child {
  border-bottom: 0;
}

.ico-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.ico-box svg {
  width: 20px;
  height: 20px;
}

.ico-box.green { background: var(--green-soft); color: var(--green); }
.ico-box.red { background: var(--red-soft); color: var(--red); }
.ico-box.orange { background: var(--orange-soft); color: var(--orange); }

.feature-line h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.feature-line p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Manifesto / why ---------- */
.manifesto {
  display: grid;
  gap: 0;
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.manifesto article {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
}

.manifesto article:last-child {
  border-bottom: 0;
}

.manifesto .tag {
  font-family: "Unbounded", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
}

.manifesto article:nth-child(1) .tag { color: var(--accent); }
.manifesto article:nth-child(2) .tag { color: var(--green); }
.manifesto article:nth-child(3) .tag { color: var(--orange); }
.manifesto article:nth-child(4) .tag { color: var(--red); }
.manifesto article:nth-child(5) .tag { color: var(--accent); }

.manifesto h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.manifesto p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Close / download ---------- */
.closeout {
  background:
    radial-gradient(700px 280px at 10% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(500px 240px at 90% 100%, var(--green-soft), transparent 55%),
    var(--bg);
}

.close-panel {
  background: #111318;
  color: #fff;
  border-radius: 32px;
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
}

.close-panel .eight-ghost {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: min(280px, 55vw);
  opacity: 0.12;
  color: #fff;
}

.close-panel h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  max-width: 16ch;
  position: relative;
}

.close-panel p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 46ch;
  position: relative;
  margin: 12px 0 22px;
}

.note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 62ch;
  position: relative;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  gap: 22px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  font-weight: 700;
  font-size: 0.92rem;
}

.foot-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.repeat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}

.dot-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ---------- Legal / contact pages ---------- */
.page-hero {
  padding: 40px 0 10px;
}

.page-hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.doc {
  display: grid;
  gap: 18px;
  padding-bottom: 80px;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.doc-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.doc h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.doc p,
.doc li {
  color: #3d424c;
  font-size: 0.98rem;
}

.doc ul {
  padding-left: 18px;
  margin: 0 0 8px;
}

.doc li + li {
  margin-top: 6px;
}

.legal-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

.legal-stamp span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-card .label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-card a,
.contact-card strong {
  font-family: "Unbounded", sans-serif;
  font-size: 0.92rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.form-card {
  background: var(--card);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 1.3rem;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-ok {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--green-soft);
  color: #177a32;
  font-weight: 700;
}

.form-ok.is-on {
  display: block;
}

/* ---------- Progress bar on mobile ---------- */
.shift-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  height: 4px;
  background: var(--line);
}

.shift-bar i {
  display: block;
  height: 100%;
  width: 12%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 0.2s ease;
}

/* ---------- Desktop ---------- */
@media (min-width: 860px) {
  .menu-btn,
  .mobile-nav,
  .shift-bar {
    display: none;
  }

  .wrap {
    width: min(var(--max), calc(100% - 88px));
    padding-left: 36px;
  }

  .nav-links {
    display: flex;
  }

  .shifter {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    gap: 10px;
  }

  .shifter-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 8px;
    background: #fff;
    border-radius: 999px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }

  .shifter a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Unbounded", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--bg);
  }

  .shifter a.is-on {
    background: var(--accent);
    color: #fff;
  }

  .shifter-caption {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
  }

  .hero {
    padding: 28px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 20px;
  }

  .hero-visual {
    min-height: 620px;
  }

  .hero-visual .device {
    width: 250px;
  }

  .sports {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .screen-rack {
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
  }

  .screen-rack .device {
    flex-basis: 200px;
  }

  .screen-rack .device:nth-child(even) {
    transform: translateY(28px);
  }

  .session-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 48px;
  }

  .manifesto article {
    grid-template-columns: 140px 1fr;
    padding: 26px 32px;
  }

  .close-panel {
    padding: 64px 56px;
  }

  .foot-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .doc {
    grid-template-columns: 220px 1fr;
    align-items: start;
    gap: 40px;
  }

  .doc-nav {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    align-content: start;
  }

  .doc-nav a {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: inherit;
    color: var(--muted);
  }

  .doc-nav a:hover {
    color: var(--accent);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-shell {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 80px;
  }
}

@media (min-width: 1100px) {
  .wrap {
    width: min(var(--max), calc(100% - 120px));
  }

  .screen-rack .device {
    flex-basis: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual .device { animation: none; }
}
