:root {
  --bg: #0a0d18;
  --surface: #11152a;
  --surface-2: #171c38;
  --line: #232a4d;
  --text: #e8eaf4;
  --muted: #8d93b5;
  --accent: #5eead4;
  --accent-2: #fbbf24;
  --track: #5eead4;
  --muon: #f472b6;
  --calo: #fbbf24;
  --ring: rgba(122, 140, 220, 0.16);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f0;
    --surface: #ffffff;
    --surface-2: #f0efe8;
    --line: #dddbd0;
    --text: #15182a;
    --muted: #5c6180;
    --accent: #0f766e;
    --accent-2: #b45309;
    --track: #0d9488;
    --muon: #be185d;
    --calo: #d97706;
    --ring: rgba(40, 50, 110, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

#event {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  cursor: crosshair;
}

.hero::after {
  /* Keeps the text readable where it overlaps the detector */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 40%, transparent 70%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  font-family: var(--mono);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 96px;
  pointer-events: none;
}
.hero-body a { pointer-events: auto; }

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(56px, 11vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 28px;
}

.lede {
  max-width: 34ch;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  margin: 0 0 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(6px);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.15s, transform 0.15s;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.hud {
  position: absolute;
  right: 24px;
  bottom: 20px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  white-space: pre;
  opacity: 0.8;
}

/* Sections */

.section { padding-top: 120px; padding-bottom: 40px; }

.section-head { margin-bottom: 48px; max-width: 640px; }

h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

/* App cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  --card-accent: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at 100% 0%, color-mix(in srgb, var(--card-accent) 16%, transparent), transparent 60%);
  opacity: 0.6;
  transition: opacity 0.2s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent) 60%, var(--line));
  box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--card-accent) 40%, transparent);
}
.card:hover::before { opacity: 1; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.card-top img { border-radius: 12px; flex-shrink: 0; }

.host {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.lock { font-size: 15px; opacity: 0.6; }

.card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 20px;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tags li {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.go {
  position: absolute;
  right: 24px;
  bottom: 22px;
  font-size: 20px;
  color: var(--card-accent);
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
}
.card:hover .go { transform: none; opacity: 1; }

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.bio p { margin: 0 0 20px; max-width: 60ch; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--line);
}
.timeline li {
  position: relative;
  display: grid;
  padding-bottom: 22px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); }
.timeline .when { font-size: 12px; color: var(--accent-2); }
.timeline strong { font-weight: 600; }
.timeline span:last-child { color: var(--muted); font-size: 15px; }

/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 64px;
  padding-bottom: 40px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

@media (max-width: 800px) {
  .wrap { padding: 0 16px; }
  .nav-links { gap: 18px; }
  .hero::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent) 0%, color-mix(in srgb, var(--bg) 75%, transparent) 60%, var(--bg) 100%);
  }
  .hud { right: 16px; }
  .section { padding-top: 88px; }
  .grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .card { padding: 22px; }
}

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