/* ============================================
   KaiMed Healthcare AI - Coming Soon
   Clean, spacious, lotus.ai-inspired design
   ============================================ */

:root {
  --cream: #E6E7DE;
  --blue: #76878C;
  --green: #99A783;
  --green-dark: #889b72;
  --charcoal: #3C3B39;
  --white: #FFFFFF;
  --bg: #FAFAF8;
  --border: rgba(60, 59, 57, 0.08);
  --border-strong: rgba(60, 59, 57, 0.12);
  --text-secondary: rgba(60, 59, 57, 0.6);
  --text-gradient: linear-gradient(135deg, #76878C 0%, #99A783 50%, #76878C 100%);
  --green-gradient: linear-gradient(135deg, #76878C 0%, #99A783 100%);
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--charcoal);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ==========================================
   PRELOADER
   ========================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: opacity 1s cubic-bezier(.4, 0, .2, 1),
    visibility 1s cubic-bezier(.4, 0, .2, 1);
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-icon {
  width: 72px;
  height: 72px;
  position: relative;
  z-index: 3;
  animation: logoPulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(153, 167, 131, 0.3)) drop-shadow(0 0 60px rgba(153, 167, 131, 0.1));
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(153, 167, 131, 0.3)) drop-shadow(0 0 60px rgba(153, 167, 131, 0.1));
  }

  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 30px rgba(153, 167, 131, 0.5)) drop-shadow(0 0 80px rgba(153, 167, 131, 0.2));
  }
}


.preloader-logo {
  font-family: 'Outfit', sans-serif;
  /* Standard font */
  font-size: 3rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: cinemaPulse 2.5s ease-in-out infinite alternate;
}

@keyframes cinemaPulse {
  0% {
    opacity: 0.4;
    transform: scale(0.98);
    text-shadow: 0 0 10px rgba(230, 231, 222, 0);
  }

  100% {
    opacity: 1;
    transform: scale(1.02);
    text-shadow: 0 0 30px rgba(230, 231, 222, 0.3);
  }
}

/* ==========================================
   COMPLIANCE MARQUEE
   ========================================== */
.compliance-marquee-mask {
  width: 100%;
  max-width: 1200px;
  margin: 3rem auto 0;
  overflow: hidden;
  position: relative;
  /* Fade edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.compliance-track {
  display: flex;
  gap: 1.5rem;
  /* Gap between badges */
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
}

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

/* Ensure we use the correct transform for 3 identical sets */
/* Moving -33.33% means we move exactly one full set length, resetting nicely */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% / 3));
  }
}

/* Adjust badge style for marquee context */
.compliance-badge {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================
   FLOATING NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 100;
  opacity: 0;
  animation: navSlideDown 0.6s cubic-bezier(.16, 1, .3, 1) 0.3s forwards;
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

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

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem 0.7rem 1.5rem;
  background: rgba(60, 59, 57, 0.4);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.navbar-icon {
  height: 32px;
  width: 32px;
  filter: brightness(2.5) saturate(0);
}

.navbar-wordmark {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cream);
}

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

.nav-links a {
  color: rgba(230, 231, 222, 0.65);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.btn-nav-cta {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--green);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background: #a8b590;
  transform: translateY(-1px);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(230, 231, 222, 0.45);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: rgba(230, 231, 222, 0.8);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
}

/* ==========================================
   LAYOUT
   ========================================== */
.page-content {
  position: relative;
  z-index: 10;
  padding-top: 0;
}

section {
  position: relative;
}

/* ==========================================
   GRADIENT TEXT
   ========================================== */
.gradient-text {
  background: var(--text-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {

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

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

/* ==========================================
   SECTION LABELS
   ========================================== */
.section-label {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 1.25rem;
  padding: 0.35rem 1rem;
  border-radius: 8px;
  background: rgba(153, 167, 131, 0.08);
  border: 1px solid rgba(153, 167, 131, 0.12);
}

.section-label--light {
  color: var(--cream);
  background: rgba(230, 231, 222, 0.08);
  border-color: rgba(230, 231, 222, 0.12);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  text-align: center;
  padding: 10rem 2rem 6rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#liquid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
  /* Stronger plasma touch */
  pointer-events: none;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem 0.45rem 0.85rem;
  border-radius: 90px;
  background: rgba(60, 59, 57, 0.04);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(153, 167, 131, 0.4);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(153, 167, 131, 0);
  }
}

.hero-title {
  font-family: 'Poly', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-description {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.75;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

/* Hero form */
.hero-form {
  width: 100%;
  max-width: 520px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1s forwards;
}

.hero-form-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.hero-form-row input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-form-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(153, 167, 131, 0.1);
}

.hero-form-row input::placeholder {
  color: var(--charcoal);
  opacity: 0.3;
}

.hero-form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.hero-success {
  display: none;
  padding: 1.5rem;
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1.5;
}

.hero-success--light {
  color: var(--cream);
}

/* Pill buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  will-change: transform;
}

.btn-pill-dark {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-pill-dark:hover {
  background: #2a2928;
  transform: translateY(-1px);
}

.btn-pill-white {
  background: var(--white);
  color: var(--charcoal);
}

.btn-pill-white:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--green);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -50%;
  }

  100% {
    top: 120%;
  }
}

/* ==========================================
   SHARED SECTION STYLES
   ========================================== */
.section-heading {
  font-family: 'Poly', serif;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.section-body {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ==========================================
   STATS STRIP
   ========================================== */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
}

.stat-value {
  font-family: 'Poly', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ==========================================
   THE PROBLEM
   ========================================== */
.section-problem {
  padding: 6rem 2rem 7rem;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.section-problem .section-heading {
  margin-bottom: 1.5rem;
}

/* ==========================================
   BENTO GRID (Solution Section)
   ========================================== */
.section-solution {
  padding: 7rem 2rem;
  text-align: center;
}

.section-solution .section-heading {
  margin-bottom: 3.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.16, 1, .3, 1),
    box-shadow 0.3s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.bento-card-number {
  font-family: 'Poly', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--green);
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

.bento-card h3 {
  font-family: 'Poly', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.bento-card p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Connect Card (large, with pill animation) --- */
.bento-card--connect {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.bento-card-content {
  flex-shrink: 0;
}

.connect-visual {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Left column: system pills */
.connect-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connect-col--left {
  flex: 0 0 auto;
  z-index: 2;
}

.connect-col--right {
  flex: 0 0 auto;
  z-index: 2;
  text-align: right;
}

.sys-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 90px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.5s cubic-bezier(.16, 1, .3, 1);
}

.sys-pill.active {
  opacity: 1;
  transform: translateX(0);
  border-color: var(--green);
  color: var(--charcoal);
}

.sys-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.sys-pill.active .sys-pill-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(153, 167, 131, 0.2);
}

/* Center: flowing connection */
.connect-flow {
  flex: 1;
  position: relative;
  min-width: 80px;
  height: 100%;
  min-height: 240px;
  position: relative;
}

.connect-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.connection-path {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.connection-path.active {
  opacity: 0.6;
}

.connection-flow {
  fill: none;
  stroke: url(#gradient-flow);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  stroke-dasharray: 100 1000;
  /* Start with a short dash */
  stroke-dashoffset: 100;
}

.connection-flow.active {
  opacity: 1;
  animation: flowPulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes flowPulse {
  0% {
    stroke-dashoffset: 200;
    /* Start before the path */
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -1000;
    /* End way past the path */
    opacity: 0;
  }
}


/* Right column: hub + outputs */
.hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 90px;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(12px);
  transition: all 0.6s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 4px 16px rgba(60, 59, 57, 0.15);
}

.hub-pill.active {
  opacity: 1;
  transform: translateX(0);
}

.hub-pill-icon {
  width: 20px;
  height: 20px;
  filter: brightness(2.5) saturate(0);
}

.hub-outputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.out-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 90px;
  background: rgba(153, 167, 131, 0.1);
  border: 1px solid rgba(153, 167, 131, 0.15);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green-dark);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(12px);
  transition: all 0.5s cubic-bezier(.16, 1, .3, 1);
}

.out-pill.active {
  opacity: 1;
  transform: translateX(0);
}

/* --- Automate Card --- */
.bento-card--automate {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Contain aurora */
  position: relative;
}

/* Aurora Background */
.aurora-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: auroraMove 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.aurora-blob--1 {
  width: 300px;
  height: 300px;
  background: rgba(153, 167, 131, 0.15);
  /* Greenish */
  top: -50px;
  left: -50px;
  animation-delay: 0s;
}

.aurora-blob--2 {
  width: 250px;
  height: 250px;
  background: rgba(118, 135, 140, 0.15);
  /* Bluish */
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

.aurora-blob--3 {
  width: 200px;
  height: 200px;
  background: rgba(230, 231, 222, 0.4);
  /* Cream */
  top: 40%;
  left: 40%;
  animation: auroraMove 15s infinite alternate-reverse cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes auroraMove {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 20px) scale(1.1);
  }
}

/* Ensure content is above aurora */
.bento-card-content,
.automate-visual {
  position: relative;
  z-index: 1;
}

.automate-visual {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 1.5rem;
}

.auto-doc {
  width: 100%;
  max-width: 200px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.auto-doc-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 10px var(--green);
  opacity: 0;
  transform: translateY(-10px);
}

.bento-card--automate.visible .auto-doc-scan {
  animation: scanDown 2s ease-in-out forwards;
}

@keyframes scanDown {
  0% {
    top: 0;
    opacity: 1;
  }

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

.auto-doc-line {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  margin-bottom: 10px;
  opacity: 0.3;
  /* Start faint */
  transform-origin: left;
}

/* Typing Effect: Lines grow and darken as scan passes */
.bento-card--automate.visible .auto-doc-line {
  animation: lineType 0.6s ease-out forwards;
}

.auto-doc-line--1 {
  width: 85%;
  animation-delay: 0.4s !important;
}

.auto-doc-line--2 {
  width: 65%;
  animation-delay: 0.8s !important;
}

.auto-doc-line--3 {
  width: 75%;
  margin-bottom: 0;
  animation-delay: 1.2s !important;
}

@keyframes lineType {
  0% {
    opacity: 0.2;
    transform: scaleX(0.1);
    background: var(--border);
  }

  100% {
    opacity: 1;
    transform: scaleX(1);
    background: var(--charcoal);
  }
}


.auto-doc-check {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: scale(0);
}

/* Check pops after scan complete */
.bento-card--automate.visible .auto-doc-check {
  animation: checkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2s forwards;
}

.auto-doc-check svg {
  width: 14px;
  height: 14px;
}

@keyframes checkPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
  }

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

/* --- Scale Card --- */
.bento-card--scale {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
}

.scale-visual {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.scale-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--border);
  opacity: 0;
  transform-origin: bottom;
  animation: barGrow 0.5s cubic-bezier(.16, 1, .3, 1) forwards;
}

.scale-bar--1 {
  height: 32px;
  animation-delay: 0.1s;
  background: rgba(153, 167, 131, 0.15);
}

.scale-bar--2 {
  height: 48px;
  animation-delay: 0.2s;
  background: rgba(153, 167, 131, 0.25);
}

.scale-bar--3 {
  height: 64px;
  animation-delay: 0.3s;
  background: rgba(153, 167, 131, 0.35);
}

.scale-bar--4 {
  height: 80px;
  animation-delay: 0.4s;
  background: rgba(153, 167, 131, 0.5);
}

.scale-bar--5 {
  height: 100px;
  animation-delay: 0.5s;
  background: var(--green);
}

@keyframes barGrow {
  0% {
    opacity: 0;
    transform: scaleY(0);
  }

  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* --- Voice Card --- */
.bento-card--voice {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
}

.bento-card--voice .bento-card-number {
  color: var(--green);
  opacity: 0.5;
}

.bento-card--voice h3 {
  color: var(--cream);
}

.bento-card--voice p {
  color: rgba(230, 231, 222, 0.6);
}

.voice-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 60px;
}

.voice-wave span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: var(--green);
  animation: voiceBar 1.2s ease-in-out infinite;
}

.voice-wave span:nth-child(1) {
  height: 16px;
  animation-delay: 0s;
}

.voice-wave span:nth-child(2) {
  height: 28px;
  animation-delay: 0.1s;
}

.voice-wave span:nth-child(3) {
  height: 40px;
  animation-delay: 0.2s;
}

.voice-wave span:nth-child(4) {
  height: 52px;
  animation-delay: 0.3s;
}

.voice-wave span:nth-child(5) {
  height: 60px;
  animation-delay: 0.4s;
}

.voice-wave span:nth-child(6) {
  height: 52px;
  animation-delay: 0.5s;
}

.voice-wave span:nth-child(7) {
  height: 40px;
  animation-delay: 0.6s;
}

.voice-wave span:nth-child(8) {
  height: 28px;
  animation-delay: 0.7s;
}

.voice-wave span:nth-child(9) {
  height: 16px;
  animation-delay: 0.8s;
}

@keyframes voiceBar {

  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.4;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ==========================================
   COMPLIANCE
   ========================================== */
.section-compliance {
  padding: 6rem 2rem;
}

.compliance-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--charcoal);
  border-radius: 20px;
  padding: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.compliance-inner .section-heading {
  color: var(--cream);
}

.compliance-inner .section-body {
  color: rgba(230, 231, 222, 0.6);
  margin-bottom: 3rem;
}

/* .compliance-badges removed in favor of marquee structure */
.compliance-badge {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(60, 59, 57, 0.2);
  font-size: 0.85rem;
  color: var(--charcoal);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.4);
}

.section-label--light+.section-heading {
  color: var(--cream);
}

.section-compliance .section-body {
  color: rgba(230, 231, 222, 0.7);
}

/* Dark theme specific for compliance section (assumed from context) */
.section-compliance .compliance-badge {
  border-color: rgba(230, 231, 222, 0.15);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
}

.section-compliance .compliance-badge:hover {
  background: rgba(230, 231, 222, 0.1);
  border-color: rgba(230, 231, 222, 0.4);
  transform: translateY(-1px);
}

/* ==========================================
   WHO WE SERVE
   ========================================== */
.section-serve {
  padding: 7rem 2rem;
  text-align: center;
}

.section-serve .section-heading {
  margin-bottom: 1.5rem;
}

.section-serve .section-body {
  margin-bottom: 3rem;
}

.serve-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.specialty-tag {
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, color 0.2s ease;
  cursor: default;
}

.specialty-tag:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

/* ==========================================
   FINAL CTA
   ========================================== */
.section-cta {
  padding: 6rem 2rem;
}

.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #76878C 0%, #99A783 50%, #889b72 100%);
  border-radius: 20px;
  padding: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner .section-label--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-inner h2 {
  font-family: 'Poly', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
}

.cta-inner .section-body {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  position: relative;
}

.cta-form {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.cta-form .hero-form-row input {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.cta-form .hero-form-row input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-form .hero-form-row input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 4rem 3rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-icon {
  width: 36px;
  height: 36px;
}

.footer-taglines {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-taglines span {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.4;
}

.footer-tagline-fr {
  font-style: italic;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.footer-contact a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-contact a:hover {
  opacity: 0.6;
}

.footer-contact span {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}

.footer-bottom span {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-secondary);
}

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

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1),
    transform 0.9s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger bento cards */
.reveal.visible .bento-card {
  opacity: 0;
  transform: translateY(24px);
  animation: staggerIn 0.7s cubic-bezier(.16, 1, .3, 1) forwards;
}

.reveal.visible .bento-card:nth-child(1) {
  animation-delay: 0.1s;
}

.reveal.visible .bento-card:nth-child(2) {
  animation-delay: 0.2s;
}

.reveal.visible .bento-card:nth-child(3) {
  animation-delay: 0.3s;
}

.reveal.visible .bento-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Stagger compliance badges */
.reveal.visible .compliance-badge {
  opacity: 0;
  transform: translateY(12px);
  animation: staggerIn 0.5s cubic-bezier(.16, 1, .3, 1) forwards;
}

.reveal.visible .compliance-badge:nth-child(1) {
  animation-delay: 0.1s;
}

.reveal.visible .compliance-badge:nth-child(2) {
  animation-delay: 0.15s;
}

.reveal.visible .compliance-badge:nth-child(3) {
  animation-delay: 0.2s;
}

.reveal.visible .compliance-badge:nth-child(4) {
  animation-delay: 0.25s;
}

.reveal.visible .compliance-badge:nth-child(5) {
  animation-delay: 0.3s;
}

.reveal.visible .compliance-badge:nth-child(6) {
  animation-delay: 0.35s;
}

.reveal.visible .compliance-badge:nth-child(7) {
  animation-delay: 0.4s;
}

.reveal.visible .compliance-badge:nth-child(8) {
  animation-delay: 0.45s;
}

/* Stagger specialty tags */
.reveal.visible .specialty-tag {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  animation: staggerTagIn 0.5s cubic-bezier(.16, 1, .3, 1) forwards;
}

.reveal.visible .specialty-tag:nth-child(1) {
  animation-delay: 0.05s;
}

.reveal.visible .specialty-tag:nth-child(2) {
  animation-delay: 0.1s;
}

.reveal.visible .specialty-tag:nth-child(3) {
  animation-delay: 0.15s;
}

.reveal.visible .specialty-tag:nth-child(4) {
  animation-delay: 0.2s;
}

.reveal.visible .specialty-tag:nth-child(5) {
  animation-delay: 0.25s;
}

.reveal.visible .specialty-tag:nth-child(6) {
  animation-delay: 0.3s;
}

.reveal.visible .specialty-tag:nth-child(7) {
  animation-delay: 0.35s;
}

.reveal.visible .specialty-tag:nth-child(8) {
  animation-delay: 0.4s;
}

.reveal.visible .specialty-tag:nth-child(9) {
  animation-delay: 0.45s;
}

.reveal.visible .specialty-tag:nth-child(10) {
  animation-delay: 0.5s;
}

.reveal.visible .specialty-tag:nth-child(11) {
  animation-delay: 0.55s;
}

.reveal.visible .specialty-tag:nth-child(12) {
  animation-delay: 0.6s;
}

/* Stagger stats */
.reveal.visible .stat {
  opacity: 0;
  transform: translateY(16px);
  animation: staggerIn 0.6s cubic-bezier(.16, 1, .3, 1) forwards;
}

.reveal.visible .stat:nth-child(1) {
  animation-delay: 0.1s;
}

.reveal.visible .stat:nth-child(3) {
  animation-delay: 0.25s;
}

.reveal.visible .stat:nth-child(5) {
  animation-delay: 0.4s;
}

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

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

@keyframes staggerTagIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

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

/* ==========================================
   KEYFRAMES
   ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

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

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
    gap: 16px;
  }

  .bento-card--connect {
    grid-row: auto;
    grid-column: auto;
    min-height: auto;
  }

  .bento-card--automate,
  .bento-card--scale,
  .bento-card--voice {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
  }

  .navbar-inner {
    padding: 0.5rem 0.75rem 0.5rem 1rem;
  }

  .nav-links {
    display: none;
  }


  .hero {
    padding: 6rem 1.5rem 4rem;
    min-height: 85vh;
  }

  .hero-form-row {
    flex-direction: column;
  }

  .hero-form-row input {
    width: 100%;
  }

  .btn-pill {
    width: 100%;
    justify-content: center;
  }

  .stats-strip {
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem 2rem;
  }

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

  .section-problem {
    padding: 4rem 1.5rem 5rem;
  }

  .section-solution {
    padding: 5rem 1rem;
  }

  .section-compliance {
    padding: 4rem 1rem;
  }

  .compliance-inner {
    padding: 3rem 1.5rem;
    border-radius: 16px;
  }

  .section-serve {
    padding: 5rem 1rem;
  }

  .section-cta {
    padding: 4rem 1rem;
  }

  .cta-inner {
    padding: 3rem 1.5rem;
    border-radius: 16px;
  }

  .footer {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-contact {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .navbar-wordmark {
    display: none;
  }

  .btn-nav-cta {
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
  }

  .navbar-icon {
    height: 28px;
    width: 28px;
  }

  .serve-specialties {
    gap: 0.5rem;
  }

  .specialty-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .hero-badge {
    font-size: 0.72rem;
  }

  .bento-card {
    padding: 1.5rem;
  }

  .connect-visual {
    flex-direction: column;
    gap: 1.5rem;
  }

  .connect-col--left {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .connect-col--right {
    text-align: left;
  }

  .connect-flow {
    min-height: 40px;
    min-width: 100%;
  }

  .flow-line {
    top: 50% !important;
  }

  .flow-dot {
    top: calc(50% - 2px) !important;
  }

  .hub-outputs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
}