/* ============================================================
   QWeb Studio v3 — The Space Journey
   Mobile-first: 375px base -> 768px -> 1024px -> 1440px
   ============================================================ */

/* ----------------------------------------------------------------
   0. CSS Custom Properties — Deep Space
   ---------------------------------------------------------------- */
:root {
  --bg-space: #030308;
  --bg-path: #0a0a14;
  --bg-card: rgba(12, 12, 24, 0.85);
  --bg-surface: #0f0f1a;
  --text-primary: #eeeef5;
  --text-secondary: #b0b0c5;
  --text-muted: #3a3a55;
  --accent-violet: #7B61FF;
  --accent-cyan: #00D4FF;
  --accent-warm: #FF6B4A;
  --accent-gold: #FFD700;
  --accent-gradient: linear-gradient(135deg, #7B61FF, #00D4FF);
  --glow-violet: 0 0 40px rgba(123, 97, 255, 0.25);
  --glow-cyan: 0 0 40px rgba(0, 212, 255, 0.25);
  --glow-gold: 0 0 30px rgba(255, 215, 0, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(123, 97, 255, 0.2);
  --star-dim: rgba(255, 255, 255, 0.3);
  --star-bright: rgba(255, 255, 255, 0.9);

  --font-heading: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-h: 64px;
}

/* ----------------------------------------------------------------
   1. Reset & Base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-space);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea, [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body.loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

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

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

/* ----------------------------------------------------------------
   2. Container
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 60px; } }

/* ----------------------------------------------------------------
   3. Particle Canvas
   ---------------------------------------------------------------- */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
  transform: translateZ(0);
}

/* ----------------------------------------------------------------
   4. Custom Cursor
   ---------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body:not(.loading) .cursor { opacity: 1; }

.cursor-dot {
  width: 8px; height: 8px;
  background: var(--text-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot.is-text {
  width: 2px; height: 20px;
  border-radius: 1px;
  background: var(--accent-violet);
}

.cursor-outline {
  width: 40px; height: 40px;
  border: 1px solid var(--accent-violet);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.cursor-outline.is-hover {
  width: 60px; height: 60px;
  background: rgba(123, 97, 255, 0.1);
}

.cursor-outline.is-interactive {
  width: 56px; height: 56px;
  border-color: var(--accent-cyan);
  animation: cursor-pulse 1.5s ease-in-out infinite;
}

.cursor-outline.is-text { opacity: 0; }

@media (pointer: coarse) {
  .cursor,
  .cursor-dot,
  .cursor-outline { display: none !important; }
}

/* ----------------------------------------------------------------
   5. Loader (replaced by canvas game — CSS for old loader hidden)
   ---------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-space);
  display: none;
}

/* Loader mini-game */
.loader-game {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-space);
}

.loader-game canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.loader-game .game-ui {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.game-score {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.6;
}

.game-bottom {
  text-align: center;
}

.game-progress-bar {
  width: 80%;
  max-width: 300px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin: 0 auto 12px;
  overflow: hidden;
}

.game-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.game-tap-hint {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulse-opacity 1.5s ease-in-out infinite;
}

.game-loading-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ----------------------------------------------------------------
   6. Navigation
   ---------------------------------------------------------------- */
.nav {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10000 !important;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(3, 3, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

/* Responsive logo: mobile = helmet only, desktop = helmet+ring+text SVG */
.logo-mobile { display: block; flex-shrink: 0; }
.logo-desktop { display: none; }

@media (min-width: 768px) {
  .logo-mobile { display: none; }
  .logo-desktop { display: block; }
}

/* Footer logo always shows desktop version */
.footer-logo .logo-desktop { display: block; }
.footer-logo .logo-mobile { display: none; }

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

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

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

.nav-cta {
  font-size: 0.875rem !important;
  color: var(--accent-violet) !important;
  border: 1px solid var(--accent-violet);
  padding: 6px 16px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--accent-violet);
  color: var(--bg-space) !important;
}

.nav-toggle {
  width: 32px; height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  z-index: 10000;
}

@media (min-width: 768px) {
  .nav { padding: 0 40px; }
  .nav-links { display: flex; }
  .nav-toggle { display: none !important; }
}

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

.nav-toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav-mobile {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #030308 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 99999 !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden !important;
}

.nav-mobile.is-open { opacity: 1; pointer-events: auto; visibility: visible; }

.nav-mobile a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 20px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  min-height: 48px;
}

.nav-mobile a:active { color: var(--accent-violet); }

@media (min-width: 768px) { .nav-mobile { display: none !important; } }

/* Beacon counter */
.beacon-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: default;
  user-select: none;
  transition: transform 0.2s ease;
}

.beacon-counter-fixed {
  display: none;
}

.beacon-counter-mobile {
  font-size: 0.9rem;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .beacon-counter-fixed {
    display: inline-block;
    position: relative;
    margin-right: 8px;
  }
}

/* ----------------------------------------------------------------
   7. Astronaut
   ---------------------------------------------------------------- */
.astronaut {
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) translateZ(0);
  z-index: 200;
  width: 70px;
  height: auto;
  pointer-events: none !important; /* Click-through — helmets behind it must be tappable */
  will-change: transform;
  backface-visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* SVG root receives the triple-tap easter egg — but its children must not block clicks */
.astronaut-svg {
  width: 100%;
  height: auto;
  pointer-events: auto;
}

/* SVG shape children (rect, path, circle etc.) must NEVER intercept clicks —
   they appear at fixed viewport position and would block underlying content.
   Events on shapes bubble up to .astronaut-svg so triple-tap still works. */
.astronaut-svg *,
#astronaut svg * {
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .astronaut {
    width: 45px;
    left: 65%;
  }
}

.astronaut.is-path-mode {
  transition: opacity 0.3s ease;
}

.astronaut.is-over-content {
  opacity: 0.3 !important;
}

/* ----------------------------------------------------------------
   8. Starfield
   ---------------------------------------------------------------- */
/* Ensure all background/decorative layers never intercept clicks */
.path-bg,
.path-stars,
.path-glow-line,
.starfield,
.hero-bg-stars,
.stars,
.split-glow {
  pointer-events: none !important;
}

.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.stars {
  position: absolute;
  width: 100%; height: 200%;
  top: -50%;
}

.stars-far  { animation: starfield-drift 90s linear infinite; opacity: 0.4; }
.stars-mid  { animation: starfield-drift 60s linear infinite; opacity: 0.6; }
.stars-near { animation: starfield-drift 45s linear infinite; opacity: 0.9; }

@media (max-width: 767px) {
  .stars-mid, .stars-near { display: none; }
}

/* ----------------------------------------------------------------
   9. Hero
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  overflow: hidden;
  background: var(--bg-space);
  z-index: 99;
}

/* Curtain Split Hero — fixed overlay so curtains reveal site beneath */
.hero-pinned {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: unset;
  padding: 0;
  z-index: 99 !important;
  /* Hero container is a visual overlay only — never intercept clicks on content below */
  pointer-events: none;
}

/* Re-enable clicks for interactive elements inside the hero curtains */
.hero-pinned .hero-content,
.hero-pinned .hero-content * {
  pointer-events: auto;
}

/* Background starfield — sits behind both curtains, revealed as they split apart */
.hero-bg-stars {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1; /* behind curtains (z-index: 10) */
}

/* Clip-path curtain split — both curtains full-width, clips create the halves */
.hero-curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: var(--bg-space);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-curtain--left {
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.hero-curtain--right {
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}

.hero-curtain-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  position: relative;
}

/* Astronaut is revealed via astronaut.js scroll trigger as curtains open */

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px);
}

@media (min-width: 768px) {
  .hero-actions { flex-direction: row; justify-content: center; gap: 24px; }
}

/* Welcome back message (milestone #7) */
.hero-welcome-back {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.5s ease;
}

.hero-welcome-back.is-visible {
  opacity: 1;
}

/* ----------------------------------------------------------------
   10. Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: var(--bg-space);
  background: var(--text-primary);
  position: relative;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: conic-gradient(from var(--border-angle, 0deg), #7B61FF, #00D4FF, #7B61FF);
  z-index: -2;
  animation: spin-border 3s linear infinite;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: var(--text-primary);
  z-index: -1;
}

.btn-primary:hover { box-shadow: var(--glow-violet); }

.btn-secondary {
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-violet);
}

.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-loader {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--bg-space);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn.is-loading .btn-text,
.btn.is-loading .btn-arrow { display: none; }
.btn.is-loading .btn-loader { display: inline-block; }

/* Badge */
.hero-badge, .pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 8px;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent-violet);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.scroll-indicator.is-hidden { opacity: 0 !important; }

.scroll-arrow { animation: scroll-bounce 1.5s ease-in-out infinite; }

/* ----------------------------------------------------------------
   11. SPLIT PATH — The page tears apart
   ---------------------------------------------------------------- */
.split-container {
  position: relative;
  z-index: 1;
  margin-top: 100vh; /* Push content below the fixed hero */
}

/* Torn edges — walls that cover screen halves and slide apart */
.split-edge {
  position: fixed;
  top: 0;
  width: 50vw;
  height: 100vh;
  height: 100dvh;
  z-index: 98;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.split-left {
  left: 0;
  background: var(--bg-space);
  clip-path: polygon(
    0 0, 100% 0,
    97% 4%, 100% 8%, 96% 13%, 99% 18%, 95% 23%,
    98% 28%, 96% 33%, 100% 38%, 97% 43%, 99% 48%,
    95% 53%, 98% 58%, 96% 63%, 100% 68%, 97% 73%,
    99% 78%, 95% 83%, 98% 88%, 96% 93%, 100% 100%,
    0 100%
  );
  box-shadow: inset -20px 0 40px rgba(123, 97, 255, 0.08);
}

.split-right {
  right: 0;
  background: var(--bg-space);
  clip-path: polygon(
    0 0, 100% 0, 100% 100%, 0 100%,
    3% 93%, 0% 88%, 4% 83%, 1% 78%, 5% 73%,
    2% 68%, 4% 63%, 0% 58%, 3% 53%, 1% 48%,
    5% 43%, 2% 38%, 4% 33%, 0% 28%, 3% 23%,
    1% 18%, 5% 13%, 2% 8%, 0% 4%
  );
  box-shadow: inset 20px 0 40px rgba(123, 97, 255, 0.08);
}

/* Inner glow on the torn edges */
.split-glow {
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
}

.split-left .split-glow {
  right: 0;
  background: linear-gradient(to left, rgba(123, 97, 255, 0.08), transparent);
}

.split-right .split-glow {
  left: 0;
  background: linear-gradient(to right, rgba(123, 97, 255, 0.08), transparent);
}

/* Path background */
.path-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: var(--bg-path);
}

.path-bg.is-active { opacity: 1; }

.path-stars {
  position: absolute;
  inset: 0;
}

.path-glow-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(123, 97, 255, 0.15) 20%,
    rgba(0, 212, 255, 0.1) 50%,
    rgba(123, 97, 255, 0.15) 80%,
    transparent 100%
  );
  transform: translateX(-50%);
}

/* Path content — transparent wrapper, sections handle their own padding */
.path-content {
  position: relative;
  z-index: 100; /* Above split-edges (z-index: 98) */
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Each section handles its own padding */
#stats,
#services,
#process,
#pricing,
#about,
#contact,
.faq-treasure,
.seo-content {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 5% !important;
  padding-right: 5% !important;
}

/* Mobile: hide split walls entirely — they're a desktop effect */
@media (max-width: 767px) {
  .split-edge,
  .split-left,
  .split-right {
    display: none !important;
  }

  .path-bg {
    width: 100% !important;
    left: 0 !important;
  }
}

/* ----------------------------------------------------------------
   12. Stats — Condensed Grid
   ---------------------------------------------------------------- */
#stats {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 8% !important;
  margin: 0 !important;
  min-height: 80vh;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 100% !important;
  max-width: 100% !important;
  align-items: center;
  margin: 0 auto !important;
  padding: 0 !important;
}

@media (min-width: 768px) {
  .stats-grid {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 60px !important;
  }
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
  .stats-grid {
    flex-direction: column !important;
    gap: 50px !important;
  }
}

.stat-item {
  flex: 1 !important;
  text-align: center !important;
  position: relative;
  padding: 40px 0 !important;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 15vw, 10rem) !important;
  font-weight: 700;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block !important;
}

.stat-suffix {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-desc {
  font-size: clamp(0.85rem, 2vw, 1.1rem) !important;
  color: #b0b0c5 !important;
  line-height: 1.7;
  margin-top: 16px !important;
}

/* ----------------------------------------------------------------
   13. Section Headers (shared)
   ---------------------------------------------------------------- */
.section-header { margin-bottom: 48px; }

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(12px);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

@media (min-width: 768px) { .section-header { margin-bottom: 64px; } }

/* ----------------------------------------------------------------
   14. Services — Space Doors
   ---------------------------------------------------------------- */
.services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr; gap: 24px 40px; max-width: 1100px; margin: 0 auto; } }

/* Space door wrapper */
.space-door-wrap {
  position: relative;
  min-height: 200px;
}

/* The door itself */
.space-door {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(12, 12, 24, 0.6);
  border: 1px solid var(--border-glow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.space-door:hover {
  box-shadow: var(--glow-violet);
  transform: scale(1.02);
}

.door-border {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: conic-gradient(from var(--border-angle, 0deg), #7B61FF, #00D4FF, transparent, #7B61FF);
  animation: spin-border 4s linear infinite;
  opacity: 0.4;
  z-index: -1;
}

.door-icon {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-violet);
  text-shadow: 0 0 20px rgba(123, 97, 255, 0.4);
}

.space-door.is-opened {
  pointer-events: none;
}

.space-door.is-opened .door-border { opacity: 0; }

/* Service card (behind door) */
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 24px;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
  opacity: 0;
}

.service-card[data-revealed="true"] { opacity: 1; }

.service-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-violet);
}

.service-card:hover .card-ghost { opacity: 0.15; }

.card-ghost {
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.06;
  line-height: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-icon {
  color: var(--text-primary);
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   15. Process / Timeline
   ---------------------------------------------------------------- */
.process {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important; /* Break out of any container */
  padding: 120px 5% !important;
}

.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-svg {
  position: absolute;
  left: 5px; top: 0;
  width: 2px; height: 100%;
  color: var(--text-muted);
  overflow: visible;
}

.timeline-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.process-step {
  position: relative;
  padding-bottom: 80px;
  min-height: 40vh;
}

.process-step:last-child { padding-bottom: 0; }

.step-dot {
  position: absolute;
  left: -40px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--bg-space);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.process-step.is-active .step-dot {
  background: var(--accent-violet);
  box-shadow: 0 0 12px rgba(123, 97, 255, 0.5);
  animation: dot-pulse 2s ease-in-out infinite;
}

.step-content {
  opacity: 0;
  transform: translateX(-20px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-violet);
  display: block;
  margin-bottom: 8px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
}

/* Tablet+: steps alternate left/right around center line */
@media (min-width: 768px) {
  .timeline { padding-left: 0; max-width: 100%; margin: 0 auto; }
  .timeline-svg { left: 50%; transform: translateX(-50%); }
  .step-dot { left: 50%; transform: translateX(-50%); }

  .step-content { max-width: 40%; }

  /* Steps 01 & 03 → LEFT */
  .step-align-left {
    display: flex !important;
    justify-content: flex-start !important;
  }
  .step-align-left .step-content {
    margin-right: auto !important;
    margin-left: 8% !important;
    max-width: 35% !important;
    text-align: left;
    transform: none;
  }
  .step-align-left .step-desc { margin-left: 0; }

  /* Steps 02 & 04 → RIGHT */
  .step-align-right {
    display: flex !important;
    justify-content: flex-end !important;
    text-align: left !important;
  }
  .step-align-right .step-content {
    margin-left: auto !important;
    margin-right: 8% !important;
    max-width: 35% !important;
    text-align: left;
    transform: none;
  }
  .step-align-right .step-desc { margin-left: 0; }
}

/* ----------------------------------------------------------------
   16. Pricing — Two-tier Cards
   ---------------------------------------------------------------- */
.pricing {
  padding: 100px 0;
}

/* Two-card grid */
.pricing-cards-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-cards-grid {
    flex-direction: row;
    align-items: flex-start; /* Both cards start at same vertical position */
    gap: 28px;
    max-width: 1100px;
    padding: 0 20px;
  }
}

/* Value prop below cards */
.pricing-value-prop {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 20px;
}

@media (max-width: 767px) {
  .pricing-value-prop {
    margin-top: 60px !important;
    padding-top: 40px !important;
  }
}

@media (min-width: 768px) {
  .pricing-value-prop {
    padding: 0;
  }
}

.pricing-card {
  flex: 1 1 0; /* Equal width AND equal height */
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(12, 12, 24, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 28px;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Push the CTA button to the bottom of the card */
.pricing-card .pricing-cta {
  margin-top: auto !important;
}

/* Starter card */
.pricing-card--starter {
  border-color: rgba(255,255,255,0.1);
}

/* Spectacular card */
.pricing-card--spectacular {
  border-color: transparent;
  overflow: visible;
}

.pricing-card--spectacular::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: conic-gradient(from var(--border-angle, 0deg), #7B61FF, #00D4FF, #7B61FF);
  z-index: -1;
  animation: spin-border 4s linear infinite;
}

.pricing-card--spectacular::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(12, 12, 24, 0.95);
  z-index: -1;
}

/* Pricing badge (MOST POPULAR) — absolute so it doesn't push card down */
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  display: inline-block;
  background: linear-gradient(90deg, #7B61FF, #00D4FF);
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 0;
  z-index: 2;
}

/* Spectacular card same padding as starter — badge is absolute */
.pricing-card--spectacular {
  margin-top: 0 !important;
}

/* Pricing label (STARTER / SPECTACULAR) */
.pricing-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-violet);
  margin-bottom: 8px;
}

/* Tagline under label */
.pricing-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Price display */
.price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.price-amount {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.price-struck {
  text-decoration: line-through;
  color: var(--text-muted) !important;
  font-size: clamp(1.2rem, 4vw, 1.8rem) !important;
}

.price-new {
  color: #4ADE80 !important;
  font-size: clamp(2.2rem, 8vw, 3.2rem) !important;
}

/* Annual includes line */
.price-includes {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 6px 0 20px;
  line-height: 1.5;
}

/* "Everything in Starter, plus:" */
.includes-starter {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin: 0 0 8px;
  font-style: italic;
}

/* Unlocked state glow */
.pricing-card--starter.is-unlocked,
.pricing-card--spectacular.is-unlocked {
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.15);
}

.pricing-featured {
  border-color: transparent;
  overflow: visible;
}

.pricing-featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: conic-gradient(from var(--border-angle, 0deg), #7B61FF, #00D4FF, #7B61FF);
  z-index: -1;
  animation: spin-border 4s linear infinite;
}

.pricing-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(12, 12, 24, 0.95);
  z-index: -1;
}

.pricing-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-violet);
  display: block;
  margin-bottom: 16px;
}

.price-from {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
}

.price-currency {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0;
}

.price-digits { display: inline-flex; gap: 0; }

.digit-reel {
  display: inline-block;
  width: clamp(2rem, 6vw, 3.5rem);
  height: clamp(3rem, 10vw, 5rem);
  overflow: hidden;
  position: relative;
}

.digit-inner {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  line-height: 1;
  position: absolute;
  top: 0; left: 0;
}

/* Unlocked pricing state */
.pricing-unlocked {
  display: block;
  margin-bottom: 4px;
}

.pricing-unlocked-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-old-price {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

.pricing-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.pricing-new-price {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 20px;
}

.pricing-monthly {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.pricing-monthly span:first-child {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
}

.pricing-monthly-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pricing-features { margin-bottom: 28px; }

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check {
  color: var(--accent-violet);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 16px;
}

/* Teaser (before discount unlocked) */
.pricing-teaser {
  text-align: center;
  padding: 16px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-subtle);
}

.teaser-lock {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.teaser-text {
  font-size: 0.8rem;
  color: var(--accent-gold);
  line-height: 1.5;
  animation: gold-shimmer 3s ease-in-out infinite;
}

@keyframes gold-shimmer {
  0%, 100% { opacity: 0.7; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
}

/* Unlocked badge */
.pricing-unlocked-badge {
  text-align: center;
  padding: 16px 0;
  margin-bottom: 20px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.unlocked-icon {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.unlocked-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.pricing-featured.is-unlocked .pricing-cta {
  animation: gold-pulse 2s ease-in-out infinite;
}

@keyframes gold-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(255, 215, 0, 0.3); }
}

/* Value proposition panel */
.pricing-value {
  flex: 1;
  opacity: 0;
  transform: translateY(30px);
}

.pricing-value-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  word-break: keep-all;
}

.pricing-value-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.pricing-value-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  gap: 10px;
}

.value-arrow {
  color: var(--accent-violet);
  flex-shrink: 0;
  font-weight: 600;
}

.pricing-value-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 20px;
  border-left: 2px solid var(--accent-violet);
}

/* ----------------------------------------------------------------
   17. About
   ---------------------------------------------------------------- */
.about {
  padding: 120px 0;
}

.about-inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .about-inner {
    max-width: 1100px;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    padding: 0 40px;
  }

  .about-flags { justify-content: flex-start; }
}

.about-flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.5rem;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
}

.flag-x {
  font-size: 1rem;
  color: var(--text-muted);
}

.about-heading { margin-bottom: 32px; }

.about-line {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: nowrap;
}

/* Milestone #4 target word */
.milestone-word {
  cursor: default;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.milestone-word.is-glowing {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.about-body {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

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

.about-body p:last-child { margin-bottom: 0; }

.about-cta {
  opacity: 0;
  transform: translateY(16px);
}

/* ----------------------------------------------------------------
   18. Contact
   ---------------------------------------------------------------- */
.contact {
  padding: 100px 0;
}

/* Mission complete message */
.mission-complete-msg {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.contact-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

@media (min-width: 768px) { .contact-options { grid-template-columns: 1fr 1fr; } }

.contact-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 48px;
}

.contact-option:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-violet);
}

.contact-icon {
  color: var(--accent-violet);
  margin-bottom: 4px;
}

.contact-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

.contact-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------
   19. Form
   ---------------------------------------------------------------- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
}

@media (min-width: 1024px) {
  .contact-form {
    max-width: 700px;
  }

  .contact-options {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

.form-group {
  position: relative;
  margin-bottom: 32px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--text-muted);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 0 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-image: linear-gradient(90deg, #7B61FF, #00D4FF) 1;
}

.form-group label {
  position: absolute;
  top: 12px; left: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  pointer-events: none;
  transition: transform 0.25s ease, font-size 0.25s ease, color 0.25s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-24px);
  font-size: 0.75rem;
  color: var(--accent-violet);
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-warm);
  margin-top: 6px;
  min-height: 1.2em;
}

.form-group input.has-error,
.form-group textarea.has-error {
  border-bottom-color: var(--accent-warm);
  animation: shake 0.4s ease;
}

.form-submit { margin-top: 8px; }

.form-success {
  text-align: center;
  padding: 40px 0;
}

.success-check { margin: 0 auto 20px; }

.success-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: draw-check 0.6s ease forwards 0.3s;
}

.success-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   20. FAQ — Space Treasure Ships
   ---------------------------------------------------------------- */
.faq-treasure {
  padding: 80px 0 60px;
  background: var(--bg-space);
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 99;
  /* Container must not intercept clicks on sections below (seo-content, footer) */
  pointer-events: none;
}

/* Re-enable pointer-events only on interactive/readable children */
.faq-treasure .container,
.faq-treasure .faq-ship,
.faq-treasure .faq-answer,
.faq-treasure .faq-item,
.faq-treasure .faq-treasure-title,
.faq-treasure .faq-subtitle {
  pointer-events: auto;
}

.faq-treasure-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

.faq-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 56px;
}

.faq-treasure .container {
  text-align: center;
}

.faq-item {
  margin: 32px auto;
  max-width: 480px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Desktop : élever l'item survolé au-dessus de tout */
.faq-item:hover {
  z-index: 999999;
}

/* S'assurer que les autres items passent en dessous */
#faq:has(.faq-item:hover) .faq-item:not(:hover) {
  z-index: 1;
}

.faq-item--left {
  margin-right: auto;
  margin-left: 5%;
}

.faq-item--right {
  margin-left: auto;
  margin-right: 5%;
}

@media (max-width: 767px) {
  .faq-item--left,
  .faq-item--right {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding: 0 20px;
  }
}

.faq-ship {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(123, 97, 255, 0.18);
  background: rgba(12, 12, 24, 0.6);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  user-select: none;
  position: relative;
  z-index: 10 !important; /* Always clickable, above answers */
  pointer-events: auto !important;
}

.faq-ship:hover,
.faq-ship:focus-visible {
  border-color: rgba(123, 97, 255, 0.4);
  background: rgba(12, 12, 24, 0.9);
  transform: translateX(4px);
  outline: none;
}

.faq-ship[aria-expanded="true"] {
  border-color: rgba(0, 212, 255, 0.4);
}

.faq-ship-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-question-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.faq-tap-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: opacity 0.3s ease;
}

.faq-answer {
  position: relative;
  z-index: 1; /* Below the ship buttons */
  padding: 0 20px 0 86px;
  margin-left: 20px;
  border-left: 2px solid rgba(0, 212, 255, 0.25);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 16px 20px 4px 86px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

/* ----------------------------------------------------------------
   21. SEO Content + FAQ (old — repurposed as SEO-only section)
   ---------------------------------------------------------------- */
.seo-content {
  background: var(--bg-primary);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 100; /* above .faq-treasure (99) so it wins on any overlap */
}

.seo-content-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.seo-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.seo-content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 10px;
}

.seo-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 10px;
}

.seo-content a {
  color: var(--accent-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-bottom: 1px solid rgba(123, 97, 255, 0.3);
  text-decoration: none;
}

.seo-content a:hover {
  color: var(--accent-cyan);
  border-bottom-color: rgba(0, 212, 255, 0.5);
}

.seo-word {
  transition: opacity 0.1s ease;
}

/* Old FAQ chat bubble CSS removed — replaced by .faq-treasure above */

/* ----------------------------------------------------------------
   21. Footer
   ---------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 99;
  width: 100%;
  padding: 40px 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  background: var(--bg-space);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-logo .logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

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

.footer-reset {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-reset:hover { opacity: 0.7; }

/* Footer constellation for milestone #3 */
.footer-constellation {
  position: absolute;
  inset: -40px 0 0 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.footer-constellation.is-visible {
  opacity: 1;
}

/* ----------------------------------------------------------------
   21. Journey CTAs (progressive waypoints)
   ---------------------------------------------------------------- */
.journey-cta {
  text-align: center;
  padding: 40px 20px;
  opacity: 0;
  transform: translateY(20px);
}

.journey-cta-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.journey-cta-link:hover {
  color: var(--accent-violet);
}

.journey-cta-link span {
  transition: transform 0.2s ease;
}

.journey-cta-link:hover span {
  transform: translateX(4px);
}

/* ----------------------------------------------------------------
   22. Beacon Orb (milestone #1 in hero)
   ---------------------------------------------------------------- */
/* ── Hidden Helmets — Base Styles ── */
.hidden-helmet {
  position: absolute;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 500;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  animation: helmet-pulse 3s ease-in-out infinite;
}

.hidden-helmet svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hidden-helmet:hover {
  transform: scale(1.15);
}

.hidden-helmet.is-found {
  opacity: 0.55 !important;
  pointer-events: none;
  filter: drop-shadow(0 0 10px currentColor) saturate(1.4) !important;
  animation: none !important;
  transform: scale(1.1) !important;
  transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
}

@keyframes helmet-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.35; }
}

@media (max-width: 768px) {
  .hidden-helmet {
    min-width: 56px;
    min-height: 56px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.helmet-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  animation: pulse-opacity 2s ease-in-out infinite;
}

/* ── Helmet #1: Pink — Stats section (the obvious first one) ── */
#stats { position: relative; }

.helmet1-wrap {
  position: absolute;
  top: 50%;
  right: 16px;
  left: auto;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  max-width: clamp(160px, 15vw, 200px);
}

.helmet1-speech {
  background: rgba(30, 10, 40, 0.88);
  border: 1px solid rgba(255, 105, 180, 0.6);
  border-radius: 12px;
  padding: 8px 14px;
  font-family: var(--font-body, 'Space Grotesk', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: normal;
  max-width: 180px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
}

.helmet1-speech::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(255, 105, 180, 0.4);
  border-bottom: none;
}

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

#helmet1 {
  position: relative;
  width: 60px;
  height: 60px;
  opacity: 0.85 !important;
  animation: helmet-ring 2s infinite, helmet1-bounce 2s ease-in-out infinite !important;
  border-radius: 50%;
}

#helmet1 svg {
  width: 60px;
  height: 60px;
}

@keyframes helmet-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.5); }
  70% { box-shadow: 0 0 0 20px rgba(255, 105, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0); }
}

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

#helmet1.is-found {
  filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.8)) drop-shadow(0 0 6px #fff) !important;
}

/* ── Helmet #2: Blue — Services card #3 (Ongoing Support) edge ── */
.space-door-wrap:nth-child(3),
.space-door-wrap:nth-child(3) .service-card {
  position: relative;
  overflow: visible;
}

#helmet2 {
  bottom: -15px;
  right: -10px;
  width: 40px;
  height: 40px;
}

#helmet2.is-found {
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.4));
}

/* ── Helmet #3: White — Process section, between step 02 and 03 ── */
#process { position: relative; }

#helmet3 {
  position: relative;
  margin-left: 48%;
  width: 40px;
  height: 40px;
  opacity: 0.15;
  margin-top: -10px;
  margin-bottom: -10px;
}

#helmet3.is-found {
  filter: drop-shadow(0 0 12px rgba(240, 240, 245, 0.3));
}

/* ── Helmet #4: Gold — Pricing, Spectacular card bottom-right ── */
.pricing-card--spectacular { position: relative; overflow: visible; }

#helmet4 {
  bottom: -12px;
  right: 20px;
  width: 35px;
  height: 35px;
}

#helmet4.is-found {
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.4));
}

/* ── Helmet #5: Green — About section, near flags ── */
.about-flags { position: relative; }

#helmet5 {
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: -8px;
}

#helmet5.is-found {
  filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.4));
}

/* ── Helmet #6: Orange — Contact section, below form ── */
#contact .container { position: relative; }

#helmet6 {
  position: relative;
  margin: 16px 0 0 60%;
  width: 35px;
  height: 35px;
}

#helmet6.is-found {
  filter: drop-shadow(0 0 12px rgba(255, 140, 66, 0.4));
}

/* ── Helmet #7: Red — Footer ── */
.footer .footer-inner { position: relative; overflow: visible; }

#helmet7 {
  position: relative;
  margin: 8px 0 0 auto;
  display: block;
  width: 35px;
  height: 35px;
}

#helmet7.is-found {
  filter: drop-shadow(0 0 12px rgba(255, 71, 87, 0.4));
}

/* ── Low-end device overrides ── */
body.low-end .stars,
body.low-end .path-stars {
  display: none !important;
}

body.low-end .split-edge {
  clip-path: none !important;
}

body.low-end .cursor-dot,
body.low-end .cursor-outline {
  display: none !important;
}

body.low-end * {
  animation-duration: 0.01ms !important;
  transition-duration: 0.1s !important;
}

/* Legacy beacon classes (keep for counter badge) */
.beacon-orb { display: none; }

/* ----------------------------------------------------------------
   23. Milestone Feedback Overlay
   ---------------------------------------------------------------- */
.milestone-feedback {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  text-align: center;
  pointer-events: none;
}

.milestone-feedback-text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-primary);
  background: rgba(12, 12, 24, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 16px 28px;
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   24. Celebration Overlay (all 7 found)
   ---------------------------------------------------------------- */
.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 3, 8, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.celebration-overlay[hidden] { display: none; }

.celebration-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.celebration-close:hover { color: var(--text-primary); }

.celebration-inner {
  text-align: center;
  max-width: 480px;
  width: 90vw;
  max-height: 85vh;
  overflow: hidden;
  padding: 40px 32px;
  background: #0c0c18;
  border: 1px solid rgba(123, 97, 255, 0.3);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 60px rgba(123, 97, 255, 0.15);
  box-sizing: border-box;
}

.celebration-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.celebration-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  word-break: keep-all;
  overflow-wrap: normal;
  line-height: 1.2;
  letter-spacing: 0;
}

.celebration-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.celebration-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.celebration-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.celebration-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f0f0f5;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.celebration-field input:focus {
  border-color: rgba(123, 97, 255, 0.5);
}

.celebration-field input::placeholder {
  color: var(--text-muted);
}

.celebration-cta {
  min-width: 200px;
  margin-top: 8px;
}

/* ----------------------------------------------------------------
   25. Journey block alternation (desktop)
   ---------------------------------------------------------------- */
@media (min-width: 1024px) {
  .journey-block {
    max-width: 55%;
  }
  .journey-block:nth-child(odd) {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
  }
  .journey-block:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
  }
  /* Services and contact span full width */
  .journey-block.services,
  .journey-block.contact,
  .journey-block.pricing,
  .journey-block.about {
    max-width: 100%;
  }
}

/* ----------------------------------------------------------------
   26. Responsive refinements
   ---------------------------------------------------------------- */
@media (min-width: 1024px) {
  .hero { padding: 120px 60px 60px; }
  .service-card { padding: 36px 28px; }
  .card-ghost { font-size: 6rem; }
}

@media (min-width: 1440px) {
  .container { max-width: 1320px; }
}

/* ----------------------------------------------------------------
   26. Typography global word-break fix
   ---------------------------------------------------------------- */
h1, h2, h3,
.hero-title,
.section-title,
.about-line,
.step-title,
.card-title,
.pricing-value-title,
.celebration-title {
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

/* ----------------------------------------------------------------
   27. Readability overrides
   ---------------------------------------------------------------- */

/* Form input border-bottom — more visible on dark bg */
.form-group input,
.form-group textarea {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Placeholder text */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

/* Pricing value prop headings */
.pricing-value-title {
  color: var(--text-primary);
}

/* SEO section headings */
.seo-content h2,
.seo-content h3 {
  color: var(--text-primary);
}
