/* ================================================================
   Eazyleads — Dark Intelligence Design System
   ================================================================ */

:root {
  --black: #040608;
  --dark: #080d14;
  --dark-2: #0d1520;
  --dark-3: #111d2e;
  --border: rgba(0, 229, 255, 0.12);
  --border-strong: rgba(0, 229, 255, 0.25);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.6);
  --cyan-glow: rgba(0, 229, 255, 0.15);
  --white: #f0f4f8;
  --grey: #8a9bb0;
  --grey-2: #4a5a6a;
  --accent-warm: #ff6b35;
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ================================================================
   LAYOUT
   ================================================================ */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
}

.section-dark {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.section-header h2 em {
  font-style: normal;
  color: var(--cyan);
}

.section-header p {
  color: var(--grey);
  font-size: 1.05rem;
  line-height: 1.7;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-block;
  border: 1px solid var(--border-strong);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: var(--cyan-glow);
}

/* ================================================================
   NAV
   ================================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(4, 6, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 58px;
  flex: 0 0 auto;
  overflow: hidden;
}

.nav-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.footer-logo {
  width: 250px;
  height: 64px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--grey);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--white); background: var(--cyan-glow); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  background: var(--cyan);
  color: var(--black);
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  background: var(--cyan-glow);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease both;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  animation: fadeUp 0.9s 0.1s ease both;
}

.title-line {
  display: block;
}

.accent-line {
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
  text-shadow: 0 0 60px rgba(0,229,255,0.3);
}

.hero-sub {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--grey);
  margin: 2rem 0 2.5rem;
  line-height: 1.75;
  animation: fadeUp 1s 0.2s ease both;
}

.hero-sub strong { color: var(--white); }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 1s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 4rem;
  flex-wrap: wrap;
  animation: fadeUp 1s 0.4s ease both;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 2rem 1.25rem 0;
  margin-right: 2rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.stat-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin-right: 2rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--grey-2);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--grey-2), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
}

.btn-primary {
  background: var(--cyan);
  color: var(--black);
}

.btn-primary:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,229,255,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--cyan-glow);
  border-color: var(--cyan);
}

/* ================================================================
   TICKER
   ================================================================ */

.ticker-wrap {
  overflow: hidden;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.ticker {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  width: max-content;
}

.ticker span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--grey);
}

.ticker .sep { color: var(--cyan); }

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

/* ================================================================
   DATA CARDS
   ================================================================ */

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-card {
  background: var(--dark);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}

.data-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan-glow), transparent);
  opacity: 0;
  transition: var(--transition);
}

.data-card:hover::after { opacity: 1; }
.data-card:hover { background: var(--dark-3); }

.data-card-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.data-card h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.data-card p {
  font-size: 0.92rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.data-tags li {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--cyan-glow);
}

/* ================================================================
   PIPELINE
   ================================================================ */

.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.pipeline-step {
  flex: 1;
  min-width: 180px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--border-strong);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-content h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
}

.pipeline-arrow {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cyan-dim);
  align-self: center;
  padding-top: 0;
}

.sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}

.source-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--grey);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  background: var(--dark-3);
  transition: var(--transition);
}

.source-badge:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ================================================================
   SERVICES
   ================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

.service-num {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--dark-3);
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  line-height: 1;
  pointer-events: none;
}

.service-card h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  transition: var(--transition);
}

.service-link:hover { letter-spacing: 0.12em; }

/* ================================================================
   PRICING
   ================================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: var(--transition);
}

.pricing-card--featured {
  border-color: var(--cyan);
  background: linear-gradient(160deg, var(--dark-3), rgba(0,229,255,0.04));
  box-shadow: 0 0 40px rgba(0,229,255,0.1), inset 0 1px 0 rgba(0,229,255,0.2);
  transform: scale(1.02);
}

.pricing-card--enterprise {
  border-style: dashed;
  border-color: var(--grey-2);
}

.pricing-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.price-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1;
}

.price-unit {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--grey);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--grey);
}

.pricing-features li:has(✓) { color: var(--white); }

.pricing-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--grey-2);
  margin-top: 2rem;
  letter-spacing: 0.06em;
}

/* ================================================================
   FORMATION
   ================================================================ */

.formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.formation-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.formation-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.formation-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.formation-card h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.formation-card p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.formation-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.formation-meta span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--grey-2);
}

.formation-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.formation-cta p {
  color: var(--grey);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ================================================================
   FAQ
   ================================================================ */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-item {
  background: var(--dark-3);
}

.faq-item summary {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--white);
  padding: 1.4rem 1.75rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--cyan);
  transition: var(--transition);
}

.faq-item[open] summary::after { content: '−'; }

.faq-item summary:hover { background: rgba(0,229,255,0.04); }

.faq-item p {
  padding: 0 1.75rem 1.4rem;
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
}

/* ================================================================
   CONTACT
   ================================================================ */

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: 0.02em;
  margin: 0.75rem 0 1rem;
  line-height: 1.1;
}

.contact-left p {
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--grey);
}

.contact-form-wrap {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-field textarea {
  height: 100px;
  resize: vertical;
}

.form-field select option {
  background: var(--dark-3);
}

/* ================================================================
   PAGES LEGALES
   ================================================================ */

.section-space {
  min-height: 100vh;
  padding: 4rem 0 5rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 229, 255, 0.08), transparent 28rem),
    var(--black);
}

.legal-logo {
  display: inline-flex;
  width: 280px;
  height: 78px;
  overflow: hidden;
}

.legal-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: var(--transition);
}

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

.legal-back-link {
  margin-left: 1rem;
  vertical-align: top;
  min-height: 62px;
}

.section-heading {
  max-width: 780px;
}

.section-heading h1 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}

.section-heading p {
  color: var(--grey);
  font-size: 1.05rem;
  line-height: 1.75;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.form-card {
  background: rgba(13, 21, 32, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.form-card h2 {
  font-family: var(--font-mono);
  color: var(--white);
  line-height: 1.3;
}

.form-card p {
  color: var(--grey);
  line-height: 1.75;
}

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

.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--grey);
  margin-top: 0.75rem;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--grey);
  transition: var(--transition);
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--grey-2);
}

/* ================================================================
   AGENT IA MODAL
   ================================================================ */

.agent-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 6, 8, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.5rem;
}

.agent-overlay.is-open {
  display: flex;
}

.agent-modal {
  width: 420px;
  max-width: 100%;
  background: var(--dark-2);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  height: 600px;
  max-height: calc(100vh - 3rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,229,255,0.05);
  animation: agentSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes agentSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.agent-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--cyan), #0080ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--black);
  position: relative;
}

.agent-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  background: #00e676;
  border-radius: 50%;
  border: 2px solid var(--dark-2);
}

.agent-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.agent-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.agent-close {
  background: none;
  border: none;
  color: var(--grey);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition);
  line-height: 1;
}

.agent-close:hover { color: var(--white); }

.agent-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.agent-messages::-webkit-scrollbar { width: 4px; }
.agent-messages::-webkit-scrollbar-track { background: transparent; }
.agent-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.msg {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  animation: msgIn 0.3s ease;
}

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

.msg-bubble {
  max-width: 85%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.msg.agent .msg-bubble {
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--white);
  border-bottom-left-radius: 4px;
}

.msg.user {
  flex-direction: row-reverse;
}

.msg.user .msg-bubble {
  background: var(--cyan);
  color: var(--black);
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--grey);
}

.msg.agent .msg-avatar { background: linear-gradient(135deg, var(--cyan), #0080ff); color: var(--black); }

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.4rem 0.3rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--grey);
  border-radius: 50%;
  animation: typing 1.2s ease infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.85); }
  30% { opacity: 1; transform: scale(1); }
}

.agent-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.25rem 0.75rem;
}

.quick-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  background: var(--cyan-glow);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.quick-btn:hover { background: rgba(0,229,255,0.2); }

.agent-input-area {
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.agent-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1.25rem;
}

#agentInput {
  flex: 1;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

#agentInput:focus {
  border-color: var(--cyan);
}

#agentSend {
  width: 38px;
  height: 38px;
  background: var(--cyan);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--black);
  transition: var(--transition);
  flex-shrink: 0;
}

#agentSend:hover {
  background: white;
  transform: scale(1.05);
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    position: absolute;
    top: 64px;
    left: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-left: 0;
    padding: 0.75rem;
    background: rgba(8, 13, 20, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  }
  .nav-cta { display: none; }
  .burger { display: flex; }

  .contact-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }

  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); align-self: center; }

  .hero-stats { gap: 0; }
  .stat { padding: 1rem 1.5rem 1rem 0; margin-right: 1.5rem; }

  .scroll-hint { display: none; }

  .pricing-card--featured { transform: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4.5rem 0; }
  .nav-logo { width: 180px; height: 50px; }
  .hero-title { font-size: clamp(4rem, 20vw, 6rem); }
  .stat { min-width: 120px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .agent-modal { width: 100%; border-radius: 18px 18px 0 0; }
  .agent-overlay { padding: 0; align-items: flex-end; }
  .legal-logo { width: 220px; height: 62px; }
  .legal-back-link { display: flex; margin-left: 0; min-height: auto; margin-top: 1rem; }

  .nav-cta { display: none; }
}
