/* ========================================
   Rip Largo — Ghost of Earth
   Main Stylesheet
   ======================================== */

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f2a;
  --bg-surface: #141432;
  --bg-surface-hover: #1a1a40;
  --color-primary: #00d4ff;
  --color-secondary: #7b2ff7;
  --color-accent: #ff6b35;
  --color-star: #ffd700;
  --text-primary: #e8e8ff;
  --text-secondary: #9999bb;
  --text-dim: #666688;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --glow-primary: 0 0 20px rgba(0, 212, 255, 0.3);
  --glow-secondary: 0 0 20px rgba(123, 47, 247, 0.3);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --section-padding: 120px 24px;
}

/* ---- Reset ---- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-surface-hover);
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-primary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 60px;
  line-height: 1.8;
}

/* ---- Navbar ---- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  text-decoration: none;
}

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 400;
}

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

.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid var(--color-primary) !important;
  border-radius: 8px;
  color: var(--color-primary) !important;
  font-weight: 500 !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: var(--glow-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--text-primary);
  text-shadow:
    0 0 20px rgba(0, 212, 255, 0.4),
    0 0 60px rgba(0, 212, 255, 0.15),
    0 0 120px rgba(123, 47, 247, 0.1);
  margin-bottom: 8px;
}

.hero-subtitle {
  display: block;
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 8px;
  color: var(--color-secondary);
  margin-top: 8px;
  text-shadow: 0 0 20px rgba(123, 47, 247, 0.4);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-primary);
  margin: 32px 0 16px;
  font-weight: 300;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
  border-color: var(--color-primary);
}

.hero-cta .apple-logo {
  flex-shrink: 0;
}

.cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.cta-small {
  font-size: 0.6rem;
  letter-spacing: 0.5px;
}

.cta-large, .cta-large-text {
  font-size: 1.2rem;
  font-weight: 600;
}

.cta-large.cta-large {
  font-size: 1.2rem;
}

.hero-cta.cta-large {
  padding: 18px 36px;
}

.hero-cta.cta-large .cta-large-text {
  font-size: 1.4rem;
}

.hero-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 20px;
  letter-spacing: 1px;
}

/* Hero Planets */

.hero-planets {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-planet {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.planet-1 {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 35% 35%, #ff6b35, #8a3a1a);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3), inset -8px -4px 12px rgba(0, 0, 0, 0.4);
  top: 18%;
  left: 12%;
  animation: orbit-1 28s ease-in-out infinite;
}

.planet-2 {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 35% 35%, #00d4ff, #0a4a6a);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3), inset -6px -3px 8px rgba(0, 0, 0, 0.4);
  top: 25%;
  right: 15%;
  animation: orbit-2 22s ease-in-out infinite;
}

.planet-3 {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 35% 35%, #7b2ff7, #3a1570);
  box-shadow: 0 0 18px rgba(123, 47, 247, 0.3), inset -7px -3px 10px rgba(0, 0, 0, 0.4);
  bottom: 22%;
  right: 10%;
  animation: orbit-3 32s ease-in-out infinite;
}

.planet-4 {
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 35% 35%, #ffd700, #8a6a00);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3), inset -5px -2px 6px rgba(0, 0, 0, 0.4);
  bottom: 30%;
  left: 8%;
  animation: orbit-2 36s ease-in-out infinite reverse;
}

@keyframes orbit-1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -20px); }
  50% { transform: translate(60px, 5px); }
  75% { transform: translate(25px, 25px); }
}

@keyframes orbit-2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-20px, 15px); }
  50% { transform: translate(-40px, -10px); }
  75% { transform: translate(-15px, -25px); }
}

@keyframes orbit-3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-25px, -30px); }
  50% { transform: translate(10px, -50px); }
  75% { transform: translate(30px, -15px); }
}

.hero-orbit {
  position: absolute;
  width: 90%;
  max-width: 900px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  animation: rotate 120s linear infinite;
  opacity: 0.5;
}

@keyframes rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-dim);
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---- Features ---- */

.section-features {
  padding: var(--section-padding);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.08);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Story ---- */

.section-story {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.story-content {
  max-width: 760px;
}

.story-quote {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  color: var(--text-primary);
  border-left: 3px solid var(--color-secondary);
  padding-left: 24px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.story-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.story-text strong {
  color: var(--text-primary);
}

.text-glow-large {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  text-shadow:
    0 0 20px rgba(0, 212, 255, 0.5),
    0 0 60px rgba(0, 212, 255, 0.2);
  margin: 32px 0;
}

.nav-dialogue {
  position: relative;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 8px;
  padding: 32px 24px 24px;
  margin-top: 40px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow: hidden;
}

.nav-dialogue::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.015) 2px,
    rgba(0, 212, 255, 0.015) 4px
  );
  pointer-events: none;
}

.nav-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0, 212, 255, 0.06);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav-prompt {
  color: var(--color-primary);
  font-weight: 700;
}

/* ---- Worlds / Chapters ---- */

.section-worlds {
  padding: var(--section-padding);
}

.chapters-wrapper {
  position: relative;
  margin-top: 48px;
}

.chapters-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 20px;
  scrollbar-width: none;
}

.chapters-scroll::-webkit-scrollbar {
  display: none;
}

.chapter-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  padding: 24px 20px 20px;
  transition: transform 0.3s, border-color 0.3s;
}

.chapter-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.1);
}

.chapter-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
}

.chapter-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

.chapter-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 8px 0;
  color: var(--text-primary);
}

.chapter-levels {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.chapter-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-free {
  background: rgba(0, 200, 100, 0.12);
  color: #00c864;
  border: 1px solid rgba(0, 200, 100, 0.2);
}

.badge-price {
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.chapter-locked .chapter-lock {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.9rem;
  opacity: 0.5;
}

.chapter-locked::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 26, 0.3);
  pointer-events: none;
  z-index: 1;
  border-radius: 12px;
}

.chapters-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: opacity 0.2s, background 0.2s;
}

.chapters-arrow:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.chapters-arrow-left {
  left: -20px;
}

.chapters-arrow-right {
  right: -20px;
}

.chapters-unlock {
  text-align: center;
  margin-top: 32px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.chapters-unlock strong {
  color: var(--color-primary);
}

/* ---- STEM ---- */

.section-stem {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.stem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stem-item {
  border-left: 3px solid var(--color-primary);
  padding-left: 20px;
}

.stem-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stem-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.stem-note {
  margin-top: 60px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---- CTA Section ---- */

.section-cta {
  padding: var(--section-padding);
  position: relative;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
}

.cta-content {
  text-align: center;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-badges span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---- Footer ---- */

.footer {
  background: #060612;
  padding: 80px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-copyright {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ---- Scroll Reveal Animations ---- */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.fade-in-up:nth-child(5) { transition-delay: 0.4s; }
.fade-in-up:nth-child(6) { transition-delay: 0.5s; }

/* ---- Secondary Pages ---- */

.page-header {
  padding: 160px 24px 60px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.page-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 120px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.page-body h2 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.3rem;
  margin: 48px 0 16px;
}

.page-body h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 32px 0 12px;
}

.page-body p {
  margin-bottom: 16px;
}

.page-body ul, .page-body ol {
  margin: 0 0 16px 24px;
  list-style: disc;
}

.page-body ol {
  list-style: decimal;
}

.page-body li {
  margin-bottom: 8px;
}

.page-body a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.page-body a:hover {
  text-decoration: underline;
}

/* ---- FAQ (Support page) ---- */

.faq-section {
  margin-bottom: 60px;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 20px;
}

/* ---- Forms ---- */

.form-section {
  margin-bottom: 60px;
}

.form-section h2 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.form-section > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group textarea.monospace {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239999bb' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--color-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.form-submit:hover {
  background: #33ddff;
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
  font-size: 0.9rem;
}

.form-status.success {
  display: block;
  background: rgba(0, 200, 100, 0.1);
  color: #00c864;
  border: 1px solid rgba(0, 200, 100, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(255, 50, 50, 0.1);
  color: #ff5555;
  border: 1px solid rgba(255, 50, 50, 0.2);
}

/* ---- Press Kit ---- */

.press-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.press-factsheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 24px;
  position: sticky;
  top: 100px;
}

.press-factsheet h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.press-factsheet dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}

.press-factsheet dt {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.press-factsheet dd {
  color: var(--text-primary);
  font-size: 0.85rem;
}

.press-main h2 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.2rem;
  margin: 40px 0 16px;
}

.press-main h2:first-child {
  margin-top: 0;
}

.press-main p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.press-main ul {
  list-style: disc;
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
}

.press-main li {
  margin-bottom: 6px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0 32px;
}

.screenshot-placeholder {
  aspect-ratio: 9/16;
  border: 2px dashed var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}

/* ---- 404 Page ---- */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.error-description {
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.error-page .hero-cta {
  margin-bottom: 40px;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .press-factsheet {
    position: static;
  }

  .chapters-arrow {
    display: none;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-planet {
    opacity: 0.5;
  }

  .planet-3, .planet-4 {
    display: none;
  }

  .hero-orbit {
    display: none;
  }

  .trust-badges {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .chapters-arrow {
    display: none;
  }

  .chapter-card {
    flex: 0 0 200px;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: 3px;
  }

  .hero-subtitle {
    letter-spacing: 4px;
  }
}

/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}
