:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #121214;
  --panel-2: #18181b;
  --line: #27272a;
  --text: #fafafa;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #dc2626;
  --accent-dark: #9b1c1c;
  --success: #22c55e;
  --gold: #ffd700;
}

* { 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;
  background:
    radial-gradient(circle at 78% 10%, rgba(220, 38, 38, 0.18), transparent 30rem),
    linear-gradient(180deg, #0c0c0f 0%, var(--bg) 48%, #050506 100%);
  color: var(--text);
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(39, 39, 42, 0.75);
}

.brand, .nav-links, .actions, .metric-grid { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 900; letter-spacing: 0; }
.brand-mark { width: 34px; height: 42px; object-fit: contain; }
.nav-links { gap: 22px; color: var(--muted); font-size: 0.92rem; }
.nav-links a:hover { color: var(--text); }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  align-items: center;
  gap: 64px;
  padding: 54px 0 84px;
}

.eyebrow, .micro {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 18px;
  max-width: 760px;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.91;
  letter-spacing: 0;
}

.lede {
  max-width: 630px;
  margin: 0;
  color: #d4d4d8;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.actions { gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid var(--line);
}
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.secondary { background: rgba(18, 18, 20, 0.78); color: var(--muted); }

.phone-stage { display: flex; justify-content: center; }
.phone-frame {
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  border: 1px solid #3f3f46;
  border-radius: 34px;
  background: linear-gradient(180deg, #101012, #070708);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(255,255,255,0.02);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.phone-top { width: 86px; height: 6px; border-radius: 999px; background: #27272a; align-self: center; margin-bottom: 8px; }
.app-card, .metric-grid > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.rank-card { padding: 18px; display: flex; justify-content: space-between; align-items: center; }
.rank-card strong { display: block; margin-top: 6px; font-size: 2.35rem; line-height: 1; }
.rank-delta { color: var(--success); font-weight: 900; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-grid > div { padding: 14px; }
.metric-grid span, .challenge-card small { color: var(--dim); font-size: 0.8rem; }
.metric-grid strong { display: block; margin-top: 6px; font-size: 1.15rem; }
.challenge-card { padding: 18px; margin-top: auto; }
.challenge-card strong { display: block; margin: 8px 0 14px; }
.progress { height: 8px; border-radius: 999px; overflow: hidden; background: #27272a; margin-bottom: 12px; }
.progress span { display: block; width: 68%; height: 100%; background: var(--accent); }

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 0 54px;
}
.feature-band article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 20, 0.78);
  border-radius: 8px;
}
.icon-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-bottom: 24px; }
h2 { margin: 0 0 10px; font-size: 1.1rem; }
.feature-band p { margin: 0; color: var(--muted); line-height: 1.6; }

@media (max-width: 860px) {
  .page-shell { width: min(100% - 28px, 620px); }
  .nav-links { gap: 14px; font-size: 0.86rem; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding-top: 42px; }
  .phone-stage { justify-content: flex-start; }
  .phone-frame { width: min(100%, 330px); }
  .feature-band { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav { height: 68px; }
  .nav-links a:not(:last-child) { display: none; }
  h1 { font-size: 3.35rem; }
  .button { width: 100%; }
  .phone-frame { width: 100%; border-radius: 26px; }
}
