/* ========================================
   LIQUID SIMULATION LANDING PAGE
   Flashy, flowy water-themed design
   ======================================== */

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--slate-950);
  color: var(--slate-200);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========================================
   ANIMATED BACKGROUND CANVAS
   ======================================== */

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  backdrop-filter: blur(20px);
  background: rgba(2, 6, 23, 0.7);
  border-bottom: 1px solid rgba(96, 165, 250, 0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.7rem 2.5rem;
  background: rgba(2, 6, 23, 0.9);
  border-bottom-color: rgba(96, 165, 250, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue-300);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate-400);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 0.5rem 1.2rem !important;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue-400) !important;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.5);
}

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

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 5% 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-300);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease both;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
  animation: fadeInUp 0.8s ease both;
}

.hero-line:nth-child(1) {
  color: var(--slate-100);
  animation-delay: 0.1s;
}

.hero-line:nth-child(2) {
  animation-delay: 0.25s;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500), #818cf8, var(--blue-400));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-400);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.55s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--slate-300);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeInUp 0.8s ease 0.7s both;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-400);
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual / Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-mockup {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.15);
  box-shadow:
    0 0 60px rgba(59, 130, 246, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.4);
  background: var(--slate-900);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.mockup-title {
  margin-left: 0.8rem;
  font-size: 0.75rem;
  color: var(--slate-500);
  font-family: 'Space Grotesk', monospace;
}

.mockup-screen {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mockup-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0c1929 0%, #0a1628 50%, #091422 100%);
  position: relative;
}

.mockup-placeholder p {
  position: relative;
  z-index: 2;
  color: var(--slate-500);
  font-size: 0.85rem;
}

/* Water animation placeholder */
.water-anim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
}

.water-wave {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  border-radius: 45% 48% 40% 42% / 60% 55% 45% 40%;
}

.wave1 {
  background: rgba(37, 99, 235, 0.35);
  animation: waveFloat 6s ease-in-out infinite;
}

.wave2 {
  background: rgba(59, 130, 246, 0.2);
  animation: waveFloat 8s ease-in-out infinite reverse;
  bottom: -5%;
}

.wave3 {
  background: rgba(96, 165, 250, 0.1);
  animation: waveFloat 10s ease-in-out infinite;
  bottom: -10%;
}

@keyframes waveFloat {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(2%) rotate(1deg); }
  50% { transform: translateX(-1%) rotate(-0.5deg); }
  75% { transform: translateX(1.5%) rotate(0.5deg); }
}

/* ========================================
   SECTIONS - SHARED
   ======================================== */

section {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--slate-100);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--slate-400);
  max-width: 560px;
  margin: 0 auto;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
  padding: 6rem 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  border-color: rgba(96, 165, 250, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.05);
}

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

.feature-icon {
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-100);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--slate-400);
  line-height: 1.6;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery {
  padding: 6rem 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

.gallery-item:hover {
  border-color: rgba(96, 165, 250, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #0c1929, #091422);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gallery-placeholder span {
  position: relative;
  z-index: 2;
  color: var(--slate-500);
  font-size: 0.85rem;
}

.placeholder-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
}

.placeholder-waves .wave1 {
  background: rgba(37, 99, 235, 0.25);
}

.placeholder-waves .wave2 {
  background: rgba(59, 130, 246, 0.15);
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.how-it-works {
  padding: 6rem 5%;
  max-width: 900px;
  margin: 0 auto;
}

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-step {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(96, 165, 250, 0.08);
  transition: all 0.3s ease;
}

.pipeline-step:hover {
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.15);
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}

.step-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-300);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--slate-400);
  line-height: 1.7;
}

.pipeline-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
  margin-left: 4rem;
}

/* ========================================
   CONTROLS SECTION
   ======================================== */

.controls-section {
  padding: 6rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.control-card {
  padding: 1.8rem 1.4rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(96, 165, 250, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.control-card:hover {
  border-color: rgba(96, 165, 250, 0.2);
  transform: translateY(-3px);
}

.control-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Space Grotesk', monospace;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--blue-300);
  margin-bottom: 0.8rem;
}

.control-key kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.6rem;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-family: 'Space Grotesk', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-300);
}

.control-card p {
  font-size: 0.85rem;
  color: var(--slate-400);
}

/* ========================================
   DOWNLOAD SECTION
   ======================================== */

.download-section {
  padding: 8rem 5%;
  text-align: center;
  position: relative;
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.download-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--slate-100);
  margin-bottom: 1rem;
}

.download-content > p {
  font-size: 1.1rem;
  color: var(--slate-400);
  margin-bottom: 3rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.download-card {
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(96, 165, 250, 0.1);
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: rgba(96, 165, 250, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.os-icon {
  color: var(--blue-400);
  margin-bottom: 1rem;
}

.download-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-100);
  margin-bottom: 0.3rem;
}

.download-card > p {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

.btn-download {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.75rem 1.2rem;
}

.download-requirements {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.download-requirements h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.req-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pill {
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate-400);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer {
  padding: 2rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--slate-400);
  font-size: 0.9rem;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--slate-600);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.32s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.40s; }

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

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-item.large {
    grid-column: span 2;
  }

  .controls-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0.8rem 1.2rem;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 6rem 1.2rem 3rem;
  }

  .features {
    padding: 4rem 1.2rem;
  }

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

  .gallery {
    padding: 4rem 1.2rem;
  }

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

  .gallery-item.large {
    grid-column: span 1;
  }

  .how-it-works {
    padding: 4rem 1.2rem;
  }

  .pipeline-step {
    flex-direction: column;
    gap: 0.8rem;
  }

  .pipeline-connector {
    margin-left: 2rem;
  }

  .controls-section {
    padding: 4rem 1.2rem;
  }

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

  .download-section {
    padding: 5rem 1.2rem;
  }

  .download-cards {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
