:root {
  --bg: #070b12;
  --bg-soft: #0d1320;
  --bg-elev: rgba(255, 255, 255, .06);
  --panel: rgba(255, 255, 255, .06);
  --panel-2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .11);
  --text: #eef3fb;
  --muted: #9ca8bd;

  --accent: #ff7a18;
  --accent-2: #ffb800;
  --accent-3: #ff4d4d;
  --gold: #ffd166;

  --success: #4ee29e;
  --danger: #ff627d;
  --shadow: 0 18px 60px rgba(0, 0, 0, .35);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
  --header-bg: rgba(7, 11, 18, .72);

  --hero-glow-1: rgba(255, 122, 24, .28);
  --hero-glow-2: rgba(255, 184, 0, .16);
  --hero-glow-3: rgba(255, 77, 77, .15);

  --tile-bg: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
  --theme-icon-sun: 0;
  --theme-icon-moon: 1;
  --news-bg: rgba(255, 255, 255, .05);
  --phone-safe-bottom: env(safe-area-inset-bottom, 0px);
}

body[data-theme="light"] {
  --bg: #f4f7fc;
  --bg-soft: #ffffff;
  --bg-elev: rgba(16, 24, 40, .04);
  --panel: rgba(255, 255, 255, .82);
  --panel-2: rgba(255, 255, 255, .94);
  --line: rgba(16, 24, 40, .09);
  --text: #111827;
  --muted: #667085;
  --accent: #ff7a18;
  --accent-2: #ffb800;
  --accent-3: #ff4d4d;
  --gold: #ffd166;
  --success: #11a36a;
  --danger: #d8345f;
  --shadow: 0 18px 55px rgba(17, 24, 39, .08);
  --header-bg: rgba(244, 247, 252, .76);
  --hero-glow-1: rgba(255, 122, 24, .28);
  --hero-glow-2: rgba(255, 184, 0, .16);
  --hero-glow-3: rgba(255, 77, 77, .15);
  --tile-bg: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(248, 250, 252, .92));
  --theme-icon-sun: 1;
  --theme-icon-moon: 0;
  --news-bg: rgba(17, 24, 39, .03);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, var(--hero-glow-1), transparent 22%),
    radial-gradient(circle at 90% 10%, var(--hero-glow-2), transparent 24%),
    radial-gradient(circle at 50% 100%, var(--hero-glow-3), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 88%, #000 12%) 100%);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background .35s ease, color .25s ease;
}

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

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

.container {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  position: relative;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, .22) 18%, transparent 25%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px color-mix(in oklab, var(--accent) 45%, transparent);
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .35);
}

.brand-name {
  font-size: 19px;
  font-weight: 950;
  letter-spacing: .14em;
  white-space: nowrap;
}

.brand-logo {
  height: 64px;
  width: auto;
}

body[data-theme="light"] .brand-logo {
  content: url("https://torqon.app/static/images/logo-black.png");
}

body[data-theme="dark"] .brand-logo {
  content: url("https://torqon.app/static/images/logo-Photoroom_no_text.png");
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
  color: var(--text);
}

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

.theme-toggle svg {
  position: absolute;
  width: 19px;
  height: 19px;
  transition: opacity .25s ease, transform .25s ease;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.theme-toggle .sun {
  opacity: var(--theme-icon-sun);
  transform: scale(calc(.8 + .2 * var(--theme-icon-sun))) rotate(calc(25deg - 25deg * var(--theme-icon-sun)));
}

.theme-toggle .moon {
  opacity: var(--theme-icon-moon);
  transform: scale(calc(.8 + .2 * var(--theme-icon-moon))) rotate(calc(-25deg + 25deg * var(--theme-icon-moon)));
}

.btn {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}

.auth-page .btn,
.auth-panel .btn,
.social-grid .btn {
  width: 100%;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent-3) 55%, var(--accent) 45%));
  box-shadow: 0 14px 34px color-mix(in oklab, var(--accent) 34%, transparent);
}

.btn-secondary {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

.btn-social {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

.section {
  padding: 84px 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(8, 12, 18, .46);
  backdrop-filter: blur(12px);
  color: color-mix(in oklab, var(--text) 84%, transparent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  width: fit-content;
}

body[data-theme="light"] .eyebrow {
  background: rgba(255, 255, 255, .64);
  border-color: rgba(17, 24, 39, .08);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 20px color-mix(in oklab, var(--accent) 45%, transparent);
  flex: 0 0 auto;
}

.section-title {
  margin: 16px 0 14px;
  max-width: 920px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .96;
  letter-spacing: -.05em;
  font-weight: 1000;
}

.section-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.hero {
  padding: 26px 0 44px;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 24px;
  align-items: center;
  min-height: calc(100svh - 100px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--text) 85%, transparent);
}

.hero-title {
  margin: 18px 0 18px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: .9;
  font-weight: 1000;
  max-width: 820px;
}

.hero-title .glow,
.showcase-title .glow {
  background: linear-gradient(
    135deg,
    var(--text),
    color-mix(in oklab, var(--accent-2) 48%, var(--text) 52%),
    color-mix(in oklab, var(--accent) 62%, var(--text) 38%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 660px;
  margin: 0 0 26px;
  color: color-mix(in oklab, var(--text) 78%, transparent);
  font-size: 19px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-chip {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  color: color-mix(in oklab, var(--text) 80%, transparent);
}

.hero-stage {
  position: relative;
  min-height: 680px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01)),
    linear-gradient(135deg, color-mix(in oklab, var(--accent) 12%, transparent), color-mix(in oklab, var(--accent-2) 10%, transparent)),
    linear-gradient(180deg, color-mix(in oklab, var(--bg-soft) 88%, #000 12%), color-mix(in oklab, var(--bg) 86%, #000 14%));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.hero-stage::before,
.auth-showcase::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 26%, transparent), transparent 64%);
  filter: blur(42px);
  z-index: 0;
  animation: driftGlow 7s ease-in-out infinite alternate;
}

.hero-stage::after,
.auth-showcase::after {
  content: "";
  position: absolute;
  inset: auto auto -16% -10%;
  width: 58%;
  aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-2) 24%, transparent), transparent 66%);
  filter: blur(42px);
  z-index: 0;
  animation: driftGlow 9s ease-in-out infinite alternate-reverse;
}

@keyframes driftGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -14px, 0) scale(1.08);
  }
}

.track-grid,
.showcase-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .18));
  opacity: .22;
  pointer-events: none;
}

.hero-video-wrap,
.showcase-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-video-wrap::after,
.showcase-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-video-wrap::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, .10) 0%, rgba(5, 8, 14, .22) 38%, rgba(5, 8, 14, .55) 100%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .05), transparent 42%);
}

.showcase-video-wrap::after {
  background:
    linear-gradient(180deg, rgba(5, 8, 14, .12) 0%, rgba(5, 8, 14, .26) 38%, rgba(5, 8, 14, .70) 100%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .05), transparent 42%);
}

body[data-theme="light"] .hero-video-wrap::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .10) 38%, rgba(255, 255, 255, .32) 100%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .12), transparent 42%);
}

body[data-theme="light"] .showcase-video-wrap::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .08) 38%, rgba(255, 255, 255, .42) 100%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .12), transparent 42%);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05) brightness(.88);
  transform: scale(1.02);
}

.showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.06) brightness(.84);
  transform: scale(1.02);
}

.stage-overlay {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.live-pill,
.queue-pill {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 12, 18, .5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body[data-theme="light"] .live-pill,
body[data-theme="light"] .queue-pill {
  background: rgba(255, 255, 255, .66);
}

.live-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--danger) 16%, transparent);
  animation: pulse 1.6s infinite;
  flex: 0 0 auto;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.16);
    opacity: .75;
  }
}

.stage-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-self: stretch;
}

.stage-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(8, 12, 18, .56);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .11);
  min-height: 92px;
  transition: transform .2s ease, background .2s ease;
}

body[data-theme="light"] .stage-card {
  background: rgba(255, 255, 255, .72);
}

.stage-card strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stage-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -.05em;
}

.stage-subvalue {
  margin-top: 8px;
  font-size: 14px;
  color: color-mix(in oklab, var(--text) 78%, transparent);
  min-height: 21px;
}

.mobile-dock {
  display: none;
}

.grid-3,
.grid-4,
.split,
.club-grid,
.device-grid,
.news-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

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

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

.split {
  grid-template-columns: 1.04fr .96fr;
}

.club-grid {
  grid-template-columns: 1.06fr .94fr;
}

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

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

.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--tile-bg);
  border: 1px solid color-mix(in oklab, var(--accent) 10%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::before {
  content: none;
}

.card-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 950;
}

.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.step-index {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--accent-2) 50%, var(--text) 50%);
}

.micro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--news-bg);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.hook-card {
  min-height: 450px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .18)),
    linear-gradient(135deg, color-mix(in oklab, var(--accent) 14%, transparent), color-mix(in oklab, var(--accent-2) 10%, transparent));
}

.hook-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-2) 16%, transparent), transparent 60%);
  filter: blur(30px);
}

.hook-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-end;
}

.hook-main {
  font-size: clamp(30px, 4vw, 46px);
  line-height: .97;
  letter-spacing: -.04em;
  font-weight: 1000;
  margin: 0;
  max-width: 590px;
}

.hook-main .faint {
  color: color-mix(in oklab, var(--text) 58%, transparent);
}

.bullet-stack {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.bullet {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--news-bg);
}

.bullet h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.bullet p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.club-hero {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .02)),
    linear-gradient(135deg, color-mix(in oklab, var(--accent) 12%, transparent), color-mix(in oklab, var(--gold) 12%, transparent));
}

.club-champion {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  margin-top: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}

.club-cup {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--gold) 70%, white 30%), color-mix(in oklab, var(--gold) 88%, #5a430d 12%));
  color: #231600;
  box-shadow: 0 10px 24px rgba(247, 200, 102, .25);
}

.club-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex: 0 0 auto;
  overflow: hidden;
}

.club-logo::before {
  content: none;
}

.club-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.club-name {
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-note {
  font-size: 13px;
  color: var(--muted);
}

.prestige-value {
  text-align: right;
  font-size: 24px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -.04em;
  color: color-mix(in oklab, var(--gold) 78%, var(--text) 22%);
}

.prestige-label {
  margin-top: 6px;
  text-align: right;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.club-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.club-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--news-bg);
  border: 1px solid var(--line);
}

.club-rank {
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: -.03em;
}

.club-row .club-name {
  font-size: 16px;
}

.club-score {
  font-size: 15px;
  font-weight: 900;
  color: color-mix(in oklab, var(--gold) 70%, var(--text) 30%);
}

.prestige-track {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--news-bg);
  border: 1px solid var(--line);
}

.prestige-track-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.prestige-track-title {
  font-size: 16px;
  font-weight: 900;
}

.track-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  position: relative;
}

.track-fill {
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold));
  box-shadow: 0 0 24px color-mix(in oklab, var(--accent) 30%, transparent);
  position: relative;
}

.track-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: shine 2.2s linear infinite;
}

@keyframes shine {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(110%);
  }
}

.prestige-points {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.theme-showcase,
.device-card,
.news-card {
  min-height: 100%;
}

.device-card h3,
.news-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 950;
}

.device-card p,
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.theme-preview {
  margin-top: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
}

.preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.preview-dots {
  display: flex;
  gap: 8px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.preview-body {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 12px;
  padding: 16px;
}

.preview-card {
  min-height: 110px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
}

.preview-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.preview-lines {
  display: grid;
  gap: 8px;
}

.preview-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

body[data-theme="light"] .preview-lines span {
  background: rgba(17, 24, 39, .08);
}

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

.metric {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--tile-bg);
  box-shadow: var(--shadow);
}

.metric-value {
  font-size: 42px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -.05em;
  margin-bottom: 8px;
}

.metric-text {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.final-cta {
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--accent) 12%, transparent), color-mix(in oklab, var(--accent-2) 10%, transparent)),
    var(--tile-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.final-cta::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -240px;
  top: -220px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 18%, transparent), transparent 62%);
  pointer-events: none;
}

.final-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.final-title {
  margin: 14px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .96;
  font-weight: 1000;
  letter-spacing: -.05em;
  max-width: 760px;
}

.final-text {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mini-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
}

body[data-theme="light"] .mini-card {
  background: rgba(255, 255, 255, .78);
}

.mini-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 34px 0 calc(44px + var(--phone-safe-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer-links a:hover,
.auth-links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(.985);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--delay, 0ms);
}

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

.sticky-cta {
  position: relative;
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(124, 140, 255, .06));
  border: 1px solid rgba(255, 255, 255, .11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.sticky-cta strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.sticky-cta span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}

body[data-theme="light"] .sticky-cta {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .94));
  border: 1px solid rgba(17, 24, 39, .08);
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
}

/* =========================
   AUTH
========================= */

.auth-page {
  padding: 28px 0 36px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  align-items: stretch;
}

.auth-showcase,
.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-showcase {
  min-height: 720px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01)),
    linear-gradient(135deg, color-mix(in oklab, var(--accent) 12%, transparent), color-mix(in oklab, var(--accent-2) 10%, transparent)),
    linear-gradient(180deg, color-mix(in oklab, var(--bg-soft) 88%, #000 12%), color-mix(in oklab, var(--bg) 86%, #000 14%));
  isolation: isolate;
}

.showcase-content {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.showcase-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
}

.showcase-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 74px);
  line-height: .92;
  letter-spacing: -.05em;
  font-weight: 1000;
  max-width: 760px;
}

.showcase-text {
  margin: 0;
  max-width: 560px;
  color: color-mix(in oklab, var(--text) 80%, transparent);
  font-size: 18px;
}

.showcase-stack {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.showcase-chip {
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(8, 12, 18, .52);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .11);
}

body[data-theme="light"] .showcase-chip {
  background: rgba(255, 255, 255, .70);
  border-color: rgba(17, 24, 39, .08);
}

.showcase-chip-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 12%, transparent);
}

.showcase-chip strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.showcase-chip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.auth-card {
  background: var(--tile-bg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 18%, transparent), transparent 68%);
  pointer-events: none;
}

.auth-card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: color-mix(in oklab, var(--text) 84%, transparent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.auth-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), var(--accent));
  box-shadow: 0 0 18px color-mix(in oklab, var(--success) 34%, transparent);
}

.auth-title {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .94;
  letter-spacing: -.05em;
  font-weight: 1000;
}

.auth-text {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.auth-panel {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(14px);
}

body[data-theme="light"] .auth-panel {
  background: rgba(255, 255, 255, .76);
}

.social-grid,
.input-group {
  display: grid;
  gap: 12px;
}

.social-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

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

.field-label {
  font-size: 13px;
  font-weight: 800;
  color: color-mix(in oklab, var(--text) 84%, transparent);
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0 16px;
  outline: none;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.input.phone-mode {
  padding-right: 150px;
}

.input:focus {
  border-color: color-mix(in oklab, var(--accent) 64%, white 36%);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}

.phone-pill {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: none;
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

.phone-pill.show {
  display: inline-flex;
}

.field-hint {
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
}

.field-hint.active {
  color: color-mix(in oklab, var(--accent) 70%, var(--text) 30%);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.checkbox-row a {
  color: var(--text);
}

.auth-links {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.auth-mini {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.auth-mini-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.auth-links a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--accent) 55%, transparent);
  transition: color .18s ease, text-decoration-color .18s ease, opacity .18s ease;
}

.auth-links a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

body[data-theme="light"] .auth-mini-card {
  background: rgba(255, 255, 255, .62);
}

.auth-mini-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.auth-mini-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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

@media (max-width: 1100px) {
  .hero-grid,
  .split,
  .club-grid,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .metrics-grid,
  .news-grid {
    grid-template-columns: 1.3fr .85fr .85fr;
  }

  .hero-stage {
    min-height: 560px;
  }
}

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

  .auth-showcase {
    min-height: 540px;
  }
}

@media (max-width: 760px) {
  .nav,
  .site-header .btn-primary {
    display: none;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .container {
    width: min(var(--container), calc(100% - 18px));
  }

  .brand-name {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 16px 0 28px;
  }

  .hero-grid {
    min-height: auto;
    gap: 16px;
  }

  .hero-title {
    font-size: clamp(40px, 12.6vw, 60px);
    line-height: .92;
    margin: 14px 0 14px;
  }

  .hero-text,
  .section-subtitle,
  .final-text,
  .auth-text {
    font-size: 16px;
  }

  .hero-stage {
    min-height: 440px;
    border-radius: 26px;
  }

  .stage-panels,
  .grid-3,
  .grid-4,
  .device-grid,
  .news-grid,
  .metrics-grid,
  .mini-grid,
  .preview-body,
  .auth-mini,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .final-cta {
    padding: 20px;
    border-radius: 22px;
  }

  .club-champion {
    grid-template-columns: auto 1fr;
  }

  .club-champion > :last-child {
    grid-column: 1 / -1;
  }

  .club-row {
    grid-template-columns: 38px 1fr;
  }

  .club-score {
    grid-column: 2;
  }

  .stage-value {
    font-size: 24px;
  }

  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + var(--phone-safe-bottom));
    z-index: 70;
    pointer-events: none;
  }

  .mobile-dock .btn,
  .mobile-dock .theme-toggle,
  .mobile-dock .palette-toggle {
    pointer-events: auto;
    min-height: 52px;
    width: 100%;
    justify-content: center;
    backdrop-filter: blur(14px);
    background: color-mix(in oklab, var(--bg-soft) 74%, transparent);
    border-color: color-mix(in oklab, var(--line) 95%, transparent);
  }

  body[data-theme="light"] .mobile-dock .btn,
  body[data-theme="light"] .mobile-dock .theme-toggle {
    background: rgba(255, 255, 255, .86);
  }

  .palette-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(74px + var(--phone-safe-bottom));
    width: auto;
    transform-origin: bottom center;
  }

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

  .footer {
    padding-bottom: calc(108px + var(--phone-safe-bottom));
  }

  .auth-page {
    padding: 16px 0 24px;
    align-items: flex-start;
  }

  .auth-showcase {
    display: none;
  }

  .auth-card {
    border-radius: 24px;
    padding: 18px;
  }

  .auth-title {
    font-size: clamp(34px, 11vw, 50px);
  }

  .input.phone-mode {
    padding-right: 16px;
  }

  .input-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .phone-pill {
    position: static;
    transform: none;
    width: fit-content;
  }
}
