/* ============================================================
   Numiko — game site
   Built from the app's real dark-theme tokens and flat UI.
   No studio-index aurora, glass, gradients or glow.
   ============================================================ */

:root {
  --bg: #0f111e;
  --bg-deep: #080a12;
  --surface: #181b2b;
  --surface-2: #22263c;
  --surface-3: #2d3350;
  --tile: #1e2238;
  --tile-border: #3b4470;
  --blocked: #12162a;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --indigo-light: #a5b4fc;
  --mint: #10b981;
  --mint-light: #34d399;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --rose-light: #fb7185;

  --text: #f1f5f9;
  --muted: #94a3b8;
  --faint: #64748b;
  --line: #2d3350;
  --line-soft: rgba(148, 163, 184, 0.12);

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shell: 1160px;
  --radius: 16px;
}

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 8px;
}

:focus-visible {
  outline: 2px solid var(--indigo-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--tile-border);
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text small {
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
}

.nav-links a {
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav-links a:hover {
  color: var(--text);
  border-bottom-color: var(--primary);
}

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

.topbar-back {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
}
.topbar-back:hover {
  color: var(--indigo-light);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 8px 16px 16px;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 13px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:hover {
  color: var(--text);
}
.mobile-menu .mobile-cta {
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 12px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-3);
  border-color: var(--tile-border);
}

.btn-sm {
  min-height: 40px;
  padding: 0 15px;
  font-size: 13px;
  border-radius: 10px;
}
.btn-lg {
  min-height: 54px;
  padding: 0 24px;
  font-size: 16px;
}

.btn-tail {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(8, 10, 18, 0.25);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.play-ic {
  width: 16px;
  height: 16px;
}

/* ---------- hero ---------- */

.hero {
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

.chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-light);
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 54ch;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--faint);
}
.hero-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

.launch-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 48ch;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--faint);
}
.launch-note .ic {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--mint);
}

/* ---------- phone mockup (app home screen) ---------- */

.hero-stage {
  display: grid;
  place-items: center;
}

.phone-mockup {
  width: min(370px, 100%);
  padding: 12px 12px 0;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.mock-speaker {
  width: 72px;
  height: 5px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: var(--bg-deep);
}

.mock-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 14px;
}

.mock-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.mock-brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mock-brand-sub {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

.mock-top-chips {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--tile-border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}
.mock-chip.gold-chip {
  color: var(--amber);
}
.mock-chip.bulb-chip {
  color: var(--amber);
}
.mock-gear {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 1px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--muted);
}

.mock-shortcuts {
  display: grid;
  grid-template-columns: 1.32fr 0.92fr;
  gap: 8px;
}

.mock-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 82px;
  padding: 12px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
}
.mock-continue-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mock-kicker {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}
.mock-continue-title {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
}
.mock-continue-sub {
  margin-top: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.82);
}
.mock-play-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  color: #fff;
}

.mock-daily-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.mock-daily-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.14);
  font-size: 15px;
}
.mock-daily-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.mock-modes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 4px 9px;
  font-size: 14px;
  font-weight: 700;
}
.mock-show-less {
  font-size: 10px;
  font-weight: 500;
  color: var(--indigo-light);
}

.mock-modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.mock-mode-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.mock-mode-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
}
.icon-primary {
  background: rgba(99, 102, 241, 0.16);
  color: var(--indigo-light);
}
.icon-mint {
  background: rgba(16, 185, 129, 0.16);
  color: var(--mint-light);
}
.icon-amber {
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber);
}
.icon-rose {
  background: rgba(244, 63, 94, 0.16);
  color: var(--rose-light);
}

.mock-mode-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mock-mode-name {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
}
.mock-mode-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--faint);
}
.gold {
  color: var(--amber);
}
.help-q {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 8px;
  color: var(--faint);
}

.mock-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 12px -12px 0;
  padding: 0 12px 12px;
}
.mock-bottom-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 500;
}

/* ---------- stats ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-num {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- section scaffolding ---------- */

.section {
  padding: 88px 0 0;
}

.sec-head {
  max-width: 720px;
  margin-bottom: 34px;
}
.sec-head h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.03em;
}
.sec-lede {
  max-width: 62ch;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
  gap: 20px;
}

.shot-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.arrows {
  display: flex;
  gap: 8px;
}
.arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.arrow svg {
  width: 17px;
  height: 17px;
}
.arrow:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--tile-border);
}
.arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- modes ---------- */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mode-card {
  --accent: var(--primary);
  --accent-soft: rgba(99, 102, 241, 0.14);
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease;
}
.mode-card:hover {
  border-color: var(--tile-border);
}

.mode-card[data-accent="mint"] {
  --accent: var(--mint);
  --accent-soft: rgba(16, 185, 129, 0.14);
}
.mode-card[data-accent="amber"] {
  --accent: var(--amber);
  --accent-soft: rgba(245, 158, 11, 0.14);
}
.mode-card[data-accent="rose"] {
  --accent: var(--rose-light);
  --accent-soft: rgba(244, 63, 94, 0.14);
}

.mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.mode-icon svg {
  width: 22px;
  height: 22px;
}

.mode-badge {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.mode-card h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mode-card p {
  max-width: 46ch;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.mode-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.mode-tiers {
  font-size: 10.5px;
  color: var(--faint);
}
.star-pip {
  color: var(--amber);
  margin-right: 3px;
}

/* ---------- daily ---------- */

.daily-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.daily-copy h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}
.daily-copy > p {
  max-width: 52ch;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.daily-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.daily-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.daily-points li span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.14);
  font-size: 9px;
  color: var(--mint-light);
}

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

.daily-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.daily-title {
  font-size: 15px;
  font-weight: 500;
}
.daily-date {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 14px;
}
.week li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 7px 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.week-day {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--faint);
}
.week-mark {
  font-size: 10px;
  font-weight: 700;
  color: var(--faint);
}
.week li.done {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}
.week li.done .week-mark {
  color: var(--mint-light);
}
.week li.today {
  border-color: var(--indigo-light);
  background: rgba(99, 102, 241, 0.14);
}
.week li.today .week-mark {
  color: var(--indigo-light);
}

.daily-puzzle {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.dp-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.dp-tile {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 44px;
  padding: 0 7px;
  border: 1px solid var(--tile-border);
  border-radius: 8px;
  background: var(--tile);
  font-size: 15px;
  font-weight: 700;
}
.dp-op {
  font-size: 14px;
  color: var(--indigo-light);
}
.dp-blank {
  border-color: var(--indigo-light);
  background: rgba(49, 46, 129, 0.5);
  color: var(--indigo-light);
}
.dp-result {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.12);
  color: var(--mint-light);
}

.dp-choices {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.dp-choices .dp-tile {
  min-width: 32px;
  height: 32px;
  font-size: 11px;
  color: var(--muted);
}
.dp-choices .dp-pick {
  border-color: var(--mint-light);
  color: var(--mint-light);
  background: rgba(16, 185, 129, 0.12);
}

.daily-widget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  font-size: 9px;
  font-weight: 500;
  color: var(--amber);
}
.daily-note {
  font-size: 9px;
  color: var(--faint);
}

/* ---------- difficulty ---------- */

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.track-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.track-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint-light);
}
.track-card:nth-child(2) .track-badge {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber);
}
.track-card:nth-child(3) .track-badge {
  background: rgba(244, 63, 94, 0.14);
  color: var(--rose-light);
}
.track-stars {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--amber);
}

.track-card h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
}
.track-card p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.track-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}
.track-meta li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  color: var(--faint);
}
.track-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--tile-border);
}

/* ---------- features ---------- */

.feel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feel-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feel-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--indigo-light);
}
.feel-icon svg {
  width: 20px;
  height: 20px;
}
.feel-card h3 {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
}
.feel-card p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- screenshots ---------- */

.shots-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(210px, 21vw, 250px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.shots-track::-webkit-scrollbar {
  height: 6px;
}
.shots-track::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 6px;
}

.shot {
  scroll-snap-align: start;
  min-width: 0;
}

.phone {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-deep);
  overflow: hidden;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot:hover .phone {
  border-color: var(--tile-border);
}

.shot figcaption {
  padding: 10px 2px 0;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- cta ---------- */

.cta {
  padding-bottom: 88px;
}

.cta-panel {
  padding: 44px 32px;
  border-radius: 20px;
  background: var(--primary);
  text-align: center;
  color: #fff;
}
.cta-panel .chip-badge {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.cta-panel h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.03em;
}
.cta-copy {
  max-width: 58ch;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.cta-panel .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--primary-hover);
}
.cta-panel .btn-primary:hover {
  background: #eef2ff;
  border-color: #eef2ff;
}
.cta-panel .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.cta-panel .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}
.cta-note {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding-top: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--faint);
}

.footer-col h3 {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-col a {
  display: block;
  width: fit-content;
  padding: 3px 0;
  font-size: 13px;
  color: var(--muted);
}
.footer-col a:hover {
  color: var(--text);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--faint);
}
.footer-tag {
  color: var(--muted);
}

/* ---------- reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--d, 0s);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid {
    gap: 36px;
  }
  .nav-links {
    gap: 20px;
  }
  .tracks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .track-card:last-child {
    grid-column: 1 / -1;
  }
  .feel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .topbar-back {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-copy {
    max-width: 680px;
  }
  .hero-stage {
    width: 100%;
  }
  .phone-mockup {
    width: min(390px, 100%);
  }
  .daily-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px;
  }
  .cta-panel {
    padding: 36px 24px;
  }
  .section {
    padding-top: 72px;
  }
}

@media (max-width: 700px) {
  .shell {
    width: calc(100% - 32px);
  }
  .topbar-inner {
    height: 64px;
    gap: 10px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .brand-text strong {
    font-size: 16px;
  }
  .brand-text small {
    font-size: 10px;
  }
  .topbar-actions .btn {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }
  .topbar-actions .btn .ic {
    width: 14px;
    height: 14px;
  }
  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
  }
  .lede {
    font-size: 15.5px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-meta {
    gap: 12px;
  }
  .hero-meta li {
    font-size: 11px;
  }
  .phone-mockup {
    padding: 10px 10px 0;
    border-radius: 26px;
  }
  .mock-bottom-row {
    margin-inline: -10px;
    padding-inline: 10px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 22px 16px;
  }
  .stat:first-child {
    padding-left: 0;
  }
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .stat-num {
    font-size: 2rem;
  }
  .modes-grid {
    grid-template-columns: 1fr;
  }
  .tracks-grid {
    grid-template-columns: 1fr;
  }
  .track-card:last-child {
    grid-column: auto;
  }
  .feel-grid {
    grid-template-columns: 1fr;
  }
  .sec-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .shot-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .daily-panel {
    padding: 20px;
    border-radius: 16px;
  }
  .daily-widget {
    padding: 14px;
  }
  .dp-equation {
    gap: 3px;
  }
  .dp-tile {
    min-width: 30px;
    height: 38px;
    font-size: 13px;
  }
  .dp-op {
    font-size: 12px;
  }
  .daily-widget-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .cta {
    padding-bottom: 64px;
  }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-actions .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 22px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col:last-child {
    grid-column: auto;
  }
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 380px) {
  .topbar-actions .btn {
    padding: 0 9px;
  }
  .topbar-inner {
    gap: 8px;
  }
  .brand {
    gap: 8px;
  }
  .mock-shortcuts {
    grid-template-columns: 1fr;
  }
  .mock-daily-tile {
    min-height: 54px;
  }
  .week {
    gap: 3px;
  }
}

/* ---------- reduced motion ---------- */

@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;
    scroll-behavior: auto !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}