@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0618;
  --bg-deep: #05020d;
  --surface: #17102b;
  --surface-2: #211540;
  --surface-3: #2c1d52;
  --line: rgba(181, 158, 255, 0.18);
  --line-strong: rgba(181, 158, 255, 0.36);
  --text: #f7f3ff;
  --text-soft: #d5ccea;
  --muted: #a99cc8;
  --cyan: #6fe7e0;
  --cyan-deep: #2bb9bd;
  --teal: #78e6b0;
  --gold: #ffd24d;
  --gold-deep: #e0ad1e;
  --coral: #ff8a7a;
  --purple: #b49cff;
  --green: #78e6b0;
  --orange: #ffb07c;
  --blue: #6fa9ff;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1180px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(124, 92, 255, 0.26), transparent 35rem),
    radial-gradient(circle at 88% 4%, rgba(214, 92, 240, 0.13), transparent 30rem),
    radial-gradient(circle at 52% 106%, rgba(91, 124, 255, 0.16), transparent 38rem),
    linear-gradient(180deg, #0b0618 0%, #120a26 52%, #05020d 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(181, 158, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 158, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 72%);
}

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

img {
  height: auto;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #8ef7fa;
}

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

button {
  cursor: pointer;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.25rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.05rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-bottom: 0.55rem;
}

p {
  color: var(--text-soft);
}

::selection {
  background: rgba(51, 230, 239, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--cyan);
  color: #031019;
  font-weight: 700;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.container-narrow {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 8vw, 112px) 0;
  position: relative;
}

.section-tight {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-head > div:first-child {
  max-width: 680px;
}

.section-head p {
  margin-bottom: 0;
  max-width: 580px;
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.overline::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.overline.gold {
  color: var(--gold);
}

.overline.coral {
  color: var(--coral);
}

.lede {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  max-width: 640px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
}

.text-gold {
  color: var(--gold);
}

.text-cyan {
  color: var(--cyan);
}

.text-coral {
  color: var(--coral);
}

.gradient-text {
  background: linear-gradient(100deg, #ffffff 8%, var(--cyan) 46%, var(--gold) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-gold {
  background: linear-gradient(100deg, #fff3bd, var(--gold) 60%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 4, 16, 0.86);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(51, 230, 239, 0.25), 0 6px 24px rgba(51, 230, 239, 0.16);
}

.brand-name {
  display: grid;
  line-height: 1.08;
}

.brand-name strong {
  font-size: 0.93rem;
  letter-spacing: -0.01em;
}

.brand-name span {
  font-size: 0.69rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.site-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(111, 231, 224, 0.09);
}

.site-nav a[aria-current="page"] {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(23, 16, 43, 0.78);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #04202a;
  background: linear-gradient(180deg, #a4f8f4, #6fe7e0);
  box-shadow: 0 10px 28px rgba(111, 231, 224, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-primary:hover {
  color: #04202a;
  box-shadow: 0 14px 32px rgba(111, 231, 224, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-gold {
  color: #241800;
  background: linear-gradient(180deg, #ffdc75, var(--gold));
  box-shadow: 0 10px 28px rgba(255, 201, 71, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-gold:hover {
  color: #241800;
}

.btn-secondary {
  color: var(--text);
  background: rgba(23, 16, 43, 0.78);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: rgba(38, 26, 70, 0.92);
  border-color: var(--cyan);
}

.btn-ghost {
  color: var(--text-soft);
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(111, 231, 224, 0.09);
}

.btn-small {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.btn-wide {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Cards and panels */
.card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(38, 26, 70, 0.76), rgba(10, 6, 22, 0.9)),
    var(--surface);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.card-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(51, 230, 239, 0.26), transparent 35%, transparent 70%, rgba(255, 201, 71, 0.14));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(13, 8, 27, 0.7);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.pill.gold {
  border-color: rgba(255, 210, 77, 0.32);
  color: var(--gold);
}

.pill.cyan {
  border-color: rgba(51, 230, 239, 0.3);
  color: var(--cyan);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(44px, 7vw, 86px) 0 clamp(60px, 8vw, 100px);
}

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

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(51, 230, 239, 0.28), 0 18px 50px rgba(31, 200, 183, 0.2);
}

.hero-brand .name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-brand .publisher {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 1.1rem;
}

.hero .lede {
  margin-bottom: 28px;
  font-size: clamp(1.02rem, 1.9vw, 1.18rem);
  max-width: 600px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-glow {
  position: absolute;
  width: 85%;
  aspect-ratio: 1;
  top: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 156, 255, 0.30), rgba(111, 169, 255, 0.09) 48%, transparent 70%);
  filter: blur(24px);
}

.phone {
  position: relative;
  width: min(320px, 84%);
  padding: 9px;
  border: 1px solid rgba(181, 158, 255, 0.38);
  border-radius: 42px;
  background: linear-gradient(155deg, #2c1d52, #130b26 42%, #05020d);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 70px rgba(180, 156, 255, 0.15);
  transform: rotate(1.5deg);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 50%;
  width: 72px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #020a10;
}

.phone img {
  width: 100%;
  aspect-ratio: 360 / 800;
  object-fit: cover;
  border-radius: 34px;
}

.phone-landscape {
  width: 100%;
  transform: none;
}

.float-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #ffd966;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px currentColor);
  animation: float 6s ease-in-out infinite;
}

.float-tile svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.float-tile.a {
  top: 14%;
  left: -3%;
  color: #b49cff;
  animation-delay: -1s;
}
.float-tile.b {
  bottom: 18%;
  right: -2%;
  color: #ffd966;
  animation-delay: -3s;
  transform: rotate(18deg);
}
.float-tile.c {
  top: 4%;
  right: 4%;
  width: 48px;
  height: 48px;
  color: #78e6b0;
  animation-delay: -4.4s;
}
.float-tile.c svg {
  width: 22px;
  height: 22px;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 8, 27, 0.74);
  overflow: hidden;
}

.feature-strip > div {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.feature-strip > div:last-child {
  border-right: 0;
}

.feature-strip strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.feature-strip span {
  color: var(--muted);
  font-size: 0.8rem;
}

.feature-strip .mini-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(51, 230, 239, 0.1);
}

.feature-strip .mini-icon.gold {
  color: var(--gold);
  background: rgba(255, 201, 71, 0.1);
}
.feature-strip .mini-icon.coral {
  color: var(--coral);
  background: rgba(255, 125, 110, 0.1);
}
.feature-strip .mini-icon.green {
  color: var(--green);
  background: rgba(94, 230, 168, 0.1);
}

.feature-strip svg {
  width: 18px;
  height: 18px;
}

/* How to play steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(38, 26, 70, 0.56), rgba(10, 6, 22, 0.82));
}

.step-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid rgba(51, 230, 239, 0.35);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(111, 231, 224, 0.09);
}

.step-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.step-diagram {
  width: 100%;
  height: 112px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(rgba(181, 158, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 158, 255, 0.06) 1px, transparent 1px),
    rgba(8, 4, 17, 0.82);
  background-size: 25% 50%, 25% 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.step-diagram svg {
  width: 82%;
  height: 82%;
}

/* Demo */
.demo-section {
  position: relative;
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
}

.demo-copy ol {
  margin: 0 0 28px;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.demo-copy li {
  padding: 4px 0;
}

.demo-copy li::marker {
  color: var(--cyan);
  font-weight: 700;
}

.demo-panel {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 76% 12%, rgba(180, 156, 255, 0.16), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(255, 185, 120, 0.07), transparent 36%),
    linear-gradient(160deg, #1a1134, #0b0618 65%);
  box-shadow: var(--shadow);
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.demo-head h3 {
  margin: 0;
  font-size: 1.06rem;
}

.demo-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.demo-stats strong {
  color: var(--text);
  font-weight: 600;
}

.demo-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(5px, 1.4vw, 10px);
  max-width: 440px;
  margin: 0 auto 18px;
  padding: clamp(10px, 2vw, 16px);
  border: 1px solid rgba(181, 158, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle, rgba(203, 188, 255, 0.10) 1px, transparent 1.5px) 0 0 / 20% 20%,
    radial-gradient(circle at 72% 10%, rgba(180, 156, 255, 0.12), transparent 46%),
    linear-gradient(160deg, #17102e, #0b0618 72%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.45), 0 18px 44px rgba(0, 0, 0, 0.3);
}

.demo-cell {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
}

.demo-cell.has-arrow {
  border: 0;
  padding: 0;
  background: transparent;
  transition: transform 130ms ease, filter 130ms ease;
}

.demo-cell.has-arrow:hover {
  transform: translateY(-2px);
}
.demo-cell.has-arrow:hover .arrow-tile {
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px currentColor);
}

.demo-cell.is-blocked {
  animation: shake 320ms ease;
}

.demo-cell.is-leaving {
  animation: escape-out 280ms ease forwards;
}

.demo-cell.is-hint {
  animation: hint-pulse 1s ease-in-out infinite;
}

@keyframes shake {
  0%,
  100% {
    translate: 0 0;
  }
  25% {
    translate: -4px 0;
  }
  50% {
    translate: 4px 0;
  }
  75% {
    translate: -2px 0;
  }
}

@keyframes escape-out {
  to {
    opacity: 0;
    scale: 0.6;
    translate: var(--escape-x, 0) var(--escape-y, 0);
  }
}

@keyframes hint-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 201, 71, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 201, 71, 0.55), 0 0 24px rgba(255, 201, 71, 0.4);
  }
}

.arrow-tile {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--arrow-color, #ffd966);
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 7px currentColor);
  transition: transform 130ms ease, filter 130ms ease;
}

.arrow-tile svg {
  width: 96%;
  height: 96%;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

.arrow-tile.dir-right svg {
  transform: rotate(0deg);
}
.arrow-tile.dir-left svg {
  transform: rotate(180deg);
}
.arrow-tile.dir-up svg {
  transform: rotate(-90deg);
}
.arrow-tile.dir-down svg {
  transform: rotate(90deg);
}

.c1 { --arrow-color: #ffd966; color: #ffd966; }
.c2 { --arrow-color: #78e6b0; color: #78e6b0; }
.c3 { --arrow-color: #b49cff; color: #b49cff; }
.c4 { --arrow-color: #6fa9ff; color: #6fa9ff; }
.c5 { --arrow-color: #ffb07c; color: #ffb07c; }
.c6 { --arrow-color: #d7d0ff; color: #d7d0ff; }

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.demo-message.success {
  color: var(--green);
}

/* Screenshot rail */
.shot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 8px 2px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.shot-card {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, border-color 160ms ease;
}

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

.shot-card img {
  width: 100%;
  aspect-ratio: 720 / 1280;
  object-fit: cover;
}

.shot-card .shot-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.76rem;
}

.shot-card .shot-caption strong {
  color: var(--text-soft);
  font-weight: 600;
}

/* Chapters */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.chapter-card {
  position: relative;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(37, 25, 68, 0.64), rgba(9, 5, 20, 0.86));
  overflow: hidden;
}

.chapter-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--chapter, var(--cyan));
  box-shadow: 0 0 18px var(--chapter, var(--cyan));
}

.chapter-card .chapter-num {
  color: var(--chapter, var(--cyan));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-card h3 {
  font-size: 1.02rem;
  margin: 8px 0 6px;
}

.chapter-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Leaderboard */
.boards {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 22px;
  align-items: start;
}

.board-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(34, 22, 64, 0.72), rgba(7, 4, 16, 0.92));
}

.board-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.board-card-head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(181, 158, 255, 0.08);
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row.is-me {
  background: rgba(51, 230, 239, 0.07);
}

.board-rank {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.board-row:nth-child(1) .board-rank {
  color: var(--gold);
  font-size: 1rem;
}
.board-row:nth-child(2) .board-rank {
  color: #d6e5ea;
}
.board-row:nth-child(3) .board-rank {
  color: var(--orange);
}

.board-player {
  min-width: 0;
}

.board-player strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-player span {
  color: var(--muted);
  font-size: 0.73rem;
}

.board-score {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.board-score strong {
  display: block;
  color: var(--cyan);
  font-size: 0.95rem;
}

.board-score span {
  color: var(--muted);
  font-size: 0.7rem;
}

.board-empty {
  padding: 34px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.board-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
}

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.countdown strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 8, 27, 0.78);
}

.side-card h3 {
  font-size: 1.02rem;
}

.side-card p {
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.score-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.score-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(181, 158, 255, 0.14);
}

.score-list li:last-child {
  border-bottom: 0;
}

.score-list strong {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > label,
.field-label {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: rgba(7, 4, 16, 0.7);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #678693;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(51, 230, 239, 0.13);
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field select option {
  color: var(--text);
  background: #071b2b;
}

.field-hint {
  color: var(--muted);
  font-size: 0.75rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
  flex: none;
}

.form-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-status.error {
  color: var(--coral);
}

.form-status.success {
  color: var(--green);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: rgba(23, 16, 43, 0.78);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 150ms ease, background 150ms ease;
}

.oauth-btn:hover {
  border-color: var(--cyan);
  background: rgba(44, 29, 82, 0.92);
}

.oauth-btn svg {
  width: 18px;
  height: 18px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 4, 16, 0.65);
}

.tab {
  flex: 1;
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected="true"] {
  color: #04202a;
  background: var(--cyan);
}

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

/* Page header */
.page-hero {
  padding: clamp(50px, 7vw, 84px) 0 42px;
}

.page-hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  margin-bottom: 0.8rem;
}

.page-hero .lede {
  max-width: 720px;
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

/* Content pages */
.prose {
  max-width: 800px;
}

.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.prose h3 {
  margin-top: 1.7em;
}

.prose p,
.prose li {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  padding: 3px 0;
}

.prose hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.88rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--text);
  background: rgba(44, 29, 82, 0.7);
}

.prose td {
  color: var(--text-soft);
}

.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--gold);
  background: rgba(255, 201, 71, 0.08);
  font-size: 0.86em;
}

.callout {
  padding: 18px 20px;
  margin: 24px 0;
  border: 1px solid rgba(255, 201, 71, 0.26);
  border-radius: 12px;
  background: rgba(255, 201, 71, 0.06);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.callout strong {
  color: var(--gold);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 8, 27, 0.74);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 160ms ease;
}

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

.faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

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

.gallery .shot-card {
  height: 100%;
}

.gallery .shot-card img {
  aspect-ratio: 720 / 1280;
}

/* Account */
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.auth-card {
  padding: clamp(22px, 4vw, 36px);
}

.auth-head {
  margin-bottom: 24px;
}

.auth-head h2 {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.auth-head p {
  margin: 0;
  font-size: 0.9rem;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: #04202a;
  background: linear-gradient(145deg, var(--cyan), var(--teal));
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 24px rgba(51, 230, 239, 0.18);
}

.profile h2 {
  margin: 0 0 2px;
  font-size: 1.5rem;
}

.profile p {
  margin: 0;
  font-size: 0.82rem;
}

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

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 4, 16, 0.52);
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: 1.28rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 0.72rem;
}

.stat.gold strong {
  color: var(--gold);
}
.stat.cyan strong {
  color: var(--cyan);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.settings-panel {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.settings-panel h3 {
  margin-bottom: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th,
.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(181, 158, 255, 0.10);
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

.danger-zone {
  padding: 18px;
  margin-top: 22px;
  border: 1px solid rgba(255, 125, 110, 0.25);
  border-radius: 12px;
  background: rgba(255, 125, 110, 0.05);
}

.danger-zone h3 {
  color: var(--coral);
  font-size: 0.95rem;
}

.danger-zone p {
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.btn-danger {
  color: #260804;
  background: var(--coral);
  border-color: transparent;
}

.btn-danger:hover {
  color: #260804;
  background: #ff9487;
}

.notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(51, 230, 239, 0.05);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.notice.gold {
  border-color: rgba(255, 201, 71, 0.24);
  background: rgba(255, 201, 71, 0.06);
}

.notice.coral {
  border-color: rgba(255, 125, 110, 0.24);
  background: rgba(255, 125, 110, 0.06);
}

.notice strong {
  color: var(--text);
}

/* Leaderboards page */
.leaderboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.toolbar-group .field {
  min-width: 180px;
}

.toolbar-group .field select {
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.84rem;
}

.leaderboard-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(34, 22, 64, 0.62), rgba(7, 4, 16, 0.92));
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(181, 158, 255, 0.10);
  text-align: left;
}

.leaderboard-table th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(7, 4, 16, 0.48);
}

.leaderboard-table td {
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.leaderboard-table tbody tr:hover {
  background: rgba(51, 230, 239, 0.035);
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.leaderboard-table .rank {
  width: 55px;
  color: var(--muted);
  font-weight: 700;
}

.leaderboard-table tbody tr:nth-child(1) .rank {
  color: var(--gold);
}
.leaderboard-table tbody tr:nth-child(2) .rank {
  color: #d5e4e9;
}
.leaderboard-table tbody tr:nth-child(3) .rank {
  color: var(--orange);
}

.leaderboard-table .player strong {
  color: var(--text);
}

.leaderboard-table .player small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.leaderboard-table .score {
  color: var(--cyan);
  font-weight: 600;
}

.leaderboard-table tr.is-me {
  background: rgba(111, 231, 224, 0.09);
}

.leaderboard-table .flag {
  margin-right: 6px;
}

.table-empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-soft);
}

.rank-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(13, 8, 27, 0.7);
  font-size: 0.75rem;
}

.rank-chip strong {
  color: var(--text);
}

/* Press */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.press-asset {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 8, 27, 0.74);
}

.press-asset img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  object-fit: cover;
}

.press-asset.is-feature {
  grid-column: span 2;
}

.press-asset.is-feature img {
  aspect-ratio: 1024 / 500;
  object-fit: contain;
  background: #0b0618;
}

.press-asset strong {
  font-size: 0.9rem;
}

.press-asset span {
  color: var(--muted);
  font-size: 0.76rem;
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.fact-table th,
.fact-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.fact-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 500;
}

.fact-table td {
  color: var(--text-soft);
}

.fact-table tr:last-child th,
.fact-table tr:last-child td {
  border-bottom: 0;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgba(51, 230, 239, 0.26);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 201, 71, 0.13), transparent 36%),
    radial-gradient(circle at 10% 90%, rgba(51, 230, 239, 0.17), transparent 45%),
    linear-gradient(150deg, #0a2a3d, #041421);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  max-width: 760px;
}

.cta-band p {
  max-width: 620px;
}

.cta-band .button-row {
  margin-top: 22px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 52px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(4, 2, 10, 0.62);
}

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

.footer-brand p {
  max-width: 320px;
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-col h3 {
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--cyan);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.whatsapp-link svg {
  width: 18px;
  height: 18px;
  color: #25d366;
}

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: 340px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: #211540;
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

/* Dialog */
dialog.modal {
  width: min(calc(100% - 32px), 460px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: #17102b;
  box-shadow: var(--shadow);
}

dialog.modal::backdrop {
  background: rgba(0, 6, 11, 0.72);
  backdrop-filter: blur(4px);
}

.modal-body {
  padding: 26px;
}

.modal-body h2 {
  font-size: 1.35rem;
}

.modal-body p {
  font-size: 0.88rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}
.center {
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hidden {
  display: none !important;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid,
  .demo-shell,
  .boards,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero .lede,
  .hero-brand {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .hero-meta,
  .hero .button-row {
    justify-content: center;
  }

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

  .feature-strip > div:nth-child(2) {
    border-right: 0;
  }
  .feature-strip > div:nth-child(1),
  .feature-strip > div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .chapter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .site-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(4, 17, 28, 0.98);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-actions {
    margin-left: 4px;
  }

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

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

@media (max-width: 760px) {
  .container,
  .container-narrow {
    width: min(calc(100% - 28px), var(--max));
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
  }

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

  .site-nav {
    top: 68px;
  }

  .brand-name strong {
    font-size: 0.82rem;
  }

  .brand-name span {
    font-size: 0.61rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-brand img {
    width: 58px;
    height: 58px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.3rem);
  }

  .float-tile {
    width: 46px;
    height: 46px;
  }

  .phone {
    width: min(300px, 88%);
    border-radius: 36px;
  }

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

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

  .form-row,
  .oauth-row,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat {
    padding: 12px;
  }

  .stat strong {
    font-size: 1.05rem;
  }

  .gallery,
  .press-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4),
  .leaderboard-table th:nth-child(5),
  .leaderboard-table td:nth-child(5) {
    display: none;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 11px 12px;
  }

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

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

  .demo-stats {
    gap: 8px;
    font-size: 0.74rem;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-strip > div:last-child {
    border-bottom: 0;
  }

  .cta-band {
    border-radius: 18px;
  }

  .prose table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 460px) {
  .chapter-grid {
    grid-template-columns: 1fr;
  }

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

  .oauth-row {
    grid-template-columns: 1fr;
  }

  .board-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 12px 16px;
  }

  .board-card-head {
    padding: 16px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .phone {
    width: 92%;
  }
}

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

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

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

/* Chapter accents */
.chapter-1 { --chapter: #33e6ef; }
.chapter-2 { --chapter: #a78bfa; }
.chapter-3 { --chapter: #5ee6a8; }
.chapter-4 { --chapter: #ffc947; }
.chapter-5 { --chapter: #ff7d6e; }

/* Floating direction */
.float-tile.dir-left svg { transform: rotate(180deg); }
.float-tile.dir-up svg { transform: rotate(-90deg); }
.float-tile.dir-down svg { transform: rotate(90deg); }

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: rgba(5, 22, 36, 0.72);
  text-decoration: none;
}
.store-badge.is-soon {
  cursor: default;
  opacity: 0.72;
}
.store-badge svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.store-badge span {
  display: grid;
  line-height: 1.15;
}
.store-badge small {
  color: var(--muted);
  font-size: 0.61rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.store-badge strong {
  font-size: 0.86rem;
  font-weight: 600;
}

/* Press strip and screenshot detail */
.press-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 8, 27, 0.74);
  color: var(--muted);
  font-size: 0.84rem;
}
.press-note strong { color: var(--text-soft); }

/* Simple flow diagram */
.flow-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 8, 27, 0.74);
}
.flow-line .node {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.82rem;
}
.flow-line .node strong { display: block; color: var(--text); font-size: 1rem; }
.flow-line .arrow-line {
  color: var(--cyan);
  font-size: 1.4rem;
  line-height: 1;
}

/* Demo exit directions */
.demo-cell.leave-left { animation: leave-left 280ms ease forwards; }
.demo-cell.leave-right { animation: leave-right 280ms ease forwards; }
.demo-cell.leave-up { animation: leave-up 280ms ease forwards; }
.demo-cell.leave-down { animation: leave-down 280ms ease forwards; }

@keyframes leave-left { to { opacity: 0; translate: -46px 0; scale: .7; } }
@keyframes leave-right { to { opacity: 0; translate: 46px 0; scale: .7; } }
@keyframes leave-up { to { opacity: 0; translate: 0 -46px; scale: .7; } }
@keyframes leave-down { to { opacity: 0; translate: 0 46px; scale: .7; } }

/* Honeypot: visually hidden, still submitted by bots. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.rule {
  height: 0;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.callback-logo {
  margin-inline: auto;
  margin-bottom: 20px;
}
.center-actions {
  justify-content: center;
}

.error-title { font-size: clamp(2.3rem, 8vw, 4rem); }
.error-lede { margin-inline: auto; }
