:root {
  --ink: #f3f0e8;
  --muted: #9a958a;
  --accent: #d6ff3f;
  --panel: rgba(12, 12, 14, 0.72);
  --line: rgba(243, 240, 232, 0.12);
  --display: "Syne", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #07070a;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.02em; }

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%);
}
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav, main, .foot { position: relative; z-index: 3; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5vw;
  backdrop-filter: blur(10px);
  background: rgba(7,7,10,0.35);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}
.logo { font-family: var(--display); font-weight: 800; letter-spacing: 0.12em; font-size: 0.9rem; }
.logo span { color: var(--accent); margin-left: 0.25em; }
.nav nav { display: none; gap: 1.4rem; color: var(--muted); font-size: 0.9rem; }
.nav-cta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  padding-bottom: 2px;
}

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5vw 5rem;
  max-width: 1100px;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.98;
  max-width: 12ch;
  font-weight: 800;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 700; }
.lede { margin-top: 1.4rem; max-width: 36rem; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  background: var(--ink);
  color: #0b0b0d;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); background: #fff; }
.btn:active { transform: scale(0.98); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.tech-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.tech-pills li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
}
.hint { margin-top: 1.2rem; color: var(--muted); font-size: 0.88rem; }

.chapter {
  padding: 5rem 5vw;
  border-top: 1px solid var(--line);
}
.chapter.alt { background: rgba(0,0,0,0.25); }
.chapter-inner { max-width: 1000px; margin: 0 auto; }
.chapter h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.copy { color: var(--muted); max-width: 40rem; margin-bottom: 1.8rem; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.75rem;
  max-width: 420px;
}
.stat-row div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: var(--panel);
}
.stat-row strong {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
}
.stat-row span { color: var(--muted); font-size: 0.78rem; }

.cards {
  display: grid;
  gap: 0.9rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem;
  background: var(--panel);
  backdrop-filter: blur(10px);
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

.stack-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.stack-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.stack-list span {
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta { padding: 4rem 5vw 5rem; }
.cta-box {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  background: linear-gradient(160deg, rgba(20,20,24,0.9), rgba(8,8,10,0.9));
}
.cta-box h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.8rem; }
.cta-box p { color: var(--muted); margin-bottom: 1.3rem; max-width: 36rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.4rem 5vw 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal { opacity: 0; transform: translateY(18px); }
.line-reveal { overflow: hidden; }

@media (min-width: 800px) {
  .nav nav { display: flex; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
