/* ---------- Design tokens (palette drawn from the hero image) ---------- */
:root {
  --bg-page: #0b120e;
  --foreground: #f2ead8;
  --text-secondary: rgba(242, 234, 216, 0.72);
  --text-muted: rgba(242, 234, 216, 0.5);
  --accent-green: #1e8a60;
  --cream: #f2ead8;
  --hairline: rgba(242, 234, 216, 0.14);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg-page);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--foreground);
  color: var(--bg-page);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (max-width: 768px) { .hero { height: 80vh; } }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 18, 14, 0.3), transparent 35%, rgba(11, 18, 14, 0.35));
}
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 400;
  font-size: 1.15rem;
}
.logo strong { font-weight: 700; }

/* Kept small and off to the left so the figure in the image stays visible */
.hero-title {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  max-width: min(34rem, 42vw);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(11, 18, 14, 0.35);
}
@media (max-width: 768px) {
  .hero-title { max-width: 22rem; font-size: clamp(2rem, 9vw, 3rem); }
}

/* ---------- Thesis ---------- */
.intro {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
}
.intro-lead {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.intro-follow {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 38rem;
}

/* ---------- Roadmap ---------- */
.roadmap {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
}
.roadmap-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.roadmap-item {
  border-top: 1px solid var(--hairline);
  padding-top: 1.25rem;
}
.roadmap-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-green);
  margin-bottom: 0.9rem;
}
.roadmap-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.roadmap-item p { color: var(--text-secondary); font-size: 0.9375rem; }

/* ---------- Glass sections: glowing color behind a frosted pane ---------- */
.tout, .closer {
  position: relative;
  isolation: isolate;
  background: #071009;
  overflow: hidden;
  color: var(--cream);
}
.glass-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.glow {
  position: absolute;
  border-radius: 50%;
}
.glow-green {
  width: 60vw;
  height: 60vw;
  top: -20%;
  left: -8%;
  background: radial-gradient(circle, #2fbf83 0%, rgba(47, 191, 131, 0.4) 40%, transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.glow-white {
  width: 44vw;
  height: 44vw;
  bottom: -18%;
  right: -6%;
  background: radial-gradient(circle, rgba(242, 234, 216, 0.85) 0%, rgba(242, 234, 216, 0.25) 45%, transparent 68%);
  animation: drift-b 27s ease-in-out infinite alternate;
}
.glow-dark {
  width: 50vw;
  height: 50vw;
  top: 25%;
  left: 40%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 70%);
  animation: drift-c 31s ease-in-out infinite alternate;
}
/* mirrored layout so the two sections don't look identical */
.glow-alt.glow-green { left: auto; right: -10%; top: -25%; }
.glow-alt.glow-white { right: auto; left: -8%; bottom: -22%; }
.glow-alt.glow-dark { left: 15%; top: 35%; }

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(14vw, 12vh) scale(1.25); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.15); }
  to { transform: translate(-12vw, -10vh) scale(0.9); }
}
@keyframes drift-c {
  from { transform: translate(-6vw, 4vh) scale(1); }
  to { transform: translate(10vw, -8vh) scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
}

.glass-pane {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(48px) saturate(140%);
  -webkit-backdrop-filter: blur(48px) saturate(140%);
  background-color: rgba(11, 31, 22, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  border-top: 1px solid rgba(242, 234, 216, 0.18);
  border-bottom: 1px solid rgba(242, 234, 216, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -40px 80px rgba(7, 16, 9, 0.35);
}

.tout {
  min-height: min(92vh, 800px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}
.tout-kicker {
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 1.3vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(242, 234, 216, 0.6);
  margin-bottom: 2rem;
}
.tout-headline {
  font-size: clamp(3.25rem, 11vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.tout-body {
  margin-top: 2.25rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  max-width: 34rem;
  color: rgba(242, 234, 216, 0.78);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}
.faq-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.accordion details { border-bottom: 1px solid var(--hairline); }
.accordion details:first-of-type { border-top: 1px solid var(--hairline); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.acc-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
  transition: transform 250ms ease;
}
details[open] .acc-icon { transform: rotate(45deg); color: var(--accent-green); }
.acc-body {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--text-secondary);
  font-size: 0.9875rem;
}

/* ---------- Closer ---------- */
.closer {
  min-height: clamp(400px, 50vw, 620px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 6rem) 1.5rem 2rem;
}
.closer-headline {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.closer-sub {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 1.3vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(242, 234, 216, 0.6);
}
.footer-credit {
  margin-top: auto;
  padding-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(242, 234, 216, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .roadmap-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .roadmap-list { grid-template-columns: 1fr; }
}
