:root {
  --bg: #16110f;
  --paper: #211814;
  --paper-strong: #2a1f19;
  --ink: #f4ede4;
  --muted: #c1ae9c;
  --line: rgba(237, 241, 247, 0.12);
  --red: #dc7a5d;
  --sand: #d1a162;
  --blue: #8a7666;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(220, 122, 93, 0.3), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(209, 161, 98, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(139, 96, 73, 0.16), transparent 34%),
    linear-gradient(180deg, #16110f 0%, #211814 52%, #1a1412 100%);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(237, 241, 247, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 241, 247, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}

.topbar,
.hero,
.manifest,
.stack,
.roadmap,
.forum-tease,
.footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 10px;
}

.brand,
.nav a,
.button {
  text-decoration: none;
  color: inherit;
}

.brand {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 48px 0 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--muted);
}

h1,
h2,
h3,
p,
li {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin-bottom: 22px;
}

h1 span {
  color: var(--red);
}

.lead {
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 28px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.terminal-card {
  width: min(480px, 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(21, 15, 13, 0.96);
}

.terminal-head {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
}

.terminal-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(237, 241, 247, 0.7);
}

.terminal-body {
  padding: 18px 22px 24px;
  font-family: "IBM Plex Mono", monospace;
  color: #d8e0ec;
  line-height: 1.75;
  font-size: 0.92rem;
}

.terminal-body span {
  color: #f2b16f;
}

.manifest,
.stack,
.roadmap,
.forum-tease {
  padding: 32px 0 64px;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 18ch;
}

.manifest-grid,
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.manifest-grid article,
.stack-card,
.forum-tease,
.timeline article {
  background: linear-gradient(180deg, rgba(42, 31, 25, 0.94), rgba(28, 21, 18, 0.92));
  border: 1px solid rgba(237, 241, 247, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.manifest-grid article {
  padding: 24px;
}

.manifest-grid h3,
.stack-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.manifest-grid p,
.stack-card li,
.timeline p,
.forum-tease p,
.footer-note {
  color: var(--muted);
  line-height: 1.7;
}

.stack-card {
  padding: 24px;
}

.stack-card ul {
  margin: 0;
  padding-left: 18px;
}

.accent-red {
  background: linear-gradient(180deg, rgba(220, 122, 93, 0.28), rgba(28, 21, 18, 0.95));
}

.accent-sand {
  background: linear-gradient(180deg, rgba(209, 161, 98, 0.26), rgba(28, 21, 18, 0.95));
}

.accent-blue {
  background: linear-gradient(180deg, rgba(138, 118, 102, 0.24), rgba(28, 21, 18, 0.95));
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px 24px;
  align-items: start;
}

.step {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(237, 241, 247, 0.12);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
}

.forum-tease {
  display: grid;
  gap: 14px;
  padding: 26px 24px;
}

.footer {
  display: grid;
  gap: 10px;
  padding: 24px 0 60px;
}

.footer h2 {
  max-width: 16ch;
}

@media (max-width: 980px) {
  .hero,
  .manifest-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-panel {
    justify-content: stretch;
  }

  .terminal-card {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }
}
