/* ============================================
   Creavyr Landing Page — Glassmorphic Design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --navy: #0F172A;
  --teal: #0D9488;
  --indigo: #6366F1;
  --indigo-rgb: 99, 102, 241;
  --indigo-light: #818cf8;
  --purple: #7C3AED;
  --amber: #F59E0B;
  --pink: #EC4899;
  --pink-rgb: 236, 72, 153;
  --white: #F8FAFC;
  --white-pure: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text-primary: #F8FAFC;
  --text-secondary: rgba(248, 250, 252, 0.7);
  --nav-height: 72px;
}

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

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

body {
  font-family: 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Skip to Content (Accessibility) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--indigo);
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 16px;
}

/* --- Animated Gradient Background --- */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  background: linear-gradient(
    135deg,
    #0F172A 0%,
    #1a1040 15%,
    #0F172A 30%,
    #0a2520 45%,
    #0F172A 60%,
    #1c1535 75%,
    #0F172A 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 25s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 50% 100%; }
  75% { background-position: 0% 50%; }
  100% { background-position: 0% 0%; }
}

/* --- Noise Texture Overlay --- */
.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.04;
  pointer-events: none;
}

/* --- Floating Orbs --- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--indigo);
  top: -10%;
  right: -5%;
  animation: orbDrift1 15s ease-in-out infinite alternate;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--purple);
  bottom: -15%;
  left: -10%;
  animation: orbDrift2 20s ease-in-out infinite alternate;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--amber);
  top: 40%;
  left: 50%;
  animation: orbDrift3 25s ease-in-out infinite alternate;
}

.orb-4 {
  width: 350px;
  height: 350px;
  background: var(--pink);
  bottom: 30%;
  right: 20%;
  animation: orbDrift4 30s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 80px) scale(1.15); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, -60px) scale(1.1); }
}

@keyframes orbDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, -70px) scale(0.9); }
}

@keyframes orbDrift4 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 40px) scale(1.1); }
}

/* --- Glass Panel Base --- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Interactive glass panels (apply to clickable elements) */
.glass-interactive:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

@supports not (backdrop-filter: blur(16px)) {
  .glass {
    background: rgba(15, 23, 42, 0.9);
  }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-logo .logo-c {
  color: var(--teal);
}

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

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-links a:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--indigo);
  color: var(--white-pure);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(var(--indigo-rgb), 0.35);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
  background: var(--indigo-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(var(--indigo-rgb), 0.5);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

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

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.95);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-left: 1px solid var(--glass-border);
  z-index: 999;
  padding: 100px 32px 32px;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--indigo);
}

.mobile-menu .mobile-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--indigo);
  color: var(--white-pure);
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 16px rgba(var(--indigo-rgb), 0.35);
}

/* --- Layout Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 120px 0;
  position: relative;
}

/* Section Dividers */
section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

section:first-of-type::before,
.hero::before {
  display: none;
}

.section-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtext {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

/* --- Section 1: Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Hero Visual Element */
.hero-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(60px);
  opacity: 0.4;
  will-change: transform, border-radius;
  backface-visibility: hidden;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  top: 10%;
  left: 10%;
  animation: morphShape1 20s ease-in-out infinite;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  top: 40%;
  right: 10%;
  animation: morphShape2 25s ease-in-out infinite;
}

.hero-shape-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--amber), var(--indigo));
  bottom: 15%;
  left: 25%;
  animation: morphShape3 18s ease-in-out infinite;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-ring-1 {
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 8s ease-in-out infinite;
}

.hero-ring-2 {
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 10s ease-in-out infinite reverse;
}

@keyframes morphShape1 {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg); }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: rotate(180deg); }
}

@keyframes morphShape2 {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%; transform: rotate(-180deg) scale(1.1); }
}

@keyframes morphShape3 {
  0%, 100% { border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%; }
  50% { border-radius: 60% 40% 40% 60% / 30% 70% 30% 70%; }
}

@keyframes pulseRing {
  0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 60px 40px;
}

.hero-glass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 80px);
  height: calc(100% + 40px);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  z-index: 0;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 80px rgba(var(--indigo-rgb), 0.1);
}

.hero-pre {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-headline {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: wordFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-headline .word-1 { animation-delay: 0.2s; }
.hero-headline .word-2 { animation-delay: 0.35s; }
.hero-headline .word-3 { animation-delay: 0.5s; }
.hero-headline .word-4 { animation-delay: 0.65s; }

@keyframes wordFadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-sub {
  font-size: 20px;
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: var(--indigo);
  color: var(--white-pure);
  font-family: 'Satoshi', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(var(--indigo-rgb), 0.35);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background: var(--indigo-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(var(--indigo-rgb), 0.5);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: transparent;
  color: var(--white);
  font-family: 'Satoshi', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-secondary);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Section 2: Problem Statement --- */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.problem-card {
  padding: 32px;
  text-align: center;
}

.problem-icon {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--indigo-rgb), 0.2), rgba(124, 58, 237, 0.1));
  color: var(--indigo);
}

.problem-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Section 3: How It Works --- */
.steps-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 12px);
  right: calc(16.66% + 12px);
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.step-card {
  flex: 1;
  padding: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Section 4: Features --- */
.features-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  min-height: 320px;
}

.feature-card:nth-child(even) .feature-text {
  order: -1;
}

.feature-text {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--indigo-rgb), 0.05), rgba(124, 58, 237, 0.05));
}

/* Feature Visual Decorative Elements */
.visual-abstract {
  position: relative;
  width: 100%;
  height: 200px;
}

/* Feature 1: AI Wizard - gradient card with stat highlight */
.visual-wizard .deco-card {
  position: absolute;
  width: 180px;
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  opacity: 0.85;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 20px 40px rgba(var(--indigo-rgb), 0.3), 0 0 60px rgba(124, 58, 237, 0.2);
}

.visual-wizard .deco-card::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--pink));
  opacity: 0.8;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.visual-wizard .deco-stat {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Feature 2: Video Studio - stacked video frames */
.visual-video .deco-frame {
  position: absolute;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.visual-video .deco-frame:nth-child(1) {
  width: 160px;
  height: 100px;
  top: 10px;
  left: calc(50% - 100px);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(var(--indigo-rgb), 0.2));
}

.visual-video .deco-frame:nth-child(2) {
  width: 160px;
  height: 100px;
  top: 40px;
  left: calc(50% - 60px);
  background: linear-gradient(135deg, rgba(var(--indigo-rgb), 0.3), rgba(245, 158, 11, 0.2));
}

.visual-video .deco-frame:nth-child(3) {
  width: 160px;
  height: 100px;
  top: 70px;
  left: calc(50% - 20px);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(var(--pink-rgb), 0.2));
}

.visual-video .deco-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(var(--indigo-rgb), 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.visual-video .deco-play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 3px;
}

/* Feature 3: Doc Builder - document icon stack */
.visual-docs .deco-doc {
  position: absolute;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.visual-docs .deco-doc:nth-child(1) {
  width: 120px;
  height: 160px;
  top: 10px;
  left: calc(50% - 80px);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.visual-docs .deco-doc:nth-child(2) {
  width: 120px;
  height: 160px;
  top: 20px;
  left: calc(50% - 40px);
  background: linear-gradient(180deg, rgba(var(--indigo-rgb), 0.15) 0%, rgba(var(--indigo-rgb), 0.05) 100%);
}

.visual-docs .deco-doc:nth-child(3) {
  width: 120px;
  height: 160px;
  top: 30px;
  left: calc(50%);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.15) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.visual-docs .deco-doc .line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  margin: 16px 16px 0;
}

.visual-docs .deco-doc .line:first-child {
  margin-top: 24px;
  width: 60%;
}

.visual-docs .deco-doc .line:nth-child(2) {
  width: 80%;
}

.visual-docs .deco-doc .line:nth-child(3) {
  width: 50%;
}

/* Feature 4: Multi-Brand Command - brand switcher */
.visual-brands .deco-switcher {
  width: 200px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.visual-brands .brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.visual-brands .brand-row.active {
  background: rgba(var(--indigo-rgb), 0.2);
  border: 1px solid rgba(var(--indigo-rgb), 0.3);
}

.visual-brands .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.visual-brands .brand-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.visual-brands .brand-row.active .brand-name {
  color: var(--indigo);
}

/* --- Brand Color Dot Classes --- */
.dot-teal { background: var(--teal); }
.dot-purple { background: var(--purple); }
.dot-amber { background: var(--amber); }
.dot-pink { background: var(--pink); }
.dot-blue { background: #3B82F6; }
.dot-emerald { background: #10B981; }
.dot-orange { background: #F97316; }
.dot-navy { background: var(--navy); border: 1px solid rgba(255,255,255,0.3); }

/* --- Section 5: Multi-Brand Showcase --- */
.showcase-track-wrapper {
  overflow: hidden;
  width: 100%;
  margin-top: 48px;
}

.showcase-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollTrack 30s linear infinite;
}

.showcase-track:hover {
  animation-play-state: paused;
}

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

.showcase-card {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.showcase-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.showcase-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.showcase-card-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: 22px;
}

/* --- Section 6: CTA Footer --- */
.cta-footer {
  padding: 100px 0 40px;
}

.cta-footer-headline {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 32px;
}

.cta-footer-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.footer-info {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-trademark {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-links a:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.45s; }

/* Slide from left/right for feature cards */
.slide-from-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-from-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-from-left.visible,
.slide-from-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Responsive Design --- */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .section-heading {
    font-size: 36px;
  }

  .hero-headline {
    font-size: 48px;
  }

  .cta-footer-headline {
    font-size: 36px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .container {
    padding: 0 80px;
  }

  .section-heading {
    font-size: 40px;
  }

  .hero-headline {
    font-size: 64px;
  }

  .cta-footer-headline {
    font-size: 40px;
  }
}

/* Mobile: <768px */
@media (max-width: 767px) {
  :root {
    --nav-height: 56px;
  }

  .nav {
    padding: 0 20px;
  }

  .nav-logo-img {
    width: 24px;
    height: 24px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  section {
    padding: 80px 0;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .hero-glass {
    width: calc(100% + 40px);
  }

  .hero-pre {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .problem-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-container {
    flex-direction: column;
  }

  .steps-container::before {
    top: 0;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .step-card {
    text-align: left;
    padding-left: 48px;
  }

  .feature-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .feature-card:nth-child(even) .feature-text {
    order: 0;
  }

  .feature-text {
    padding: 32px 24px;
  }

  .feature-visual {
    padding: 24px;
    min-height: 200px;
  }

  .cta-footer-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-footer-buttons .btn-primary,
  .cta-footer-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .orb {
    opacity: 0.3;
  }

  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 350px; height: 350px; }
  .orb-3 { width: 250px; height: 250px; }
  .orb-4 { width: 200px; height: 200px; }
}

/* Wide: 1440px+ */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }

  .hero-headline {
    font-size: 72px;
  }
}

/* --- Legal Pages (Privacy, Terms) --- */
.legal-page {
  padding: 120px 20px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.legal-page .updated {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  color: var(--indigo);
}

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

.legal-page ul {
  padding-left: 24px;
}

.legal-page a {
  color: var(--indigo);
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--indigo);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}
