/* Design Token System */
:root {
  /* High-Impact Palette */
  --shout: #FF5900; /* Vibrant Orange */
  
  /* The Void */
  --onyx: #0A0A0A; /* Deep Background */
  --charcoal: #171717; /* Surface Dark */
  
  /* Accents */
  --white: #FFFFFF;
  --gray: #262626; /* Deep Gray for UI */
  --gray-muted: #737373;
  
  /* Radii */
  --radius-pill: 9999px;
  --radius-glass: 32px;
  --radius-fluid-br: 120px;
  --radius-fluid-bl: 40px;
  
  /* Easing */
  --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-squish: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  font-family: 'Inter', sans-serif;
  background-color: var(--onyx);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Typography Hierarchy */
.massive-headline {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--onyx);
  margin-bottom: 2rem;
}

.void-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-body {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.8);
  max-width: 32ch;
  margin-bottom: 3rem;
  line-height: 1.4;
}

.void-body, .void-sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gray-muted);
  line-height: 1.6;
}

.label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.text-white { color: var(--white); }
.text-onyx { color: var(--onyx); }
.text-shout { color: var(--shout); }
.text-gray-muted { color: var(--gray-muted); }
.text-center { text-align: center; }

/* Buttons & Components */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease-squish), box-shadow 0.2s var(--ease-liquid);
}

.btn-dark {
  background-color: var(--onyx);
  color: var(--white);
}

.btn-dark:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-shout {
  background-color: var(--shout);
  color: var(--onyx);
}

.btn-outline-dark {
  border: 2px solid rgba(10, 10, 10, 0.2);
  color: var(--onyx);
}

.btn-outline-dark:hover {
  background-color: var(--onyx);
  color: var(--white);
}

.squish-click:active {
  transform: scale(0.95);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--onyx);
  margin-bottom: 2rem;
}

.trust-badge .icon {
  font-size: 1rem;
}

/* 1. Liquid Hero Section */
.liquid-hero {
  background-color: var(--shout);
  color: var(--onyx);
  border-bottom-right-radius: var(--radius-fluid-br);
  border-bottom-left-radius: var(--radius-fluid-bl);
  position: relative;
  overflow: hidden;
  z-index: 10;
  padding-bottom: 8rem;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  max-width: 1440px;
  margin: 0 auto;
}

.brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--onyx);
}

.nav-links {
  display: none;
  gap: 2rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--onyx);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

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

/* Hero Content */
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  max-width: 1440px;
  margin: 4rem auto 0;
  padding: 0 5%;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Glassmorphic Showcase */
.glass-showcase {
  position: relative;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-glass);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 380px;
  padding: 1.5rem;
  position: relative;
}

.glass-card.large {
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card.small {
  max-width: 240px;
}

.offset-card {
  position: absolute;
  bottom: 20%;
  right: -5%;
  z-index: 5;
}

.glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.75rem;
}

.glass-header .label {
  color: var(--onyx);
}

.badge-yellow {
  background-color: var(--shout);
  color: var(--onyx);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.mock-track {
  height: 24px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 10, 0.1);
  margin-bottom: 0.75rem;
  width: 100%;
}

.mock-track.short { width: 40%; }
.mock-track.medium { width: 70%; background: var(--onyx); }

.source-item {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--onyx);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Animations */
.float-slow {
  animation: float 6s ease-in-out infinite;
}

.float-fast {
  animation: float 4s ease-in-out infinite reverse;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-liquid), transform 1s var(--ease-liquid);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* The Dark Void Main Section */
.void-section {
  background-color: var(--onyx);
  padding: 4rem 0 0;
  position: relative;
  z-index: 1;
  margin-top: -4rem; /* Slide under the liquid hero */
}

/* Logo Ticker */
.ticker-wrapper {
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.logo-ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.logo-ticker::before, .logo-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.logo-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--onyx), transparent);
}

.logo-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--onyx), transparent);
}

.ticker-track {
  display: inline-block;
  animation: ticker 20s linear infinite;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--charcoal);
  letter-spacing: -0.05em;
}

.ticker-track span {
  margin: 0 2rem;
  transition: color 0.3s ease;
}

.ticker-track span:hover {
  color: var(--gray-muted);
}

.ticker-track .dot {
  color: var(--shout);
  font-size: 1rem;
  vertical-align: middle;
}

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

/* Process Fluid Grid */
.process-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 6rem 5%;
}

.section-header {
  margin-bottom: 5rem;
  max-width: 600px;
}

.fluid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.fluid-card {
  background-color: var(--charcoal);
  border-radius: var(--radius-glass);
  padding: 3rem 2rem;
  border: 1px solid var(--gray);
  transition: transform 0.4s var(--ease-liquid), background-color 0.4s ease;
}

.fluid-card:hover {
  transform: translateY(-10px);
  background-color: #1f1f1f;
  border-color: rgba(255, 89, 0, 0.3); /* Slight yellow hint */
}

.card-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.fluid-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.fluid-card p {
  font-size: 0.95rem;
  color: var(--gray-muted);
  line-height: 1.6;
}

/* Differentiation Section */
.differentiation-section {
  max-width: 1440px;
  margin: 8rem auto;
  padding: 0 5%;
}

.diff-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  background-color: var(--charcoal);
  border-radius: 64px;
  padding: 5rem;
  border: 1px solid var(--gray);
}

.diff-glass {
  position: relative;
  width: 100%;
}

.status-dot {
  width: 12px;
  height: 12px;
  background-color: var(--shout);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--shout);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 89, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 89, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 89, 0, 0); }
}

.timeline-visual {
  margin-top: 1rem;
  position: relative;
}

.tl-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  height: 32px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 4px;
}

.tl-clip {
  height: 100%;
  border-radius: 4px;
}

.v-clip { background: #4f46e5; }
.a-clip { background: #10b981; }

.w-60 { width: 60%; }
.w-30 { width: 30%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }

.tl-playhead {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 45%;
  width: 2px;
  background-color: var(--shout);
  box-shadow: 0 0 10px var(--shout);
}

.tl-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  background-color: var(--shout);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Agent Showcase Section */
.showcase-section {
  max-width: 1440px;
  margin: 8rem auto;
  padding: 0 5%;
}

.showcase-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.showcase-ui-container {
  background: var(--charcoal);
  border: 1px solid var(--gray);
  border-radius: 48px;
  padding: 1.5rem;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.showcase-interface {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  background: var(--onyx);
  border-radius: 36px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.ui-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--gray);
}

.ui-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  align-self: flex-start;
  color: var(--white);
}

.chat-bubble {
  padding: 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeInBubble 0.5s ease forwards;
  opacity: 0;
}

.chat-bubble.user {
  background: rgba(255, 255, 255, 0.1);
  border-top-left-radius: 4px;
}

.chat-bubble.agent {
  background: transparent;
  border: 1px solid var(--gray);
  color: var(--gray-muted);
}

.chat-bubble.agent.highlight {
  background: rgba(255, 89, 0, 0.1);
  border-color: var(--shout);
  color: var(--shout);
  font-weight: 700;
}

.dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--shout);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1.5s infinite;
}

.ui-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-player {
  background: #050505;
  border-radius: 24px;
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray);
  overflow: hidden;
}

.play-button {
  width: 64px;
  height: 64px;
  background: var(--shout);
  color: var(--onyx);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-squish);
  z-index: 2;
}

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

.video-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-family: monospace;
}

.timeline-editor {
  background: var(--charcoal);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--gray);
}

.editor-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray);
  padding-bottom: 0.75rem;
}

.timeline-tracks {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.t-clip { background: #d946ef; } /* Purple for text */
.w-20 { width: 20%; }
.w-100 { width: 100%; }
.offset { margin-left: 5%; }

.animated-playhead {
  animation: scrub-timeline 8s infinite linear;
}

@keyframes scrub-timeline {
  0% { left: 0%; }
  100% { left: 100%; }
}

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

/* Stagger animations */
.chat-bubble:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble:nth-child(3) { animation-delay: 1.2s; }
.chat-bubble:nth-child(4) { animation-delay: 2.2s; }
.chat-bubble:nth-child(5) { animation-delay: 3.2s; }
.chat-bubble:nth-child(6) { animation-delay: 4.2s; }

@media (max-width: 1024px) {
  .showcase-interface {
    grid-template-columns: 1fr;
  }
  .ui-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--gray);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
}

/* Footer */
.liquid-footer {
  background-color: var(--shout);
  border-top-left-radius: var(--radius-fluid-br); /* Inverted wave for footer */
  border-top-right-radius: var(--radius-fluid-bl);
  padding: 6rem 5% 4rem;
  margin-top: 8rem;
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-headline {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--onyx);
  margin-bottom: 6rem;
  line-height: 0.95;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid rgba(10,10,10,0.1);
  padding-top: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--onyx);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-body {
    margin: 0 auto 3rem;
  }
  
  .glass-showcase {
    margin-top: 4rem;
    height: 400px;
  }
  
  .diff-container {
    grid-template-columns: 1fr;
    padding: 3rem;
    border-radius: 40px;
  }
}

@media (max-width: 640px) {
  .liquid-hero {
    border-bottom-right-radius: 60px;
    border-bottom-left-radius: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }
}
