:root {
  --bg: #16110f;
  --bg-strong: #120d0c;
  --paper: rgba(33, 24, 20, 0.82);
  --paper-strong: rgba(42, 31, 25, 0.94);
  --ink: #f4ede4;
  --muted: #ccb9a8;
  --line: rgba(237, 241, 247, 0.1);
  --red: #dc7a5d;
  --sand: #d1a162;
  --blue: #8a7666;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 12% 0%, rgba(220, 122, 93, 0.28), 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, var(--bg) 0%, #211814 52%, #1a1412 100%);
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: transparent;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

body::before {
  top: 72px;
  right: 8vw;
  width: min(36vw, 440px);
  height: min(36vw, 440px);
  background: rgba(220, 122, 93, 0.1);
}

body::after {
  left: 5vw;
  bottom: 10vh;
  width: min(30vw, 360px);
  height: min(30vw, 360px);
  background: rgba(209, 161, 98, 0.08);
}

::selection {
  background: rgba(220, 122, 93, 0.28);
  color: var(--ink);
}

img {
  max-width: 100%;
}

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

h2,
h3,
strong {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  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%);
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 14px;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(22, 17, 15, 0.92), rgba(22, 17, 15, 0.62));
  border-bottom: 1px solid rgba(237, 241, 247, 0.06);
}

.brand,
.nav a,
.button {
  text-decoration: none;
  color: inherit;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.brand:hover,
.nav a:hover {
  color: #fff4ea;
}

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

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

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.hero,
.manifest,
.stack,
.roadmap,
.forum-tease {
  scroll-margin-top: 96px;
}

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

.hero-copy {
  max-width: 700px;
}

.eyebrow,
.status-label,
.step {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--muted);
}

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

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

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(237, 241, 247, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ead7c8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--sand));
  box-shadow: 0 0 0 4px rgba(220, 122, 93, 0.14);
}

.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);
}

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

.button.primary {
  background: var(--ink);
  color: #1a1412;
  border-color: var(--ink);
  box-shadow: 0 16px 40px rgba(244, 237, 228, 0.12);
}

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

.button.ghost:hover,
.hero-meta span:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

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

.terminal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.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;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 24px;
}

.status-strip article,
.manifest-grid article,
.stack-card,
.timeline article,
.forum-tease {
  border-radius: 24px;
  border: 1px solid rgba(237, 241, 247, 0.08);
  box-shadow: var(--shadow);
}

.status-strip article {
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(42, 31, 25, 0.8), rgba(28, 21, 18, 0.92));
}

.status-label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.05rem;
}

.status-strip p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.status-strip + .manifest {
  padding-top: 8px;
}

.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;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

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

.manifest-grid article,
.stack-card,
.timeline article,
.forum-tease {
  background: linear-gradient(180deg, var(--paper-strong), rgba(28, 21, 18, 0.92));
}

.manifest-grid article,
.stack-card {
  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 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);
}

.forum-tease {
  display: grid;
  gap: 14px;
  padding: 30px 28px;
}

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

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

@media (max-width: 980px) {
  .hero,
  .status-strip,
  .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;
  }

  .hero-meta {
    gap: 8px;
  }

  .hero-meta span,
  .button {
    width: 100%;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@supports not (backdrop-filter: blur(16px)) {
  .topbar {
    background: rgba(22, 17, 15, 0.94);
  }
}
