/* =================================================================
   VOCACIONES STEAM — OSMO.SUPPLY INSPIRED REDESIGN
   Technical, brutalist, premium, high-interaction design
   ================================================================= */

/* =====================
   1. CSS RESET & FONTS
   ===================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500;700&display=swap');

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

html {
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.mono-text {
  font-family: 'Roboto Mono', monospace;
  letter-spacing: -0.02em;
}

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

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

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

/* =====================
   2. DESIGN TOKENS
   ===================== */
:root {
  /* Osmo-style High Contrast Palette (Light Mode Default) */
  --bg-canvas: #FAFAFA;
  --bg-surface: #FFFFFF;
  --text-primary: #050505;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border-color: rgba(5, 5, 5, 0.12);
  --border-heavy: #050505;
  
  /* Brand Accent Colors */
  --steam-cyan: #07B1C9;
  --steam-orange: #F88718;
  --steam-green: #4DB046;
  --steam-red: #E8372D;

  /* Layout */
  --nav-height: 80px;
  --marquee-height: 48px;
  --grid-gap: 1px; /* Osmo uses borders as gaps */

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-fast: cubic-bezier(0.23, 1, 0.32, 1);

  /* Navbar Glass Pill */
  --nav-bg: rgba(255, 255, 255, 0.9);
  --nav-border: rgba(0, 0, 0, 0.1);
}

body.dark-theme {
  --bg-canvas: #0A0A0A;
  --bg-surface: #111111;
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --border-color: rgba(255, 255, 255, 0.12);
  --border-heavy: #F5F5F5;
  --steam-cyan: #00E5FF; /* Neon pop in dark mode */

  /* Navbar Glass Pill */
  --nav-bg: rgba(28, 28, 30, 0.85);
  --nav-border: rgba(255, 255, 255, 0.12);
}

/* =====================
   3. UTILITIES & GRIDS
   ===================== */
.osmo-border-bottom { border-bottom: 1px solid var(--border-color); }
.osmo-border-top { border-top: 1px solid var(--border-color); }
.osmo-border-left { border-left: 1px solid var(--border-color); }
.osmo-border-right { border-right: 1px solid var(--border-color); }

.grid-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
}

.eyebrow {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steam-cyan);
}

/* =====================
   4. BUTTONS
   ===================== */
.btn-electric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--steam-cyan);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 100px; /* Pill shape */
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease-spring), background 0.3s var(--ease-fast);
  overflow: hidden;
  position: relative;
}

body.dark-theme .btn-electric {
  color: #000000;
}

.btn-electric:hover {
  transform: scale(1.05);
  background: var(--steam-orange);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: transparent;
  transition: all 0.3s var(--ease-fast);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: var(--bg-surface);
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s var(--ease-fast);
  background: var(--bg-canvas);
}

.icon-btn:hover {
  background: var(--text-primary);
  color: var(--bg-canvas);
  transform: scale(1.1);
}

/* =====================
   5. NAVBAR & OVERLAY MENU
   ===================== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  height: 72px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--nav-border);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  position: relative;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
}

.nav-logo img {
  height: 38px; /* Slightly larger to fit the pill better */
  width: auto;
  display: block;
}

/* Scroll Animation Logic */
.logo-full, .logo-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 38px;
  width: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s var(--ease-fast), transform 0.4s var(--ease-spring);
}

.logo-full {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.logo-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  pointer-events: none;
}

.navbar.scrolled .logo-full {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  pointer-events: none;
}

.navbar.scrolled .logo-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.3); /* Made it 30% larger */
  pointer-events: auto;
}

.nav-text-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  white-space: nowrap;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s var(--ease-fast), color 0.3s ease;
}

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

.icon-btn {
  color: var(--text-primary);
}

.icon-btn:hover {
  background: var(--border-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1002;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  transition: all 0.3s var(--ease-fast);
}

.menu-toggle:hover {
  background: var(--text-primary);
  color: var(--bg-canvas);
}

/* FULL SCREEN MENU OVERLAY */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  background: var(--bg-surface);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 120px 40px 40px;
  clip-path: inset(0 0 100% 0); /* Hidden by default via GSAP */
  visibility: hidden;
}

.nav-overlay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  gap: 40px;
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-overlay-links a {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  align-self: flex-start;
  transition: transform 0.3s var(--ease-fast);
}

.nav-overlay-links a:hover {
  transform: translateX(20px);
  color: var(--steam-cyan);
}

.nav-overlay-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nav-overlay-info ul {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-overlay-info a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* =====================
   6. MARQUEE & HERO
   ===================== */
.marquee-wrapper {
  margin-top: 100px; /* Space for floating pill */
  width: 100%;
  overflow: hidden;
  background: var(--steam-cyan);
  color: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #ffffff;
}

.marquee-item {
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  background: var(--steam-cyan);
  border-radius: 50%;
}

/* =====================
   7. HERO SECTION
   ===================== */
.hero {
  padding-top: calc(var(--nav-height) + var(--marquee-height) + 10vh);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 10vh;
  position: relative;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-title {
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
  text-transform: uppercase;
  max-width: 1400px;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* =====================
   8. CANVAS VIEWPORT (THE SIMULATOR)
   ===================== */
.canvas-section {
  position: relative;
  width: 100%;
  height: 100svh;
}

.canvas-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 24px;
}

.canvas-info {
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.canvas-info h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.canvas-info p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
}

.canvas-viewport-wrapper {
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-viewport {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

body.dark-theme .canvas-viewport {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* UI Overlays inside viewport */
.viewport-ui {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-primary);
  z-index: 10;
  mix-blend-mode: difference;
  color: white; /* Force white for difference mode */
}

/* =====================
   8b. INTERACTIVE SIMULATOR (replaces the old frame-by-frame canvas)
   ===================== */
.sim-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 40px;
}

.sim-step {
  text-align: left;
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-left: 2px solid var(--border-color);
  border-radius: 0 10px 10px 0;
  transition: background 0.3s var(--ease-fast), border-color 0.3s ease;
}

.sim-step:hover {
  background: var(--bg-surface);
}

.sim-step.is-active {
  border-left-color: var(--step-color);
  background: color-mix(in srgb, var(--step-color) 10%, transparent);
}

.sim-step-label {
  display: block;
  color: var(--step-color);
  margin-bottom: 8px;
}

.sim-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: none;
}

.sim-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition: opacity 0.5s var(--ease-fast), transform 0.5s var(--ease-fast), visibility 0.5s;
}

.sim-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.sim-tag {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sim-quiz-card, .sim-weights-card, .sim-uni-card {
  width: 100%;
  max-width: 380px;
}

.sim-question {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}

.sim-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.sim-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sim-option-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.sim-option.is-picked {
  border-color: var(--steam-cyan);
  color: var(--text-primary);
}

.sim-option.is-picked .sim-option-dot {
  border-color: var(--steam-cyan);
  background: var(--steam-cyan);
}

.sim-progress {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.sim-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--steam-cyan);
  border-radius: 2px;
  transition: width 1.1s var(--ease-fast);
}

.sim-panel.is-active .sim-progress-fill {
  width: 42%;
}

.sim-weight-row {
  display: grid;
  grid-template-columns: 110px 1fr 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.sim-weight-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sim-weight-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.sim-weight-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 1.1s var(--ease-fast);
}

.sim-panel.is-active .sim-weight-fill[data-value="55"] { width: 55%; }
.sim-panel.is-active .sim-weight-fill[data-value="30"] { width: 30%; }
.sim-panel.is-active .sim-weight-fill[data-value="15"] { width: 15%; }

.sim-weight-value {
  font-size: 0.85rem;
  text-align: right;
}

.sim-result-badge {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sim-result-badge strong {
  color: var(--text-primary);
}

.sim-uni-row {
  display: grid;
  grid-template-columns: 28px 1fr 50px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
}

.sim-uni-row:first-of-type {
  border-top: none;
}

.sim-uni-rank {
  font-weight: 700;
  color: var(--text-muted);
}

.sim-uni-name {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.sim-uni-match {
  font-weight: 700;
  color: var(--steam-green);
  text-align: right;
}

/* =====================
   9. BENTO GRID (FEATURES)
   ===================== */
.bento-section {
  padding: 120px 40px;
}

.bento-header {
  margin-bottom: 60px;
  max-width: 800px;
}

.bento-header h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 20px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-spring), border-color 0.4s;
}

.bento-card:hover {
  transform: translateY(-8px);
  border-color: var(--text-primary);
}

.bento-card-content {
  padding: 32px;
  z-index: 2;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.bento-card-image {
  flex: 1;
  width: 100%;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-color);
}

.bento-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease-out);
}

.bento-card:hover .bento-card-image img {
  transform: scale(1.03);
}

/* Grid spanning */
.col-span-8 { grid-column: span 8; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-12 { grid-column: span 12; }

/* =====================
   10. FOOTER
   ===================== */
.footer {
  padding: 80px 40px 40px;
  background: var(--bg-surface);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
}

.footer-brand h2 {
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links a {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s var(--ease-fast);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  will-change: opacity, transform;
}

/* =====================
   7. PLATFORM SECTION
   ===================== */
.platform-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-color);
}

.platform-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.platform-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 750px;
}

.platform-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 80px;
  /* Halo effect to prevent text from blending into cards */
  text-shadow: 
    0 0 20px var(--bg-canvas), 
    0 0 40px var(--bg-canvas), 
    0 0 60px var(--bg-canvas),
    0 0 80px var(--bg-canvas);
}

.play-reel-wrapper {
  position: relative;
  display: inline-block;
}

.play-reel-btn {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  cursor: pointer;
  text-decoration: none;
}

.reel-text-left, .reel-text-right {
  color: var(--text-secondary); /* Made much more visible */
  transition: color 0.4s ease;
}

.play-reel-btn:hover .reel-text-left,
.play-reel-btn:hover .reel-text-right {
  color: var(--text-primary);
}

.reel-circle {
  position: relative;
  width: 220px;
  height: 140px;
  background: var(--text-primary); /* Changed to pure primary for high contrast */
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s var(--ease-spring);
}

.play-reel-btn:hover .reel-circle {
  transform: scale(1.05);
}

.reel-inner-text {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg-canvas);
}

.reel-dashed-ring {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 260px;
  height: 180px;
  animation: spin 30s linear infinite;
  opacity: 0.8;
  color: var(--text-primary);
  will-change: transform;
}

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

.hand-drawn-arrow {
  position: absolute;
  bottom: -50px;
  right: -140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.arrow-text {
  font-family: 'Inter', cursive;
  font-style: italic;
  font-size: 1.3rem; /* Slightly larger text */
  font-weight: 600;
  color: var(--steam-red);
  transform: rotate(-10deg);
  margin-left: 40px;
}

.platform-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.platform-card {
  position: absolute;
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  width: 260px;
  will-change: transform;
  /* Hardware acceleration for smooth GSAP parallax */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.platform-card img {
  border-radius: 6px;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
}

.card-caption {
  margin-top: 12px;
  margin-bottom: 2px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

/* Card Initial Positions */
.card-tl { top: 5%; left: 2%; transform: rotate(-12deg); }
.card-tr { top: 10%; right: 2%; transform: rotate(8deg); }
.card-bl { bottom: 10%; left: 5%; transform: rotate(15deg); }
.card-br { bottom: 5%; right: 2%; transform: rotate(-6deg); }

/* =====================
   8. CREDIBILITY SECTION
   ===================== */
.credibility-section {
  padding: 60px 20px;
  background: var(--bg-surface);
  text-align: center;
  overflow: hidden;
}

.credibility-label {
  font-size: 0.85rem;
  font-family: 'Roboto Mono', monospace;
  color: var(--text-secondary);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.credibility-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cred-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1px solid var(--border-color);
  border-radius: 40px;
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-spring);
  cursor: default;
}

.cred-badge svg {
  width: 24px;
  height: 24px;
  color: var(--steam-cyan);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.cred-badge:hover {
  transform: translateY(-4px);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.cred-badge:hover svg {
  opacity: 1;
}

/* =====================
   9. MID-PAGE CTA
   ===================== */
.mid-cta-section {
  padding: 120px 20px;
  background: var(--bg-surface);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.mid-cta-content {
  max-width: 800px;
}

.mid-cta-content h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.mid-cta-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.5;
}

.cta-button {
  padding: 20px 48px;
  font-size: 1.2rem;
  display: inline-flex;
}

/* =====================
   10. CURRENT ACCESS SECTION
   ===================== */
.access-section {
  padding: 120px 40px;
  background: var(--bg-canvas);
}

.access-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.access-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 16px;
}

.access-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.access-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
  position: relative;
}

.access-card:hover {
  transform: translateY(-8px);
  box-shadow: 8px 8px 0px var(--border-color);
}

.access-context-card {
  border-color: var(--steam-orange);
}

.access-card-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
}

.price {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.access-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  min-height: 48px;
  line-height: 1.5;
}

.access-card-body {
  margin-top: 32px;
  margin-bottom: 40px;
}

.access-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.access-features li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--steam-cyan);
}

.access-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access-card-footer .btn-outline,
.access-card-footer .btn-electric {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.access-disclosure {
  max-width: 960px;
  margin: 32px auto 0;
  padding: 18px 24px;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* =====================
   9. RESPONSIVE DESIGN
   ===================== */
@media (max-width: 1024px) {
  .canvas-section {
    height: auto;
    min-height: 100svh;
  }
  .canvas-container {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .canvas-info {
    position: relative;
    height: auto;
    flex: 0 0 auto;
    top: 0;
    padding: calc(var(--nav-height) + 20px) 20px 10px 20px;
    border-bottom: none;
  }
  .canvas-info h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }
  .canvas-info p {
    font-size: 1rem;
    margin-bottom: 0;
  }
  .sim-steps {
    margin-top: 16px !important;
    gap: 2px;
  }
  .sim-step {
    padding: 10px 12px;
  }
  .sim-step-label {
    margin-bottom: 4px !important;
    font-size: 0.7rem;
  }
  .sim-step p {
    margin-bottom: 0 !important;
    font-size: 0.78rem !important;
  }
  .canvas-viewport-wrapper {
    flex: 0 0 auto;
    height: auto;
    padding: 16px 20px 32px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .canvas-viewport {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    min-height: 380px;
    height: auto;
    max-height: none;
  }
  .sim-panel {
    padding: 20px;
  }
  .sim-question {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }
  .sim-options {
    gap: 8px;
    margin-bottom: 18px;
  }
  .sim-option {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .col-span-8, .col-span-4, .col-span-6 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    top: 16px;
    height: 56px;
    padding: 0 16px;
    width: 95%;
  }
  .menu-toggle {
    padding: 6px 16px;
    font-size: 0.8rem;
  }
  .navbar .btn-electric {
    display: none !important;
  }
  .nav-logo {
    width: 132px;
  }
  .nav-text-logo {
    font-size: 0.85rem;
  }

  /* Overlay Menu */
  .nav-overlay {
    padding: 100px 20px 40px;
  }
  .nav-overlay-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .nav-overlay-links {
    gap: 16px;
  }
  .nav-overlay-links a {
    font-size: clamp(1.8rem, 8vw, 3rem);
    white-space: normal;
    word-wrap: break-word;
  }
  .nav-overlay-info {
    justify-content: flex-start;
    margin-top: 20px;
  }
  
  /* Hero */
  .hero {
    padding: 110px 20px 40px;
  }
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  .hero-actions .btn-electric,
  .hero-actions .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  /* Platform */
  .platform-section {
    padding: 40px 16px;
  }
  .platform-card {
    display: none !important; /* Hide floating cards on mobile to avoid overflow */
  }
  .platform-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .play-reel-btn {
    flex-direction: column;
    gap: 16px;
  }
  .reel-circle {
    width: 90px;
    height: 90px;
  }
  .reel-dashed-ring {
    width: 110px;
    height: 110px;
    top: -10px;
    left: -10px;
  }
  .reel-inner-text {
    font-size: 0.9rem;
  }
  .hand-drawn-arrow {
    position: relative;
    bottom: auto;
    right: auto;
    transform: none;
    margin-top: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .arrow-text {
    margin-left: 0;
    text-align: center;
  }
  
  /* Credibility */
  .credibility-section {
    padding: 30px 16px;
  }
  .credibility-badges {
    gap: 12px;
  }
  .cred-badge {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  .cred-badge svg {
    width: 18px;
    height: 18px;
  }
  
  /* Bento */
  .bento-section {
    padding: 40px 16px;
  }
  .bento-card {
    padding: 24px;
  }
  
  /* Mid CTA */
  .mid-cta-section {
    padding: 50px 16px;
  }
  .mid-cta-content h2 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .cta-button {
    width: 100%;
    padding: 16px 24px;
    justify-content: center;
  }
  
  /* Current access */
  .access-section {
    padding: 40px 16px;
  }
  .access-header h2 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .access-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .access-card {
    padding: 32px 24px;
  }
  .price {
    font-size: 2.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 40px 20px 20px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
