:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #111317;
  --surface-2: #161920;
  --line: #22262e;
  --line-soft: #1a1d24;
  --text: #eef0f3;
  --muted: #8b919c;
  --dim: #5d636e;
  --accent: #f5b83d;
  --accent-2: #ffd77a;
  --accent-glow: rgba(245, 184, 61, 0.18);
  --live: #4ade80;
  --radius: 16px;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

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

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

svg.lucide { width: 1em; height: 1em; stroke-width: 1.75; flex-shrink: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.mono { font-family: var(--mono); font-size: 0.85em; }
.dim { color: var(--dim); }

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.grid-bg::after {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 520px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  filter: blur(40px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand.small { font-size: 1rem; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font-size: 18px;
}

.brand.small .brand-mark { width: 26px; height: 26px; font-size: 15px; border-radius: 7px; }

.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 0.92rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(17, 19, 23, 0.7);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; }
h1 { font-size: clamp(2.8rem, 6.5vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 20px; }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }

.accent {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { color: var(--muted); font-size: 1.15rem; max-width: 34rem; margin-top: 24px; }
.lede.small { font-size: 1.05rem; margin-top: 0; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0 112px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn.primary { background: var(--text); color: var(--bg); }
.btn.primary:hover { transform: translateY(-1px); background: #fff; }
.btn.ghost { border: 1px solid var(--line); color: var(--muted); }

.session-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.session-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(245, 184, 61, 0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-head { display: flex; justify-content: space-between; align-items: center; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--live);
}

.card-place { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

.card-total { display: flex; align-items: flex-end; gap: 14px; margin-top: 10px; }
.total { font-size: 5rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.total-label { color: var(--muted); font-size: 0.9rem; line-height: 1.3; padding-bottom: 10px; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0 22px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
}

.card-meta span { display: inline-flex; align-items: center; gap: 6px; }

.leaderboard { list-style: none; display: grid; gap: 10px; }

.leaderboard li {
  display: grid;
  grid-template-columns: 52px 1fr 20px;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.bar {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) / 6 * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.leaderboard .mono { text-align: right; color: var(--text); }

.section { padding: 96px 0; border-top: 1px solid var(--line-soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }

.step, .feature {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 23, 0.6);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step:hover, .feature:hover { border-color: #333843; transform: translateY(-2px); }

.step-num { position: absolute; top: 24px; right: 24px; color: var(--dim); }

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 22px;
}

.icon.big { width: 56px; height: 56px; font-size: 26px; border-radius: 16px; }

.step p, .feature p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }

.checks { list-style: none; display: grid; gap: 14px; margin-top: 32px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 0.97rem; }
.checks svg { color: var(--accent); font-size: 18px; }

.timeline {
  position: relative;
  padding: 24px 24px 20px 88px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}

.tl-head, .tl-foot {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 0.72rem;
}

.tl-head { margin-bottom: 18px; }
.tl-foot { position: relative; height: 18px; margin-top: 16px; color: var(--muted); }
.tl-foot span { position: absolute; top: 0; white-space: nowrap; }
.tl-foot .b1 { left: 4%; }
.tl-foot .b2 { left: 58%; }
.tl-foot b { color: var(--accent); font-weight: 500; }

.tl-band {
  position: absolute;
  top: 54px;
  bottom: 50px;
  border-radius: 12px;
  border: 1px dashed rgba(245, 184, 61, 0.45);
  background: rgba(245, 184, 61, 0.06);
}

.tl-band.b1 { left: calc(88px + (100% - 112px) * 0.04); width: calc((100% - 112px) * 0.44); }
.tl-band.b2 { left: calc(88px + (100% - 112px) * 0.58); width: calc((100% - 112px) * 0.37); }

.tl-row {
  position: relative;
  height: 44px;
  border-bottom: 1px solid var(--line-soft);
}

.tl-row:last-of-type { border-bottom: none; }

.who {
  position: absolute;
  left: -72px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--muted);
}

.d {
  position: absolute;
  top: 50%;
  left: calc(var(--x) * 1%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow), 0 0 0 3px rgba(245, 184, 61, 0.15);
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature > svg { color: var(--accent); font-size: 22px; margin-bottom: 18px; }

.cta { padding: 40px 0 120px; }

.cta-inner {
  text-align: center;
  padding: 72px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, var(--accent-glow), transparent 70%),
    var(--surface);
}

.cta-inner h2 { margin-bottom: 14px; }
.cta-inner .lede { margin-inline: auto; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .hero, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 40px 0 80px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .pill { margin-left: auto; }
}

@media (max-width: 600px) {
  .steps, .features { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .session-card { padding: 22px; }
  .total { font-size: 4rem; }
  .timeline { padding-left: 72px; }
  .who { left: -60px; font-size: 0.78rem; }
  .tl-band.b1 { left: calc(72px + (100% - 96px) * 0.04); width: calc((100% - 96px) * 0.44); }
  .tl-band.b2 { left: calc(72px + (100% - 96px) * 0.58); width: calc((100% - 96px) * 0.37); }
  .tl-foot .venue { display: none; }
}

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