:root {
  color-scheme: dark;
  --bg: #0c0e14;
  --card: #161922;
  --field: #10131a;
  --line: #2a3142;
  --text: #eef2f7;
  --muted: #9aa3b5;
  --accent: #818cf8;
  --accent-soft: #232742;
  --star: #f5b942;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(820px 380px at 18% -8%, rgba(129, 140, 248, 0.18), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid rgba(42, 49, 66, 0.9);
  background: rgba(12, 14, 20, 0.84);
  backdrop-filter: blur(14px);
}

.nav, main, .footer-inner, .band .totals {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand em { font-style: normal; color: var(--accent); }

.mark {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; font-weight: 500; }
.links a { text-decoration: none; }
.links a:hover { color: var(--text); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-actions a { text-decoration: none; font-weight: 600; font-size: 14px; }
#login-link { color: var(--muted); }
#login-link:hover { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 600;
  border: 1px solid var(--accent);
}

.button:hover { filter: brightness(1.08); }

.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button.ghost:hover { border-color: var(--accent); filter: none; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}

.eyebrow, .preview-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.04em; }

h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1.02;
  max-width: 12ch;
}

.lede { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 46ch; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.preview {
  background: linear-gradient(180deg, rgba(35, 39, 66, 0.55), rgba(22, 25, 34, 0.2) 42%), var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.preview h2 { margin: 0; font-size: 26px; }

.score-pill {
  margin: 0;
  min-width: 88px;
  text-align: right;
}

.score-pill strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.score-pill span { color: var(--muted); font-size: 13px; }

.mini { display: grid; margin-top: 8px; }

.mini article {
  border-top: 1px solid var(--line);
  padding: 14px 0 12px;
}

.mini-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mini strong { font-weight: 600; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 13px; }
.mini p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini > a { color: var(--accent); font-weight: 600; text-decoration: none; padding-top: 4px; }
.mini > a:hover { text-decoration: underline; }

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(22, 25, 34, 0.72);
}

.totals { display: grid; grid-template-columns: repeat(3, 1fr); }
.totals div { padding: 22px 8px; }
.totals div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.totals strong { display: block; font-size: 32px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.totals span, .section-head p, .section-intro p, .offer .lede { color: var(--muted); }

.section { padding: 80px 0 8px; }

.section-intro { max-width: 560px; margin-bottom: 22px; }
.section-intro p:last-child { margin: 0; line-height: 1.6; }

h2 { font-size: 32px; margin: 0 0 10px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.grid h3 { margin: 0 0 8px; font-size: 16px; }
.grid p, .steps span, .offer li { color: var(--muted); line-height: 1.55; font-size: 14px; }

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.steps strong, .steps span { display: block; }
.steps span { margin-top: 6px; }

.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 0; max-width: 28ch; text-align: right; }

#board { list-style: none; margin: 0; padding: 0; display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
#board li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
#board li:first-child { border-top: 0; }
#board a { text-decoration: none; font-weight: 600; }
#board a:hover { color: var(--accent); }
#board .rank { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; }
#board .count { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
}

.offer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.offer-card.featured { border-color: var(--accent); }
.offer-card h3 { margin: 0 0 8px; }

.price { margin: 0 0 12px; font-size: 40px; letter-spacing: -0.05em; font-weight: 700; }
.price .period { margin-left: 4px; font-size: 16px; letter-spacing: 0; font-weight: 600; color: var(--muted); }
.offer-card ul { margin: 0 0 18px; padding-left: 18px; }
.offer-card li + li { margin-top: 6px; }

code { font-family: inherit; color: var(--text); font-weight: 600; }

footer { margin-top: 72px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--text); text-decoration: none; font-weight: 600; }

@media (max-width: 860px) {
  .links { display: none; }
  .hero, .grid, .steps ol, .totals, .plans { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 32px; gap: 28px; }
  h1 { max-width: none; }
  .totals div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 8px; }
  .section { padding: 48px 0 4px; }
  .section-head { align-items: start; flex-direction: column; }
  .section-head p { text-align: left; }
  .nav { flex-wrap: wrap; padding: 12px 0; }
}
