/* ============================================
   KLYP LANDING PAGE - STYLES
   ============================================ */

/* CSS Variables - Matching App Theme */
:root {
  /* Brand Colors */
  --color-primary: #dc2626;
  --color-primary-hover: #b91c1c;
  --color-primary-light: #f87171;
  --color-primary-soft: rgba(220, 38, 38, 0.2);

  /* Backgrounds */
  --color-app-bg: #000000;
  --color-surface: #171717;
  --color-surface-hover: #262626;
  --color-surface-active: #333333;

  /* Borders */
  --color-border-glass: rgba(255, 255, 255, 0.1);
  --color-border-primary-glass: rgba(220, 38, 38, 0.3);

  /* Text */
  --color-text-main: #ffffff;
  --color-text-secondary: #e5e7eb;
  --color-text-muted: #9ca3af;

  /* Typography */
  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Spacing */
  --section-padding: clamp(80px, 15vh, 160px);
  --container-width: 1200px;
  --container-padding: clamp(20px, 5vw, 60px);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-display);
  background: var(--color-app-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.brand-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

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

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px var(--container-padding);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-glass);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-svg {
  width: 40px;
  height: 40px;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-frame-back {
  animation: logoFrameBack 3s ease-in-out infinite;
}

.logo-frame-front {
  animation: logoFrameFront 3s ease-in-out infinite;
}

.logo-play {
  animation: logoPlay 3s ease-in-out infinite;
}

@keyframes logoFrameBack {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(2px, -2px);
  }
}

@keyframes logoFrameFront {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-1px, 1px);
  }
}

@keyframes logoPlay {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

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

.nav-link {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--color-text-main);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-primary);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav-cta:hover {
  background: var(--color-primary-hover);
}

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

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  will-change: transform;
  contain: layout style;
}

.gradient-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -200px;
  right: -200px;
  animation: orbFloat1 15s ease-in-out infinite;
}

.gradient-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--color-primary-light);
  bottom: -100px;
  left: -100px;
  animation: orbFloat2 12s ease-in-out infinite;
}

.gradient-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-50px, 30px) scale(1.1);
  }

  66% {
    transform: translate(30px, -20px) scale(0.95);
  }
}

@keyframes orbFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -40px) scale(1.1);
  }
}

@keyframes orbFloat3 {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.5;
  }
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border: 2px solid var(--color-primary);
  opacity: 0.15;
  will-change: transform;
}

.shape-1 {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  top: 15%;
  left: 10%;
  animation: shapeFloat 8s ease-in-out infinite;
}

.shape-2 {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  top: 25%;
  right: 15%;
  animation: shapeFloat 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 100px;
  height: 100px;
  border-radius: 30px;
  bottom: 20%;
  left: 20%;
  animation: shapeFloat 12s ease-in-out infinite;
}

.shape-4 {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  bottom: 30%;
  right: 25%;
  animation: shapeFloat 7s ease-in-out infinite reverse;
}

.shape-5 {
  width: 120px;
  height: 120px;
  border-radius: 40px;
  top: 50%;
  right: 5%;
  animation: shapeFloat 15s ease-in-out infinite;
}

@keyframes shapeFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  width: 100%;
}

.hero-video-container {
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateY(40px);
  padding: 16px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.25));
  backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 50px 100px -20px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  opacity: 0.6;
  filter: saturate(1.2);
  border-radius: 24px;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-glass);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
}

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

@keyframes badgePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line span {
  display: inline-block;
}

.title-rotating {
  position: relative;
  display: inline-block;
  color: var(--color-primary);
  min-width: 280px;
  text-align: left;
}

.rotating-word {
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s var(--ease-out-expo);
}

.rotating-word.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-text-muted);
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero-subtitle .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

/* Hero CTA */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--color-primary);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn-primary:hover {
  transform: scale(1.02);
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

.btn-icon {
  display: flex;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0% {
    transform: translateX(-100%);
  }

  50%,
  100% {
    transform: translateX(100%);
  }
}

.btn-large {
  padding: 22px 48px;
  font-size: 1.25rem;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Hero Preview */
.hero-preview {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
}

.preview-frame {
  background: var(--color-surface);
  border: 1px solid var(--color-border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.preview-header {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-surface-hover);
  border-bottom: 1px solid var(--color-border-glass);
}

.preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.preview-dot.red {
  background: #ff5f57;
}

.preview-dot.yellow {
  background: #febc2e;
}

.preview-dot.green {
  background: #28c840;
}

.preview-content {
  padding: 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-video {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.preview-animation {
  position: relative;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-shape {
  position: absolute;
  border-radius: 8px;
  background: var(--color-primary);
}

.ps-1 {
  width: 60px;
  height: 60px;
  opacity: 0.3;
  animation: previewShape1 4s ease-in-out infinite;
}

.ps-2 {
  width: 40px;
  height: 40px;
  opacity: 0.5;
  animation: previewShape2 4s ease-in-out infinite 0.5s;
}

.ps-3 {
  width: 80px;
  height: 80px;
  opacity: 0.2;
  animation: previewShape3 4s ease-in-out infinite 1s;
}

@keyframes previewShape1 {

  0%,
  100% {
    transform: translate(-40px, 20px) rotate(0deg);
  }

  50% {
    transform: translate(40px, -20px) rotate(45deg);
  }
}

@keyframes previewShape2 {

  0%,
  100% {
    transform: translate(30px, -30px) rotate(0deg);
  }

  50% {
    transform: translate(-30px, 30px) rotate(-45deg);
  }
}

@keyframes previewShape3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, 10px) scale(0.8);
  }
}

.preview-text {
  position: relative;
  z-index: 10;
  font-size: 1.4rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  50.1% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============================================
   DEMO SECTION
   ============================================ */
.demo {
  padding: var(--section-padding) var(--container-padding);
  background: linear-gradient(180deg, var(--color-app-bg), var(--color-surface) 50%, var(--color-app-bg));
}

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

.demo-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border-primary-glass);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}

/* Demo Stage - Centered layout */
.demo-stage {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Terminal Wrapper - Centered */
.demo-terminal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 700px;
  opacity: 1;
  transform: scale(1);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-terminal-wrapper.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
}

/* Output Wrapper - Initially hidden */
.demo-output-wrapper {
  position: absolute;
  width: 100%;
  max-width: 700px;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-output-wrapper.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.demo-terminal {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border-glass);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-surface-hover);
  border-bottom: 1px solid var(--color-border-glass);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.3;
}

.terminal-dot:nth-child(1) {
  background: #ff5f57;
  opacity: 1;
}

.terminal-dot:nth-child(2) {
  background: #febc2e;
  opacity: 1;
}

.terminal-dot:nth-child(3) {
  background: #28c840;
  opacity: 1;
}

.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.terminal-body {
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.9;
  min-height: 180px;
}

.terminal-prompt {
  color: var(--color-primary);
  margin-right: 12px;
}

.typewriter-text {
  color: var(--color-text-secondary);
  opacity: 0;
}

.typewriter-text.typing {
  opacity: 1;
}

.terminal-cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: var(--color-primary);
  margin-left: 4px;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}


.demo-video-frame {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-glass);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  width: 100%;
}

.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.video-loading.active {
  opacity: 1;
  visibility: visible;
}

.loading-ring {
  width: 50px;
  height: 50px;
  border: 3px solid var(--color-border-glass);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: loadingSpin 1s linear infinite;
}

@keyframes loadingSpin {
  to {
    transform: rotate(360deg);
  }
}

.video-loading span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.video-result {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-result.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Result Scene Animation - Modern Video Player Preview */
.result-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scene-video-player {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* Animated gradient background */
.scene-gradient-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 100%);
  animation: gradientShift 8s ease-in-out infinite;
}

.scene-gradient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* Animated shapes */
.scene-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape-circle {
  position: absolute;
  top: 15%;
  left: 10%;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(220, 38, 38, 0.2);
  border-radius: 50%;
  animation: shapeFloat 6s ease-in-out infinite;
}

.shape-circle::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: 50%;
}

.shape-ring {
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(251, 191, 36, 0.2);
  border-radius: 50%;
  animation: shapeFloat 5s ease-in-out infinite reverse;
}

.shape-dots {
  position: absolute;
  top: 60%;
  left: 8%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shape-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

.shape-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.shape-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes shapeFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Central icon */
.scene-icon {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  animation: iconFloat 3s ease-in-out infinite;
}

.scene-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.4));
}

.scene-icon .icon-ring {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: ringDraw 2s ease-out forwards, ringRotate 8s linear infinite;
  transform-origin: center;
}

.scene-icon .icon-bolt {
  opacity: 0;
  animation: boltAppear 0.5s ease-out 1.5s forwards;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes ringDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes boltAppear {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Content text */
.scene-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: contentFade 0.8s ease-out 0.5s backwards;
}

.content-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.content-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

@keyframes contentFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress bar */
.scene-progress {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: progressFade 0.6s ease-out 1s backwards;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  border-radius: 2px;
  animation: progressGrow 3s ease-out 1.2s forwards;
}

.progress-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Space Mono', monospace;
  min-width: 32px;
}

@keyframes progressFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes progressGrow {
  from {
    width: 0%;
  }

  to {
    width: 65%;
  }
}

/* Floating particles */
.scene-particles-new {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.scene-particles-new span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(251, 191, 36, 0.6);
  border-radius: 50%;
  animation: particleFloat 4s ease-in-out infinite;
}

.scene-particles-new span:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.scene-particles-new span:nth-child(2) {
  top: 40%;
  left: 80%;
  animation-delay: 0.5s;
}

.scene-particles-new span:nth-child(3) {
  top: 70%;
  left: 15%;
  animation-delay: 1s;
}

.scene-particles-new span:nth-child(4) {
  top: 30%;
  left: 70%;
  animation-delay: 1.5s;
}

.scene-particles-new span:nth-child(5) {
  top: 80%;
  left: 60%;
  animation-delay: 2s;
}

.scene-particles-new span:nth-child(6) {
  top: 50%;
  left: 90%;
  animation-delay: 2.5s;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-20px) scale(1.5);
    opacity: 0.8;
  }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  padding: var(--section-padding) var(--container-padding);
  position: relative;
  overflow: hidden;
}

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

.hiw-header {
  text-align: center;
  margin-bottom: 100px;
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  position: relative;
}

.hiw-step {
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.step-visual {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 100px;
  height: 100px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.hiw-step:hover .step-icon {
  color: var(--color-text-main);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

/* Step 1 specific */
.cursor-blink {
  animation: cursorBlinkAnim 1s step-end infinite;
}

@keyframes cursorBlinkAnim {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.step-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
}

.step-particles span:nth-child(1) {
  top: 10%;
  left: 20%;
  animation: stepParticle 3s ease-in-out infinite;
}

.step-particles span:nth-child(2) {
  top: 30%;
  right: 10%;
  animation: stepParticle 3s ease-in-out infinite 0.5s;
}

.step-particles span:nth-child(3) {
  bottom: 20%;
  left: 30%;
  animation: stepParticle 3s ease-in-out infinite 1s;
}

@keyframes stepParticle {

  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 0.6;
    transform: scale(1);
  }
}

/* Step 2 specific */
.ai-brain .pulse-1 {
  animation: brainPulse1 2s ease-in-out infinite;
}

.ai-brain .pulse-2 {
  animation: brainPulse2 2s ease-in-out infinite 0.5s;
}

@keyframes brainPulse1 {

  0%,
  100% {
    r: 12;
    opacity: 0.3;
  }

  50% {
    r: 16;
    opacity: 0.6;
  }
}

@keyframes brainPulse2 {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

.neural-nodes span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--color-primary-light);
  border-radius: 50%;
  opacity: 0;
}

.neural-nodes span:nth-child(1) {
  top: 0;
  left: 50%;
  animation: neuralPulse 2s ease-in-out infinite;
}

.neural-nodes span:nth-child(2) {
  top: 50%;
  right: 0;
  animation: neuralPulse 2s ease-in-out infinite 0.5s;
}

.neural-nodes span:nth-child(3) {
  bottom: 0;
  left: 50%;
  animation: neuralPulse 2s ease-in-out infinite 1s;
}

.neural-nodes span:nth-child(4) {
  top: 50%;
  left: 0;
  animation: neuralPulse 2s ease-in-out infinite 1.5s;
}

@keyframes neuralPulse {

  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 0.8;
    transform: scale(1);
  }
}

/* Step 3 specific */
.download-arrow {
  animation: downloadBounce 2s ease-in-out infinite;
}

@keyframes downloadBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.file-appear {
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0;
}

.file-icon {
  padding: 6px 12px;
  background: var(--color-primary);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  animation: fileAppear 3s ease-in-out infinite;
}

@keyframes fileAppear {

  0%,
  70% {
    opacity: 0;
    transform: translateY(10px);
  }

  80%,
  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.step-content {
  max-width: 280px;
  margin: 0 auto;
}

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

.step-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.hiw-connector {
  position: absolute;
  top: 55%;
  left: 0;
  right: 0;
  height: 100px;
  pointer-events: none;
  opacity: 0.3;
}

.connector-line {
  width: 100%;
  height: 100%;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: var(--section-padding) var(--container-padding);
  background: var(--color-surface);
}

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

.features-header {
  text-align: center;
  margin-bottom: 80px;
}

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

.feature-card {
  position: relative;
  background: var(--color-app-bg);
  border: 1px solid var(--color-border-glass);
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) rotateX(10deg);
  transform-origin: top center;
  transition: all 0.4s var(--ease-out-expo);
}

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

.feature-card:hover .feature-glow {
  opacity: 1;
}

.feature-card-wide {
  grid-column: span 2;
}

.feature-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--color-primary-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.feature-card:hover .feature-icon {
  color: var(--color-text-main);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* Feature-specific animations */
.sound-wave {
  animation: soundWave 1.5s ease-in-out infinite;
}

@keyframes soundWave {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.5);
  }
}

/* ============================================
   SHOWCASE SECTION
   ============================================ */
.showcase {
  padding: var(--section-padding) 0;
  overflow: hidden;
}

.showcase-header {
  text-align: center;
  padding: 0 var(--container-padding);
  margin-bottom: 60px;
}

.showcase-carousel {
  position: relative;
  padding: 0 var(--container-padding);
  overflow: visible;
}

.carousel-track {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 20px 0;
}


.showcase-item {
  flex: 0 0 320px;
  max-width: 100%;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s var(--ease-out-expo);
}

.showcase-item:hover {
  transform: scale(1.02);
}

.showcase-video {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-glass);
  border-radius: 16px;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.showcase-video:hover {
  border-color: var(--color-border-primary-glass);
}

.showcase-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.showcase-video.playing .video-thumbnail {
  opacity: 0;
  pointer-events: none;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 10;
}

.showcase-video:hover .video-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.4);
}

.showcase-video.playing .video-play-overlay {
  opacity: 0;
  pointer-events: none;
  background: transparent;
}

.showcase-video.playing:hover .video-play-overlay {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.3);
}

.play-button {
  width: 64px;
  height: 64px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 11;
  pointer-events: auto;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button:active {
  transform: scale(0.95);
}

.play-button svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.play-button:hover svg circle {
  stroke: var(--color-primary-light);
}

.play-button:hover svg path {
  fill: var(--color-primary-light);
}

.showcase-video.playing .play-button svg path {
  fill: white;
}

.showcase-animation {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Showcase Animation 1 - API */
.sa-1 {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.sa-circle {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: saCircle 2s ease-in-out infinite;
}

@keyframes saCircle {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.sa-bars {
  position: absolute;
  display: flex;
  gap: 4px;
  bottom: 25%;
}

.sa-bars span {
  width: 8px;
  height: 30px;
  background: var(--color-primary-light);
  border-radius: 4px;
  animation: saBar 1s ease-in-out infinite;
}

.sa-bars span:nth-child(1) {
  animation-delay: 0s;
}

.sa-bars span:nth-child(2) {
  animation-delay: 0.1s;
}

.sa-bars span:nth-child(3) {
  animation-delay: 0.2s;
}

.sa-bars span:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes saBar {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.8);
  }
}

/* Showcase Animation 2 - Graph */
.sa-2 {
  background: linear-gradient(135deg, #0a1628, #132743);
}

.sa-graph {
  position: relative;
  width: 80%;
  height: 60%;
}

.sa-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--color-primary));
  clip-path: polygon(0% 100%, 10% 80%, 30% 85%, 50% 40%, 70% 50%, 90% 20%, 100% 30%, 100% 100%);
  animation: saLine 3s ease-in-out infinite;
}

@keyframes saLine {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.sa-point {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: saPoint 3s ease-in-out infinite;
}

@keyframes saPoint {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--color-primary);
  }

  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px transparent;
  }
}

/* Showcase Animation 3 - DNA */
.sa-3 {
  background: linear-gradient(135deg, #1a0a28, #2d1341);
}

.sa-dna {
  position: relative;
  height: 80%;
  display: flex;
  align-items: center;
}

.sa-dna span {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
}

.sa-dna span:nth-child(1) {
  animation: dnaHelix1 2s ease-in-out infinite;
}

.sa-dna span:nth-child(2) {
  animation: dnaHelix2 2s ease-in-out infinite;
}

.sa-dna span:nth-child(3) {
  animation: dnaHelix1 2s ease-in-out infinite 0.5s;
  left: 30px;
}

.sa-dna span:nth-child(4) {
  animation: dnaHelix2 2s ease-in-out infinite 0.5s;
  left: 30px;
}

@keyframes dnaHelix1 {

  0%,
  100% {
    transform: translateY(-30px);
    opacity: 1;
  }

  50% {
    transform: translateY(30px);
    opacity: 0.5;
  }
}

@keyframes dnaHelix2 {

  0%,
  100% {
    transform: translateY(30px);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-30px);
    opacity: 1;
  }
}

/* Showcase Animation 4 - Funnel */
.sa-4 {
  background: linear-gradient(135deg, #0a2818, #143d24);
}

.sa-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sa-funnel-top {
  width: 100px;
  height: 25px;
  background: var(--color-primary-light);
  border-radius: 4px;
  animation: funnelPulse 2s ease-in-out infinite;
}

.sa-funnel-mid {
  width: 70px;
  height: 25px;
  background: var(--color-primary);
  border-radius: 4px;
  animation: funnelPulse 2s ease-in-out infinite 0.3s;
}

.sa-funnel-bot {
  width: 40px;
  height: 25px;
  background: var(--color-primary-hover);
  border-radius: 4px;
  animation: funnelPulse 2s ease-in-out infinite 0.6s;
}

@keyframes funnelPulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

/* Showcase Animation 5 - Cloud */
.sa-5 {
  background: linear-gradient(135deg, #0a1828, #1a2d42);
}

.sa-cloud {
  width: 80px;
  height: 40px;
  background: var(--color-text-muted);
  border-radius: 20px;
  position: relative;
  animation: cloudFloat 3s ease-in-out infinite;
}

.sa-cloud::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 15px;
  width: 30px;
  height: 30px;
  background: var(--color-text-muted);
  border-radius: 50%;
}

.sa-cloud::after {
  content: '';
  position: absolute;
  top: -10px;
  right: 15px;
  width: 25px;
  height: 25px;
  background: var(--color-text-muted);
  border-radius: 50%;
}

@keyframes cloudFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.sa-arrows {
  position: absolute;
  bottom: 30%;
  display: flex;
  gap: 20px;
}

.sa-arrows span {
  width: 3px;
  height: 30px;
  background: var(--color-primary);
  animation: arrowDown 1s ease-in-out infinite;
}

.sa-arrows span:nth-child(2) {
  animation-delay: 0.2s;
}

.sa-arrows span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes arrowDown {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

.sa-servers {
  position: absolute;
  bottom: 15%;
  display: flex;
  gap: 15px;
}

.sa-servers span {
  width: 30px;
  height: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-glass);
  border-radius: 4px;
}

.showcase-info {
  padding: 0 8px;
}

.showcase-category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-primary-soft);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.showcase-info h4 {
  font-size: 1rem;
  font-weight: 600;
}

/* Carousel Controls */
.carousel-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border-glass);
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-main);
  border-color: var(--color-border-primary-glass);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--color-text-muted);
  border-radius: 50%;
  opacity: 0.3;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
  background: var(--color-primary);
  transform: scale(1.2);
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.final-cta {
  position: relative;
  padding: calc(var(--section-padding) * 1.5) var(--container-padding);
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-primary-soft), transparent 70%);
  animation: ctaGlow 5s ease-in-out infinite;
}

@keyframes ctaGlow {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.cta-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: ctaParticle 10s linear infinite;
}

.cta-particles span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.cta-particles span:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
}

.cta-particles span:nth-child(3) {
  left: 30%;
  animation-delay: 2s;
}

.cta-particles span:nth-child(4) {
  left: 40%;
  animation-delay: 3s;
}

.cta-particles span:nth-child(5) {
  left: 50%;
  animation-delay: 4s;
}

.cta-particles span:nth-child(6) {
  left: 60%;
  animation-delay: 5s;
}

.cta-particles span:nth-child(7) {
  left: 70%;
  animation-delay: 6s;
}

.cta-particles span:nth-child(8) {
  left: 80%;
  animation-delay: 7s;
}

.cta-particles span:nth-child(9) {
  left: 90%;
  animation-delay: 8s;
}

.cta-particles span:nth-child(10) {
  left: 95%;
  animation-delay: 9s;
}

@keyframes ctaParticle {
  0% {
    top: 100%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: -10%;
    opacity: 0;
  }
}

.cta-content {
  position: relative;
  z-index: 10;
}

.cta-logo {
  margin-bottom: 40px;
  text-align: center;
}

.logo-svg-large {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.logo-img-large {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.cta-content .btn-primary {
  margin-bottom: 24px;
  display: inline-flex;
}

.cta-note {
  margin-top: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px var(--container-padding);
  border-top: 1px solid var(--color-border-glass);
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-logo {
  width: 32px;
  height: 32px;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

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

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

/* ============================================
   MAGNETIC BUTTON EFFECT
   ============================================ */
.magnetic-btn {
  position: relative;
  transition: box-shadow 0.3s ease;
  will-change: transform;
}

.magnetic-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--color-primary);
  opacity: 0;
  filter: blur(15px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.magnetic-btn:hover::before {
  opacity: 0.4;
}

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

  .feature-card-wide {
    grid-column: span 1;
  }

  .demo-terminal-wrapper,
  .demo-output-wrapper {
    max-width: 100%;
  }

  .hiw-steps {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .hiw-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .title-rotating {
    min-width: 180px;
  }

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

  .showcase-item {
    flex: 0 0 280px;
  }

  .carousel-track {
    gap: 20px;
  }

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

  .gradient-orb {
    filter: blur(60px);
    opacity: 0.25;
  }

  .gradient-orb-1 {
    width: 300px;
    height: 300px;
    animation: none;
  }

  .gradient-orb-2 {
    width: 200px;
    height: 200px;
    animation: none;
  }

  .gradient-orb-3 {
    width: 150px;
    height: 150px;
    animation: none;
  }

  .floating-shapes {
    display: none;
  }

  .grid-pattern {
    animation: none;
  }

  .hero-video-container {
    backdrop-filter: none;
    background: rgba(0, 0, 0, 0.4);
  }

  .nav.scrolled {
    backdrop-filter: blur(10px);
  }

  .cta-glow {
    width: 300px;
    height: 300px;
    animation: none;
    opacity: 0.4;
  }

  .cta-particles span {
    animation: none;
    display: none;
  }

  .scene-particles-new span {
    display: none;
  }

  .modal-backdrop {
    backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-preview {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .showcase-item {
    flex: 0 0 calc(100% - 40px);
    max-width: 400px;
  }

  .carousel-track {
    gap: 16px;
    padding: 10px 0;
  }

  .gradient-orb {
    filter: blur(40px);
    opacity: 0.15;
  }

  .gradient-orb-3 {
    display: none;
  }

  .step-particles,
  .neural-nodes {
    display: none;
  }
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: white;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-nav svg {
  width: 24px;
  height: 24px;
  color: white;
}

.modal-nav:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.modal-prev {
  left: -80px;
}

.modal-next {
  right: -80px;
}

.modal-video-container {
  width: 100%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.modal-video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-play-btn {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-play-btn:hover {
  transform: scale(1.1);
  background: var(--color-primary-light);
}

.modal-play-btn svg {
  width: 18px;
  height: 18px;
  color: white;
}

.modal-play-btn .pause-icon {
  display: none;
}

.modal-play-btn.playing .play-icon {
  display: none;
}

.modal-play-btn.playing .pause-icon {
  display: block;
}

.modal-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar:hover {
  height: 8px;
}

.progress-filled {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.time-display {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 90px;
  text-align: right;
}

.modal-info {
  margin-top: 20px;
  text-align: center;
}

.modal-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

/* Modal responsive */
@media (max-width: 1200px) {
  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }

  .modal-nav {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
  }

  .modal-close {
    top: -45px;
    right: 5px;
  }

  .modal-nav {
    width: 38px;
    height: 38px;
  }

  .modal-nav svg {
    width: 20px;
    height: 20px;
  }

  .modal-controls {
    padding: 12px 16px;
    gap: 12px;
  }

  .modal-play-btn {
    width: 36px;
    height: 36px;
  }

  .time-display {
    font-size: 11px;
    min-width: 80px;
  }

  .modal-title {
    font-size: 1.2rem;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .grid-pattern {
    animation: none;
  }

  .gradient-orb {
    animation: none;
  }

  .shape {
    animation: none;
  }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  background: var(--color-app-bg);
  min-height: 100vh;
}

.legal-section {
  padding: 120px var(--container-padding) 80px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 60px;
  text-align: center;
}

.legal-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-updated {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.legal-content .legal-block {
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-glass);
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin: 32px 0 16px;
}

.legal-content p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 24px;
  padding-left: 0;
}

.legal-content li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.legal-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.legal-content a:hover {
  border-color: var(--color-primary);
}

.legal-content strong {
  color: var(--color-text-main);
  font-weight: 600;
}