/* GAT — Gym Assistant Tracker landing page
   Neon Cyberpunk design system: see docs/design-system.md (shared with the Android app). */

:root {
  /* Colour tokens */
  --bg: #07060F;
  --bg-2: #0C0B1D;
  --surface: #110F26;
  --surface-2: #18153A;
  --line: #2A2560;
  --text: #E8F7FF;
  --muted: #8B8FB8;
  --cyan: #00F0FF;
  --magenta: #FF2BD6;
  --yellow: #FCEE0A;
  --green: #39FF88;
  --red: #FF3860;
  --on-neon: #07060F; /* text on cyan / yellow / green / gradient fills */

  /* Semantic aliases */
  --primary: var(--cyan);
  --secondary: var(--magenta);
  --success: var(--green);
  --warning: var(--yellow);
  --danger: var(--red);
  --border: var(--line);

  --grad: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 100%);
  --glow: drop-shadow(0 0 1px rgba(0, 240, 255, .55)) drop-shadow(0 0 14px rgba(0, 240, 255, .35));
  --glow-magenta: drop-shadow(0 0 1px rgba(255, 43, 214, .55)) drop-shadow(0 0 14px rgba(255, 43, 214, .35));
  --glow-box: 0 0 0 1px rgba(0, 240, 255, .55), 0 0 18px rgba(0, 240, 255, .35);

  /* Chamfer sizes */
  --cut: 14px;
  --cut-btn: 10px;
  --cut-sm: 6px;

  --gutter: 16px;
  --maxw: 1160px;
  --nav-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Orbitron", "Share Tech Mono", system-ui, sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

::selection { background: var(--magenta); color: var(--on-neon); }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; letter-spacing: .02em; }
h1, h2 { text-transform: uppercase; letter-spacing: .04em; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
b, strong { font-weight: 600; }

[hidden] { display: none !important; }

/* Cyan focus ring, offset so it stays visible next to neon fills */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(0, 240, 255, .25);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--on-neon);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 820px; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Mono eyebrow label: "// LIKE THIS" */
.eyebrow {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before { content: "// "; opacity: .65; }

/* ---------- Chamfered surfaces ----------
   The shape lives in ::before (border colour) and ::after (fill), so the element itself is not
   clipped and can carry a drop-shadow glow. Tune with --c (cut), --bc (border) and --fill. */
.btn, .nav__toggle, .tag, .zone-pill, .delta, .live-card, .mini, .cue, .float-badge,
.compare__col, .step, .panel, .feature, .feature__icon, .chat, .chat__avatar, .msg, .msg__btn,
.workout li, .specs, .dl-card, .dl-meta > div, .faq details {
  --c: var(--cut);
  --bc: var(--line);
  --fill: var(--surface);
  position: relative;
  isolation: isolate;
  background: none;
}
.btn::before, .nav__toggle::before, .tag::before, .zone-pill::before, .delta::before,
.live-card::before, .mini::before, .cue::before, .float-badge::before, .compare__col::before,
.step::before, .panel::before, .feature::before, .feature__icon::before, .chat::before,
.chat__avatar::before, .msg::before, .msg__btn::before, .workout li::before, .specs::before,
.dl-card::before, .dl-meta > div::before, .faq details::before,
.btn::after, .nav__toggle::after, .tag::after, .zone-pill::after, .delta::after,
.live-card::after, .mini::after, .cue::after, .float-badge::after, .compare__col::after,
.step::after, .panel::after, .feature::after, .feature__icon::after, .chat::after,
.chat__avatar::after, .msg::after, .msg__btn::after, .workout li::after, .specs::after,
.dl-card::after, .dl-meta > div::after, .faq details::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.btn::before, .nav__toggle::before, .tag::before, .zone-pill::before, .delta::before,
.live-card::before, .mini::before, .cue::before, .float-badge::before, .compare__col::before,
.step::before, .panel::before, .feature::before, .feature__icon::before, .chat::before,
.chat__avatar::before, .msg::before, .msg__btn::before, .workout li::before, .specs::before,
.dl-card::before, .dl-meta > div::before, .faq details::before {
  inset: 0;
  background: var(--bc);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.btn::after, .nav__toggle::after, .tag::after, .zone-pill::after, .delta::after,
.live-card::after, .mini::after, .cue::after, .float-badge::after, .compare__col::after,
.step::after, .panel::after, .feature::after, .feature__icon::after, .chat::after,
.chat__avatar::after, .msg::after, .msg__btn::after, .workout li::after, .specs::after,
.dl-card::after, .dl-meta > div::after, .faq details::after {
  inset: 1px;
  background: var(--fill);
  clip-path: polygon(calc(var(--c) - .4px) 0, 100% 0, 100% calc(100% - var(--c) + .4px), calc(100% - var(--c) + .4px) 100%, 0 100%, 0 calc(var(--c) - .4px));
}

/* Glowing (interactive or highlighted) surfaces */
.is-glow { filter: var(--glow); }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--cut-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease, color .2s ease;
}
.btn__icon { width: 18px; height: 18px; flex: none; }
.btn--primary {
  --bc: var(--cyan);
  --fill: var(--grad);
  color: var(--on-neon);
  filter: var(--glow);
}
.btn--primary:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 1px rgba(255, 43, 214, .6)) drop-shadow(0 0 20px rgba(255, 43, 214, .45));
}
.btn--ghost { --bc: var(--line); --fill: var(--surface); }
.btn--ghost:hover { --bc: var(--cyan); color: var(--cyan); }
.btn--sm { padding: 8px 14px; font-size: .78rem; }
.btn--lg { padding: 15px 26px; font-size: .95rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 6, 15, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 240, 255, .12), 0 8px 24px rgba(0, 0, 0, .35);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(0, 240, 255, .45)); }
.nav .brand__mark { animation: flicker 1.4s linear .2s both; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .12em;
  text-shadow: 0 0 12px rgba(0, 240, 255, .45);
}

.nav__links { list-style: none; display: flex; gap: 4px; }
.nav__links a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s, text-shadow .2s;
}
.nav__links a:hover { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 240, 255, .6); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__toggle {
  --c: var(--cut-sm);
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  color: var(--cyan);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.nav__toggle[aria-expanded="true"] { --bc: var(--cyan); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 779px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(7, 6, 15, .97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(0, 240, 255, .2);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav__menu.is-open { display: block; }
  .nav__links { flex-direction: column; }
  .nav__links a { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid rgba(42, 37, 96, .6); }
  .nav__links a::before { content: "> "; color: var(--magenta); }
}
@media (max-width: 379px) {
  .hide-xs { display: none; }
  .brand { gap: 8px; }
  .brand__name { font-size: 1.1rem; letter-spacing: .08em; }
  .nav .btn--sm { padding: 8px 10px; letter-spacing: .04em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 700px;
  background:
    radial-gradient(40% 50% at 72% 38%, rgba(0, 240, 255, .18), transparent 70%),
    radial-gradient(30% 40% at 88% 62%, rgba(255, 43, 214, .16), transparent 70%),
    radial-gradient(35% 45% at 10% 10%, rgba(255, 43, 214, .08), transparent 70%);
  pointer-events: none;
}
/* Perspective grid floor */
.hero__grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -2%;
  height: 52%;
  background-image:
    linear-gradient(rgba(0, 240, 255, .28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, .22) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(420px) rotateX(64deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
  opacity: .55;
  pointer-events: none;
}
/* Scanlines (≤ 4% opacity) */
.hero__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(232, 247, 255, .035) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero__copy { min-width: 0; }
.hero__title {
  font-size: clamp(2rem, 7.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .03em;
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, .22));
  animation: glitch 1.1s steps(1, end) .25s both;
}
.hero__title .grad { display: inline-block; }
.hero__lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  max-width: 34em;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.release-meta {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .04em;
}
.release-meta [data-apk-version] { color: var(--cyan); }

@media (max-width: 419px) {
  .hero__ctas .btn { flex: 1 1 100%; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 104px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 32px; }
}

/* ---------- Phone mockup (mirrors the app's Live Training screen) ---------- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 8px;
}
.phone-wrap { position: relative; width: min(100%, 320px); }
.phone {
  position: relative;
  width: 100%;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #1d1a44, #0a0918 60%);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, .45),
    0 0 40px rgba(0, 240, 255, .22),
    0 0 90px rgba(255, 43, 214, .14),
    0 30px 80px rgba(0, 0, 0, .65);
}
.phone__screen {
  border-radius: 34px;
  background:
    linear-gradient(rgba(42, 37, 96, .35) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(42, 37, 96, .35) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bg);
  padding: 10px 14px 16px;
  overflow: hidden;
}
.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text);
  padding: 2px 8px 8px;
}
.phone__notch {
  width: 72px;
  height: 20px;
  border-radius: 999px;
  background: #000;
}
.phone__icons { font-size: .62rem; letter-spacing: .05em; color: var(--muted); }

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 2px 12px;
}
.app-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.app-head__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--red);
}
.app-head__live i {
  width: 8px;
  height: 8px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}

.live-card {
  --bc: rgba(0, 240, 255, .7);
  padding: 14px;
  filter: var(--glow);
}
.live-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.live-card__ex { font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.live-card__set { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }

.zone-pill {
  --c: var(--cut-sm);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
}
.zone-pill--optimal { --bc: rgba(57, 255, 136, .55); --fill: #0d2a26; color: var(--green); }

.live-card__metric { margin: 12px 0 6px; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; }
.live-card__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 240, 255, .55);
}
.live-card__unit { font-family: var(--font-mono); font-size: 1rem; color: var(--muted); }
.live-card__label {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  height: 96px;
  align-items: end;
  margin-top: 12px;
}
.bar {
  position: relative;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(0, 240, 255, .9), rgba(0, 240, 255, .22));
  transform-origin: bottom;
  animation: grow .9s cubic-bezier(.2, .8, .2, 1) both;
}
.bar:nth-child(2) { animation-delay: .1s; }
.bar:nth-child(3) { animation-delay: .2s; }
.bar:nth-child(4) { animation-delay: .3s; }
.bar:nth-child(5) { animation-delay: .4s; }
.bar span {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--on-neon);
}
.bar--last {
  background: linear-gradient(180deg, var(--magenta), rgba(255, 43, 214, .25));
  box-shadow: 0 0 16px rgba(255, 43, 214, .5);
}
.bars__axis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--muted);
  text-align: center;
}

.loss { margin-top: 12px; }
.loss__row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.loss__row strong { color: var(--yellow); font-size: .82rem; font-weight: 400; }
.loss__row--sub { font-size: .62rem; margin-top: 4px; }
.loss__track {
  position: relative;
  height: 6px;
  margin-top: 6px;
  background: var(--surface-2);
}
.loss__fill {
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  box-shadow: 0 0 8px rgba(252, 238, 10, .45);
}
.loss__mark {
  position: absolute;
  top: -3px;
  left: var(--x);
  width: 2px;
  height: 12px;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

/* Progress cue = green (docs/design-system.md) */
.cue {
  --c: var(--cut-btn);
  --bc: var(--green);
  --fill: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  color: var(--on-neon);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  filter: drop-shadow(0 0 12px rgba(57, 255, 136, .45));
}

.mini-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mini { --c: 8px; padding: 8px 10px; }
.mini span {
  display: block;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mini strong { font-family: var(--font-mono); font-weight: 400; font-size: .86rem; color: var(--text); }

.float-badge {
  --c: 8px;
  --bc: rgba(0, 240, 255, .6);
  --fill: rgba(17, 15, 38, .95);
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  white-space: nowrap;
  filter: var(--glow);
  animation: float 5s ease-in-out infinite;
}
/* Badges hang off the phone's outer edges, overlapping only its frame */
.float-badge--a { top: 15%; right: calc(100% - 18px); }
.float-badge--b {
  --bc: rgba(255, 43, 214, .6);
  bottom: -18px;
  left: 0;
  right: 0;
  width: max-content;
  margin-inline: auto;
  filter: var(--glow-magenta);
  animation-delay: -2.5s;
}
.dot { width: 8px; height: 8px; }
.dot--green { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot--purple { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }

@media (max-width: 719px) {
  .float-badge { display: none; }
}

/* ---------- Strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 240, 255, .06), rgba(255, 43, 214, .06)),
    var(--bg-2);
}
.strip__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  padding: 28px 0;
  text-align: center;
}
.strip__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5.5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.strip__list span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (min-width: 720px) {
  .strip__list { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt {
  background:
    linear-gradient(rgba(42, 37, 96, .22) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(42, 37, 96, .22) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg-2);
  border-block: 1px solid rgba(42, 37, 96, .6);
}
.section__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section h2 { font-size: clamp(1.55rem, 5.2vw, 2.6rem); font-weight: 800; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 1.02rem; }
@media (min-width: 960px) {
  .section { padding: 104px 0; }
  .section__head { margin-bottom: 56px; }
}

.tag {
  --c: var(--cut-sm);
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: middle;
}
.tag--muted { --fill: var(--surface-2); color: var(--muted); }
.tag--grad { --bc: transparent; --fill: var(--grad); color: var(--on-neon); }
.tag--warn { --bc: var(--yellow); --fill: var(--yellow); color: var(--on-neon); }

/* ---------- Compare ---------- */
.compare { display: grid; gap: 20px; }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; gap: 28px; } }
.compare__col { padding: 28px 24px; }
.compare__col h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 20px; }
.compare__col--without h3 { color: var(--muted); }
.compare__col--with {
  --bc: rgba(0, 240, 255, .7);
  --fill: linear-gradient(180deg, rgba(0, 240, 255, .07), var(--surface) 60%) var(--surface);
  filter: var(--glow);
}

.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.checklist--bad li { color: var(--muted); }
.checklist--bad li::before {
  background-color: rgba(255, 56, 96, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%23FF3860' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
}
.checklist--good li::before {
  background-color: rgba(57, 255, 136, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3L9.5 3.5' fill='none' stroke='%2339FF88' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
}
.checklist b { color: var(--cyan); font-weight: 600; white-space: nowrap; }
.split .checklist { margin-top: 24px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 20px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { padding: 28px 24px; }
.step__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 18px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, .55));
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.step p { color: var(--muted); }

/* ---------- Showcase panels ---------- */
.showcase { display: grid; gap: 20px; margin-bottom: 28px; }
@media (min-width: 900px) { .showcase { grid-template-columns: 1.35fr 1fr; gap: 24px; } }
.panel {
  --bc: rgba(0, 240, 255, .55);
  margin: 0;
  padding: 22px 20px;
  min-width: 0;
  filter: var(--glow);
}
.panel__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.panel__title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.panel__sub { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; }
.effort-chart { width: 100%; height: auto; }

.statlist { margin: 0; display: grid; }
.statlist > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.statlist > div:last-child { border-bottom: 0; }
.statlist dt { color: var(--muted); font-size: .9rem; }
.statlist dd { margin: 0; font-family: var(--font-mono); text-align: right; display: flex; align-items: center; gap: 8px; }
.delta { --c: 4px; font-family: var(--font-mono); font-size: .74rem; padding: 1px 7px; }
.delta--up { --bc: rgba(57, 255, 136, .45); --fill: #0d2a26; color: var(--green); }
.delta--flat { --fill: var(--surface-2); color: var(--muted); }

/* ---------- Features ---------- */
.features { list-style: none; display: grid; gap: 20px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.feature {
  padding: 26px 22px;
  transition: transform .25s, filter .25s;
}
.feature:hover { --bc: var(--cyan); transform: translateY(-2px); filter: var(--glow); }
.feature__icon {
  --c: 8px;
  --bc: rgba(0, 240, 255, .7);
  --fill: var(--surface-2);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, .4));
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1rem; margin-bottom: 8px; letter-spacing: .04em; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ---------- Split layout ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.split__copy { min-width: 0; }
.split__copy h2 { margin-bottom: 0; }

/* ---------- Chat ---------- */
.chat {
  --c: 18px;
  --bc: rgba(0, 240, 255, .55);
  min-width: 0;
  filter: var(--glow);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.chat__head strong { display: block; font-family: var(--font-display); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.chat__head span { font-family: var(--font-mono); font-size: .75rem; color: var(--green); letter-spacing: .06em; }
.chat__avatar {
  --c: 8px;
  --bc: transparent;
  --fill: var(--grad);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--on-neon) !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem !important;
}
.chat__body { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.msg {
  --c: 10px;
  max-width: 88%;
  padding: 12px 14px;
  font-size: .92rem;
  line-height: 1.5;
}
.msg p + p { margin-top: 8px; }
.msg--user {
  --bc: transparent;
  --fill: var(--grad);
  align-self: flex-end;
  color: var(--on-neon);
  font-weight: 500;
}
.msg--bot { --fill: var(--surface-2); align-self: flex-start; }
.msg--bot b { color: var(--cyan); }
.msg--card { --bc: rgba(255, 43, 214, .55); width: 100%; }
.msg__title { font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.workout { list-style: none; display: grid; gap: 6px; }
.workout li {
  --c: 6px;
  --bc: transparent;
  --fill: rgba(7, 6, 15, .7);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  font-size: .84rem;
}
.workout li span:last-child { color: var(--muted); font-family: var(--font-mono); }
.msg__btn {
  --c: 6px;
  --bc: var(--cyan);
  --fill: var(--cyan);
  display: inline-block;
  margin-top: 12px;
  padding: 7px 14px;
  color: var(--on-neon);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Sensor ---------- */
.sensor-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.sensor-ring {
  position: absolute;
  width: min(300px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, .2), rgba(255, 43, 214, .07) 55%, transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .25), 0 0 0 18px rgba(42, 37, 96, .18);
  animation: breathe 6s ease-in-out infinite;
}
.sensor {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 120px;
  height: 168px;
  filter: drop-shadow(0 0 1px rgba(0, 240, 255, .8)) drop-shadow(0 0 24px rgba(0, 240, 255, .4));
}
/* Same chamfer construction as the cards above, so the body can glow */
.sensor::before, .sensor::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}
.sensor::before { inset: 0; background: var(--cyan); }
.sensor::after { inset: 2px; background: linear-gradient(160deg, #1d1a44, #0a0918 70%); }
.sensor svg { width: 72px; height: 72px; }
.sensor__led {
  position: absolute;
  bottom: 22px;
  width: 22px;
  height: 4px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.sensor-clip {
  position: absolute;
  z-index: 0;
  width: 220px;
  height: 18px;
  background: linear-gradient(180deg, #2a2560, #110f26);
  box-shadow: inset 0 1px 0 rgba(0, 240, 255, .25);
}
.specs { --c: 10px; list-style: none; margin-top: 24px; padding: 1px; }
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: .92rem;
}
.specs li + li { border-top: 1px dashed var(--line); }
.specs span { color: var(--muted); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; flex: none; }
.specs strong { text-align: right; font-weight: 500; }
.fineprint { margin-top: 10px; color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }

/* ---------- Download card ---------- */
.dl-card {
  --c: 24px;
  --bc: rgba(0, 240, 255, .7);
  --fill:
    radial-gradient(60% 80% at 0% 0%, rgba(0, 240, 255, .12), transparent 70%),
    radial-gradient(50% 70% at 100% 100%, rgba(255, 43, 214, .12), transparent 70%),
    var(--surface);
  display: grid;
  gap: 32px;
  padding: 32px 22px;
  filter: var(--glow);
}
@media (min-width: 900px) {
  .dl-card { grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 48px; }
}
.dl-card__main, .dl-card__side { min-width: 0; }
.dl-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0 0;
}
.dl-meta > div {
  --c: 8px;
  --fill: rgba(7, 6, 15, .7);
  padding: 12px 14px;
  min-width: 0;
}
.dl-meta dt { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.dl-meta dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: 1.05rem; color: var(--cyan); overflow-wrap: anywhere; }

.dl-card__side h3 { font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.dl-card__side h3 + .install { margin-top: 0; }
.notes {
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .9rem;
  padding: 14px 16px;
  background: rgba(7, 6, 15, .7);
  border-left: 2px solid var(--magenta);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  margin-bottom: 24px;
  max-height: 260px;
  overflow-y: auto;
}
.install { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.install li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  color: var(--muted);
  font-size: .92rem;
}
.install li b { color: var(--text); }
.install li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: var(--cyan);
  color: var(--on-neon);
  font-family: var(--font-mono);
  font-size: .82rem;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { --c: 10px; transition: filter .2s; }
.faq details[open] { --bc: rgba(0, 240, 255, .7); filter: var(--glow); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.faq summary:hover { color: var(--cyan); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); box-shadow: 0 -1px 0 rgba(0, 240, 255, .1); padding: 32px 0 40px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.footer .brand__mark { width: 32px; height: 32px; }
.footer__text { color: var(--muted); font-family: var(--font-mono); font-size: .82rem; letter-spacing: .03em; }
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer__link:hover { color: var(--cyan); }

/* ---------- Simple pages (/releases, 404) ---------- */
.page {
  min-height: calc(100vh - var(--nav-h));
  padding: 56px 0 72px;
}
.page h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 800; margin-bottom: 28px; }
.release-list { list-style: none; display: grid; gap: 12px; }
.release-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 18px;
  background: var(--surface);
  border-left: 2px solid var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.release-list a { color: var(--cyan); font-family: var(--font-mono); font-size: 1.02rem; text-decoration: none; overflow-wrap: anywhere; }
.release-list a:hover { text-decoration: underline; }
.release-list__meta { color: var(--muted); font-family: var(--font-mono); font-size: .85rem; }
.release-list .tag { margin-left: 8px; }
.back-link { display: inline-block; margin-top: 28px; color: var(--muted); font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.back-link:hover { color: var(--cyan); }

.notfound {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}
.notfound__code { font-family: var(--font-display); font-size: clamp(5rem, 24vw, 9rem); font-weight: 800; line-height: 1; }
.notfound h1 { font-size: clamp(1.4rem, 5vw, 2.2rem); margin-top: 8px; }
.notfound p { color: var(--muted); margin: 12px auto 28px; max-width: 28em; }

/* ---------- Reveal on scroll (only when JS is active) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease, filter .25s;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
/* Runs once on load (hero headline only) */
@keyframes glitch {
  0% { transform: none; clip-path: none; }
  8% { transform: translate(-4px, 1px) skewX(-10deg); clip-path: inset(8% 0 58% 0);
       filter: drop-shadow(3px 0 0 var(--magenta)) drop-shadow(-3px 0 0 var(--cyan)); }
  16% { transform: translate(4px, -1px); clip-path: inset(62% 0 6% 0); }
  24% { transform: translate(-2px, 0) skewX(6deg); clip-path: inset(30% 0 34% 0);
        filter: drop-shadow(-2px 0 0 var(--magenta)) drop-shadow(2px 0 0 var(--cyan)); }
  32% { transform: none; clip-path: none; filter: drop-shadow(2px 0 0 var(--magenta)) drop-shadow(-2px 0 0 var(--cyan)); }
  44% { transform: translate(2px, 0); clip-path: inset(48% 0 22% 0); }
  52%, 100% { transform: none; clip-path: none; filter: drop-shadow(0 0 18px rgba(0, 240, 255, .22)); }
}
/* Runs once on load (logo only) */
@keyframes flicker {
  0% { opacity: .15; }
  6% { opacity: 1; }
  10% { opacity: .3; }
  16% { opacity: 1; }
  22% { opacity: .55; }
  28%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__title, .nav .brand__mark { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .btn--primary:hover, .feature:hover { transform: none; }
}
