/* ==========================================
   BASE & RESET
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

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

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

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

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 20px; z-index: 9999;
  padding: 12px 24px; background: var(--lime); color: #000;
  font-weight: 700; border-radius: 4px; transition: top 0.2s;
}
.skip-link:focus { top: 20px; }

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px var(--container-pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--duration-med) var(--ease-out),
              box-shadow var(--duration-med) var(--ease-out);
}
.navbar.scrolled {
  background: rgba(13, 31, 13, 0.92);
  backdrop-filter: var(--blur-glass);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.navbar-logo { display: flex; align-items: center; gap: 12px; }
.navbar-logo img { height: 44px; width: auto; }
.navbar-cta {
  padding: 10px 22px;
  background: var(--lime-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: var(--lime);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}
.navbar-cta:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: #0d1f0d;
}
.navbar-cta:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.lang-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}
.lang-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 120px var(--container-pad) 80px;
}

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

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,31,13,0.2) 0%, rgba(13,31,13,0.96) 100%);
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-stats {
  display: flex; justify-content: center; gap: clamp(24px, 4vw, 56px);
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-solo-logo {
  margin-bottom: 12px;
  opacity: 1;
}

.hero-solo-logo img {
  height: clamp(72px, 8vw, 110px);
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(176,203,31,0.35));
}

.hero-title {
  margin-bottom: 40px;
  line-height: 1;
  opacity: 0;
}

.hero-title-logo {
  height: clamp(80px, 12vw, 160px);
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px rgba(176,203,31,0.18));
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  font-weight: 400;
  line-height: 1.65;
  opacity: 0;
}

.hero-subtitle .subtitle-line { display: block; }

.hero-ctas {
  display: flex; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  opacity: 0;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dark) 100%);
  color: #0d1f0d;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: 100px;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(176, 203, 31, 0.35);
}
.btn-primary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: 100px;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.btn-secondary:hover { border-color: var(--border-hover); color: var(--text-primary); }
.btn-secondary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--lime));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ==========================================
   SECTION HEADINGS
   ========================================== */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--lime);
}

.section-title {
  font-family: 'Space Grotesk', var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
  padding: var(--section-gap) var(--container-pad);
  background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-mid) 100%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.about-left { opacity: 0; }
.about-right { opacity: 0; }

.about-warning {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 24px;
  background: rgba(176, 203, 31, 0.06);
  border-left: 3px solid var(--lime);
  border-radius: 0 12px 12px 0;
  margin-bottom: 32px;
}
.warning-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.about-warning p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-body {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

.about-mockup {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 9/16;
  max-width: 320px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.mockup-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}
.mockup-placeholder .icon { font-size: 3rem; margin-bottom: 12px; }
.mockup-placeholder p { font-size: 0.85rem; }

/* ==========================================
   TOOLS CASCADE
   ========================================== */
.tools-cascade {
  padding: var(--section-gap) 0 calc(var(--section-gap) * 1.5);
  background: var(--bg-dark);
  position: relative;
}

#cascade-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cascade-head,
.cascade-inner {
  position: relative;
  z-index: 1;
}

.cascade-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-dark);
  text-align: center;
  max-width: 100%;
  padding: 48px var(--container-pad) 32px;
}

.cascade-head::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -56px;
  height: 56px;
  background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.cascade-head-inner {
  max-width: 660px;
  margin: 0 auto;
}

.cascade-head-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.cascade-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px var(--container-pad) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left column — scrolling scenes */
.cascade-left {
  display: flex;
  flex-direction: column;
  padding-top: calc(25vh + 300px);
}

.cascade-scene {
  padding: 110px 0;
  border-bottom: 1px solid rgba(176, 203, 31, 0.12);
  opacity: 0.35;
  transition: opacity 0.5s ease;
  will-change: opacity;
}

.cascade-scene:first-child { padding-top: 0; padding-bottom: 110px; }
.cascade-scene:last-child  { border-bottom: none; padding-bottom: 45vh; }

.cascade-scene.active { opacity: 1; }

.cascade-cat-label {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.cascade-cat-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}

.cascade-cat-name {
  font-family: 'Space Grotesk', var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--lime);
  line-height: 1.4;
  display: block;
  margin-bottom: 6px;
  padding-bottom: 0.1em;
  overflow: visible;
  transform-origin: left center;
}

.cascade-cat-count {
  display: inline-block;
  padding: 3px 10px;
  background: var(--lime-muted);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.05em;
}

.cascade-tools {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cascade-tools li {
  font-size: 1rem;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
  transition: color 0.4s ease, transform 0.4s ease;
}

.cascade-tools li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transition: background 0.4s ease;
}

.cascade-scene.active .cascade-tools li {
  color: var(--text-primary);
}

.cascade-scene.active .cascade-tools li::before {
  background: var(--lime);
}

/* Right column */
.cascade-right {
  height: auto;
  align-self: stretch;  /* debe estirarse para que el sticky funcione en toda la columna */
}

.cascade-right-spacer {
  height: 25vh;
}

.cascade-right-inner {
  position: sticky;
  top: 50vh;
  /* transform lo gestiona GSAP via yPercent para evitar conflicto con y: */
}

.cascade-device {
  max-width: 280px;
  margin: 0 auto;
  padding: 14px 10px 22px;
}

.cascade-device-screen {
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  background: var(--bg-darkest);
  aspect-ratio: 9/19.5;
}

.cascade-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  padding: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  background: var(--bg-darkest);
}

.cascade-img.active { opacity: 1; }

/* ==========================================
   SHOWCASE
   ========================================== */
.showcase {
  padding: var(--section-gap) var(--container-pad);
  background: var(--bg-darkest);
  text-align: center;
  overflow: hidden;
}

.showcase-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.showcase-head {
  margin-bottom: 60px;
  opacity: 0;
}

.typewriter-wrap {
  display: inline-block;
  position: relative;
}

#showcase-title {
  font-family: 'Space Grotesk', var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--lime);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.showcase-device {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  opacity: 0;
}

.device-shell {
  position: relative;
  border-radius: 52px;
  background: linear-gradient(145deg, #1c2c1c 0%, #0d1f0d 55%, #111828 100%);
  padding: 14px 10px 22px;
  box-shadow:
    0 70px 120px rgba(0,0,0,0.85),
    0 0 0 1.5px rgba(255,255,255,0.09),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 80px rgba(176,203,31,0.06);
}

.device-shell::before {
  content: '';
  position: absolute;
  right: -3px; top: 140px;
  width: 3px; height: 54px;
  background: #182818;
  border-radius: 0 3px 3px 0;
}

.device-shell::after {
  content: '';
  position: absolute;
  left: -3px; top: 108px;
  width: 3px; height: 34px;
  background: #182818;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 46px 0 0 #182818;
}

.device-dynamic-island {
  position: absolute;
  top: 21px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 27px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

.device-screen {
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  background: var(--bg-darkest);
  aspect-ratio: 9/19.5;
}

.device-screen .app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.device-home-bar {
  position: absolute;
  bottom: 9px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 4px;
  background: rgba(255,255,255,0.22);
  border-radius: 4px;
}

/* ==========================================
   DISCLAIMER
   ========================================== */
.disclaimer {
  padding: 48px var(--container-pad);
  background: var(--bg-dark);
}

.disclaimer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px 32px;
  background: rgba(176, 203, 31, 0.04);
  border: 1px solid rgba(176, 203, 31, 0.15);
  border-radius: 16px;
  opacity: 0;
}

.disclaimer-icon { font-size: 1.5rem; flex-shrink: 0; }

.disclaimer-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ==========================================
   CTA / KOFI
   ========================================== */
.kofi-cta {
  padding: var(--section-gap) var(--container-pad);
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-darkest) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.kofi-inner {
  position: relative; z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.kofi-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  opacity: 0;
}

.kofi-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
}

.btn-kofi {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dark) 100%);
  color: #0d1f0d;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border-radius: 100px;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  opacity: 0;
}
.btn-kofi:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(176, 203, 31, 0.4);
}
.btn-kofi:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.kofi-icon { font-size: 1.2rem; }

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: #0a1a0a;
  padding: 48px var(--container-pad) 32px;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.footer-logo img {
  height: 44px; width: auto;
  opacity: 0.7;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 240px;
}

.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration-fast);
}
.footer-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 1px; background: var(--lime);
  transition: left var(--duration-fast) var(--ease-out),
              right var(--duration-fast) var(--ease-out);
}
.footer-links a:hover { color: var(--lime); }
.footer-links a:hover::after { left: 0; right: 0; }
.footer-links a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 2px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}

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

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .navbar-cta { display: none; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-right { display: none; }

  .cascade-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cascade-right { display: none; }
  .cascade-left { padding-top: 0; }
  .cascade-scene { opacity: 1; }
  .cascade-cat-name { font-size: 1.4rem; }

  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .hero-ctas { flex-direction: column; align-items: center; }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .scroll-line { animation: none; }
  .typewriter-cursor { animation: none; }
}

/* ==========================================
   MARQUEE STRIP
   ========================================== */
.marquee-strip {
  overflow: hidden;
  background: rgba(176, 203, 31, 0.05);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-word {
  padding: 0 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--lime);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-sep {
  color: var(--lime-dark);
  font-size: 0.85rem;
  line-height: 1;
  align-self: center;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================
   LAPTOP FRAME (about section)
   ========================================== */
.laptop-frame {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(176, 203, 31, 0.07);
  max-width: 540px;
  margin: 0 auto;
  will-change: transform;
}
.laptop-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(12, 26, 12, 0.98);
  border-bottom: 1px solid var(--border-subtle);
}
.laptop-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.laptop-url {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 100px;
  padding: 3px 14px;
  letter-spacing: 0.02em;
}
.laptop-screen { overflow: hidden; line-height: 0; }
.laptop-screen .app-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   APP SCREENSHOT (generic)
   ========================================== */
.app-screenshot { display: block; width: 100%; }

.device-frame .app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* remove flex centering from device-frame when it has a real image */
.device-frame:has(.app-screenshot) {
  display: block;
}

/* ==========================================
   INSIGHT SECTION
   ========================================== */
.insight {
  padding: var(--section-gap) var(--container-pad);
  background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-mid) 55%, var(--bg-darkest) 100%);
  overflow: hidden;
}
.insight-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 80px;
  align-items: center;
}
.insight-text { opacity: 0; }
.insight-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 20px;
  margin-bottom: 36px;
}
.insight-chart {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(176, 203, 31, 0.08);
  opacity: 0;
  clip-path: inset(100% 0 0 0);
}
.insight-chart img { width: 100%; display: block; }

@media (max-width: 900px) {
  .insight-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .marquee-word { padding: 0 14px; font-size: 0.7rem; }
}

/* ==========================================
   COOKIE BANNER & MODAL
   ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: #0d1d0d;
  border-top: 1px solid rgba(176, 203, 31, 0.25);
  padding: 16px 24px;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.5);
  animation: cookieSlideUp 0.35s var(--ease-out) both;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 220px;
}

.cookie-banner-text strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.cookie-banner-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #00A0E3;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn-primary {
  background: #b0cb1f;
  color: #0d1f0d;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.cookie-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(176,203,31,0.35); }
.cookie-btn-primary:focus-visible { outline: 2px solid #b0cb1f; outline-offset: 3px; }

.cookie-btn-secondary {
  background: none;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  font-family: var(--font-ui, inherit);
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.cookie-btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.cookie-btn-secondary:focus-visible { outline: 2px solid #b0cb1f; outline-offset: 3px; }

/* Modal overlay */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9001;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Modal */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9002;
  width: min(480px, calc(100vw - 32px));
  background: #0d1d0d;
  border: 1px solid rgba(176,203,31,0.2);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  animation: modalPop 0.25s var(--ease-out) both;
}

@keyframes modalPop {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cookie-option:last-of-type { border-bottom: none; }

.cookie-option-info strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 3px;
}

.cookie-option-info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.45;
}

.cookie-always-on {
  font-size: 0.75rem;
  color: #b0cb1f;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.cookie-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  transition: background 0.2s;
}

.cookie-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-track {
  background: #b0cb1f;
}

.cookie-toggle input:checked + .cookie-toggle-track::after {
  transform: translateX(20px);
}

.cookie-toggle input:focus-visible + .cookie-toggle-track {
  outline: 2px solid #b0cb1f;
  outline-offset: 2px;
}

.cookie-modal-footer {
  margin-top: 24px;
  text-align: right;
}

@media (max-width: 540px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-primary, .cookie-btn-secondary { flex: 1; text-align: center; }
}

/* ==========================================
   LEGAL CONSENT MODAL
   ========================================== */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9010;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease both;
}

.consent-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9011;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #0d1d0d;
  border: 1px solid rgba(176,203,31,0.25);
  border-radius: 18px;
  padding: 32px 28px 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  animation: modalPop 0.28s var(--ease-out) both;
}

.consent-logo {
  text-align: center;
  margin-bottom: 18px;
  opacity: 0.85;
}

.consent-logo img { height: 26px; }

.consent-modal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
}

.consent-intro {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 22px;
}

.consent-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.consent-item:hover { border-color: rgba(176,203,31,0.3); }

.consent-item--highlight {
  border-color: rgba(176,203,31,0.22);
  background: rgba(176,203,31,0.06);
}

.consent-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.consent-check {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  margin-top: 1px;
}

.consent-check::after {
  content: '';
  position: absolute;
  top: 1px; left: 5px;
  width: 6px; height: 10px;
  border: 2px solid #0d1d0d;
  border-top: none; border-left: none;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
}

.consent-item input:checked ~ .consent-check {
  background: #b0cb1f;
  border-color: #b0cb1f;
}

.consent-item input:checked ~ .consent-check::after {
  transform: rotate(45deg) scale(1);
}

.consent-item input:focus-visible ~ .consent-check {
  outline: 2px solid #b0cb1f;
  outline-offset: 2px;
}

.consent-label {
  flex: 1;
  line-height: 1.4;
}

.consent-label a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #00A0E3;
  text-decoration: none;
}

.consent-label a:hover { text-decoration: underline; }

.consent-label small {
  display: block;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.4);
  margin-top: 3px;
  line-height: 1.4;
}

.consent-item--highlight .consent-label a {
  color: #b0cb1f;
}

.consent-submit {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  margin-bottom: 12px;
  border-radius: 12px;
}

.consent-submit:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.consent-note {
  text-align: center;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.28);
  margin: 0;
}

@media (max-width: 480px) {
  .consent-modal { padding: 24px 18px 20px; }
}
