@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg-night: #07101a;
  --bg-deep: #10263f;
  --bg-board: #173556;
  --panel: rgba(16, 33, 52, 0.8);
  --panel-strong: rgba(20, 42, 68, 0.94);
  --panel-soft: rgba(78, 112, 152, 0.16);
  --line: rgba(223, 236, 255, 0.22);
  --line-strong: rgba(223, 236, 255, 0.42);
  --text-main: #f5f8ff;
  --text-soft: rgba(231, 240, 255, 0.78);
  --text-muted: rgba(194, 210, 230, 0.72);
  --blue: #74c6ff;
  --blue-strong: #4ea2ff;
  --mint: #86ddb3;
  --gold: #d8b46f;
  --shadow: rgba(0, 7, 18, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-main);
  line-height: 1.5;
  background:
    radial-gradient(820px 420px at 84% -8%, rgba(116, 198, 255, 0.22), transparent 64%),
    radial-gradient(640px 360px at 8% 6%, rgba(134, 221, 179, 0.18), transparent 62%),
    linear-gradient(180deg, #08111b 0%, var(--bg-night) 18%, var(--bg-deep) 58%, #0b1726 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.08;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.055) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.055) 75%);
  background-size: 72px 72px;
  background-position: 0 0, 36px 36px;
  mix-blend-mode: screen;
}

body::after {
  opacity: 0.5;
  background:
    linear-gradient(180deg, rgba(7, 16, 26, 0) 0%, rgba(7, 16, 26, 0.08) 18%, rgba(7, 16, 26, 0.46) 100%);
}

a {
  color: inherit;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(233, 242, 255, 0.12);
  background: rgba(7, 16, 26, 0.72);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(9, 20, 36, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.02rem;
}

.brand-sub {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-nav {
  display: inline-flex;
  gap: 14px;
}

.mini-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.mini-nav a:hover {
  color: #ffffff;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(232, 242, 255, 0.22);
  background: rgba(26, 47, 73, 0.56);
}

.lang-switch a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: 999px;
}

.lang-switch a.is-active {
  color: #07111b;
  background: linear-gradient(135deg, #f5fbff, #9fe3ff);
}

.hero {
  padding: 42px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
}

.kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(223, 236, 255, 0.22);
  background: rgba(100, 156, 216, 0.12);
  color: #dff3ff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.08;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  max-width: 12.5ch;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  letter-spacing: -0.04em;
}

.subhead {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  max-width: 60ch;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-soft);
}

.hero-ctas {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  color: #05111a;
  background: linear-gradient(135deg, #c9f4ff, var(--blue));
  box-shadow: 0 18px 32px rgba(116, 198, 255, 0.25);
}

.btn-secondary {
  color: var(--text-main);
  border: 1px solid rgba(229, 239, 255, 0.22);
  background: rgba(95, 128, 164, 0.12);
}

.hero-proof {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.proof-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(229, 239, 255, 0.16);
  background: rgba(95, 128, 164, 0.11);
}

.proof-card strong {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
}

.proof-card span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-media {
  position: relative;
  min-height: 720px;
}

.video-frame {
  position: relative;
  height: 100%;
  min-height: 720px;
  border-radius: 0;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.section {
  padding: 18px 0 12px;
}

.section-shell {
  padding: clamp(22px, 3.5vw, 32px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(229, 239, 255, 0.12);
  background: linear-gradient(170deg, rgba(15, 31, 50, 0.78), rgba(10, 21, 33, 0.76));
  box-shadow: 0 20px 48px rgba(0, 8, 18, 0.22);
}

.section-shell-plain {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 34px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
}

.section-intro {
  margin: 10px 0 0;
  max-width: 64ch;
  color: var(--text-soft);
  font-size: 1rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(116, 198, 255, 0.1);
  border: 1px solid rgba(223, 236, 255, 0.16);
  color: #dcedff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-grid,
.mode-grid,
.community-grid,
.custom-grid {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

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

.mode-grid,
.community-grid,
.custom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(229, 239, 255, 0.12);
  background:
    linear-gradient(155deg, rgba(88, 122, 163, 0.12), rgba(14, 29, 47, 0.82)),
    rgba(14, 29, 47, 0.82);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%);
}

.card h3,
.card p,
.card .badge {
  position: relative;
  z-index: 1;
}

.card h3 {
  font-size: 1.08rem;
}

.card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.feature-card::after {
  content: attr(data-step);
  position: absolute;
  right: 14px;
  top: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(235, 243, 255, 0.1);
}

.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.badge-basic {
  color: #082014;
  background: rgba(134, 221, 179, 0.92);
}

.badge-advanced {
  color: #352108;
  background: rgba(216, 180, 111, 0.92);
}

.week-ladder {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.day {
  padding: 12px 8px;
  border-radius: 16px;
  border: 1px solid rgba(226, 238, 255, 0.14);
  background: rgba(12, 27, 44, 0.72);
  text-align: center;
}

.day-name {
  font-size: 0.82rem;
  font-weight: 800;
}

.day-level {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.day-1 { border-color: rgba(122, 225, 171, 0.36); }
.day-2 { border-color: rgba(159, 227, 160, 0.34); }
.day-3 { border-color: rgba(199, 219, 134, 0.34); }
.day-4 { border-color: rgba(216, 180, 111, 0.35); }
.day-5 { border-color: rgba(229, 154, 104, 0.35); }
.day-6 { border-color: rgba(238, 125, 108, 0.38); }
.day-7 { border-color: rgba(245, 111, 111, 0.46); }

.ranking-board {
  margin-top: 18px;
}

.ranking-board-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ranking-timer {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(231, 241, 255, 0.18);
  background: rgba(8, 21, 35, 0.44);
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 700;
}

.ranking-timer strong {
  min-width: 7ch;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ranking-timer small {
  opacity: 0.9;
  font-size: 0.72rem;
}

.ranking-meta {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.ranking-dot {
  opacity: 0.7;
}

.ranking-status {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.ranking-status.is-error {
  color: #ffd0d0;
}

.ranking-table-wrap {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(229, 239, 255, 0.14);
  overflow-x: auto;
  background: rgba(8, 18, 29, 0.48);
}

.ranking-table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(229, 239, 255, 0.08);
  font-size: 0.92rem;
}

.ranking-table thead th {
  color: rgba(239, 246, 255, 0.95);
  font-weight: 800;
  text-align: left;
}

.ranking-table tbody td {
  color: rgba(238, 246, 255, 0.9);
}

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

.ranking-table td.rank {
  width: 72px;
  font-weight: 800;
}

.ranking-table td.points,
.ranking-table td.records {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ranking-table tbody tr.top-1 td.rank {
  color: #f3cb78;
}

.ranking-table tbody tr.top-2 td.rank {
  color: #cfe7ff;
}

.ranking-table tbody tr.top-3 td.rank {
  color: #ade5c8;
}

.ranking-table tbody tr.empty td {
  text-align: center;
  color: var(--text-soft);
}

.cta {
  margin: 28px auto 36px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(229, 239, 255, 0.12);
  background:
    radial-gradient(circle at 92% 10%, rgba(116, 198, 255, 0.16), transparent 36%),
    linear-gradient(155deg, rgba(20, 42, 68, 0.94), rgba(11, 22, 36, 0.96));
  box-shadow: 0 20px 52px rgba(0, 8, 18, 0.24);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  letter-spacing: -0.03em;
}

.cta p {
  margin: 12px 0 0;
  color: var(--text-soft);
  max-width: 58ch;
}

.store-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.store-pill {
  min-width: 188px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(229, 239, 255, 0.16);
  background: rgba(8, 18, 29, 0.42);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.store-pill-link {
  display: grid;
  gap: 2px;
  justify-items: start;
  min-width: 204px;
  color: rgba(239, 246, 255, 0.98);
  text-decoration: none;
  white-space: normal;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.store-pill-link:hover,
.store-pill-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(155, 185, 221, 0.42);
  background: rgba(17, 31, 47, 0.72);
}

.store-pill-kicker {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-pill-link strong {
  font-size: 1rem;
  line-height: 1.1;
}

footer {
  border-top: 1px solid rgba(233, 241, 255, 0.1);
  padding: 18px 0 24px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1020px) {
  .hero-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .video-frame {
    min-height: 520px;
  }

  .store-row {
    justify-content: flex-start;
  }

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

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

  .mini-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    min-height: 72px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-copy,
  .hero-media,
  .section-shell,
  .cta {
    border-radius: 24px;
  }

  .hero-proof,
  .feature-grid,
  .mode-grid,
  .community-grid,
  .custom-grid {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .video-frame {
    min-height: 320px;
  }

  .week-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .week-ladder .day:last-child {
    grid-column: 1 / -1;
  }

  .ranking-board-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .ranking-timer {
    width: 100%;
    justify-content: center;
  }

  .lang-switch a {
    padding: 7px 10px;
  }
}
