:root {
  --bg: #05070b;
  --bg-soft: #0a0f18;
  --panel: rgba(13, 20, 32, 0.76);
  --panel-solid: #101827;
  --text: #f4f1e8;
  --muted: #a9b0be;
  --line: rgba(244, 241, 232, 0.12);
  --gold: #d8b56a;
  --gold-soft: rgba(216, 181, 106, 0.16);
  --blue: #85b8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 16%, rgba(81, 126, 190, 0.24), transparent 28rem),
    radial-gradient(circle at 90% 4%, rgba(216, 181, 106, 0.13), transparent 24rem),
    linear-gradient(180deg, #070b12 0%, var(--bg) 46%, #020305 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 20%, rgba(0,0,0,0.35));
  z-index: -2;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
}

.brand-text {
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover { color: var(--text); }

.section-pad {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 48px;
}

.eyebrow,
.section-kicker,
.label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.02;
}

h1, h2 {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lede {
  max-width: 620px;
  font-size: 1.15rem;
  margin: 28px 0 34px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.button-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #10100d;
}

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

.hero-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.story-window {
  position: relative;
  height: min(54vw, 480px);
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(89, 126, 172, 0.18), transparent 58%),
    linear-gradient(180deg, #0f1b2b 0%, #070a10 58%, #020304 100%);
  overflow: hidden;
}

.story-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 52% 18%, rgba(135, 184, 255, 0.24), transparent 14rem);
}

.moon {
  position: absolute;
  top: 54px;
  right: 74px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff8d5, #d8b56a 48%, rgba(216,181,106,0.16) 70%);
  box-shadow: 0 0 80px rgba(216, 181, 106, 0.36);
}

.citadel {
  position: absolute;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 52%;
  clip-path: polygon(48% 0, 56% 0, 56% 38%, 68% 38%, 68% 100%, 31% 100%, 31% 45%, 48% 45%);
  background: linear-gradient(180deg, #dbe7f4 0%, #6b7889 52%, #202834 100%);
  opacity: 0.55;
}

.road {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 190px;
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(216,181,106,0.25), rgba(255,255,255,0.02));
}

.rain {
  position: absolute;
  inset: -60px 0 0;
  background-image: repeating-linear-gradient(105deg, rgba(255,255,255,0.15) 0 1px, transparent 1px 18px);
  animation: rain 1.4s linear infinite;
  opacity: 0.28;
}

.rain-two {
  opacity: 0.16;
  animation-duration: 0.9s;
  transform: translateX(20px);
}

@keyframes rain {
  to { transform: translateY(80px); }
}

.hero-card-copy {
  padding: 28px;
}

.hero-card-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  margin-bottom: 14px;
}

.manifesto {
  max-width: 900px;
}

.manifesto p {
  font-size: 1.12rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 420px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 18px;
}

.story-card,
.experience-grid > div,
.updates-box {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  box-shadow: 0 20px 60px rgba(0,0,0,0.24);
}

.story-card {
  padding: 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.story-card.featured {
  background:
    linear-gradient(180deg, rgba(216,181,106,0.10), transparent),
    rgba(255,255,255,0.04);
}

.story-card h3 { margin: 10px 0 10px; }
.story-card p { margin-bottom: auto; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
}

.tag-row span {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 0.78rem;
  background: rgba(0,0,0,0.16);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.experience-grid > div {
  padding: 28px;
}

.number {
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
}

.experience-grid h3 { margin-top: 16px; }

.updates-box {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 36px;
  align-items: center;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(216,181,106,0.14), transparent 24rem),
    rgba(255,255,255,0.04);
}

.signup label {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
}

.input-row {
  display: flex;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.32);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

button {
  border: 0;
  background: var(--gold);
  color: #10100d;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
}

small {
  display: block;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer p { margin: 0; font-size: 0.9rem; }

@media (max-width: 900px) {
  .hero,
  .story-grid,
  .experience-grid,
  .updates-box {
    grid-template-columns: 1fr;
  }

  .hero { gap: 34px; }
  .section-heading { display: block; }
  .footer { flex-direction: column; }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav { gap: 16px; }
  .section-pad { padding: 58px 0; }
  .hero { padding-top: 22px; }
  .input-row { flex-direction: column; }
  button { min-height: 48px; }
  .story-window { min-height: 310px; }
}
