/* ============================================================
   NEXUSCLINIC WEB v2 — Agency-Grade Design System
   Swiss Editorial × Medical Minimalism
   Fonts: Playfair Display + Space Grotesk
   Palette: Cream · Deep Ink · Olive Sage · Warm Gold
   Animation: GSAP canonical patterns (alirezarezvani/claude-skills)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Space+Grotesk:wght@300;400;500;600&display=swap');

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

/* ── Design Tokens ──────────────────── */
:root {
  --color-ink:       #0d0f14;
  --color-ink-soft:  #12151d;
  --color-navy:      #1a1e2b;
  --color-navy-dim:  #222738;
  --color-olive:     #7c9a6e;
  --color-olive-dim: rgba(124,154,110,0.12);
  --color-olive-glow:rgba(124,154,110,0.06);
  --color-olive-dark:#5a7550;
  --color-gold:      #c8a96e;
  --color-gold-dim:  rgba(200,169,110,0.14);
  --color-paper:     #faf7f2;
  --color-paper2:    #f0ebe3;
  --color-cream:     #f5f1ea;

  --bg:         var(--color-paper);
  --bg-alt:     var(--color-ink);
  --text:       var(--color-ink);
  --text-dim:   rgba(13,15,20,0.55);
  --text-muted: rgba(13,15,20,0.32);
  --line:       rgba(13,15,20,0.07);
  --line-str:   rgba(13,15,20,0.12);

  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans:  'Space Grotesk', -apple-system, sans-serif;

  --e-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --e-inout:  cubic-bezier(0.65, 0, 0.35, 1);
  --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
}

::selection { background: var(--color-olive); color: var(--color-paper); }
html { scroll-behavior: auto; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* ── Reduced Motion ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; background: var(--color-paper);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--e-out), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.preloader-mark { width: 48px; height: 48px; color: var(--color-paper); animation: pl-breathe 1.8s ease-in-out infinite; }
@keyframes pl-breathe {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50%     { transform: scale(1.06); opacity: 1; }
}
.preloader-ring { animation: pl-ring 1.8s var(--e-inout) infinite; transform-origin: center; }
@keyframes pl-ring {
  0%   { stroke-dashoffset: 138; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -138; }
}
.preloader-bar { width: 160px; height: 1px; background: rgba(250,247,242,0.1); overflow: hidden; }
.preloader-fill { display: block; width: 100%; height: 100%; background: var(--color-olive); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--e-out); }

/* ============================================================
   CURSOR
   ============================================================ */
.cursor-ring {
  width: 28px; height: 28px;
  border: 1.5px solid var(--color-olive);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--e-out), height 0.2s var(--e-out),
              border-color 0.2s, background 0.2s, opacity 0.15s;
}
.cursor-ring.hover { width: 56px; height: 56px; background: rgba(124,154,110,0.15); mix-blend-mode: normal; }
.cursor-ring.hidden { opacity: 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  padding: 0 4rem;
  transition: background 0.5s var(--e-out), border-color 0.5s, box-shadow 0.5s;
}
.nav.scrolled {
  background: rgba(250,247,242,0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(13,15,20,0.03);
}
.nav-inner { max-width: 1440px; margin: 0 auto; height: 76px; display: flex; align-items: center; gap: 3rem; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-ink); font-weight: 500; font-size: 0.95rem; letter-spacing: -0.01em; }
.nav-logo { width: 28px; height: 28px; color: var(--color-olive); }
.nav-wordmark { transition: color 0.25s; }
.nav-brand:hover .nav-wordmark { color: var(--color-olive); }
.nav-menu { display: flex; gap: 0.6rem; margin-left: auto; }
.nav-link { text-decoration: none; color: var(--text-dim); font-size: 0.82rem; padding: 0.5rem 0.75rem; border-radius: var(--r-sm); position: relative; transition: color 0.25s, background 0.25s; white-space: nowrap; }
.nav-link::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%) scaleX(0); width: calc(100% - 1.5rem); height: 1.5px; background: var(--color-olive); border-radius: 1px; transition: transform 0.35s var(--e-out); }
.nav-link:hover { color: var(--color-ink); background: rgba(13,15,20,0.03); }
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 0.82rem; font-weight: 500; color: var(--color-paper); background: var(--color-olive); padding: 0.55rem 1.25rem; border-radius: var(--r-sm); transition: transform 0.25s var(--e-out), box-shadow 0.25s, background 0.2s; }
.nav-cta:hover { background: var(--color-olive-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,154,110,0.35); }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 210; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--color-ink); border-radius: 2px; transition: all 0.3s var(--e-out); }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav panel */
.nav-mobile { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--color-paper); z-index: 205; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 2rem; }
.nav-mobile.active { display: flex; }
.nav-mobile .nav-link { font-size: 1.1rem; padding: 0.75rem 1.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; background: var(--color-paper);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* Depth layers — Mouse Parallax (Pattern 2) */
.hero-shapes-back { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12; }
.shape-a { width: 500px; height: 500px; background: var(--color-olive); top: 10%; left: -10%; animation: floatA 14s ease-in-out infinite; }
.shape-b { width: 350px; height: 350px; background: var(--color-gold); bottom: 15%; right: -5%; animation: floatB 18s ease-in-out infinite; }
.shape-c { width: 250px; height: 250px; background: var(--color-olive); top: 45%; left: 55%; animation: floatC 12s ease-in-out infinite; }
@keyframes floatA {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(30px,-25px) rotate(5deg); }
}
@keyframes floatB {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(-20px,20px) rotate(-4deg); }
}
@keyframes floatC {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(15px,-15px) rotate(3deg); }
}

.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(120px); }
.hero-orb--olive { width: 700px; height: 700px; background: radial-gradient(circle, rgba(124,154,110,0.1) 0%, transparent 70%); top: -250px; right: -150px; }
.hero-orb--gold  { width: 500px; height: 500px; background: radial-gradient(circle, rgba(200,169,110,0.06) 0%, transparent 70%); bottom: -150px; left: 10%; }
.hero-geo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; color: var(--color-ink); }

.hero-content { position: relative; z-index: 2; max-width: 880px; width: 100%; padding: 8rem 4rem 6rem; text-align: center; }

/* Eyebrow */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2rem; }
.hero-eyebrow-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--color-olive); animation: edot 2.4s ease-in-out infinite; }
@keyframes edot { 0%,100% { box-shadow: 0 0 0 3px rgba(124,154,110,0.2); } 50% { box-shadow: 0 0 0 8px rgba(124,154,110,0.06); } }

/* Headline */
.hero-headline { font-family: var(--serif); font-size: clamp(3.5rem, 6vw, 7rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.025em; color: var(--color-ink); margin-bottom: 1.75rem; }
.hw { display: inline-block; overflow: hidden; vertical-align: bottom; margin-right: 0.15em; }
.hwi { display: inline-block; transform: translateY(105%); }
.hw--accent .hwi { font-style: italic; color: var(--color-olive); }

/* Sub */
.hero-sub { font-size: 1.1rem; line-height: 1.7; color: var(--text-dim); margin: 0 auto 2.5rem; max-width: 58ch; }
.hero-sub strong { color: var(--color-ink); font-weight: 500; }

/* Actions */
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 3.5rem; }
.btn-primary { position: relative; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 500; color: var(--color-paper); padding: 0.85rem 1.75rem; border-radius: var(--r-sm); overflow: hidden; isolation: isolate; transition: transform 0.3s var(--e-out), box-shadow 0.3s; }
.btn-primary--lg { padding: 1rem 2.25rem; font-size: 0.95rem; }
.btn-primary-label { position: relative; z-index: 1; }
.btn-primary-bg { position: absolute; inset: 0; z-index: 0; background: var(--color-olive); border-radius: var(--r-sm); transition: transform 0.4s var(--e-out), background 0.3s; }
.btn-primary:hover .btn-primary-bg { background: var(--color-olive-dark); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(124,154,110,0.4); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary svg { position: relative; z-index: 1; transition: transform 0.3s var(--e-out); }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 0.85rem; color: var(--text-dim); transition: color 0.25s, gap 0.25s; }
.btn-ghost:hover { color: var(--color-ink); gap: 10px; }

/* Metrics */
.hero-metrics { display: flex; justify-content: center; align-items: center; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 560px; margin: 0 auto; }
.hmet { display: flex; flex-direction: column; gap: 3px; }
.hmet-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; color: var(--color-olive); line-height: 1; }
.hmet-num--sm { font-size: 1.15rem; letter-spacing: -0.01em; }
.hmet-pct, .hmet-star { font-size: 1rem; font-weight: 300; opacity: 0.7; }
.hmet-label { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.04em; }
.hmet-div { width: 1px; height: 40px; background: var(--line); }

/* Scroll Indicator (Pattern 5 — CSS bounce) */
.scroll-indicator { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 3; }
.scroll-chevron {
  display: block; width: 18px; height: 18px;
  border-right: 1.5px solid var(--color-olive); border-bottom: 1.5px solid var(--color-olive);
  transform: rotate(45deg); opacity: 0.5;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: rotate(45deg) translateY(0); }
  50%     { transform: rotate(45deg) translateY(8px); }
}

/* Initial states for GSAP (Pattern 1 — FOUC prevention) */
[data-hero-el] { opacity: 0; transform: translateY(30px); }

/* ============================================================
   MARQUEE — Seamless infinite
   ============================================================ */
.marquee { background: var(--color-ink); padding: 1.4rem 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.marquee-track {
  display: flex; gap: 2.5rem; white-space: nowrap;
  animation: marquee 24s linear infinite;
  will-change: transform;
  width: max-content;
}
.marquee-track span { font-size: 0.82rem; letter-spacing: 0.06em; color: rgba(250,247,242,0.45); }
.marquee-sep { color: var(--color-olive); opacity: 0.35; display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* ============================================================
   THE PROBLEM
   ============================================================ */
.problem { background: var(--color-paper); padding: 8rem 4rem; }
.problem-inner { max-width: 1100px; margin: 0 auto; }
.problem-rule { width: 2px; height: 64px; background: linear-gradient(to bottom, var(--color-olive), transparent); margin-bottom: 2.5rem; opacity: 0.5; }
.problem-title { font-family: var(--serif); font-size: clamp(2.25rem, 4vw, 3.75rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; color: var(--color-ink); margin-bottom: 3.5rem; }
.problem-title em { font-style: italic; color: var(--color-olive); }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.problem-card { background: var(--color-cream); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem; transition: border-color 0.4s, transform 0.4s var(--e-out), box-shadow 0.4s; }
.problem-card:hover { border-color: var(--line-str); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.05); }
.problem-icon { width: 36px; height: 36px; color: var(--color-olive); opacity: 0.6; margin-bottom: 0.25rem; }
.problem-icon svg { width: 100%; height: 100%; }
.problem-card strong { font-size: 0.95rem; font-weight: 500; line-height: 1.4; color: var(--color-ink); }
.problem-card p { font-size: 0.85rem; line-height: 1.55; color: var(--text-dim); }

/* ============================================================
   SOLUTION — Multi-Vertical Showcase
   ============================================================ */
.section-eyebrow { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-olive); opacity: 0.7; display: block; margin-bottom: 1rem; }
.section-title { font-family: var(--serif); font-size: clamp(2.25rem, 4vw, 3.75rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.25rem; color: inherit; }
.section-title em { font-style: italic; color: var(--color-olive); }
.section-sub { font-size: 0.95rem; line-height: 1.65; color: rgba(250,247,242,0.4); max-width: 58ch; }
.section-sub strong { color: inherit; opacity: 0.85; }

/* ═══════════ ESPECIALIDADES — Full Showcase ═══════════ */
.especialidades { background: var(--color-ink); padding: 8rem 4rem; color: var(--color-paper); }
.esp-inner { max-width: 1280px; margin: 0 auto; }
.esp-header { margin-bottom: 5rem; max-width: 720px; }
.esp-header .section-sub { color: rgba(250,247,242,0.4); }
.esp-header .section-sub strong { color: var(--color-paper); }

.esp-tabs { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.esp-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 0.9rem 1.5rem; border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent; color: rgba(250,247,242,0.4);
  cursor: pointer; transition: all 0.35s var(--e-out);
  font-family: var(--sans); font-size: 0.88rem; font-weight: 500;
}
.esp-tab:hover { color: var(--color-paper); border-color: rgba(124,154,110,0.3); background: rgba(124,154,110,0.05); }
.esp-tab.active { color: var(--color-paper); border-color: var(--color-olive); background: rgba(124,154,110,0.12); box-shadow: 0 0 24px rgba(124,154,110,0.1); }
.esp-tab-icon { width: 24px; height: 24px; opacity: 0.6; transition: opacity 0.35s; display: flex; align-items: center; }
.esp-tab.active .esp-tab-icon { opacity: 1; }
.esp-tab-icon svg { width: 100%; height: 100%; }
.esp-tab-label { white-space: nowrap; }

.esp-panels { position: relative; min-height: 400px; }
.esp-panel { display: none; opacity: 0; transform: translateY(16px); }
.esp-panel.active { display: block; opacity: 1; transform: translateY(0); }

.esp-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.esp-feature-card {
  background: var(--color-navy); border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--r-md); padding: 1.5rem;
  transition: border-color 0.4s, transform 0.4s var(--e-out), box-shadow 0.4s, background 0.4s;
}
.esp-feature-card:hover { border-color: rgba(124,154,110,0.2); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); background: var(--color-navy-dim); }
.esp-feature-card--hero { grid-column: 1 / 3; background: rgba(124,154,110,0.05); border-color: rgba(124,154,110,0.12); }
.esp-feature-card h4 { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--color-paper); }
.esp-feature-card p { font-size: 0.8rem; line-height: 1.55; color: rgba(250,247,242,0.45); }
.esp-badge { display: inline-block; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-olive); border: 1px solid rgba(124,154,110,0.25); padding: 0.15rem 0.55rem; border-radius: 100px; margin-bottom: 0.75rem; }

/* All features button */
.esp-all-features {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 1.25rem; margin-top: 0.5rem;
  background: rgba(124,154,110,0.06); border: 1px dashed rgba(124,154,110,0.25);
  border-radius: var(--r-md); color: var(--color-olive);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.35s var(--e-out);
}
.esp-all-features:hover { background: rgba(124,154,110,0.12); border-color: var(--color-olive); gap: 14px; }
.esp-all-features svg { transition: transform 0.35s var(--e-out); }
.esp-all-features:hover svg { transform: translateX(3px); }

/* ═══════════ FULLSCREEN FEATURE MODAL ═══════════ */
.feature-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: stretch; justify-content: flex-end;
  pointer-events: none; visibility: hidden;
}
.feature-modal.active { pointer-events: auto; visibility: visible; }

.feature-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(13,15,20,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.4s var(--e-out);
}
.feature-modal.active .feature-modal-overlay { opacity: 1; }

.feature-modal-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 900px;
  background: var(--color-paper);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(40px); opacity: 0;
  transition: transform 0.5s var(--e-out), opacity 0.4s var(--e-out);
  overflow: hidden;
}
.feature-modal.active .feature-modal-panel { transform: translateX(0); opacity: 1; }

.feature-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 2.5rem; border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.feature-modal-eyebrow {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-olive); 
  display: block; margin-bottom: 0.35rem;
}
.feature-modal-title {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 400;
  color: var(--color-ink); letter-spacing: -0.01em;
}
.feature-modal-close {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(13,15,20,0.03); border: 1px solid var(--line);
  border-radius: 50%; color: var(--text-dim);
  cursor: pointer; transition: all 0.25s; flex-shrink: 0;
}
.feature-modal-close:hover { background: rgba(13,15,20,0.06); color: var(--color-ink); }

.feature-modal-body { display: flex; flex: 1; overflow: hidden; }

/* Sidebar */
.feature-modal-sidebar {
  width: 260px; flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.fm-cat {
  display: flex; align-items: center; gap: 10px;
  padding: 0.65rem 0.85rem; border-radius: var(--r-sm);
  background: transparent; border: none;
  color: var(--text-dim); font-family: var(--sans);
  font-size: 0.78rem; cursor: pointer;
  transition: all 0.25s; text-align: left; width: 100%;
}
.fm-cat:hover { color: var(--color-ink); background: rgba(13,15,20,0.04); }
.fm-cat.active { color: var(--color-olive); background: var(--color-olive-dim); }
.fm-cat-icon { width: 16px; height: 16px; opacity: 0.5; flex-shrink: 0; }
.fm-cat.active .fm-cat-icon { opacity: 1; }
.fm-cat-icon svg { width: 100%; height: 100%; }

/* Content */
.feature-modal-content {
  flex: 1; padding: 2rem 2.5rem; overflow-y: auto;
}
.fm-section { display: none; }
.fm-section.active { display: block; }
.fm-section h4 {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500;
  color: var(--color-ink); margin-bottom: 0.5rem;
}
.fm-section-sub {
  font-size: 0.75rem; color: var(--text-muted);
  margin-bottom: 1.5rem; display: block;
}
.fm-feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.fm-feature-list li {
  font-size: 0.82rem; color: var(--text-dim);
  padding: 0.55rem 0.85rem; border-radius: var(--r-sm);
  background: var(--color-cream); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.fm-feature-list li::before { content: '✓'; color: var(--color-olive); font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.fm-feature-list li strong { color: rgba(250,247,242,0.8); font-weight: 500; }

/* ═══════════ IA SECTION ═══════════ */
.ia-section { background: var(--color-paper); padding: 8rem 4rem; border-top: 1px solid var(--line); }
.ia-inner { max-width: 1100px; margin: 0 auto; }
.ia-header { margin-bottom: 4rem; max-width: 680px; }
.ia-header .section-sub { color: var(--text-dim); }
.ia-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.ia-card {
  background: var(--color-cream); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 2.25rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.4s, transform 0.4s var(--e-out), box-shadow 0.4s;
}
.ia-card:hover { border-color: rgba(124,154,110,0.25); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.06); }
.ia-card-icon { width: 40px; height: 40px; color: var(--color-olive); opacity: 0.7; margin-bottom: 0.25rem; }
.ia-card-icon svg { width: 100%; height: 100%; }
.ia-card h4 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--color-ink); line-height: 1.2; }
.ia-card p { font-size: 0.88rem; line-height: 1.6; color: var(--text-dim); }
.ia-card p strong { color: var(--color-ink); font-weight: 500; }
.ia-tag { display: inline-block; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-olive); border: 1px solid rgba(124,154,110,0.2); padding: 0.2rem 0.6rem; border-radius: 100px; width: fit-content; margin-top: auto; }

/* ============================================================
   FEATURES — Deep Clinical
   ============================================================ */
.features { background: var(--color-paper); padding: 8rem 0; }
.features-inner { max-width: 1280px; margin: 0 auto; padding: 0 4rem; display: flex; flex-direction: column; gap: 7rem; }

.feat-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: center; }
.feat-row--reverse { grid-template-columns: 1fr 1.15fr; }
.feat-row--full-dark {
  background: var(--color-ink); color: var(--color-paper);
  margin: 0 -4rem; padding: 5rem 4rem; border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: 3rem;
}

.feat-num { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-olive); opacity: 0.7; display: block; margin-bottom: 1rem; }
.feat-num--light { color: var(--color-olive); opacity: 0.9; }
.feat-title { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; color: var(--color-ink); margin-bottom: 1.25rem; }
.feat-title--light { color: var(--color-paper); }
.feat-desc { font-size: 0.95rem; line-height: 1.65; color: var(--text-dim); max-width: 46ch; margin-bottom: 1.5rem; }
.feat-desc strong { color: var(--color-ink); font-weight: 500; }
.feat-desc--light { color: rgba(250,247,242,0.5); }
.feat-desc--light strong { color: var(--color-paper); }
.feat-copy--center-light { text-align: center; max-width: 680px; margin: 0 auto; }
.feat-copy--center-light .feat-desc { max-width: 56ch; margin-inline: auto; }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.feat-list li { font-size: 0.85rem; color: var(--text-dim); padding-left: 1.5rem; position: relative; }
.feat-list li::before { content: ''; position: absolute; left: 0; top: 0.55rem; width: 5px; height: 5px; border-radius: 50%; background: var(--color-olive); opacity: 0.5; }

/* Mockups */
.feat-visual { display: flex; justify-content: center; }
.feat-mockup { border-radius: 14px; overflow: hidden; width: 100%; max-width: 480px; }
.feat-mockup--dark { background: var(--color-navy); border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 8px 40px rgba(0,0,0,0.12); }
.feat-mockup--light { background: var(--color-paper); border: 1px solid var(--line); box-shadow: 0 8px 40px rgba(0,0,0,0.05); }
.feat-mockup-bar { height: 32px; background: rgba(0,0,0,0.08); display: flex; align-items: center; gap: 5px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.feat-mockup--light .feat-mockup-bar { background: rgba(0,0,0,0.03); border-bottom-color: var(--line); }
.feat-mockup-bar span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.feat-mockup--light .feat-mockup-bar span { background: rgba(13,15,20,0.12); }
.feat-mockup-body { padding: 1.5rem; }

/* Agenda visual */
.feat-agenda { color: var(--color-ink); }
.feat-agenda-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.feat-agenda-header strong { display: block; font-size: 0.95rem; }
.feat-agenda-header span { font-size: 0.65rem; color: var(--text-dim); }
.feat-agenda-stats span { font-size: 0.62rem; color: var(--text-muted); background: rgba(124,154,110,0.1); padding: 0.25rem 0.6rem; border-radius: 100px; }
.feat-agenda-stats b { color: var(--color-olive); }
.feat-agenda-slots { display: flex; flex-direction: column; gap: 5px; margin-bottom: 1rem; }
.feat-slot { display: flex; align-items: center; gap: 10px; padding: 0.5rem 0.75rem; border-radius: 6px; border-left: 3px solid; font-size: 0.7rem; }
.feat-slot span { color: var(--text-muted); min-width: 2.5rem; }
.feat-slot strong { color: rgba(250,247,242,0.75); font-weight: 500; flex: 1; }
.feat-slot small { color: var(--text-muted); }
.feat-slot--confirmed { border-color: rgba(124,154,110,0.4); background: rgba(124,154,110,0.06); }
.feat-slot--active { border-color: var(--color-olive); background: rgba(124,154,110,0.1); }
.feat-slot--pending { border-color: rgba(200,169,110,0.4); background: rgba(200,169,110,0.06); }
.feat-agenda-auto { display: flex; align-items: center; gap: 8px; font-size: 0.65rem; color: var(--color-olive); opacity: 0.7; padding: 0.5rem 0.75rem; border-radius: 6px; background: rgba(124,154,110,0.06); }
.feat-agenda-auto svg { flex-shrink: 0; }

/* SOAP visual */
.feat-soap { color: var(--color-ink); }
.feat-soap-tabs { display: flex; gap: 4px; margin-bottom: 1.25rem; }
.feat-soap-tabs span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; font-size: 0.7rem; font-weight: 500; color: var(--text-muted); border: 1px solid var(--line); }
.feat-soap-tabs span.on { background: var(--color-olive-dim); color: var(--color-olive); border-color: rgba(124,154,110,0.2); }
.feat-soap-content { background: rgba(13,15,20,0.02); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; }
.feat-soap-section strong { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-olive); margin-bottom: 0.5rem; }
.feat-soap-section p { font-size: 0.78rem; line-height: 1.5; color: var(--text-dim); }
.feat-soap-scales { display: flex; gap: 6px; margin-top: 0.75rem; }
.feat-scale-pill { font-size: 0.62rem; padding: 0.2rem 0.55rem; border-radius: 100px; border: 1px solid var(--line); color: var(--text-dim); }
.feat-scale-pill b { color: var(--color-olive); }
.feat-scale-pill--warn { border-color: rgba(200,169,110,0.3); background: rgba(200,169,110,0.06); color: var(--color-gold); }

/* Portal visual */
.feat-portal-phone { width: 220px; background: var(--color-navy); border-radius: 24px; border: 2px solid rgba(255,255,255,0.08); overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.2); }
.feat-phone-notch { width: 60px; height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; margin: 12px auto 8px; }
.feat-phone-screen { padding: 0 1rem 1.25rem; }
.feat-portal-header { font-size: 0.7rem; font-weight: 500; color: rgba(250,247,242,0.4); text-align: center; margin-bottom: 1rem; }
.feat-portal-card { display: flex; align-items: center; gap: 10px; padding: 0.6rem 0.75rem; background: rgba(13,15,20,0.03); border-radius: 10px; border: 1px solid rgba(255,255,255,0.04); margin-bottom: 0.75rem; }
.feat-portal-avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(124,154,110,0.2); flex-shrink: 0; }
.feat-portal-card strong { display: block; font-size: 0.7rem; color: var(--color-ink); }
.feat-portal-card span { font-size: 0.6rem; color: var(--text-dim); }
.feat-portal-menu { display: flex; flex-direction: column; gap: 4px; }
.feat-portal-item { display: flex; align-items: center; gap: 8px; padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.68rem; color: rgba(250,247,242,0.4); }
.feat-portal-item.active { background: var(--color-olive-dim); color: var(--color-olive); }
.feat-portal-item svg { flex-shrink: 0; }

/* Automation engine visual */
.feat-automation { display: flex; align-items: center; gap: 3rem; justify-content: center; flex-wrap: wrap; }
.auto-ring-container { display: flex; justify-content: center; }
.auto-ring { position: relative; width: 180px; height: 180px; }
.auto-ring-svg { width: 100%; height: 100%; }
.auto-ring-progress { stroke-linecap: round; transition: stroke-dashoffset 2s var(--e-inout); }
.auto-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auto-ring-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 500; color: var(--color-olive); line-height: 1; }
.auto-ring-label { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.auto-triggers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.auto-trigger { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: rgba(250,247,242,0.45); }
.auto-trigger-icon { color: var(--color-olive); font-size: 0.55rem; opacity: 0.6; }

/* Automation benefits */
.auto-benefits { display: flex; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; justify-content: center; }
.auto-benefit { text-align: center; min-width: 120px; }
.auto-benefit-num { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; color: var(--color-olive); line-height: 1; margin-bottom: 0.3rem; }
.auto-benefit-label { font-size: 0.65rem; color: var(--text-dim); line-height: 1.4; display: block; max-width: 14ch; margin: 0 auto; }

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integrations { background: var(--color-paper); padding: 8rem 4rem; border-top: 1px solid var(--line); }
.integrations-inner { max-width: 1100px; margin: 0 auto; }
.integrations-header { margin-bottom: 4rem; max-width: 680px; }
.integrations-header .section-sub { color: var(--text-dim); }
.integrations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.int-card {
  background: var(--color-cream); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.4s, transform 0.4s var(--e-out), box-shadow 0.4s;
}
.int-card:hover { border-color: rgba(124,154,110,0.25); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.04); }
.int-card span { font-size: 0.9rem; font-weight: 500; color: var(--color-ink); }
.int-card small { font-size: 0.7rem; color: var(--text-muted); }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare { background: var(--color-ink); padding: 8rem 4rem; color: var(--color-paper); }
.compare-inner { max-width: 1100px; margin: 0 auto; }
.compare-header { margin-bottom: 4rem; max-width: 680px; }
.compare-header .section-sub { color: rgba(250,247,242,0.4); }
.compare-table-wrap { overflow: visible; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.compare-table th { padding: 1rem 1.25rem; text-align: left; font-weight: 500; color: rgba(250,247,242,0.35); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.06); }
.compare-table th.ct-nx { color: var(--color-olive); }
.compare-table td { padding: 0.85rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: rgba(250,247,242,0.5); }
.compare-table td.ct-nx { color: var(--color-paper); background: rgba(124,154,110,0.04); }
.compare-table td.ct-nx strong { color: var(--color-olive); font-weight: 500; }
.compare-table td.ct-bad { color: rgba(250,247,242,0.2); }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table tr:hover td.ct-nx { background: rgba(124,154,110,0.07); }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--color-ink); padding: 5rem 4rem; border-top: 1px solid rgba(255,255,255,0.04); color: var(--color-paper); }
.stats-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-item { text-align: center; padding: 2.5rem 1.5rem; border: 1px solid rgba(255,255,255,0.04); border-radius: var(--r-lg); transition: border-color 0.5s, background 0.5s; }
.stat-item:hover { border-color: rgba(124,154,110,0.2); background: rgba(124,154,110,0.04); }
.stat-num { font-family: var(--serif); font-size: 3.5rem; font-weight: 400; letter-spacing: -0.03em; color: var(--color-olive); line-height: 1; display: block; margin-bottom: 0.75rem; }
.stat-sfx { font-size: 2rem; font-weight: 300; }
.stat-label { font-size: 0.78rem; line-height: 1.5; color: var(--text-dim); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--color-paper); padding: 8rem 4rem; position: relative; overflow: hidden; }
.testimonials-bg-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--serif); font-size: clamp(12rem, 20vw, 24rem); font-weight: 700; letter-spacing: -0.04em; color: rgba(13,15,20,0.015); pointer-events: none; user-select: none; white-space: nowrap; }
.testimonials-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.testimonials-mark { font-family: var(--serif); font-size: 8rem; font-weight: 400; line-height: 0.4; color: var(--color-olive); opacity: 0.25; margin-bottom: 2rem; }
.testimonials blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 400; font-style: italic; line-height: 1.35; letter-spacing: -0.015em; color: var(--color-ink); }
.testimonials blockquote .word { display: inline-block; overflow: hidden; }
.testimonials blockquote .word-inner { display: inline-block; transform: translateY(105%); }
.testimonials cite { display: flex; flex-direction: column; gap: 4px; margin-top: 2.5rem; font-style: normal; }
.testimonials cite strong { font-size: 0.9rem; color: var(--color-ink); }
.testimonials cite span { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--color-paper); padding: 8rem 4rem; }
.pricing-inner { max-width: 1100px; margin: 0 auto; }
.pricing-header { margin-bottom: 5rem; text-align: center; }
.pricing-header .section-sub { color: var(--text-dim); max-width: 52ch; margin: 1rem auto 0; }
.pricing-header .section-sub strong { color: var(--color-ink); }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }

.price-card { background: var(--color-cream); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.25rem; position: relative; overflow: hidden; transition: transform 0.4s var(--e-out), border-color 0.4s, box-shadow 0.4s; }
.price-card:hover { transform: translateY(-6px); border-color: var(--line-str); box-shadow: 0 24px 60px rgba(0,0,0,0.08); }
.price-card--featured { background: var(--color-paper); border-color: rgba(255,255,255,0.06); color: var(--color-ink); transform: translateY(-12px); box-shadow: 0 32px 80px rgba(0,0,0,0.2); }
.price-card--featured:hover { transform: translateY(-18px); }
.price-card-glow { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 220px; height: 220px; background: radial-gradient(circle, rgba(124,154,110,0.1), transparent 70%); pointer-events: none; }
.price-badge { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; background: var(--color-olive); color: var(--color-ink); padding: 0.25rem 0.7rem; border-radius: 100px; }
.price-card-inner { display: flex; flex-direction: column; gap: 1.25rem; position: relative; z-index: 1; }
.price-tier { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.price-card--featured .price-tier { color: var(--text-muted); }
.price-amount { display: flex; align-items: baseline; gap: 1px; }
.price-currency { font-family: var(--serif); font-size: 1.5rem; color: var(--text-dim); align-self: flex-start; margin-top: 6px; }
.price-card--featured .price-currency { color: var(--text-muted); }
.price-num { font-family: var(--serif); font-size: 4rem; font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--color-ink); }
.price-card--featured .price-num { color: var(--color-olive); }
.price-period { font-size: 0.85rem; color: var(--text-dim); margin-left: 4px; }
.price-card--featured .price-period { color: var(--text-muted); }
.price-desc { font-size: 0.85rem; line-height: 1.55; color: var(--text-dim); }
.price-card--featured .price-desc { color: rgba(250,247,242,0.45); }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.price-features li { font-size: 0.85rem; color: var(--text-dim); padding-left: 1.2rem; position: relative; }
.price-card--featured .price-features li { color: var(--text-dim); }
.price-features li::before { content: '—'; position: absolute; left: 0; color: rgba(124,154,110,0.4); font-size: 0.65rem; }
.price-btn { display: block; text-align: center; text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 0.8rem; border-radius: var(--r-sm); border: 1px solid var(--line-str); color: var(--color-ink); transition: all 0.3s var(--e-out); margin-top: 0.5rem; }
.price-btn:hover { background: var(--color-olive); border-color: var(--color-olive); color: var(--color-ink); transform: translateY(-1px); }
.price-btn--primary { background: var(--color-olive); border-color: var(--color-olive); color: var(--color-ink); }
.price-btn--primary:hover { background: var(--color-olive-dark); box-shadow: 0 8px 24px rgba(124,154,110,0.4); }
.pricing-note { text-align: center; margin-top: 2.5rem; font-size: 0.82rem; color: var(--text-dim); }
.pricing-note a { color: var(--color-olive); text-decoration: underline; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { background: var(--color-ink); padding: 8rem 4rem; text-align: center; position: relative; overflow: hidden; color: var(--color-paper); }
.cta-orb { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 900px; height: 500px; background: radial-gradient(ellipse, rgba(124,154,110,0.06) 0%, transparent 65%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-eyebrow { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-olive); opacity: 0.7; display: block; margin-bottom: 1.75rem; }
.cta-headline { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.75rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.025em; margin-bottom: 1.75rem; }
.cta-headline em { font-style: italic; color: var(--color-olive); }
.cta-headline .line-mask { display: block; overflow: hidden; }
.cta-headline .line-inner { display: block; transform: translateY(105%); }
.cta-sub { font-size: 1rem; line-height: 1.6; color: rgba(250,247,242,0.4); max-width: 48ch; margin: 0 auto 2.5rem; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cta-note { font-size: 0.72rem; color: rgba(250,247,242,0.2); letter-spacing: 0.04em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--color-ink); border-top: 1px solid rgba(255,255,255,0.04); padding: 4rem 4rem 2rem; color: var(--color-paper); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; gap: 4rem; margin-bottom: 3rem; }
.footer-main { max-width: 280px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 500; color: var(--color-paper); margin-bottom: 1rem; }
.footer-logo { width: 26px; height: 26px; color: var(--color-olive); }
.footer-tagline { font-size: 0.82rem; line-height: 1.6; color: var(--text-muted); }
.footer-links { display: flex; gap: 4rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250,247,242,0.2); margin-bottom: 0.4rem; }
.footer-col a { text-decoration: none; font-size: 0.85rem; color: var(--text-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--color-olive); }
.footer-bottom { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-bottom span { font-size: 0.72rem; color: rgba(250,247,242,0.15); }

/* ============================================================
   GSAP INITIAL STATES (Pattern 1 — FOUC prevention via CSS)
   ============================================================ */
[data-reveal]       { opacity: 0; transform: translateY(40px); }
[data-feat-reveal]  { opacity: 0; transform: translateY(56px); }
[data-price-reveal] { opacity: 0; transform: translateY(36px); }
[data-stat-reveal]  { opacity: 0; transform: translateY(32px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .pricing-cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-6px); }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
  .esp-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .esp-feature-card--hero { grid-column: 1 / 3; }
  .esp-tabs { gap: 0.5rem; }
  .esp-tab { padding: 0.7rem 1.1rem; font-size: 0.8rem; }
  .feature-modal-panel { max-width: 100%; }
  .feature-modal-body { flex-direction: column; }
  .feature-modal-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 1rem; gap: 4px; flex-shrink: 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .fm-cat { white-space: nowrap; padding: 0.5rem 0.65rem; font-size: 0.72rem; }
  .feature-modal-content { padding: 1.5rem; }
  .ia-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .hero-content { padding: 7rem 1.5rem 4rem; }
  .hero-metrics { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
  .hmet-div:nth-child(6) { display: none; }
  .problem { padding: 5rem 1.5rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .especialidades { padding: 5rem 1.5rem; }
  .ia-section { padding: 5rem 1.5rem; }
  .features { padding: 5rem 0; }
  .features-inner { padding: 0 1.5rem; gap: 4rem; }
  .feat-row, .feat-row--reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .feat-row--reverse .feat-visual { order: -1; }
  .feat-row--full-dark { margin: 0 -1.5rem; padding: 3rem 1.5rem; border-radius: var(--r-md); }
  .integrations { padding: 5rem 1.5rem; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .compare { padding: 5rem 1.5rem; }
  .stats { padding: 4rem 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { padding: 5rem 1.5rem; }
  .pricing { padding: 5rem 1.5rem; }
  .cta-final { padding: 6rem 1.5rem; }
  .footer { padding: 3rem 1.5rem 2rem; }
  .footer-inner { flex-direction: column; gap: 2.5rem; }
  .footer-links { gap: 2.5rem; flex-wrap: wrap; }
  .feat-automation { flex-direction: column; gap: 2rem; }
  .auto-triggers { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 2.75rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-sub { font-size: 0.9rem; }
  .section-title { font-size: 2rem; }
  .problem-title { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 2.5rem; }
  .integrations-grid { grid-template-columns: 1fr; }
  .esp-feature-grid { grid-template-columns: 1fr; }
  .esp-feature-card--hero { grid-column: auto; }
  .pricing-cards { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; }
  .compare-table { font-size: 0.7rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.5rem; }
  .compare-table-wrap { -webkit-overflow-scrolling: touch; overflow-x: auto; }
  .feature-modal-sidebar { border-bottom-color: var(--line); }
  .nav-cta { padding: 0.5rem 0.9rem; font-size: 0.75rem; }
  .nav-brand { font-size: 0.85rem; }
  .nav-logo { width: 24px; height: 24px; }
}
