:root {
  --bg: #f5efe3;
  --bg-deep: #ece0c6;
  --ink: #1f1a15;
  --muted: #5f5448;
  --card: rgba(255, 250, 242, 0.78);
  --line: rgba(52, 38, 22, 0.14);
  --green: #5f7d3a;
  --green-deep: #40561e;
  --gold: #d8a13d;
  --orange: #d46a38;
  --shadow: 0 22px 60px rgba(72, 48, 22, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 161, 61, 0.25), transparent 34%),
    radial-gradient(circle at top right, rgba(95, 125, 58, 0.2), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 248, 237, 0.3)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(95, 125, 58, 0.22), transparent 70%);
  top: -120px;
  right: -100px;
}

.hero::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(212, 106, 56, 0.18), transparent 70%);
  left: -90px;
  bottom: 20px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fef7eb;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text small,
.mini-label,
.eyebrow {
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

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

.hero-copy h1,
.feature h2,
.section-heading h2,
.cta-panel h2,
.story-block h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  max-width: 12ch;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.lede {
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 18px 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #fffaf3;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  box-shadow: 0 14px 24px rgba(64, 86, 30, 0.24);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.hero-card {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(253, 244, 229, 0.76));
  border: 1px solid rgba(63, 48, 32, 0.1);
  box-shadow: 0 18px 50px rgba(77, 51, 24, 0.13);
}

.card-ribbon {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff8ef;
  font-size: 0.86rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--orange), var(--gold));
}

.story-block h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.story-block p {
  color: var(--muted);
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.stats > div,
.step,
.feature,
.cta-panel {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
}

.stats > div {
  padding: 14px 12px;
  border-radius: 18px;
}

.stats strong,
.step h3 {
  display: block;
  margin-bottom: 6px;
}

.stats span,
.step p,
.feature p,
.feature li {
  color: var(--muted);
  line-height: 1.6;
}

.feature-grid,
.steps {
  display: grid;
  gap: 18px;
}

.library {
  padding: 34px 0 6px;
}

.story-spotlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.spotlight-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 241, 229, 0.78));
  box-shadow: 0 12px 34px rgba(74, 53, 24, 0.08);
}

.spotlight-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-copy {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.spotlight-copy h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.spotlight-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.spotlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spotlight-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(52, 38, 22, 0.12);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px 0 0;
}

.feature {
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(74, 53, 24, 0.08);
}

.feature-story {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 247, 233, 0.72)),
    radial-gradient(circle at top right, rgba(212, 106, 56, 0.1), transparent 42%);
}

.feature-minecraft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(243, 248, 234, 0.72)),
    radial-gradient(circle at top right, rgba(95, 125, 58, 0.16), transparent 42%);
}

.feature h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 14px;
}

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

.roadmap {
  padding: 36px 0 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 12ch;
  margin-top: 10px;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.step {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 14px;
  color: #fef7ec;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
}

.step h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.cta-panel {
  margin: 30px 0 8px;
  padding: 26px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-panel h2 {
  max-width: 18ch;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.reveal {
  animation: rise 700ms ease both;
}

.hero-copy.reveal {
  animation-delay: 80ms;
}

.hero-card.reveal {
  animation-delay: 160ms;
}

.feature-grid.reveal {
  animation-delay: 240ms;
}

.roadmap.reveal {
  animation-delay: 320ms;
}

.cta-panel.reveal {
  animation-delay: 400ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .story-spotlights,
  .hero-grid,
  .feature-grid,
  .steps,
  .cta-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-grid {
    padding-top: 30px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 14px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .cta-panel h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1160px);
    padding-top: 9px;
  }

  .hero {
    border-radius: 26px;
  }

  .topbar,
  .hero-grid,
  .feature,
  .roadmap,
  .cta-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-grid {
    padding-bottom: 18px;
  }

  .spotlight-copy,
  .feature,
  .step,
  .cta-panel {
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .cta-panel {
    margin-top: 20px;
  }
}
