/* ============================================
   HARPER LABS - Contextual Intelligence
   Website Styles
   ============================================ */

/* CSS Variables */
:root {
  /* Colors - Deep, mysterious palette */
  --color-bg: #0a0a0c;
  --color-bg-elevated: #111114;
  --color-bg-card: #16161a;
  --color-surface: #1c1c21;
  
  --color-text: #e8e8ed;
  --color-text-muted: #8b8b96;
  --color-text-subtle: #5c5c66;
  
  --color-accent: #6366f1;
  --color-accent-light: #818cf8;
  --color-accent-glow: rgba(99, 102, 241, 0.4);
  
  --color-lake: #0ea5e9;
  --color-lake-deep: #0369a1;
  --color-lake-glow: rgba(14, 165, 233, 0.3);
  
  --color-rose: #f43f5e;
  --color-emerald: #10b981;
  --color-amber: #f59e0b;
  
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);
  
  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

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

/* ============================================
   AMBIENT BACKGROUND
   ============================================ */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-lake-glow) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 30px) scale(1.02); }
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-xl);
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo-mark {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
}

.logo-mark.small {
  width: 28px;
  height: 28px;
}

/* Tech Lab Logo Animations */
.lab-logo {
  width: 48px;
  height: 48px;
}

.lab-logo.small {
  width: 32px;
  height: 32px;
}

.lab-logo svg {
  overflow: visible;
}

/* Central core - the memory center */
.lab-logo .logo-core {
  transition: opacity 0.3s ease;
}

.lab-logo .logo-core-pulse {
  animation: core-ring-pulse 3s ease-in-out infinite;
}

@keyframes core-ring-pulse {
  0%, 100% { 
    opacity: 0.3;
  }
  50% { 
    opacity: 0.15;
  }
}

.lab-logo .logo-core-glow {
  animation: core-glow 2.5s ease-in-out infinite;
}

@keyframes core-glow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.35; }
}

/* Neural node pulse - staggered around the hexagon */
.lab-logo .logo-node {
  animation: node-pulse 3s ease-in-out infinite;
}

.lab-logo .node-1 { animation-delay: 0s; }
.lab-logo .node-2 { animation-delay: 0.5s; }
.lab-logo .node-3 { animation-delay: 1s; }
.lab-logo .node-4 { animation-delay: 1.5s; }
.lab-logo .node-5 { animation-delay: 2s; }
.lab-logo .node-6 { animation-delay: 2.5s; }

@keyframes node-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Connection pathways light up */
.lab-logo .conn {
  animation: conn-flow 2.5s ease-in-out infinite;
}

.lab-logo .conn-1 { animation-delay: 0s; }
.lab-logo .conn-2 { animation-delay: 0.4s; }
.lab-logo .conn-3 { animation-delay: 0.8s; }
.lab-logo .conn-4 { animation-delay: 1.2s; }
.lab-logo .conn-5 { animation-delay: 1.6s; }
.lab-logo .conn-6 { animation-delay: 2s; }

@keyframes conn-flow {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.55; }
}

/* Data particles pulse */
.lab-logo .data-particle {
  animation: data-pulse 2s ease-in-out infinite;
}

.lab-logo .particle-1 { animation-delay: 0s; }
.lab-logo .particle-2 { animation-delay: 0.7s; }
.lab-logo .particle-3 { animation-delay: 1.4s; }

@keyframes data-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Hover state - energize the network */
.nav-logo:hover .lab-logo .logo-core {
  opacity: 1;
}

.nav-logo:hover .lab-logo .logo-node {
  animation-duration: 1.5s;
}

.nav-logo:hover .lab-logo .conn {
  animation-duration: 1.2s;
}

.nav-logo:hover .lab-logo .logo-core-glow {
  opacity: 0.5;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  gap: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
  background: var(--color-bg-elevated);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--space-4xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
  gap: var(--space-4xl);
}

.hero-content {
  padding-top: var(--space-3xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.title-line {
  display: block;
}

.title-accent {
  color: var(--color-lake);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: var(--space-2xl);
}

.hero-subtitle em {
  color: var(--color-text);
  font-style: italic;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lake-visualization {
  position: relative;
  width: 400px;
  height: 400px;
}

.lake-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-lake);
  opacity: 0.2;
  animation: ring-pulse 4s ease-in-out infinite;
}

.ring-1 {
  inset: 0;
  animation-delay: 0s;
}

.ring-2 {
  inset: 50px;
  animation-delay: -1.3s;
}

.ring-3 {
  inset: 100px;
  animation-delay: -2.6s;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.02); }
}

.lake-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--color-lake) 0%, var(--color-lake-deep) 100%);
  border-radius: 50%;
  box-shadow: 0 0 60px var(--color-lake-glow);
}

.core-pulse {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px solid var(--color-lake);
  opacity: 0;
  animation: core-pulse-anim 3s ease-out infinite;
}

@keyframes core-pulse-anim {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.5); }
}

.lake-particles {
  position: absolute;
  inset: 0;
}

.lake-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-lake);
  border-radius: 50%;
  opacity: 0.6;
  animation: particle-float 8s ease-in-out infinite;
}

.lake-particles .particle:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.lake-particles .particle:nth-child(2) { top: 40%; left: 70%; animation-delay: -1s; }
.lake-particles .particle:nth-child(3) { top: 60%; left: 20%; animation-delay: -2s; }
.lake-particles .particle:nth-child(4) { top: 80%; left: 60%; animation-delay: -3s; }
.lake-particles .particle:nth-child(5) { top: 30%; left: 80%; animation-delay: -4s; }
.lake-particles .particle:nth-child(6) { top: 70%; left: 40%; animation-delay: -5s; }
.lake-particles .particle:nth-child(7) { top: 50%; left: 50%; animation-delay: -6s; }
.lake-particles .particle:nth-child(8) { top: 25%; left: 55%; animation-delay: -7s; }

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) translateX(-15px);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-30px) translateX(5px);
    opacity: 0.7;
  }
}
.particle:nth-child(6) { top: 70%; left: 40%; animation-delay: -5s; }
.particle:nth-child(7) { top: 50%; left: 10%; animation-delay: -6s; }
.particle:nth-child(8) { top: 10%; left: 50%; animation-delay: -7s; }

@keyframes particle-float {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  25% { transform: translate(10px, -20px); opacity: 0.8; }
  50% { transform: translate(-15px, -10px); opacity: 0.4; }
  75% { transform: translate(5px, 15px); opacity: 0.7; }
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title em {
  color: var(--color-lake);
  font-style: italic;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: var(--space-lg) auto 0;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */

.philosophy {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
}

/* Philosophy Manifesto */
.philosophy-manifesto {
  max-width: 900px;
  margin: var(--space-2xl) auto var(--space-3xl);
  padding: var(--space-2xl);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.03) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  position: relative;
}

.philosophy-manifesto::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 40px;
  font-size: 120px;
  font-family: var(--font-display);
  color: rgba(99, 102, 241, 0.15);
  line-height: 1;
}

.manifesto-lead {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-display);
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  line-height: 1.4;
  text-align: center;
}

.manifesto-lead em {
  color: var(--color-cyan);
  font-style: italic;
}

.manifesto-body {
  margin-bottom: var(--space-xl);
}

.manifesto-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.manifesto-body p:last-child {
  margin-bottom: 0;
}

.manifesto-body strong {
  color: var(--color-text);
  font-weight: 500;
}

.manifesto-body em {
  color: var(--color-indigo-light);
  font-style: italic;
}

.manifesto-proofs {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.proof-point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.proof-marker {
  color: var(--color-cyan);
  font-size: 0.75rem;
  margin-top: 6px;
  flex-shrink: 0;
}

.proof-point p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.proof-point strong {
  color: var(--color-text);
  font-weight: 500;
}

@media (max-width: 768px) {
  .philosophy-manifesto {
    padding: var(--space-xl);
    margin: var(--space-xl) auto var(--space-2xl);
  }
  
  .philosophy-manifesto::before {
    font-size: 80px;
    top: -10px;
    left: 20px;
  }
  
  .manifesto-body p {
    font-size: 1rem;
  }
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.philosophy-card {
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.philosophy-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.philosophy-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.philosophy-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   LAKE SECTION
   ============================================ */

.lake-section {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.lake-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-4xl);
  align-items: center;
}

.lake-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.lake-description strong {
  color: var(--color-lake);
}

.lake-features {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.feature {
  display: flex;
  gap: var(--space-md);
}

.feature-icon {
  color: var(--color-lake);
  font-size: 1.2rem;
}

.feature-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.feature-text span {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

/* Depth Meter */
.lake-visual {
  position: relative;
}

.depth-meter {
  position: relative;
  height: 480px;
  display: flex;
  gap: var(--space-xl);
}

.depth-line {
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--color-lake) 0%,
    #a855f7 30%,
    #c084fc 60%,
    #e879f9 100%
  );
  border-radius: var(--radius-full);
  position: relative;
  box-shadow: 
    0 0 10px rgba(168, 85, 247, 0.5),
    0 0 20px rgba(168, 85, 247, 0.3),
    0 0 40px rgba(168, 85, 247, 0.15);
}

.depth-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--color-lake) 0%, #a855f7 50%, #c084fc 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 15px rgba(168, 85, 247, 0.8),
    0 0 30px rgba(168, 85, 247, 0.5),
    0 0 45px rgba(192, 132, 252, 0.3);
  animation: depth-pulse 6.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

@keyframes depth-pulse {
  /* Start at surface - fast initial descent */
  0% { 
    top: 0%; 
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.8), 0 0 24px rgba(14, 165, 233, 0.4);
  }
  /* Quick through Surface & Context */
  8% { 
    top: 20%; 
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.8), 0 0 28px rgba(99, 102, 241, 0.5);
  }
  /* Slowing at Meaning */
  18% { 
    top: 40%; 
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.8), 0 0 32px rgba(139, 92, 246, 0.5);
  }
  /* More drag at Understanding */
  30% { 
    top: 55%; 
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.85), 0 0 36px rgba(168, 85, 247, 0.5);
  }
  /* Heavy resistance at Embodiment */
  42% { 
    top: 70%; 
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.9), 0 0 40px rgba(192, 132, 252, 0.55);
  }
  /* Maximum friction - slowly reaching Superintelligence */
  50% { 
    top: 90%; 
    box-shadow: 0 0 25px rgba(232, 121, 249, 1), 0 0 50px rgba(232, 121, 249, 0.7);
  }
  /* Pause at the deepest point */
  55% { 
    top: 90%; 
    box-shadow: 0 0 25px rgba(232, 121, 249, 1), 0 0 50px rgba(232, 121, 249, 0.7);
  }
  /* Rising back - inverse exponential (fast start from bottom) */
  62% { 
    top: 70%; 
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.9), 0 0 40px rgba(192, 132, 252, 0.55);
  }
  72% { 
    top: 50%; 
    box-shadow: 0 0 17px rgba(168, 85, 247, 0.85), 0 0 34px rgba(168, 85, 247, 0.5);
  }
  82% { 
    top: 30%; 
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8), 0 0 30px rgba(139, 92, 246, 0.5);
  }
  92% { 
    top: 10%; 
    box-shadow: 0 0 13px rgba(99, 102, 241, 0.8), 0 0 26px rgba(99, 102, 241, 0.45);
  }
  /* Back to surface */
  100% { 
    top: 0%; 
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.8), 0 0 24px rgba(14, 165, 233, 0.4);
  }
}

.depth-markers {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: var(--space-sm) 0;
}

.marker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.marker:nth-child(5) {
  color: #a855f7;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.marker:nth-child(6) {
  color: #e879f9;
  text-shadow: 0 0 15px rgba(232, 121, 249, 0.4);
  font-weight: 500;
}

/* ============================================
   AVENUE SECTION
   ============================================ */

.avenue-section {
  background: var(--color-bg);
}

.agents-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-4xl);
}

.agent-card {
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.agent-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.agent-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.agent-card:hover .avatar-glow {
  opacity: 1;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  opacity: 0.5;
}

.avatar-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-accent);
  background: var(--color-bg-elevated);
  border-radius: 50%;
}

.agent-card h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.agent-role {
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.agent-desc {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

/* Memory Architecture */
.avenue-memory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-2xl);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.memory-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.memory-layer {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.memory-layer:hover {
  border-color: var(--color-accent);
}

.layer-1 {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}

.layer-2 {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%);
  margin-left: var(--space-lg);
}

.layer-3 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
  margin-left: var(--space-2xl);
}

.layer-4 {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, transparent 100%);
  margin-left: var(--space-3xl);
  border-color: rgba(244, 63, 94, 0.3);
}

.layer-4:hover {
  border-color: var(--color-rose);
}

.layer-4 span {
  color: var(--color-rose);
}

.memory-layer span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.memory-layer p {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  margin-top: var(--space-xs);
}

.memory-text h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.memory-text p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.memory-text em {
  color: var(--color-lake);
  font-style: italic;
}

/* ============================================
   TECHNOLOGY SECTION
   ============================================ */

.tech-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
  border-top: 1px solid var(--color-border);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.tech-card {
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-lake) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-md);
}

.tech-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.tech-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.tech-card code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-lake);
  background: rgba(14, 165, 233, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

/* ============================================
   LORE SECTION
   ============================================ */

.lore-section {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.lore-content {
  max-width: 800px;
  margin: 0 auto var(--space-4xl);
}

.lore-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  font-style: italic;
}

.lore-quote em {
  color: var(--color-lake);
}

.lore-quote strong {
  color: var(--color-accent);
  font-weight: 400;
}

.lore-cite {
  display: block;
  margin-top: var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  font-style: normal;
}

.lore-symbols {
  display: flex;
  justify-content: center;
  gap: var(--space-4xl);
}

.symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.symbol svg {
  width: 64px;
  height: 64px;
  color: var(--color-text-subtle);
  opacity: 0.5;
  transition: all var(--transition-base);
}

.symbol:hover svg {
  color: var(--color-lake);
  opacity: 1;
}

.symbol span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: var(--color-bg);
  padding: var(--space-4xl) 0;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
}

.waitlist-form {
  margin-bottom: var(--space-2xl);
}

.form-group {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.form-group input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

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

.form-group input:focus {
  border-color: var(--color-accent);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  margin-top: var(--space-md);
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
}

.link-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.link-item svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4xl) var(--space-xl) var(--space-xl);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-4xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--color-border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-logo span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

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

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer-column h5 {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer-column a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
}

.footer-mystery {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-lake);
  opacity: 0.5;
}

/* ============================================
   EMBODIED SECTION
   ============================================ */

.embodied-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #0d0d12 50%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.embodied-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-hover), transparent);
}

.embodied-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.embodied-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-slow);
  position: relative;
}

.embodied-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.embodied-card.humanoid:hover {
  box-shadow: 0 20px 60px -20px rgba(99, 102, 241, 0.3);
}

.embodied-card.companion:hover {
  box-shadow: 0 20px 60px -20px rgba(16, 185, 129, 0.3);
}

.embodied-card.cloud-agent:hover {
  box-shadow: 0 20px 60px -20px rgba(14, 165, 233, 0.3);
}

.embodied-visual {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.humanoid .embodied-visual {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}

.companion .embodied-visual {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
}

.cloud-agent .embodied-visual {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%);
}

.robot-silhouette {
  position: relative;
  z-index: 2;
  transition: transform var(--transition-slow);
}

.embodied-card:hover .robot-silhouette {
  transform: scale(1.05);
}

.humanoid-shape svg {
  width: 100px;
  height: 160px;
  color: var(--color-accent-light);
}

.companion-shape svg {
  width: 140px;
  height: 100px;
  color: var(--color-emerald);
}

.cloud-shape svg {
  width: 120px;
  height: 120px;
  color: var(--color-lake);
}

.embodied-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  transition: opacity var(--transition-slow);
}

.embodied-card:hover .embodied-glow {
  opacity: 0.6;
}

.humanoid-glow {
  background: var(--color-accent);
}

.companion-glow {
  background: var(--color-emerald);
}

.cloud-glow {
  background: var(--color-lake);
}

.embodied-content {
  padding: var(--space-xl);
}

.embodied-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.embodied-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
}

.embodied-badge .badge-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.embodied-content h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.embodied-role {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.embodied-desc {
  font-size: 0.9rem;
  color: var(--color-text-subtle);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.embodied-desc em {
  color: var(--color-text-muted);
  font-style: italic;
}

.embodied-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.embodied-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.feature-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.humanoid .feature-dot { background: var(--color-accent-light); }
.companion .feature-dot { background: var(--color-emerald); }
.cloud-agent .feature-dot { background: var(--color-lake); }

/* Embodied Philosophy */
.embodied-philosophy {
  margin-top: var(--space-4xl);
  text-align: center;
}

.embodied-quote {
  position: relative;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.embodied-quote .quote-mark {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
}

.embodied-quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.embodied-quote em {
  color: var(--color-text);
}

.embodied-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.principle {
  text-align: center;
  padding: var(--space-xl);
}

.principle-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
}

.principle-icon svg {
  width: 100%;
  height: 100%;
  color: var(--color-text-subtle);
}

.principle h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.principle p {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  line-height: 1.6;
}

/* Core pulse animation for robots */
.embodied-visual .core-pulse {
  animation: core-glow 3s ease-in-out infinite;
}

@keyframes core-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ===== ROBOT PERSONALITY ANIMATIONS ===== */

/* =========================
   HUMANOID - WAVE & WINK
   ========================= */

/* Right arm waves hello */
.humanoid-wave-arm {
  transform-origin: 80px 60px; /* Shoulder pivot */
  animation: humanoid-wave 8s ease-in-out infinite;
}

@keyframes humanoid-wave {
  /* Idle */
  0%, 70%, 100% {
    transform: rotate(0deg);
  }
  /* Raise arm */
  75% {
    transform: rotate(-30deg);
  }
  /* Wave back */
  78% {
    transform: rotate(-40deg);
  }
  /* Wave forth */
  81% {
    transform: rotate(-25deg);
  }
  /* Wave back */
  84% {
    transform: rotate(-40deg);
  }
  /* Wave forth */
  87% {
    transform: rotate(-25deg);
  }
  /* Lower arm */
  92% {
    transform: rotate(-10deg);
  }
}

/* Right eye winks - simple blink using opacity */
.humanoid-eye-right {
  animation: humanoid-wink 8s ease-in-out infinite;
}

@keyframes humanoid-wink {
  /* Open */
  0%, 74%, 88%, 100% {
    opacity: 0.8;
  }
  /* Quick blink closed */
  76%, 78% {
    opacity: 0;
  }
  /* Open */
  80%, 82% {
    opacity: 0.8;
  }
  /* Another quick blink */
  84%, 86% {
    opacity: 0;
  }
}

/* =========================
   COMPANION - PLAYING CATCH
   ========================= */
.companion-shape svg {
  animation: companion-catch 10s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes companion-catch {
  /* Alert and waiting */
  0%, 65%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  /* Spots the ball! Perks up */
  68% {
    transform: translateY(-3px) translateX(0) rotate(2deg);
  }
  /* Crouches to pounce */
  72% {
    transform: translateY(2px) translateX(0) rotate(-3deg);
  }
  /* LEAP for the catch! */
  76% {
    transform: translateY(-15px) translateX(8px) rotate(5deg);
  }
  /* Peak of jump */
  78% {
    transform: translateY(-18px) translateX(10px) rotate(8deg);
  }
  /* Coming down with ball */
  82% {
    transform: translateY(-8px) translateX(6px) rotate(3deg);
  }
  /* Landing */
  86% {
    transform: translateY(2px) translateX(4px) rotate(-2deg);
  }
  /* Happy wiggle - got it! */
  88% {
    transform: translateY(0) translateX(2px) rotate(3deg);
  }
  90% {
    transform: translateY(0) translateX(2px) rotate(-3deg);
  }
  92% {
    transform: translateY(0) translateX(1px) rotate(2deg);
  }
  /* Trot back */
  95% {
    transform: translateY(-2px) translateX(0) rotate(0deg);
  }
}

/* Excited tail wag when playing */
.companion-shape svg path:last-of-type {
  animation: companion-excited-tail 10s ease-in-out infinite;
  transform-origin: 30px 65px;
}

@keyframes companion-excited-tail {
  0%, 65%, 100% { transform: rotate(0deg); }
  /* Slow wag while waiting */
  67% { transform: rotate(8deg); }
  69% { transform: rotate(-5deg); }
  71% { transform: rotate(5deg); }
  /* Super excited during catch! */
  76%, 78% { transform: rotate(15deg); }
  77% { transform: rotate(-12deg); }
  79% { transform: rotate(12deg); }
  80% { transform: rotate(-10deg); }
  /* Happy wag after catch */
  86% { transform: rotate(20deg); }
  87% { transform: rotate(-18deg); }
  88% { transform: rotate(15deg); }
  89% { transform: rotate(-12deg); }
  90% { transform: rotate(10deg); }
  91% { transform: rotate(-8deg); }
  93% { transform: rotate(5deg); }
  95% { transform: rotate(0deg); }
}

/* Head tracking the ball */
.companion-shape svg ellipse:nth-of-type(3) {
  animation: companion-head-track 10s ease-in-out infinite;
  transform-origin: 115px 55px;
}

@keyframes companion-head-track {
  0%, 65%, 100% { transform: rotate(0deg) translateY(0); }
  /* Looking up at incoming ball */
  68% { transform: rotate(-15deg) translateY(-3px); }
  72% { transform: rotate(-20deg) translateY(-2px); }
  /* Snapping at ball */
  76% { transform: rotate(10deg) translateY(-5px); }
  78% { transform: rotate(5deg) translateY(-3px); }
  /* Proud with catch */
  82% { transform: rotate(8deg) translateY(0); }
  88% { transform: rotate(5deg) translateY(0); }
  92% { transform: rotate(0deg) translateY(0); }
}

/* =========================
   CLOUD AGENT - PLAYING WITH CLOUDS
   ========================= */
.cloud-shape svg {
  animation: cloud-play 11s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes cloud-play {
  0%, 60%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  /* Notices a cloud floating by */
  63% {
    transform: translateY(-2px) rotate(3deg);
  }
  /* Reaches up playfully */
  67% {
    transform: translateY(-6px) rotate(-2deg);
  }
  /* Pokes the cloud */
  70% {
    transform: translateY(-8px) rotate(0deg);
  }
  /* Cloud puffs - delighted! */
  73% {
    transform: translateY(-5px) rotate(5deg);
  }
  75% {
    transform: translateY(-3px) rotate(-5deg);
  }
  /* Happy bounce */
  78% {
    transform: translateY(-7px) rotate(0deg);
  }
  80% {
    transform: translateY(-2px) rotate(0deg);
  }
  82% {
    transform: translateY(-5px) rotate(2deg);
  }
  /* Settles back */
  88% {
    transform: translateY(-1px) rotate(0deg);
  }
}

/* Arms reaching for clouds */
.cloud-shape svg path:nth-of-type(3) {
  animation: cloud-left-reach 11s ease-in-out infinite;
  transform-origin: 55px 75px;
}

.cloud-shape svg path:nth-of-type(4) {
  animation: cloud-right-reach 11s ease-in-out infinite;
  transform-origin: 85px 75px;
}

@keyframes cloud-left-reach {
  0%, 60%, 100% { transform: rotate(0deg); }
  65% { transform: rotate(-15deg); }
  70% { transform: rotate(-30deg); }
  73% { transform: rotate(-20deg); }
  78% { transform: rotate(-10deg); }
  85% { transform: rotate(5deg); }
  90% { transform: rotate(0deg); }
}

@keyframes cloud-right-reach {
  0%, 60%, 100% { transform: rotate(0deg); }
  63% { transform: rotate(10deg); }
  67% { transform: rotate(25deg); }
  70% { transform: rotate(35deg); }
  73% { transform: rotate(25deg); }
  76% { transform: rotate(15deg); }
  82% { transform: rotate(-5deg); }
  88% { transform: rotate(0deg); }
}

/* Antenna sending happy signals when playing */
.cloud-shape svg circle:last-of-type {
  animation: cloud-happy-signal 11s ease-in-out infinite;
}

@keyframes cloud-happy-signal {
  0%, 60%, 100% { 
    opacity: 0.6;
    transform: scale(1);
  }
  70%, 72%, 74%, 76%, 78%, 80% {
    opacity: 1;
    transform: scale(1.4);
  }
  71%, 73%, 75%, 77%, 79% {
    opacity: 0.7;
    transform: scale(1);
  }
  85% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

/* Happy eye squint when playing */
.cloud-shape svg circle:nth-of-type(1),
.cloud-shape svg circle:nth-of-type(2) {
  animation: cloud-happy-eyes 11s ease-in-out infinite;
}

@keyframes cloud-happy-eyes {
  0%, 60%, 90%, 100% {
    transform: scaleY(1);
  }
  /* Happy squint during play */
  70%, 80% {
    transform: scaleY(0.6);
  }
  75% {
    transform: scaleY(0.8);
  }
}

/* Cloud wisps floating by (the dashed lines) */
.cloud-shape svg path[stroke-dasharray] {
  animation: clouds-float 11s ease-in-out infinite;
}

@keyframes clouds-float {
  0%, 100% {
    stroke-dashoffset: 0;
    opacity: 0.2;
  }
  60% {
    stroke-dashoffset: 0;
    opacity: 0.2;
  }
  /* Clouds appear during play */
  65% {
    stroke-dashoffset: -5;
    opacity: 0.5;
  }
  70% {
    stroke-dashoffset: -10;
    opacity: 0.6;
  }
  75% {
    stroke-dashoffset: -15;
    opacity: 0.4;
  }
  85% {
    stroke-dashoffset: -20;
    opacity: 0.3;
  }
  95% {
    stroke-dashoffset: -25;
    opacity: 0.2;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-content {
    padding-top: 0;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  
  .lake-content {
    grid-template-columns: 1fr;
  }
  
  .lake-visual {
    display: none;
  }
  
  .agents-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .avenue-memory {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .embodied-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .embodied-principles {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .agents-showcase {
    grid-template-columns: 1fr;
  }
  
  .lore-symbols {
    gap: var(--space-xl);
  }
  
  .symbol svg {
    width: 48px;
    height: 48px;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .cta-links {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}
