/* =========================================================
   IBS · Monitores Fetales y Multiparámetro — Landing Page
   Design system + components
   ========================================================= */

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

:root{
  /* Brand palette refined with HSL */
  --navy-950: hsl(248, 56%, 9%);
  --navy-900: hsl(246, 53%, 13%);
  --navy-800: hsl(247, 51%, 19%);
  --indigo-700: hsl(251, 51%, 32%);
  --indigo-600: hsl(253, 53%, 33%);
  --indigo-500: hsl(252, 48%, 42%);
  --blue-500: hsl(220, 48%, 45%);
  --blue-400: hsl(220, 52%, 57%);
  --cyan-400: hsl(195, 78%, 54%);
  --cyan-300: hsl(195, 82%, 71%);

  --white: #ffffff;
  --surface-0: #ffffff;
  --surface-1: hsl(227, 33%, 98%);
  --surface-2: hsl(228, 27%, 95%);
  --surface-3: hsl(230, 26%, 92%);
  --line: hsl(230, 24%, 91%);

  --text-900: hsl(248, 52%, 11%);
  --text-700: hsl(247, 27%, 26%);
  --text-500: hsl(247, 18%, 43%);
  --text-400: hsl(246, 16%, 57%);
  --text-on-dark: hsl(247, 43%, 96%);
  --text-on-dark-dim: hsl(247, 28%, 77%);

  --success: hsl(157, 69%, 39%);
  --warn: hsl(36, 85%, 46%);
  --danger: hsl(0, 65%, 55%);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(20, 16, 52, 0.04);
  --shadow-md: 0 12px 32px rgba(20, 16, 52, 0.08);
  --shadow-lg: 0 24px 64px rgba(20, 16, 52, 0.15);
  --shadow-glow: 0 0 0 1px rgba(59, 95, 168, 0.08), 0 20px 60px rgba(56, 40, 124, 0.18);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  --container: 1220px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth; scroll-padding-top: calc(var(--nav-h) + 12px);}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text-700);
  background:var(--surface-0);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
/* Sin esto, un <img width height> cuyo CSS solo fija el ancho conserva
   el alto tal cual el atributo HTML (no proporcional), deformando la
   imagen. height:auto fuerza que el alto siga siempre la proporción real. */
img{max-width:100%; height:auto; display:block;}
svg{display:block;}
a{color:inherit; text-decoration:none;}
ul{margin:0; padding:0; list-style:none;}
button{font:inherit; cursor:pointer;}
input,textarea,select{font:inherit;}
h1,h2,h3,h4,p{margin:0;}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
@media (max-width:640px){ .container{padding:0 18px;} }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.78rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--blue-500);
}
.eyebrow::before{
  content:""; width:20px; height:2px; background:linear-gradient(90deg,var(--cyan-400),var(--blue-500));
  border-radius:2px;
}
.eyebrow.on-dark{ color:var(--cyan-300); }

h1,.h1{
  font-family:var(--font-heading);
  font-size:clamp(2.4rem, 5.2vw, 4.2rem);
  line-height:1.04;
  letter-spacing:-.02em;
  font-weight:800;
  color:var(--text-900);
  text-wrap:balance;
}
h2,.h2{
  font-family:var(--font-heading);
  font-size:clamp(1.9rem, 3.4vw, 2.7rem);
  line-height:1.1;
  letter-spacing:-.015em;
  font-weight:800;
  color:var(--text-900);
  text-wrap:balance;
}
h3,.h3{
  font-family:var(--font-heading);
  font-size:clamp(1.2rem, 1.8vw, 1.5rem);
  line-height:1.25;
  font-weight:700;
  color:var(--text-900);
  text-wrap:balance;
}
.lead{
  font-size:clamp(1.05rem, 1.6vw, 1.25rem);
  line-height:1.6;
  color:var(--text-500);
  text-wrap:pretty;
}
.section-head{
  max-width:680px;
  margin:0 0 48px;
}
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head .h2{ margin-top:14px; }
.section-head .lead{ margin-top:16px; }

section{ position:relative; padding:96px 0; }
@media (max-width:780px){ section{ padding:64px 0; } }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 28px;
  border-radius:100px;
  font-weight:700;
  font-size:.98rem;
  border:1px solid transparent;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn svg{ width:18px; height:18px; flex:none; }
.btn-primary{
  background:linear-gradient(135deg, var(--cyan-400), var(--blue-500) 60%, var(--indigo-600));
  background-size:160% 160%; background-position:0% 50%;
  color:#fff; border:none;
  box-shadow:0 10px 30px -6px rgba(59,95,168,.55);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 40px -8px rgba(59,95,168,.65); background-position:100% 50%; }
.btn-ghost{
  background:rgba(255,255,255,.06);
  color:var(--text-on-dark);
  border-color:rgba(255,255,255,.28);
  backdrop-filter:blur(6px);
}
.btn-ghost:hover{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.5); transform:translateY(-2px); }
.btn-outline{
  background:transparent;
  color:var(--indigo-700);
  border-color:var(--line);
}
.btn-outline:hover{ border-color:var(--blue-500); color:var(--blue-500); transform:translateY(-2px); }
.btn-call{
  background:#1fa970; color:#fff; border:none; box-shadow:0 10px 26px -8px rgba(31,169,112,.6);
}
.btn-call:hover{ transform:translateY(-2px); box-shadow:0 14px 32px -8px rgba(31,169,112,.7); }
.btn-block{ width:100%; }
.btn-sm{ padding:11px 20px; font-size:.88rem; }

/* ---------- Nav ---------- */
.nav{
  position:fixed; inset:0 0 auto 0; height:var(--nav-h); z-index:200;
  display:flex; align-items:center;
  transition:background .35s ease, box-shadow .35s ease, height .35s ease, backdrop-filter .35s ease;
}
.nav::before{
  content:""; position:absolute; inset:0;
  background:rgba(13,10,36,.0);
  backdrop-filter:blur(0px);
  transition:inherit; z-index:-1;
}
.nav.is-scrolled{ height:66px; box-shadow:0 8px 30px rgba(13,10,36,.06); }
.nav.is-scrolled::before{
  background:rgba(255,255,255,.76);
  backdrop-filter:blur(16px) saturate(120%);
  -webkit-backdrop-filter:blur(16px) saturate(120%);
  border-bottom:1px solid rgba(20,16,52,.06);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.nav-logo{ display:flex; align-items:center; gap:10px; flex:none; }
.nav-logo img{ height:34px; width:auto; transition:filter .3s ease; }
.nav.is-scrolled .nav-logo .logo-light{ display:none; }
.nav-logo .logo-dark{ display:none; }
.nav.is-scrolled .nav-logo .logo-dark{ display:block; }

.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{
  font-size:.92rem; font-weight:600; color:var(--text-on-dark-dim);
  position:relative; padding:6px 0; transition:color .25s ease;
}
.nav.is-scrolled .nav-links a{ color:var(--text-500); }
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background:linear-gradient(90deg,var(--cyan-400),var(--blue-500)); border-radius:2px;
  transition:right .3s var(--ease);
}
.nav-links a:hover{ color:#fff; }
.nav.is-scrolled .nav-links a:hover{ color:var(--indigo-700); }
.nav-links a:hover::after{ right:0; }
.nav-cta{ display:flex; align-items:center; gap:12px; }
.nav-cta .btn-outline{
  color:var(--text-on-dark);
  border-color:rgba(255,255,255,.32);
  background:rgba(255,255,255,.06);
}
.nav-cta .btn-outline:hover{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.55); color:#fff; }
.nav.is-scrolled .nav-cta .btn-outline{
  color:var(--indigo-700);
  border-color:var(--line);
  background:transparent;
}
.nav.is-scrolled .nav-cta .btn-outline:hover{ border-color:var(--blue-500); color:var(--blue-500); background:transparent; }
.nav-burger{
  display:none; flex:none; width:42px; height:42px; border-radius:12px; border:1px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.06); align-items:center; justify-content:center; gap:4px; flex-direction:column;
}
.nav.is-scrolled .nav-burger{ border-color:var(--line); background:var(--surface-1); }
.nav-burger span{ width:18px; height:2px; background:#fff; border-radius:2px; transition:transform .3s ease, opacity .3s ease; }
.nav.is-scrolled .nav-burger span{ background:var(--text-900); }
.nav-burger.is-open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2){ opacity:0; }
.nav-burger.is-open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position:fixed; inset:var(--nav-h) 0 0 0; z-index:190;
  background:var(--navy-900);
  transform:translateY(-12px); opacity:0; pointer-events:none;
  transition:opacity 0.4s var(--ease), transform 0.4s var(--ease);
  padding:32px 24px; overflow-y:auto;
}
.mobile-menu.is-open{ opacity:1; transform:translateY(0); pointer-events:auto; }
.mobile-menu a{
  display:block; padding:16px 4px; font-size:1.25rem; font-weight:700; color:#fff; border-bottom:1px solid rgba(255,255,255,.1);
  opacity:0; transform:translateY(16px);
  transition:opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.is-open a{
  opacity:1; transform:translateY(0);
}
.mobile-menu .btn{
  margin-top:24px;
  opacity:0; transform:translateY(16px);
  transition:opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.is-open .btn{
  opacity:1; transform:translateY(0);
}

@media (max-width:960px){
  .nav-links{ display:none; }
  .nav-burger{ display:flex; }
  .nav-cta .btn-outline{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex; align-items:center;
  padding-top:calc(var(--nav-h) + 34px);
  padding-bottom:70px;
  background:
    radial-gradient(1100px 700px at 82% -10%, rgba(47,184,230,.28), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(59,95,168,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--indigo-700) 60%, var(--navy-900) 100%);
  overflow:hidden;
  isolation:isolate;
}
.hero-noise{
  position:absolute; inset:0; z-index:0; opacity:.5; mix-blend-mode:overlay; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.hero-orbit{
  position:absolute; z-index:0; pointer-events:none; opacity:.55;
  border-radius:50%; border:1px solid rgba(255,255,255,.08);
  animation:spin 60s linear infinite;
}
.hero-orbit.o1{ width:920px; height:920px; top:-260px; right:-260px; }
.hero-orbit.o2{ width:640px; height:640px; top:-120px; right:-120px; animation-duration:44s; animation-direction:reverse; }
@keyframes spin{ to{ transform:rotate(360deg); } }

.hero-grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center;
}
@media (max-width:960px){ .hero-grid{ grid-template-columns:1fr; text-align:center; } }

.hero-badges{ display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.hero-badges.center{ justify-content:center; }
.badge-pill{
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 14px; border-radius:100px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.16);
  color:var(--text-on-dark-dim); font-size:.78rem; font-weight:700; letter-spacing:.02em;
  backdrop-filter:blur(6px);
}
.badge-pill svg{ width:14px; height:14px; color:var(--cyan-300); flex:none; }

.hero h1{ color:#fff; margin-top:18px; }
.hero h1 em{ font-style:normal; background:linear-gradient(100deg,var(--cyan-300),var(--blue-400) 60%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero .lead{ color:var(--text-on-dark-dim); margin-top:20px; max-width:560px; }
@media (max-width:960px){ .hero .lead{ margin-inline:auto; } }

.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
@media (max-width:960px){ .hero-cta{ justify-content:center; } }

.hero-stats{ display:flex; gap:34px; margin-top:52px; flex-wrap:wrap; }
@media (max-width:960px){ .hero-stats{ justify-content:center; } }
.stat{ min-width:100px; }
.stat .num{ font-family:var(--font-mono); font-size:clamp(1.6rem,3vw,2.2rem); font-weight:700; color:#fff; letter-spacing:-.01em; }
.stat .num .suffix{ color:var(--cyan-300); }
.stat .label{ margin-top:4px; font-size:.8rem; color:var(--text-on-dark-dim); font-weight:600; }

.hero-visual{ position:relative; }
.hero-stage{
  position:relative; aspect-ratio:1/1; max-width:560px; margin-inline:auto;
  display:flex; align-items:center; justify-content:center;
  perspective:1400px;
}
.hero-ring{
  position:absolute; inset:6%; border-radius:50%;
  background:conic-gradient(from 0deg, rgba(47,184,230,.35), rgba(59,95,168,.05) 30%, rgba(47,184,230,.35) 60%, rgba(59,95,168,.05) 90%, rgba(47,184,230,.35));
  filter:blur(2px);
  animation:spin 18s linear infinite;
}
.hero-ring::after{ content:""; position:absolute; inset:14px; border-radius:50%; background:var(--navy-950); }
.hero-glow{
  position:absolute; inset:14%; border-radius:50%;
  background:radial-gradient(circle at 50% 40%, rgba(122,214,242,.35), transparent 65%);
  filter:blur(20px);
}
.hero-device{
  position:relative; z-index:2; width:88%;
  transform-style:preserve-3d; will-change:transform;
  filter:drop-shadow(0 30px 60px rgba(0,0,0,.5));
  animation:float 6s ease-in-out infinite;
}
@keyframes float{ 0%,100%{ transform:translateY(0px);} 50%{ transform:translateY(-16px);} }
.hero-video-chip{
  position:absolute; left:-6%; bottom:2%; z-index:3;
  width:132px; height:132px; border-radius:50%; overflow:hidden;
  border:3px solid rgba(255,255,255,.35); box-shadow:var(--shadow-lg);
  animation:float 7s ease-in-out infinite; animation-delay:.4s;
}
.hero-video-chip video{ width:100%; height:100%; object-fit:cover; }
@media (max-width:640px){ .hero-video-chip{ width:96px; height:96px; left:0; } }

.hero-float-card{
  position:absolute; z-index:3; padding:16px 18px; border-radius:20px;
  background:rgba(13, 10, 36, 0.45); border:1px solid rgba(255,255,255,.14); backdrop-filter:blur(16px) saturate(120%);
  -webkit-backdrop-filter:blur(16px) saturate(120%);
  box-shadow:0 12px 36px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  animation:float 8s ease-in-out infinite;
  min-width:172px;
  transition:border-color 0.3s ease, transform 0.3s ease;
}
.hero-float-card:hover {
  border-color: rgba(47, 184, 230, 0.4);
}
.hero-float-card.fc1{ top:6%; right:-4%; animation-delay:.2s; }
.hero-float-card.fc2{ bottom:10%; right:-2%; animation-delay:1.1s; }
@media (max-width:640px){ .hero-float-card{ display:none; } }
.hero-float-card .fc-label{ font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; color:var(--text-on-dark-dim); font-weight:700; }
.hero-float-card .fc-value{ font-family:var(--font-mono); font-size:1.3rem; color:#fff; font-weight:700; margin-top:2px; }
.hero-float-card .fc-value .unit{ font-size:.7rem; color:var(--cyan-300); margin-left:2px; }
.hero-float-card .fc-ecg{ width:100%; height:25px; margin-top:8px; display:block; }
.hero-float-card .ecg-path{
  fill:none; stroke:var(--cyan-300); stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:35 65; stroke-dashoffset:100;
  animation:ecgPulse 2.4s linear infinite;
}
@keyframes ecgPulse{ to{ stroke-dashoffset: 0; } }

.scroll-cue{
  position:absolute; left:50%; bottom:28px; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px; z-index:2;
  color:var(--text-on-dark-dim); font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  opacity:.75;
}
.scroll-cue .mouse{ width:24px; height:38px; border:2px solid rgba(255,255,255,.5); border-radius:14px; position:relative; }
.scroll-cue .mouse::before{
  content:""; position:absolute; top:6px; left:50%; width:4px; height:8px; background:#fff; border-radius:2px;
  transform:translateX(-50%); animation:scrollDot 1.8s ease infinite;
}
@keyframes scrollDot{ 0%{opacity:1; top:6px;} 70%{opacity:0; top:20px;} 100%{opacity:0; top:6px;} }

/* ---------- Trust bar ---------- */
.trustbar{
  background:var(--surface-1);
  border-bottom:1px solid var(--line);
  padding:34px 0;
}
.trustbar-inner{ display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap; }
.trustbar-label{ font-size:.78rem; font-weight:700; color:var(--text-400); letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.trust-seals{ display:flex; gap:14px; flex-wrap:wrap; }
.seal{
  display:flex; align-items:center; gap:12px; padding:10px 18px 10px 12px;
  background:#fff; border:1px solid var(--line); border-radius:100px; box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.seal:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:var(--blue-400); }
.seal .seal-ico{
  width:38px; height:38px; border-radius:50%; flex:none;
  background:linear-gradient(135deg,var(--cyan-400),var(--blue-500));
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 16px -6px rgba(59,95,168,.55);
}
.seal svg{ width:19px; height:19px; color:#fff; flex:none; }
.seal .seal-logo-img{ width:38px; height:38px; border-radius:50%; flex:none; object-fit:contain; background:#fff; border:1px solid var(--line); padding:6px; }
.seal-text strong{ display:block; font-size:.85rem; color:var(--text-900); font-weight:800; letter-spacing:-.01em; }
.seal-text span{ display:block; font-size:.7rem; color:var(--text-400); font-weight:600; }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity:1; transform:translateY(0); }
.reveal-stagger > *{ opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-visible > *{ opacity:1; transform:translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay:.03s; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay:.10s; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay:.17s; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay:.24s; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay:.31s; }
.reveal-stagger.is-visible > *:nth-child(6){ transition-delay:.38s; }

/* ---------- Why IBS ---------- */
.why{ background:var(--surface-0); }
.why-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
@media (max-width:960px){ .why-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .why-grid{ grid-template-columns:1fr; } }
.why-card{
  padding:28px 24px; border-radius:var(--radius-md); background:var(--surface-1); border:1px solid var(--line);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s ease;
}
.why-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); background:#fff; }

/* Los iconos "respiran" en loop continuo: un anillo de pulso (como un
   monitor en vivo) y el trazo del ícono se dibuja una y otra vez. No
   contamos con video real de instalaciones/soporte, así que en su
   lugar animamos estos iconos como pequeños loops de movimiento. */
.why-icon{
  position:relative;
  width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--cyan-400),var(--blue-500)); color:#fff; margin-bottom:18px;
  box-shadow:0 10px 24px -8px rgba(59,95,168,.55);
}
.why-icon::before{
  content:""; position:absolute; inset:0; border-radius:inherit;
  border:2px solid var(--cyan-400); opacity:0;
  animation:iconPulse 3.2s ease-out infinite;
}
.why-icon svg{ width:26px; height:26px; position:relative; z-index:1; animation:iconBreathe 3.2s ease-in-out infinite; }
.why-grid .why-card:nth-child(1) .why-icon::before, .why-grid .why-card:nth-child(1) .why-icon svg{ animation-delay:0s; }
.why-grid .why-card:nth-child(2) .why-icon::before, .why-grid .why-card:nth-child(2) .why-icon svg{ animation-delay:.4s; }
.why-grid .why-card:nth-child(3) .why-icon::before, .why-grid .why-card:nth-child(3) .why-icon svg{ animation-delay:.8s; }
.why-grid .why-card:nth-child(4) .why-icon::before, .why-grid .why-card:nth-child(4) .why-icon svg{ animation-delay:1.2s; }
@keyframes iconPulse{
  0%{ transform:scale(1); opacity:.55; }
  70%{ transform:scale(1.35); opacity:0; }
  100%{ transform:scale(1.35); opacity:0; }
}
@keyframes iconBreathe{
  0%, 100%{ transform:scale(1); }
  15%{ transform:scale(1.14); }
  30%{ transform:scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .why-icon::before{ animation:none; opacity:0; }
  .why-icon svg{ animation:none; }
}
.why-card h3{ margin-bottom:8px; }
.why-card p{ font-size:.92rem; color:var(--text-500); line-height:1.55; }

/* ---------- Products ---------- */
.products{ background:linear-gradient(180deg,var(--surface-0), var(--surface-1)); }
.product-tabs{
  display:inline-flex; padding:6px; background:var(--surface-2); border-radius:100px; gap:6px; margin-bottom:0;
}
.product-tabs button{
  border:none; background:transparent; padding:12px 26px; border-radius:100px; font-weight:700; font-size:.92rem;
  color:var(--text-500); transition:all .3s var(--ease);
}
.product-tabs button.is-active{ background:#fff; color:var(--indigo-700); box-shadow:var(--shadow-sm); }

.product-panel{ display:none; margin-top:48px; }
.product-panel.is-active{ display:block; animation:fadeUpSpring 0.7s var(--ease-spring); }
@keyframes fadeUpSpring{ from{ opacity:0; transform:translateY(24px) scale(0.98);} to{ opacity:1; transform:translateY(0) scale(1);} }

.product-card{
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-xl); padding:56px;
  box-shadow:var(--shadow-md); overflow:hidden; position:relative;
  transition:border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.product-card:hover {
  border-color: rgba(56, 40, 124, 0.18);
  box-shadow: 0 24px 56px rgba(20, 16, 52, 0.08), 0 0 0 1px rgba(56, 40, 124, 0.02);
}
.product-card::before{
  content:""; position:absolute; width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle, rgba(47,184,230,.14), transparent 70%);
  top:-220px; right:-220px; pointer-events:none;
}
@media (max-width:900px){ .product-card{ grid-template-columns:1fr; padding:32px; gap:32px; } }

.product-visual{
  position:relative; display:flex; align-items:center; justify-content:center;
  perspective:1200px;
}
.product-visual img{
  width:100%; max-width:420px;
  transition:transform .25s ease;
  will-change:transform;
  filter:drop-shadow(0 26px 40px rgba(20,16,52,.22));
}
.product-visual-glow{
  position:absolute; inset:8%; z-index:-1; border-radius:50%;
  background:radial-gradient(circle, rgba(59,95,168,.16), transparent 70%);
}
.product-tag{
  position:absolute; top:6px; left:6px; z-index:2;
  background:var(--navy-900); color:#fff; font-family:var(--font-mono);
  font-size:.72rem; font-weight:700; padding:6px 12px; border-radius:8px; letter-spacing:.04em;
}

.product-info .kicker{ display:flex; align-items:center; gap:10px; }
.product-info .kicker .dot{ width:8px; height:8px; border-radius:50%; background:var(--success); box-shadow:0 0 0 4px rgba(31,169,112,.18); }
.product-info .kicker span{ font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-400); }
.product-info h3.name{ font-size:clamp(2rem,3vw,2.6rem); font-weight:900; color:var(--text-900); margin-top:10px; letter-spacing:-.02em; }
.product-info .tagline{ font-size:1.05rem; color:var(--text-500); margin-top:10px; line-height:1.6; }

.param-chip-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.param-chip{
  font-size:.78rem; font-weight:700; color:var(--indigo-700); background:var(--surface-2);
  padding:7px 13px; border-radius:100px; border:1px solid var(--line);
}

.feature-list{ margin-top:26px; display:grid; gap:12px; }
.feature-list li{ display:flex; gap:12px; align-items:flex-start; font-size:.95rem; color:var(--text-700); }
.feature-list svg{ width:20px; height:20px; flex:none; color:var(--success); margin-top:1px; }

.product-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:32px; }

.specs-toggle{
  margin-top:24px; display:inline-flex; align-items:center; gap:10px;
  padding:10px 20px 10px 22px; border-radius:100px;
  background:var(--surface-1); border:1.5px solid var(--line);
  font-weight:700; color:var(--indigo-700); font-size:.88rem;
  transition:background .25s ease, border-color .25s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.specs-toggle:hover{ background:#fff; border-color:var(--blue-500); box-shadow:var(--shadow-sm); transform:translateY(-1px); }
.specs-toggle.is-open{ background:#fff; border-color:var(--blue-500); box-shadow:var(--shadow-sm); }
.specs-toggle .toggle-ico{
  width:24px; height:24px; border-radius:50%; flex:none;
  background:linear-gradient(135deg,var(--cyan-400),var(--blue-500));
  display:flex; align-items:center; justify-content:center;
}
.specs-toggle .toggle-ico svg{ width:13px; height:13px; color:#fff; transition:transform .35s var(--ease); }
.specs-toggle.is-open .toggle-ico svg{ transform:rotate(180deg); }

.specs-table-wrap{
  grid-column:1/-1; overflow:hidden; max-height:0; transition:max-height .5s var(--ease);
}
.specs-table-wrap.is-open{ max-height:2200px; }
.specs-table{
  margin-top:28px; width:100%; border-collapse:collapse; font-size:.9rem;
}
.specs-table caption{ text-align:left; font-weight:800; color:var(--text-900); margin-bottom:14px; font-size:1rem; }
.specs-table th{
  text-align:left; padding:12px 16px; background:var(--surface-2); color:var(--text-500);
  font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; font-weight:700;
}
.specs-table td{ padding:12px 16px; border-bottom:1px solid var(--line); color:var(--text-700); }
.specs-table tr:nth-child(odd) td{ background:var(--surface-1); }
.specs-table td:first-child{ font-weight:700; color:var(--text-900); width:34%; }

/* ---------- Comparison ---------- */
.compare{ background:var(--surface-0); }
.compare-scroll{ overflow-x:auto; border-radius:var(--radius-md); border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.compare-table{ width:100%; border-collapse:collapse; min-width:640px; }
.compare-table th,.compare-table td{ padding:16px 20px; text-align:left; font-size:.92rem; border-bottom:1px solid var(--line); }
.compare-table thead th{ background:var(--navy-900); color:#fff; font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; position:sticky; top:0; }
.compare-table thead th:first-child{ color:var(--text-on-dark-dim); }
.compare-table tbody td:first-child{ font-weight:700; color:var(--text-900); background:var(--surface-1); }
.compare-table tbody tr:last-child td{ border-bottom:none; }
.compare-table td.yes{ color:var(--success); font-weight:700; }
.compare-table .pick{ background:linear-gradient(180deg, rgba(47,184,230,.08), transparent); }

/* ---------- Use cases ---------- */
.usecases{ background:var(--navy-900); position:relative; overflow:hidden; }
.usecases::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(700px 500px at 90% 10%, rgba(47,184,230,.18), transparent 60%);
}
.usecases .section-head .h2, .usecases .section-head .lead, .usecases h3{ color:#fff; }
.usecases .section-head .lead{ color:var(--text-on-dark-dim); }
.usecases-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; position:relative; z-index:1; }
@media (max-width:960px){ .usecases-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .usecases-grid{ grid-template-columns:1fr; } }
.usecase-card{
  position:relative; border-radius:var(--radius-md); overflow:hidden; aspect-ratio:3/4;
  border:1px solid rgba(255,255,255,.12);
}
.usecase-card img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.usecase-card:hover img{ transform:scale(1.08); }
.usecase-card::after{
  content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(10,8,28,.92) 10%, rgba(10,8,28,.15) 60%);
}
.usecase-label{ position:absolute; left:16px; right:16px; bottom:16px; z-index:2; }
.usecase-label .tag{ font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--cyan-300); }
.usecase-label h3{ margin-top:6px; font-size:1.05rem; }

/* ---------- FAQ ---------- */
.faq{ background:var(--surface-1); }
.faq-wrap{ max-width:820px; margin:0 auto; display:grid; gap:14px; }
.faq-item{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden;
}
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:22px 26px; text-align:left; background:none; border:none; font-weight:700; font-size:1.02rem; color:var(--text-900);
}
.faq-q svg{ width:20px; height:20px; flex:none; color:var(--blue-500); transition:transform .35s var(--ease); }
.faq-item.is-open .faq-q svg{ transform:rotate(135deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .45s var(--ease); }
.faq-a-inner{ padding:0 26px 24px; color:var(--text-500); font-size:.96rem; line-height:1.7; }

/* ---------- Contact ---------- */
.contact{ background:linear-gradient(160deg, var(--navy-950), var(--indigo-700) 65%, var(--navy-900)); position:relative; overflow:hidden; }
.contact::before{ content:""; position:absolute; inset:0; background:radial-gradient(800px 500px at 10% 0%, rgba(47,184,230,.2), transparent 60%); }
.contact-info .h2, .contact-info p{ color:#fff; }
.contact-info .lead{ color:var(--text-on-dark-dim); }
.contact-grid{ position:relative; z-index:1; display:grid; grid-template-columns:.9fr 1.1fr; gap:48px; align-items:start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-info{ color:#fff; }
.contact-info-list{ display:grid; gap:18px; margin-top:28px; }
.contact-info-item{ display:flex; gap:14px; align-items:flex-start; }
.contact-info-item .ico{
  width:44px; height:44px; border-radius:12px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.contact-info-item .ico svg{ width:20px; height:20px; color:var(--cyan-300); }
.contact-info-item strong{ display:block; font-size:.95rem; }
.contact-info-item span{ display:block; font-size:.88rem; color:var(--text-on-dark-dim); margin-top:2px; }
.contact-info-item a{ color:#fff; }
.contact-info-item a:hover{ color:var(--cyan-300); }

.contact-card{
  background:#fff; border-radius:var(--radius-xl); padding:40px; box-shadow:var(--shadow-lg);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:.82rem; font-weight:700; color:var(--text-700); margin-bottom:7px; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 15px; border-radius:12px; border:1.5px solid var(--line); background:var(--surface-1);
  font-size:.95rem; color:var(--text-900); transition:border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--blue-500); background:#fff; box-shadow:0 0 0 4px rgba(59,95,168,.14);
}
.field textarea{ resize:vertical; min-height:100px; }
.field-check{ display:flex; gap:10px; align-items:flex-start; font-size:.82rem; color:var(--text-500); margin-bottom:20px; }
.field-check input{ width:auto; margin-top:3px; }
.field-check a{ color:var(--blue-500); font-weight:700; }
.hp-field{ position:absolute; left:-9999px; top:-9999px; opacity:0; height:0; width:0; }
.form-msg{ margin-top:16px; padding:14px 16px; border-radius:12px; font-size:.9rem; font-weight:600; display:none; }
.form-msg.show{ display:block; }
.form-msg.ok{ background:#e6f7ef; color:#0e6b45; }
.form-msg.err{ background:#fdecec; color:#a32626; }
.submit-spinner{ width:16px; height:16px; border-radius:50%; border:2px solid rgba(255,255,255,.5); border-top-color:#fff; animation:rot .7s linear infinite; display:none; }
.is-loading .submit-spinner{ display:inline-block; }
.is-loading .submit-label{ opacity:.7; }
@keyframes rot{ to{ transform:rotate(360deg); } }

/* ---------- Footer ---------- */
.footer{ background:var(--navy-950); color:var(--text-on-dark-dim); padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; }
@media (max-width:780px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-logo{ height:34px; margin-bottom:16px; }
.footer p{ font-size:.88rem; line-height:1.6; }
.footer h4{ color:#fff; font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:18px; }
.footer-links{ display:grid; gap:12px; }
.footer-links a{ font-size:.9rem; transition:color .2s ease; }
.footer-links a:hover{ color:#fff; }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{
  width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  display:flex; align-items:center; justify-content:center; transition:background .25s ease, transform .25s ease;
}
.footer-social a:hover{ background:rgba(255,255,255,.14); transform:translateY(-2px); }
.footer-social svg{ width:17px; height:17px; }
.footer-bottom{
  margin-top:48px; padding-top:24px; border-top:1px solid rgba(255,255,255,.1);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.8rem;
}
.footer-bottom a{ color:var(--text-on-dark-dim); }
.footer-bottom a:hover{ color:#fff; }

/* ---------- Chat widget ---------- */
.chat-launcher{
  position:fixed; right:22px; bottom:22px; z-index:300;
  width:64px; height:64px; border-radius:50%; border:none;
  background:linear-gradient(135deg,var(--cyan-400),var(--blue-500));
  box-shadow:0 14px 34px -8px rgba(59,95,168,.65);
  display:flex; align-items:center; justify-content:center;
  color:#fff; transition:transform .3s var(--ease);
}
.chat-launcher:hover{ transform:scale(1.07); }
.chat-launcher svg{ width:28px; height:28px; }
.chat-launcher .icon-close{ display:none; }
.chat-launcher.is-open .icon-chat{ display:none; }
.chat-launcher.is-open .icon-close{ display:block; }
.chat-launcher .ping{
  position:absolute; top:-3px; right:-3px; width:16px; height:16px; border-radius:50%; background:var(--danger);
  border:2px solid #fff; animation:pulse 2s ease infinite;
}
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 rgba(214,69,69,.6);} 70%{ box-shadow:0 0 0 10px rgba(214,69,69,0);} 100%{ box-shadow:0 0 0 0 rgba(214,69,69,0);} }

.chat-teaser{
  position:fixed; right:22px; bottom:98px; z-index:299;
  width:252px; background:#fff; border-radius:18px; border-bottom-right-radius:6px;
  box-shadow:var(--shadow-lg); padding:16px 34px 16px 18px;
  opacity:0; transform:translateY(12px) scale(.96); pointer-events:none;
  transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.chat-teaser.is-visible{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; cursor:pointer; }
.chat-teaser p{ font-size:.86rem; line-height:1.45; color:var(--text-700); }
.chat-teaser strong{ color:var(--indigo-700); }
.chat-teaser::after{
  content:""; position:absolute; right:26px; bottom:-8px; width:16px; height:16px;
  background:#fff; clip-path:polygon(0 0, 100% 0, 0 100%); border-bottom-right-radius:3px;
}
.chat-teaser-close{
  position:absolute; top:8px; right:8px; width:22px; height:22px; border-radius:50%; border:none;
  background:var(--surface-2); color:var(--text-400); display:flex; align-items:center; justify-content:center;
}
.chat-teaser-close svg{ width:12px; height:12px; }
.chat-teaser-close:hover{ background:var(--surface-3); color:var(--text-700); }
@media (max-width:480px){ .chat-teaser{ right:16px; bottom:88px; width:min(230px, 62vw); } }

.chat-panel{
  position:fixed; right:22px; bottom:98px; z-index:300;
  width:min(400px, 92vw); height:min(600px, 72vh);
  background:#fff; border-radius:24px; box-shadow:var(--shadow-lg); border:1px solid var(--line);
  display:flex; flex-direction:column; overflow:hidden;
  transform:translateY(20px) scale(.96); opacity:0; pointer-events:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.chat-panel.is-open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.chat-head{
  background:linear-gradient(135deg,var(--indigo-700),var(--blue-500));
  padding:18px 20px; color:#fff; display:flex; align-items:center; gap:12px; flex:none;
}
.chat-head .avatar{ width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; }
.chat-head .avatar svg{ width:22px; height:22px; }
.chat-head strong{ display:block; font-size:.95rem; }
.chat-head .status{ font-size:.75rem; color:rgba(255,255,255,.85); display:flex; align-items:center; gap:6px; }
.chat-head .status .dot{ width:7px; height:7px; border-radius:50%; background:#3ee08f; }
.chat-body{ flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:12px; background:var(--surface-1); }
.msg{ max-width:84%; padding:12px 15px; border-radius:16px; font-size:.9rem; line-height:1.55; }
.msg.bot{ background:#fff; border:1px solid var(--line); align-self:flex-start; border-bottom-left-radius:4px; color:var(--text-700); }
.msg.user{ background:linear-gradient(135deg,var(--indigo-600),var(--blue-500)); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.msg.typing{ display:flex; gap:4px; align-items:center; padding:14px 16px; }
.msg.typing span{ width:6px; height:6px; border-radius:50%; background:var(--text-400); animation:typing 1.2s ease infinite; }
.msg.typing span:nth-child(2){ animation-delay:.2s; }
.msg.typing span:nth-child(3){ animation-delay:.4s; }
@keyframes typing{ 0%,60%,100%{ transform:translateY(0); opacity:.4; } 30%{ transform:translateY(-4px); opacity:1; } }
.chat-suggestions{ display:flex; flex-wrap:wrap; gap:8px; padding:0 18px 14px; flex:none; background:var(--surface-1); }
.chat-chip{
  font-size:.76rem; font-weight:600; padding:8px 12px; border-radius:100px; background:#fff; border:1px solid var(--line);
  color:var(--indigo-700); transition:background .2s ease, border-color .2s ease;
}
.chat-chip:hover{ background:var(--surface-2); border-color:var(--blue-500); }
.chat-input{ display:flex; gap:10px; padding:14px; border-top:1px solid var(--line); flex:none; background:#fff; }
.chat-input input{
  flex:1; border:1.5px solid var(--line); border-radius:100px; padding:11px 16px; font-size:.9rem; background:var(--surface-1);
}
.chat-input input:focus{ outline:none; border-color:var(--blue-500); background:#fff; }
.chat-input button{
  width:42px; height:42px; border-radius:50%; border:none; background:linear-gradient(135deg,var(--cyan-400),var(--blue-500));
  color:#fff; display:flex; align-items:center; justify-content:center; flex:none;
}
.chat-input button svg{ width:18px; height:18px; }
.chat-input button:disabled{ opacity:.5; }
.chat-disclaimer{ font-size:.68rem; color:var(--text-400); text-align:center; padding:6px 14px 12px; flex:none; background:#fff; }

@media (max-width:480px){
  .chat-panel{ right:12px; bottom:88px; width:calc(100vw - 24px); height:70vh; }
  .chat-launcher{ right:16px; bottom:16px; }
}

/* ---------- Floating call button ---------- */
.call-float{
  position:fixed; left:22px; bottom:22px; z-index:280;
  width:60px; height:60px; border-radius:50%; background:#1fa970; color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:0 14px 34px -8px rgba(31,169,112,.65);
  transition:transform .3s var(--ease);
}
.call-float:hover{ transform:scale(1.08); }
.call-float svg{ width:28px; height:28px; }
@media (max-width:480px){ .call-float{ left:16px; bottom:16px; width:52px; height:52px; } .call-float svg{ width:24px; height:24px; } }

/* ---------- Misc ---------- */
.skip-link{
  position:fixed; left:12px; top:-60px; z-index:999; background:var(--indigo-700); color:#fff; padding:12px 18px;
  border-radius:10px; transition:top .25s ease;
}
.skip-link:focus{ top:12px; }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
::selection{ background:var(--cyan-400); color:#0d0a24; }

.divider-wave{ display:block; width:100%; height:auto; margin-top:-1px; }
