@import url('../fonts/fonts.css');
@import url('tokens.css');

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-style: normal !important; /* Never italic anywhere per B1 */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  text-wrap: pretty; /* No orphaned words in body per B1 */
  line-height: 1.5;
}

[v-cloak] {
  display: none !important;
}

::selection {
  background-color: var(--border-hover);
  color: var(--text-primary);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #000000;
}

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

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM (B1)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance; /* Balance headings per B1 */
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-mono,
code,
pre,
.code-badge {
  font-family: 'Geist Mono', monospace;
}

/* Exact Type Scale Tokens */
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 40px; }
.text-5xl { font-size: 48px; line-height: 1; }
.text-6xl { font-size: 60px; line-height: 1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-white { color: #FFFFFF; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-emerald { color: #34D399; }
.text-red { color: #F87171; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Hero Text Gradient (the only gradient allowed per B5) */
.hero-gradient-text {
  background: linear-gradient(90deg, #FFFFFF 0%, #9B9B9B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-200);
  padding-right: var(--spacing-200);
}

.max-w-hero {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-3xl {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-xl {
  max-width: 576px;
  margin-left: auto;
  margin-right: auto;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

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

@media (max-width: 767px) {
  body {
    padding-bottom: 96px;
  }
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:w-auto { width: auto; }
  .sm\:text-4xl { font-size: 36px; line-height: 40px; }
  .sm\:text-5xl { font-size: 48px; line-height: 1; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-6xl { font-size: 60px; line-height: 1; }
  .md\:pt-40 { padding-top: var(--spacing-900); }
  .md\:pb-24 { padding-bottom: var(--spacing-800); }
}

/* Strict Spacing Utilities */
.gap-1 { gap: var(--spacing-50); }
.gap-2 { gap: var(--spacing-75); }
.gap-3 { gap: var(--spacing-100); }
.gap-4 { gap: var(--spacing-200); }
.gap-6 { gap: var(--spacing-300); }
.gap-8 { gap: var(--spacing-400); }

.p-2 { padding: var(--spacing-75); }
.p-3 { padding: var(--spacing-100); }
.p-4 { padding: var(--spacing-200); }
.p-6 { padding: var(--spacing-300); }
.p-8 { padding: var(--spacing-400); }

.px-2 { padding-left: var(--spacing-75); padding-right: var(--spacing-75); }
.px-3 { padding-left: var(--spacing-100); padding-right: var(--spacing-100); }
.px-4 { padding-left: var(--spacing-200); padding-right: var(--spacing-200); }
.px-6 { padding-left: var(--spacing-300); padding-right: var(--spacing-300); }

.py-1 { padding-top: var(--spacing-50); padding-bottom: var(--spacing-50); }
.py-2 { padding-top: var(--spacing-75); padding-bottom: var(--spacing-75); }
.py-3 { padding-top: var(--spacing-100); padding-bottom: var(--spacing-100); }
.py-4 { padding-top: var(--spacing-200); padding-bottom: var(--spacing-200); }
.py-6 { padding-top: var(--spacing-300); padding-bottom: var(--spacing-300); }
.py-8 { padding-top: var(--spacing-400); padding-bottom: var(--spacing-400); }
.py-12 { padding-top: var(--spacing-600); padding-bottom: var(--spacing-600); }
.py-16 { padding-top: var(--spacing-700); padding-bottom: var(--spacing-700); }
.py-20 { padding-top: var(--spacing-800); padding-bottom: var(--spacing-800); }
.py-24 { padding-top: var(--spacing-900); padding-bottom: var(--spacing-900); }

.pt-32 { padding-top: 128px; }
.mb-2 { margin-bottom: var(--spacing-75); }
.mb-3 { margin-bottom: var(--spacing-100); }
.mb-4 { margin-bottom: var(--spacing-200); }
.mb-6 { margin-bottom: var(--spacing-300); }
.mb-8 { margin-bottom: var(--spacing-400); }
.mb-12 { margin-bottom: var(--spacing-600); }
.mb-16 { margin-bottom: var(--spacing-800); }
.mt-1 { margin-top: var(--spacing-50); }
.mt-2 { margin-top: var(--spacing-75); }
.mt-4 { margin-top: var(--spacing-200); }
.mt-6 { margin-top: var(--spacing-300); }
.mt-8 { margin-top: var(--spacing-400); }
.mt-12 { margin-top: var(--spacing-600); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.w-auto { width: auto; }
.w-max { width: max-content; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Flat Surface Colors strictly from B4 */
.bg-canvas { background-color: var(--bg-canvas); }
.bg-surface { background-color: var(--bg-surface); }
.bg-subsurface { background-color: var(--bg-subsurface); }

/* Borders & Nested Radii (B3 & B4) */
.border { border: 1px solid var(--border-muted); }
.border-t { border-top: 1px solid var(--border-muted); }
.border-b { border-bottom: 1px solid var(--border-muted); }
.border-y { border-top: 1px solid var(--border-muted); border-bottom: 1px solid var(--border-muted); }
.border-l-2 { border-left: 2px solid var(--border-muted); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ==========================================================================
   BUTTONS & CONTROLS (B1, B2, B9)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-75);
  background-color: #FFFFFF;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 12px; /* 8px vertical, 12px horizontal per B2 */
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fluid) var(--ease-fluid),
              background-color var(--duration-fluid) var(--ease-fluid);
}

.btn-primary:hover {
  background-color: #E5E5E5;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #000000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-75);
  background-color: var(--bg-subsurface);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-muted);
  cursor: pointer;
  transition: transform var(--duration-fluid) var(--ease-fluid),
              border-color var(--duration-fluid) var(--ease-fluid),
              background-color var(--duration-fluid) var(--ease-fluid);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background-color: #272727;
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--border-hover);
}

.btn-header {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
}

/* Language Switcher Button in Header */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background-color: var(--bg-subsurface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color var(--duration-fluid) var(--ease-fluid);
}

.lang-toggle:hover {
  border-color: var(--border-hover);
}

.lang-btn {
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  transition: color var(--duration-fluid) var(--ease-fluid),
              background-color var(--duration-fluid) var(--ease-fluid);
}

.lang-btn.active {
  color: #FFFFFF;
  background-color: #272727;
}

/* ==========================================================================
   NAVIGATION: DESKTOP ISLAND & MOBILE BOTTOM TABS
   ========================================================================== */
.nav-island-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-left: var(--spacing-200);
  padding-right: var(--spacing-200);
  pointer-events: none;
}

/* Desktop Floating Island Navigation (Hidden on mobile) */
.desktop-nav {
  margin-top: 24px;
  background-color: rgba(24, 24, 24, 0.92);
  border: 1px solid var(--border-muted);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-200);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  transition: border-color var(--duration-fluid) var(--ease-fluid);
}

.desktop-nav:hover {
  border-color: var(--border-hover);
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  transition: color var(--duration-fluid) var(--ease-fluid);
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

/* Mobile Clean Top Bar (Hidden on desktop) */
.mobile-top-bar {
  margin-top: 12px;
  background-color: rgba(24, 24, 24, 0.92);
  border: 1px solid var(--border-muted);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Mobile Bottom Navigation Tabs Dock (Hidden on desktop) */
.mobile-bottom-tabs {
  position: fixed;
  bottom: 16px;
  left: 12px;
  right: 12px;
  margin-left: auto;
  margin-right: auto;
  max-width: 420px;
  z-index: 50;
  background-color: rgba(24, 24, 24, 0.95);
  border: 1px solid var(--border-muted);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
  transition: transform var(--duration-fluid) var(--ease-fluid);
}

@media (min-width: 768px) {
  .mobile-bottom-tabs {
    display: none !important;
  }
  .mobile-top-bar {
    display: none !important;
  }
}

.bottom-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  transition: color 200ms var(--ease-fluid), background-color 200ms var(--ease-fluid), transform 150ms var(--ease-fluid);
  flex: 1;
  text-align: center;
}

.bottom-tab-btn:active {
  transform: scale(0.92);
}

.bottom-tab-btn.active {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
}

.bottom-tab-btn .tab-icon {
  font-size: 20px;
  line-height: 1;
}

.bottom-tab-btn .tab-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ==========================================================================
   SCROLL INTERPOLATION & MOTION REVEAL (B7 & B11)
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(8px);
  transition: opacity 800ms var(--ease-fluid),
              transform 800ms var(--ease-fluid),
              filter 800ms var(--ease-fluid);
  will-change: opacity, transform, filter;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Mandatory Tagline Reveal Section (B11) */
.tagline-word {
  display: inline-block;
  opacity: 0.28;
  color: var(--text-muted);
  transition: opacity 700ms var(--ease-fluid), color 700ms var(--ease-fluid);
  will-change: opacity, color;
  margin-right: 0.25em;
}

.tagline-word.active {
  opacity: 1;
  color: #FFFFFF;
}

/* ==========================================================================
   SCROLL SHOWCASE INTERACTIVE EXHIBIT (Generated Assets Showcase)
   ========================================================================== */
.scroll-showcase-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-400);
}

@media (min-width: 1024px) {
  .scroll-showcase-container {
    grid-template-columns: 360px 1fr;
    gap: var(--spacing-600);
  }
}

.showcase-tab {
  width: 100%;
  text-align: left;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-xl);
  padding: var(--spacing-300);
  cursor: pointer;
  transition: border-color var(--duration-fluid) var(--ease-fluid),
              background-color var(--duration-fluid) var(--ease-fluid);
  margin-bottom: var(--spacing-200);
}

.showcase-tab:hover {
  border-color: var(--border-hover);
}

.showcase-tab.active {
  border-color: #FFFFFF;
  background-color: var(--bg-subsurface);
}

.showcase-preview-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
}

.showcase-preview-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 1000ms var(--ease-fluid);
}

.showcase-preview-card:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   CARDS & NESTED RADII (B3 & B4)
   ========================================================================== */
.interactive-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-300);
  transition: border-color var(--duration-fluid) var(--ease-fluid),
              transform var(--duration-fluid) var(--ease-fluid);
}

.interactive-card:hover {
  border-color: var(--border-hover);
}

.card-subsurface {
  background-color: var(--bg-subsurface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: var(--spacing-200);
}

.code-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-50);
  background-color: var(--bg-subsurface);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  font-size: 12px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--spacing-200);
  transition: border-color 300ms var(--ease-fluid), background-color 300ms var(--ease-fluid);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: var(--border-active);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-200);
  padding: var(--spacing-200) var(--spacing-300);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  outline: none;
  transition: color 250ms var(--ease-fluid);
}

.faq-trigger:hover {
  color: #FFFFFF;
}

.faq-icon {
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 300ms var(--ease-fluid), color 300ms var(--ease-fluid);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #FFFFFF;
}

.faq-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 var(--spacing-300);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  transition: max-height 350ms var(--ease-fluid),
              opacity 250ms ease,
              padding 350ms var(--ease-fluid);
}

.faq-item.active .faq-body {
  max-height: 500px;
  opacity: 1;
  padding: 0 var(--spacing-300) var(--spacing-300) var(--spacing-300);
}

/* ==========================================================================
   FORM CONTROLS & STATES (B8, B9, B10)
   ========================================================================== */
.form-group {
  margin-bottom: var(--spacing-200);
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--spacing-75);
}

.form-input {
  width: 100%;
  background-color: var(--bg-subsurface);
  border: 1px solid var(--border-muted);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: border-color var(--duration-fluid) var(--ease-fluid),
              box-shadow var(--duration-fluid) var(--ease-fluid);
}

.form-input:focus {
  outline: none;
  border-color: var(--text-muted);
  box-shadow: 0 0 0 2px rgba(155, 155, 155, 0.2);
}

.form-input::placeholder {
  color: var(--text-faint);
}

.form-error {
  font-size: 12px;
  color: #F87171;
  margin-top: var(--spacing-50);
}

/* ==========================================================================
   MODALS (B10)
   ========================================================================== */
.legal-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  padding: var(--spacing-200);
  transition: opacity var(--duration-fluid) var(--ease-fluid);
}

.legal-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-300);
  max-width: 540px;
  width: 100%;
  text-align: left;
}

/* ==========================================================================
   SKELETON PRELOADER
   ========================================================================== */
.skeleton-box {
  background-color: var(--bg-subsurface);
  border-radius: var(--radius-xl);
  min-height: 180px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-muted);
}

.skeleton-box::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Accessibility Skip Link */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background-color: #FFFFFF;
  color: #000000;
  border-radius: var(--radius-md);
  clip: auto;
}

/* ==========================================================================
   SCROLL WORLD IMMERSIVE 3D BACKGROUND (scroll-world skill)
   ========================================================================== */
.scroll-world-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: #000000;
}

.scroll-world-scene {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms var(--ease-fluid), transform 1100ms var(--ease-fluid);
  will-change: opacity, transform;
}

.scroll-world-scene.active {
  opacity: 0.38;
  transform: scale(1);
}

.scroll-world-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

/* Permitir que el mundo 3D fluya por toda la página */
section.bg-surface {
  background-color: rgba(24, 24, 24, 0.72) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

section.bg-canvas {
  background-color: transparent !important;
}

#main-content, footer {
  position: relative;
  z-index: 10;
}

/* Riel indicador del mundo 3D (scroll-world route rail) */
.world-route-rail {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--spacing-75);
  background-color: rgba(24, 24, 24, 0.88);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 300ms var(--ease-fluid);
  pointer-events: auto;
}

.world-route-rail:hover {
  border-color: var(--border-hover);
}

.world-route-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.world-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--border-muted);
  transition: background-color 300ms var(--ease-fluid), transform 300ms var(--ease-fluid);
}

.world-dot.active {
  background-color: #34D399;
  transform: scale(1.3);
}

.world-route-text {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .scroll-world-scene.active {
    opacity: 0.28;
  }
  .world-route-rail {
    display: none;
  }
}

