:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --surface: rgba(0, 0, 0, 0.03);
  --surface-strong: rgba(0, 0, 0, 0.06);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #090909;
  --muted: #6b7280;
  --yellow: #111111;
  --accent: #111111;
  --accent-2: #2f2f2f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.04), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 50%, #f4f4f4 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.site-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 28px 72px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-links a { transition: color 0.18s ease, opacity 0.18s ease; }
.nav-links a:hover { color: var(--text); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111111;
  display: block;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 29;
}
.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 320px);
  height: 100vh;
  padding: 18px;
  background: rgba(255,255,255,0.98);
  border-left: 1px solid rgba(0,0,0,0.08);
  box-shadow: -20px 0 50px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  z-index: 30;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-weight: 800;
}
.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
}
.mobile-drawer-links {
  display: grid;
  gap: 10px;
}
.mobile-drawer-links a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 56px;
  align-items: center;
  padding: 42px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111111;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.hero h1,
.section h2 {
  margin: 0 0 16px;
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.hero h1 {
  font-size: clamp(3.3rem, 7vw, 6.1rem);
  max-width: 760px;
}
.section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-text,
.section-heading p,
.feature-card p,
.step-card p,
.cta-card p,
.footer p,
.legal-copy p,
.legal-copy li,
.screen-copy p,
.battle-card-body p,
.story-step p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.hero-copy { max-width: 680px; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 20px;
}
.store-badge-link {
  display: inline-flex;
  align-items: center;
}
.store-badge {
  display: block;
  height: 52px;
  width: auto;
  border-radius: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}
.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
}

.hero-highlights {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-highlights span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
}

.hero-proof-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.hero-proof-points article {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.hero-proof-points strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.hero-proof-points p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.hero-card {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 8% 12%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), transparent 60%);
  filter: blur(28px);
  z-index: 0;
}

.phone-frame,
.story-phone-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  border-radius: 38px;
  padding: 14px;
  background: linear-gradient(180deg, #1a1a1a, #050505);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.18);
}
.phone-frame-hero { padding: 16px; }
.hero-app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: #ffffff;
}
.hero-app-topbar strong {
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}
.hero-app-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #111111;
  font-weight: 800;
}
.hero-app-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.hero-app-tabs span {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.62);
  text-align: center;
  font-weight: 700;
}
.hero-app-tabs span.is-active {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}
.hero-publish-card {
  background: linear-gradient(180deg, #101010, #171717);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 20px;
}
.hero-live-demo { overflow: hidden; }
.hero-stage { display: none; }
.hero-stage.is-visible { display: block; }
.hero-publish-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.hero-form-block { margin-top: 14px; }
.hero-input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.hero-input-field {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-input-field label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,0.52);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-input-value {
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
}
.hero-status-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-publish-card h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.hero-publish-card p { margin: 0; color: rgba(255,255,255,0.68); }
.hero-publish-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: rgba(255,255,255,0.68);
  font-size: 0.86rem;
}
.hero-publish-meta strong { color: #ffffff; }
.hero-cover-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 12px;
}
.hero-toast {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: #22c55e;
  font-size: 0.86rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hero-toast.is-visible { opacity: 1; transform: translateY(0); }
.hero-cover-thumb {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.hero-publish-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.hero-mini-note { color: rgba(255,255,255,0.62); font-size: 0.84rem; }
.hero-publish-button {
  border: 0;
  border-radius: 14px;
  background: #ffd54f;
  color: #111111;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 12px 24px rgba(255, 213, 79, 0.18);
}
.hero-cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-vote-bar {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.hero-vote-left { width: 58%; background: #ffd54f; }
.hero-vote-right { width: 42%; background: #22c55e; }
.hero-vote-row-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #ffffff;
  font-size: 0.94rem;
}
.hero-engagement-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-top: 16px;
}
.hero-creator-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}
.hero-live-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
}
.hero-form-block,
#hero-cover-row,
.hero-publish-action-row { transition: opacity 0.3s ease, transform 0.3s ease; }
.hero-hidden-stage { opacity: 0.16; transform: translateY(-4px); }
.phone-header { display: flex; gap: 8px; margin-bottom: 16px; }
.dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.dot-red, .dot-yellow, .dot-green { background: rgba(255,255,255,0.25); }

.battle-preview {
  background: linear-gradient(180deg, #101010, #171717);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 22px;
}
.preview-logo-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.preview-logo {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}
.tag {
  display: inline-block;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}
.battle-preview h3 { margin: 18px 0 6px; font-size: 1.75rem; letter-spacing: -0.03em; }
.vote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.vote {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
}
.vote strong { display: block; font-size: 1.55rem; margin-bottom: 6px; }
.vote-left, .vote-right { border: 1px solid rgba(255,255,255,0.09); }
.creator-row { display: flex; align-items: center; gap: 12px; }
.creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #111111;
  font-weight: 800;
}

.section { padding: 54px 0; }
.alt-section { padding-top: 18px; }
.section-heading {
  margin-bottom: 28px;
  max-width: 760px;
}
.section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
}

.feature-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-showcase {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.step-card,
.cta-card,
.legal-shell,
.screen-card,
.battle-card-web,
.story-step {
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(250,250,250,0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.feature-card,
.step-card,
.cta-card,
.legal-shell { padding: 24px; }

.feature-showcase .feature-card {
  text-align: center;
}

.feature-showcase .feature-card p {
  margin-left: auto;
  margin-right: auto;
  max-width: 30ch;
}

.feature-showcase .feature-card-large p {
  max-width: 42ch;
}
.feature-card-large {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff, #f1f1f1);
}
.feature-kicker {
  color: #111111;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.feature-card h3,
.step-card h3,
.screen-copy h3,
.battle-card-body h3,
.story-step h3 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

#popular-battles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.popular-battles-mobile-hint { display: none; }

.battle-card-web { overflow: hidden; }
.battle-card-appish {
  background: linear-gradient(180deg, #171717, #0c0c0c);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.battle-card-body { padding: 20px; }
.battle-card-body-appish { padding: 18px 18px 20px; }
.battle-top-row-web {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.battle-creator-head-web {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.battle-avatar-web,
.battle-avatar-fallback-web {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  flex: 0 0 38px;
}
.battle-avatar-web { object-fit: cover; display: block; }
.battle-avatar-fallback-web {
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #ffffff;
  color: #111111;
}
.battle-creator-meta-web { min-width: 0; }
.battle-creator-name-web {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.battle-verified { color: #ffffff; font-size: 0.78rem; opacity: 0.8; }
.battle-date-web {
  margin-top: 3px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.battle-category-pill-web {
  white-space: nowrap;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.battle-card-body-appish h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.28rem;
  line-height: 1.15;
}
.battle-matchup-web { margin: 0; color: rgba(255,255,255,0.65); font-size: 0.98rem; }
.battle-matchup-web span { opacity: 0.78; }
.battle-brief-web {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  line-height: 1.4;
}
.battle-thumb-row-web {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.battle-thumb-web {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.battle-image-web {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.battle-thumb-image-web { border-radius: 14px; }
.battle-progress-web {
  display: flex;
  width: 100%;
  height: 14px;
  margin-top: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.battle-progress-left-web { background: #ffffff; min-width: 1%; }
.battle-progress-right-web { background: #7a7a7a; min-width: 1%; }
.battle-percent-row-web {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #ffffff;
  font-size: 0.96rem;
}
.battle-percent-row-web span:last-child { text-align: right; }
.battle-votes-web {
  margin-top: 10px;
  color: rgba(255,255,255,0.66);
  font-size: 0.92rem;
}

.screenshot-story-section { padding-top: 34px; }
.screenshot-story-section .section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}
.screenshot-story {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
}
.screenshot-phone-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.story-phone-shell {
  width: min(100%, 410px);
  margin: 0 auto;
  transition: transform 0.18s ease-out;
}
.story-progress {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 72px;
  margin: 0 auto 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.story-phone-notch {
  width: 38%;
  height: 26px;
  margin: 0 auto 10px;
  background: #000;
  border-radius: 0 0 18px 18px;
}
.story-phone-screen {
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  aspect-ratio: 9 / 19.5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.story-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.screenshots-mobile-wrap { display: none; width: 100%; }
.story-mobile-flow { display: none; }
.screenshots-mobile-hint { display: none; }
.story-mobile-pair {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(250,250,250,0.92));
}
.story-mobile-copy { padding: 22px; margin: 0; }
.story-mobile-copy h3 { margin: 0 0 10px; }
.story-mobile-copy p { margin: 0; }
.story-mobile-shot {
  padding: 12px;
  background: linear-gradient(180deg, #171717, #0c0c0c);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.story-mobile-shot img {
  width: 100%;
  display: block;
  border-radius: 18px;
}
.story-steps { display: grid; gap: 0; }
.story-step {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 34px 34px 40px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0.52;
}
.story-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 3px;
  height: calc(100% - 36px);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.22s ease, transform 0.22s ease;
}
.story-step:nth-child(odd) .story-step-label::before,
.story-step:nth-child(even) .story-step-label::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  transform: translateY(-50%);
}
.story-step:nth-child(odd) .story-step-label::before { background: #ffd54f; }
.story-step:nth-child(even) .story-step-label::before { background: #22c55e; }
.story-step::after {
  content: '';
  position: absolute;
  inset: calc(50% - 104px) 0 auto 16px;
  height: 208px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,247,247,0.94));
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
  z-index: -1;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}
.story-step.is-active { opacity: 1; transform: translateX(6px); }
.story-step.is-active::before {
  width: 4px;
  height: 92px;
  background: linear-gradient(180deg, #111111, #5a5a5a);
  border-radius: 999px;
}
.story-step.is-active::after {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 28px 70px rgba(0,0,0,0.09);
}
.story-step-label {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
  padding-left: 2px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
}
.story-step h3,
.story-step p,
.story-step-label {
  position: relative;
  z-index: 1;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.story-step h3,
.story-step p { transform: translateX(18px); opacity: 0.42; }
.story-step.is-active h3,
.story-step.is-active p { transform: translateX(0); opacity: 1; }

.cta-section { padding-bottom: 76px; }
.cta-card {
  text-align: center;
  padding: 42px 28px;
}
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.legal-shell { max-width: 860px; margin: 42px auto; }
.legal-copy h1 { margin-top: 0; font-size: clamp(2rem, 4vw, 3rem); }
.legal-copy h2 { margin-top: 28px; font-size: 1.3rem; }
.legal-copy ul { padding-left: 20px; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.support-card {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .section-heading-split,
  .feature-showcase { grid-template-columns: 1fr; }
  .screenshot-phone-stage {
    position: static;
    height: auto;
    margin-bottom: 24px;
    display: none;
  }
  .story-steps { display: none; }
  .screenshots-mobile-wrap {
    display: block;
    width: 100%;
  }
  .story-mobile-flow {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 8px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .story-mobile-flow::-webkit-scrollbar { display: none; }
  .story-mobile-flow .story-mobile-pair {
    flex: 0 0 calc(100vw - 36px);
    width: calc(100vw - 36px);
    min-width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    scroll-snap-align: start;
  }
  .screenshots-mobile-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }
  .screenshots-mobile-hint p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
  }
  .screenshot-dots { display: flex; gap: 8px; }
  .screenshot-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
  }
  .screenshot-dots span.is-active { background: #111111; }
  .story-step::before,
  .story-step::after { display: none; }
}

@media (max-width: 900px) {
  #popular-battles-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: stretch;
    padding: 0 0 8px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #popular-battles-grid::-webkit-scrollbar { display: none; }
  #popular-battles-grid > *,
  #popular-battles-grid .popular-battle-slide,
  #popular-battles-grid .feature-card {
    flex: 0 0 calc(100vw - 36px) !important;
    width: calc(100vw - 36px) !important;
    min-width: calc(100vw - 36px) !important;
    max-width: calc(100vw - 36px) !important;
    scroll-snap-align: start;
  }
  .popular-battles-mobile-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }
  .popular-battles-mobile-hint p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
  }
  #popular-battles-grid .battle-card-body-appish { padding: 16px; }
  #popular-battles-grid .battle-card-body-appish h3 {
    font-size: 1.04rem;
    line-height: 1.18;
  }
  #popular-battles-grid .battle-matchup-web,
  #popular-battles-grid .battle-brief-web,
  #popular-battles-grid .battle-votes-web,
  #popular-battles-grid .battle-date-web,
  #popular-battles-grid .battle-percent-row-web {
    font-size: 0.82rem;
  }
  #popular-battles-grid .battle-top-row-web {
    gap: 10px;
    margin-bottom: 12px;
  }
  #popular-battles-grid .battle-avatar-web,
  #popular-battles-grid .battle-avatar-fallback-web {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }
  #popular-battles-grid .battle-thumb-row-web {
    gap: 8px;
    margin-top: 12px;
  }
  #popular-battles-grid .battle-progress-web {
    height: 12px;
    margin-top: 14px;
  }
  #popular-battles-grid .tag {
    padding: 6px 9px;
    font-size: 0.68rem;
  }
  .feature-grid,
  .steps,
  .support-grid,
  .feature-showcase,
  .hero-proof-points,
  .section-heading-split { grid-template-columns: 1fr; }
  .topbar {
    position: static;
    align-items: center;
    overflow: visible;
    padding: 12px 14px;
  }
  .site-shell { padding: 18px 18px 44px; }
  .hero { padding-top: 24px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  .mobile-drawer {
    width: min(88vw, 320px);
    padding: 16px;
  }
  .mobile-drawer-links a {
    padding: 13px 14px;
    font-size: 0.96rem;
  }
  .site-shell { padding: 18px 16px 40px; }
  .hero {
    gap: 28px;
    padding: 18px 0 54px;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.7rem);
    letter-spacing: -0.06em;
  }
  .hero-text,
  .section-heading p,
  .feature-card p,
  .step-card p,
  .cta-card p,
  .footer p,
  .legal-copy p,
  .legal-copy li,
  .battle-card-body p,
  .story-step p {
    font-size: 0.95rem;
    line-height: 1.62;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 22px 0 16px;
  }
  .hero-store-actions { align-items: stretch; }
  .hero-preview-link {
    min-height: 46px;
    padding: 12px 16px;
    font-size: 0.92rem;
  }
  .btn { width: 100%; }
  .store-badge-link {
    width: 100%;
    justify-content: flex-start;
  }
  .store-badge { height: 50px; }
  .hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-highlights span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    font-size: 0.8rem;
    padding: 8px 10px;
    text-align: center;
  }
  .hero-highlights span:last-child { grid-column: 1 / -1; }
  .phone-frame-hero {
    width: min(100%, 388px);
    padding: 12px;
    border-radius: 32px;
  }
  .hero-app-topbar { margin-bottom: 10px; }
  .hero-app-topbar strong { font-size: 1rem; }
  .hero-app-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.86rem;
  }
  .hero-app-tabs {
    gap: 6px;
    margin-bottom: 12px;
  }
  .hero-app-tabs span {
    padding: 9px 10px;
    font-size: 0.84rem;
  }
  .hero-publish-card {
    min-height: 470px;
    padding: 16px;
    border-radius: 22px;
  }
  .hero-input-field {
    padding: 10px 12px;
    border-radius: 14px;
  }
  .hero-input-field label { font-size: 0.68rem; }
  .hero-input-value { font-size: 0.86rem; }
  .hero-cover-row {
    gap: 6px;
    margin: 12px 0 10px;
  }
  .hero-cover-thumb { border-radius: 12px; }
  .hero-publish-button {
    padding: 11px 14px;
    font-size: 0.86rem;
  }
  .hero-mini-note,
  .hero-live-stack,
  .hero-post-date,
  .hero-post-metrics { font-size: 0.8rem; }
  .hero-post-card h4 { font-size: 1.02rem; }
  .hero-post-matchup,
  .hero-vote-row-copy { font-size: 0.84rem; }
  .hero-proof-points {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }
  .hero-proof-points article {
    padding: 14px 16px;
    border-radius: 18px;
  }
  .hero-proof-points strong {
    margin-bottom: 4px;
    font-size: 0.94rem;
  }
  .hero-proof-points p {
    font-size: 0.84rem;
    line-height: 1.5;
  }
  .hero-engagement-footer {
    gap: 10px;
    margin-top: 12px;
  }
  .hero-creator-logo {
    width: 36px;
    height: 36px;
  }
}
