:root {
  --bg: #f8f4ea;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(255, 251, 241, 0.88);
  --text: #1d160f;
  --muted: #715d41;
  --line: rgba(146, 109, 35, 0.16);
  --gold: #efb93f;
  --gold-deep: #b77c12;
  --shadow: 0 24px 80px rgba(117, 75, 6, 0.12);
  --shadow-strong: 0 32px 120px rgba(117, 75, 6, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 207, 92, 0.35), transparent 30%),
    radial-gradient(circle at right center, rgba(255, 224, 158, 0.5), transparent 28%),
    linear-gradient(180deg, #fffdf7 0%, #f6f0e2 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 80%);
  opacity: 0.35;
}

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

.page-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  top: -120px;
  left: -120px;
  background: rgba(255, 198, 64, 0.22);
}

.page-glow-right {
  right: -140px;
  top: 20%;
  background: rgba(244, 209, 125, 0.28);
}

.site-header,
.section,
.marquee {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 251, 241, 0.72);
  border: 1px solid rgba(255, 208, 117, 0.45);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffd97f 0%, #d89618 100%);
  color: #fffdf8;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.brand-kicker,
.eyebrow,
.card-label,
.card-tag,
.about-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold-deep);
}

.brand h1,
.hero h2,
.section-heading h2,
.feature-panel h2,
.about-copy h2,
.preview-card h3,
.mod-card h3,
.feature-card h3,
.orbit-copy strong {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.brand h1 {
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: transform 220ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

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

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

.button-primary {
  color: #fffaf1;
  background: linear-gradient(135deg, #f2be4e 0%, #be7e13 100%);
  box-shadow: 0 16px 40px rgba(192, 127, 11, 0.28);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(175, 132, 48, 0.2);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 56px 0 30px;
  align-items: center;
}

.hero h2 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-text,
.feature-panel p,
.about-copy p,
.mod-card p,
.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.04rem;
  margin: 22px 0 0;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-stats article,
.feature-card,
.mod-card,
.about-card,
.feature-panel,
.panel-shell {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-stats article {
  min-width: 150px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
}

.hero-stats span {
  color: var(--muted);
}

.panel-shell {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.86) 0%, rgba(255, 248, 230, 0.82) 100%);
  overflow: hidden;
  isolation: isolate;
}

.panel-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 214, 113, 0.24), transparent 35%);
  pointer-events: none;
}

.panel-topbar {
  display: flex;
  gap: 8px;
}

.panel-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(196, 147, 45, 0.35);
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.hero-orbit {
  position: relative;
  margin: 18px 0 10px;
  min-height: 340px;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(255, 236, 188, 0.78) 0%, rgba(255, 252, 245, 0.26) 52%, transparent 72%);
  overflow: hidden;
}

.orbit-visual {
  width: 100%;
  height: 340px;
  display: block;
}

.orbit-blur {
  opacity: 0.85;
}

.orbit-ring {
  fill: none;
  stroke: url(#orbitStroke);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 18;
  opacity: 0.72;
  transform-origin: 260px 260px;
}

.orbit-ring-1 {
  animation: spinSlow 20s linear infinite;
}

.orbit-ring-2 {
  animation: spinReverse 26s linear infinite;
}

.orbit-ring-3 {
  animation: spinSlow 34s linear infinite;
}

.orbit-diagonals path {
  fill: none;
  stroke: rgba(183, 124, 18, 0.34);
  stroke-width: 1.25;
  stroke-dasharray: 6 10;
  animation: linePulse 7s ease-in-out infinite;
}

.orbit-core-group {
  transform-origin: 260px 260px;
  animation: coreFloat 5s ease-in-out infinite;
}

.orbit-core-inner {
  fill: rgba(255, 251, 241, 0.9);
  stroke: rgba(183, 124, 18, 0.24);
}

.orbit-node circle {
  fill: #fff8e5;
  stroke: rgba(183, 124, 18, 0.6);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(239, 185, 63, 0.3));
}

.orbit-node-a {
  transform-origin: 260px 260px;
  animation: spinSlow 14s linear infinite;
}

.orbit-node-b {
  transform-origin: 260px 260px;
  animation: spinReverse 18s linear infinite;
}

.orbit-node-c {
  transform-origin: 260px 260px;
  animation: spinSlow 24s linear infinite;
}

.orbit-copy {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 250px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(178, 133, 48, 0.22);
}

.orbit-copy p,
.orbit-copy span {
  margin: 0;
  color: var(--muted);
}

.orbit-copy strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.1rem;
}

.signal-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(178, 133, 48, 0.22);
}

.signal-card p,
.signal-card span {
  margin: 0;
  color: var(--muted);
}

.signal-card strong {
  display: block;
  margin: 8px 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

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

.preview-card {
  min-height: 220px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(171, 128, 45, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.preview-card.accent {
  background:
    linear-gradient(180deg, rgba(255, 227, 166, 0.7) 0%, rgba(255, 247, 229, 0.7) 100%);
}

.preview-card span {
  color: var(--muted);
}

.marquee {
  width: 100%;
  margin: 10px 0 24px;
  border-top: 1px solid rgba(168, 126, 42, 0.14);
  border-bottom: 1px solid rgba(168, 126, 42, 0.14);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding: 16px 0;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  animation: marquee 22s linear infinite;
}

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

.section-heading h2,
.feature-panel h2,
.about-copy h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.mods-grid,
.feature-list,
.about {
  display: grid;
  gap: 18px;
}

.mods-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mod-card,
.feature-card,
.about-card,
.feature-panel {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.mod-card::before,
.feature-card::before,
.about-card::before,
.feature-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.34), transparent 44%);
  pointer-events: none;
}

.mod-card:hover,
.feature-card:hover,
.about-card:hover,
.feature-panel:hover,
.preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(197, 143, 35, 0.28);
}

.mod-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 231, 181, 0.85) 0%, rgba(255, 248, 230, 0.88) 100%);
}

.mod-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  color: var(--gold-deep);
  font-weight: 700;
}

.highlights {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding-top: 18px;
}

.feature-list {
  grid-template-columns: 1fr;
}

.about {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  padding: 34px 0 56px;
}

.about-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
}

.about-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.about-card span {
  color: var(--muted);
  max-width: 24ch;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes coreFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes linePulse {
  0%,
  100% {
    opacity: 0.26;
  }
  50% {
    opacity: 0.8;
  }
}

@media (max-width: 1024px) {
  .site-header,
  .hero,
  .highlights,
  .about,
  .mods-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 30px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero h2 {
    max-width: 12ch;
  }

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

@media (max-width: 720px) {
  .site-header,
  .section {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    margin-top: 10px;
    padding: 14px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h2 {
    font-size: clamp(2.4rem, 14vw, 4.2rem);
  }

  .hero-orbit {
    min-height: 280px;
  }

  .orbit-visual {
    height: 280px;
  }

  .orbit-copy {
    position: static;
    margin: 0 14px 14px;
    max-width: none;
  }

  .button,
  .hero-actions a {
    width: 100%;
  }

  .hero-stats article,
  .feature-card,
  .mod-card,
  .feature-panel,
  .about-card {
    padding: 20px;
  }

  .section-heading {
    align-items: start;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
