:root {
  --bg: #f7f7fa;
  --bg-alt: #eeeef4;
  --fg: #000630;
  --muted: #4a4f6e;
  --line: #dcdce6;
  --card: #ffffff;
  --accent: #ff4e3c;
  --brand-gradient: linear-gradient(90deg, #ff4e3c, #f82fb3);
  --accent-fg: #ffffff;
  --live: #2f7d4f;
  --radius: 14px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000630;
    --bg-alt: #060d3d;
    --fg: #f4f5fb;
    --muted: #a9aecb;
    --line: #1c2357;
    --card: #0a1245;
    --accent: #ff6b5c;
    --accent-fg: #ffffff;
    --live: #5fc28a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.02em; }

a { color: inherit; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100% - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 34px; width: auto; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.topbar nav a:hover { color: var(--fg); }

.hero, .section { padding: 96px max(16px, calc((100% - var(--max)) / 2)); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 14px;
  font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; margin: 0 0 24px; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; margin: 0; }
h3 { font-size: 1.3rem; margin: 0; }

.lead { max-width: 640px; font-size: 1.15rem; color: var(--muted); margin: 0 0 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  font-weight: 500; text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-gradient); color: var(--accent-fg); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card); }

.pipeline {
  list-style: none; padding: 0; margin: 72px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--fg);
}
.pipeline li {
  padding: 16px 12px 0 0; font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 1.05rem;
  position: relative;
}
.pipeline li::before {
  content: ""; position: absolute; top: -7px; left: 0;
  width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fg);
}
.pipeline li:last-child::before { background: var(--brand-gradient); border-color: var(--accent); }
.pipeline span { display: block; font-size: .75rem; color: var(--muted); }

.section-head { margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card p { margin: 0; color: var(--muted); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag {
  font-size: .75rem; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.tag-live { color: var(--live); border-color: currentColor; }
.past-label { margin-top: 48px; color: var(--muted); }
.card-past { background: transparent; }
.card-past p { max-width: 760px; }
.card-past h3 { color: var(--muted); }
.facts { margin: 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.card-link { margin-top: auto; font-weight: 500; text-decoration: none; color: var(--accent); }
.placeholder { font-style: italic; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { border-top: 1px solid var(--fg); padding-top: 18px; }
.step p { color: var(--muted); margin: 10px 0 0; }

.contact .lead { margin-bottom: 28px; }

.topbar nav a[aria-current="page"] { color: var(--fg); }

.prose { max-width: 680px; }
.prose p { color: var(--muted); margin: 0 0 18px; }
.prose a { color: var(--accent); }

.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.about-grid h2 { margin-bottom: 24px; }
.portrait { margin: 0; }
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}

.timeline { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.timeline li {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted);
}
.timeline span { font-family: "Space Grotesk", sans-serif; font-weight: 500; color: var(--accent); }
.timeline strong { color: var(--fg); font-weight: 500; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 32px max(16px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.footer strong { color: var(--fg); }

@media (max-width: 820px) {
  .hero, .section { padding-block: 64px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .topbar nav { gap: 14px; }
  h1 br { display: none; }
  .topbar nav .nav-secondary { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); row-gap: 28px; border-top: 0; }
  .pipeline li { border-top: 2px solid var(--fg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
