@import url('https://fonts.googleapis.com/css2?family=Enriqueta:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Clinical & Premium */
  --bg-color: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;

  --accent-teal: #02cf9c;
  --accent-dark: #0f766e;
  --accent-glow: rgba(2, 207, 156, 0.2);

  --grid-line: rgba(0, 0, 0, 0.04);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-border: rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1240px;
  --header-height: 80px;
}

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

html { scroll-behavior: smooth; }
.logo {
    font-family: 'Enriqueta', serif;
}
body {
  background-color: var(--bg-color);
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* --- Technical Background --- */
.grid-background {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: 
      linear-gradient(var(--grid-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  transform: perspective(500px) rotateX(0deg); /* Subtle depth perspective */
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(255,255,255,0.8) 100%);
  pointer-events: none;
  z-index: -1;
}

/* --- Navigation --- */
.glass-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.nav-content {
  width: 100%;
  max-width: var(--container-width);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.brand img { height: 32px; width: auto; }

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

.nav-links a:not(.nav-cta) {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 0.6rem 1.25rem;
  background: var(--text-primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-cta:hover {
  background: var(--accent-teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 207, 156, 0.3);
  color: white !important;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  padding: calc(var(--header-height) + 4rem) 2rem 4rem;
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(2, 207, 156, 0.08);
  border: 1px solid rgba(2, 207, 156, 0.2);
  border-radius: 100px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.dot {
  width: 6px; height: 6px;
  background: var(--accent-teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-teal);
  animation: pulse 2s infinite;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.text-gradient {
  color: var(--accent-teal);
  background: linear-gradient(120deg, var(--text-primary) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 50ch;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
  background: var(--text-primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.primary-btn:hover {
  background: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(2, 207, 156, 0.4);
  color: white;
}

.primary-btn svg { transition: transform 0.3s; }
.primary-btn:hover svg { transform: translateX(4px); }

.trusted-by {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatars-stack {
  display: flex;
  margin-left: 10px;
}

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  background-size: cover;
  margin-left: -12px;
}

.trust-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Hero Visual --- */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.visual-card-stack {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0,0,0,0.05);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.visual-card-stack:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.hero-img {
  width: 100%;
  display: block;
  filter: saturate(0) contrast(1.1);
  transition: filter 0.5s;
}

.visual-card-stack:hover .hero-img {
  filter: saturate(1);
}

/* --- Partners Section --- */
.partners-section {
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.label-text {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.logos-track {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: 0.5;
}
.logos-track img:hover {
  transform: scale(1.5);
  filter: grayscale(0.3);
}

.logos-track img { height: 40px; width: auto; }
.logos-track img {
  height: 40px;
  transition: transform 0.3s ease;
  width: auto;
}

.logos-track img:nth-child(2) {
  height: 30px;
}

.logos-track img:nth-child(3) {
  height: 30px;
}
.logos-track img:nth-child(4) {
  height: 70px;
}
.logos-track img:nth-child(5) {
  height: 60px;
}

/* --- Features (Bento Grid) --- */
.features-section {
  max-width: var(--container-width);
  margin: 8rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.highlight {
  color: var(--accent-teal);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0px; left: 0; width: 100%; height: 8px;
  background: var(--accent-glow);
  z-index: -1;
  border-radius: 4px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(300px, auto));
  gap: 20px;
}

.bento-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  opacity: 0; /* For scroll animation */
  transform: translateY(30px);
}

.bento-card:hover {
  border-color: var(--accent-teal);
  box-shadow: 0 20px 40px -10px rgba(2, 207, 156, 0.1);
  background: rgba(255,255,255,0.9);
}

.bento-card.large { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }

.icon-box {
  width: 48px; height: 48px;
  background: var(--bg-color);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-teal);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.check-list li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.check-list li::before {
  content: '✓';
  color: var(--accent-teal);
}

/* AI Visual Representation */
.ai-visual {
  height: 150px;
  background: linear-gradient(180deg, rgba(2, 207, 156, 0.05) 0%, transparent 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.scanning-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-teal);
  box-shadow: 0 0 15px var(--accent-teal);
  animation: scan 3s infinite ease-in-out;
}

@keyframes scan {
  0%, 100% { top: 0%; opacity: 0; }
  10%, 90% { opacity: 1; }
  50% { top: 100%; }
}

/* --- Stats Section --- */
.stats-section {
  background: var(--text-primary);
  color: white;
  padding: 5rem 0;
  margin-top: 4rem;
}

.stats-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 2rem;
}

.stat-item {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.stat-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--accent-teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
}

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

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.95);
}

.final-cta h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

.primary-btn.large {
  font-size: 1.25rem;
  padding: 1.25rem 3rem;
  border-radius: 100px;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 3rem 0;
  background: white;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

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

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

.footer-right a:hover { color: var(--accent-teal); }

/* --- Animations Classes --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

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

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(2, 207, 156, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(2, 207, 156, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 207, 156, 0); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .hero-section {
      grid-template-columns: 1fr;
      text-align: center;
      padding-top: 120px;
  }

  .hero-sub { margin: 0 auto 2.5rem; }

  .hero-actions {
      justify-content: center;
      flex-direction: column;
  }

  .bento-grid {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
  }

  .bento-card.large, .bento-card.tall {
      grid-column: span 1;
      grid-row: span 1;
  }

  .stats-container {
      flex-direction: column;
      gap: 3rem;
  }

  .divider {
      width: 100px;
      height: 1px;
  }
}