/* ============================================================
   CUREX24 — Professional Design System
   Inter throughout · Navy ink · Pastel lavender→sky palette · Emerald accent
   Palette source: site-wide reference (lavender · white · sky-blue · cream)
   ============================================================ */
:root {
  /* Surfaces — soft pastel lavender → white wash */
  --bg:           #f4eff8;   /* very soft lavender base */
  --bg-deep:      #ece4f3;   /* deeper lavender mist */
  --surface:      #ffffff;
  --surface-2:    #faf6fc;   /* near-white with lavender warmth */

  /* Ink */
  --ink:          #0f172a;   /* slate-900 */
  --ink-soft:     #334155;   /* slate-700 */
  --muted:        #64748b;   /* slate-500 */
  --muted-2:      #94a3b8;   /* slate-400 */
  --rule:         #e5dcef;   /* lavender border */
  --rule-soft:    #efe9f6;

  /* Brand */
  --primary:      #2554f0;   /* vibrant blue (matches CTA button in palette) */
  --primary-dark: #1a3fcc;
  --primary-soft: #e7ecff;
  --accent:       #0f8a5b;   /* emerald green (matches badge accent) */
  --accent-soft:  #e3f5ec;
  --green:        #0f8a5b;
  --amber:        #b45309;
  --danger:       #b91c1c;

  /* Site-wide mesh tints — soft blobs that compose the page background */
  --wash-lavender: rgba(124, 58, 237, 0.10);
  --wash-sky:      rgba(14, 165, 233, 0.12);
  --wash-cream:    rgba(253, 224, 158, 0.18);
  --wash-mint:     rgba(15, 138, 91,  0.07);

  /* Legacy aliases */
  --canvas:       var(--bg);
  --canvas-deep:  var(--bg-deep);
  --text:         var(--ink);
  --border:       var(--rule);
  --clay:         var(--primary);
  --clay-deep:    var(--primary-dark);
  --clay-soft:    var(--primary-soft);
  --moss:         var(--accent);
  --moss-soft:    var(--accent-soft);
  --gold:         var(--amber);
  --gold-soft:    #fef3c7;
  --plum:         #6d28d9;
  --ink-blue:     var(--primary-dark);

  /* Shadows — subtle, professional */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow:    0 4px 6px -2px rgba(15, 23, 42, 0.05), 0 12px 24px -8px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 20px 40px -12px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 30px 60px -20px rgba(15, 23, 42, 0.18);

  /* Type — Inter only */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Geometry */
  --radius:    10px;
  --radius-sm: 8px;
  --radius-lg: 14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 0.22s var(--ease);

  --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01", "calt";
}

/* Site-wide pastel mesh background — fixed via pseudo-element (avoids the
   scroll/repaint cost of `background-attachment: fixed`, especially on mobile).
   Lavender top-left → white center → sky-blue top-right, warm cream bottom-right,
   mint bottom-left, over a soft lavender base. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 10% 8%,  var(--wash-lavender), transparent 60%),
    radial-gradient(55% 45% at 92% 6%,  var(--wash-sky),      transparent 62%),
    radial-gradient(55% 55% at 92% 96%, var(--wash-cream),    transparent 65%),
    radial-gradient(55% 55% at 8% 96%,  var(--wash-mint),     transparent 65%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

h1, h2, h3, h4 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
  line-height: 1.15;
}
h3 { font-weight: 600; letter-spacing: -0.014em; line-height: 1.3; }

p { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.15rem; }
a { color: var(--primary); }

/* Headline accent — same family, just colored. No italic, no serif. */
.serif-accent,
.gradient-text {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: var(--primary);
  letter-spacing: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
}

::selection { background: var(--primary); color: #fff; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 6rem 0; position: relative; }
.header, main, .footer { position: relative; z-index: 2; }

/* Background — clean, no blobs */
.bg-fx { display: none; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head .section-tag { margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); margin-bottom: 0.85rem; }
.section-sub {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0.4rem auto 0;
  max-width: 58ch;
  line-height: 1.65;
}

.section-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }

/* ============================================================
   HEADER & NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  z-index: 100;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}

.nav { display: flex; justify-content: space-between; align-items: center; min-height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-logo { display: block; height: 44px; width: auto; max-width: 100%; object-fit: contain; transition: transform var(--transition); }
.brand:hover .brand-logo { transform: scale(1.02); }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.2px; color: var(--ink); white-space: nowrap; }
.footer-brand-logo { height: 40px; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 0.15rem; padding: 0; margin: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-deep); }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); }

.nav-links .nav-cta > a {
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  margin-left: 0.5rem;
  font-weight: 500;
  box-shadow: none;
  transition: background var(--transition), transform var(--transition);
}
.nav-links .nav-cta > a:hover { background: var(--primary); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 8px;
  transition: background var(--transition), border-color var(--transition);
}
.nav-toggle:hover { background: var(--bg-deep); border-color: var(--ink); }
.nav-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(37,99,235,0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--rule);
}
.hero::before, .hero::after { content: none; }

.hero-grid {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #dbe6ff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 1.4rem;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37,99,235,0.5); }
  70%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(37,99,235,0); }
}
@media (prefers-reduced-motion: no-preference) {
  .eyebrow .dot { animation: pulse-dot 2.4s ease-out infinite; }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 1.4rem;
  max-width: 20ch;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 54ch;
  line-height: 1.65;
  font-weight: 400;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.hero-stat { flex: 1; min-width: 110px; padding: 0 1.4rem; border-left: 1px solid var(--rule); }
.hero-stat:first-child { padding-left: 0; border-left: 0; }
.hero-stat-number {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   LIVE PANEL
   ============================================================ */
.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(22,163,74,0.6);
}
@media (prefers-reduced-motion: no-preference) { .status-dot { animation: status-pulse 2s ease-out infinite; } }
@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); }
  100% { box-shadow: 0 0 0 10px rgba(22,163,74,0); }
}
.panel-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.panel-feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.panel-feed li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--rule-soft);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.panel-feed li:hover { transform: translateX(2px); background: var(--bg-deep); border-color: var(--rule); }
.panel-feed li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.panel-feed li strong { font-size: 0.88rem; color: var(--ink); font-weight: 600; }
.panel-feed li span { font-size: 0.78rem; color: var(--muted); }
.feed-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.feed-icon--blue     { background: #eff4ff; }
.feed-icon--teal     { background: #ecfdf5; }
.feed-icon--green    { background: #f0fdf4; }
.feed-icon--whatsapp { background: #ecfdf3; }
.feed-icon--amber    { background: #fef3c7; }

.panel-footer {
  display: flex;
  gap: 1.4rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--rule);
}
.panel-foot-stat { font-size: 0.78rem; color: var(--muted); }
.panel-foot-stat strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-right: 0.3rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(15,23,42,0.08);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -4px rgba(37,99,235,0.4);
}

.btn-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--rule);
}
.btn-secondary:hover {
  background: var(--bg-deep);
  border-color: var(--ink-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-whatsapp {
  color: #126a34;
  border-color: #c6e9d3;
  background: #f0fdf4;
}
.btn-whatsapp:hover {
  background: #126a34;
  color: #fff;
  border-color: #126a34;
  transform: translateY(-1px);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
  letter-spacing: -0.012em;
}
.card-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 0.8rem; display: block; }
.card.mini { padding: 1.35rem; }
.mini p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* ============================================================
   GRIDS
   ============================================================ */
.grid { display: grid; gap: 1.2rem; }
.grid.two   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.five  { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.muted {
  background: var(--surface-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.strip { background: var(--bg-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cta {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--rule);
  position: relative;
}

/* ============================================================
   PROBLEM TILES
   ============================================================ */
.problem-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.problem-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.problem-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.problem-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}
.problem-tile:hover::before { transform: scaleX(1); }

.problem-num {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  -webkit-text-stroke: 0;
}
.problem-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.problem-tile h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.012em;
}
.problem-tile p { color: var(--muted); font-size: 0.93rem; margin: 0 0 1rem; line-height: 1.6; }
.problem-fix {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.3rem 0.65rem;
  background: var(--accent-soft);
  border: 1px solid #c8e9dd;
  border-radius: 999px;
}

/* ============================================================
   TRUST MARQUEE
   ============================================================ */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 1rem 0;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee-scroll 45s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-weight: 500; font-size: 0.9rem; color: #fff; }
.marquee-dot { opacity: 0.4; color: var(--primary); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================================================
   WORKFLOW
   ============================================================ */
.workflow-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.wf-step {
  flex: 1 1 200px;
  min-width: 200px;
  max-width: 240px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-xs);
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.wf-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.wf-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}
.wf-icon { display: block; font-size: 1.5rem; line-height: 1; margin-bottom: 0.55rem; }
.wf-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; letter-spacing: -0.012em; }
.wf-step p { color: var(--muted); font-size: 0.87rem; margin: 0; line-height: 1.55; }

.wf-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  opacity: 0.7;
  flex: 0 0 60px;
}
@media (prefers-reduced-motion: no-preference) {
  .wf-arrow svg path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: arrow-draw 2.6s ease-in-out infinite; }
  .wf-arrow:nth-of-type(2) svg path { animation-delay: 0.4s; }
  .wf-arrow:nth-of-type(4) svg path { animation-delay: 0.8s; }
  .wf-arrow:nth-of-type(6) svg path { animation-delay: 1.2s; }
}
@keyframes arrow-draw {
  0%   { stroke-dashoffset: 80;  opacity: 0.3; }
  50%  { stroke-dashoffset: 0;   opacity: 1; }
  100% { stroke-dashoffset: -80; opacity: 0.3; }
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  perspective: 1600px;
}
.feature3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease);
  will-change: transform;
}
.feature3d-inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.feature3d:hover .feature3d-inner {
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}
.feature3d-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: radial-gradient(500px circle at var(--glow-x, 50%) var(--glow-y, 0%),
    rgba(37,99,235,0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.feature3d:hover .feature3d-glow { opacity: 1; }
.feature3d-shine { display: none; }

.feature3d-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1rem;
  transform: translateZ(20px);
}
.feature3d-badge--alt    { background: var(--accent-soft); color: var(--accent); }
.feature3d-badge--accent { background: #f5f3ff; color: var(--plum); }
.feature3d-badge--warn   { background: #fef3c7; color: var(--amber); }

.feature3d h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin-bottom: 0.5rem;
  transform: translateZ(20px);
  line-height: 1.2;
}
.feature3d > .feature3d-inner > p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  transform: translateZ(15px);
  max-width: 42ch;
}
.feature3d ul {
  list-style: none;
  padding: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
  margin: 0;
  transform: translateZ(12px);
  border-top: 1px solid var(--rule);
}
.feature3d ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.feature3d ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

/* ============================================================
   ROLES
   ============================================================ */
.role-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.role-card:hover { border-color: #cbd5e1; }
.role-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 0.8rem;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border: 1px solid #dbe6ff;
  border-radius: 10px;
}
.role-carousel { position: relative; margin-top: 1.4rem; }
.role-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.6rem 0.4rem 1.2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.role-scroller::-webkit-scrollbar { display: none; }
.role-scroller .role-card {
  flex: 0 0 calc((100% - 3rem) / 4);
  min-width: 220px;
  scroll-snap-align: start;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.role-scroller .role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.role-scroller:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: var(--radius-lg); }
.role-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.role-carousel-btn.carousel-btn--prev { left: -22px; }
.role-carousel-btn.carousel-btn--next { right: -22px; }

/* ============================================================
   AUTOMATION CARDS
   ============================================================ */
.automation-grid .auto-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.automation-grid .auto-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.automation-grid .auto-card:hover::before { transform: scaleX(1); }

/* ============================================================
   TRUST CARDS
   ============================================================ */
.trust-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 0.85rem;
}
.trust-icon { font-size: 1.15rem; }
.trust-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.trust-card ul li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.trust-card ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   CAROUSELS
   ============================================================ */
.carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.carousel-slide { flex: 0 0 100%; min-width: 0; padding: 0.4rem; box-sizing: border-box; }
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}
.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.carousel-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.carousel-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--rule);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}
.carousel-dot.is-active { width: 24px; background: var(--primary); }
.carousel-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.25rem 1.85rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  color: var(--primary);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
  font-weight: 700;
}
.testimonial-stars { color: var(--amber); letter-spacing: 0.18em; font-size: 0.95rem; }
.testimonial-quote {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  flex: 0 0 auto;
  box-shadow: var(--shadow-xs);
}
.testimonial-person strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.testimonial-person span { color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   HIGHLIGHTS
   ============================================================ */
.highlight-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}
.highlight-card::before { content: none; }
.highlight-art {
  position: relative;
  background: linear-gradient(135deg, var(--hl-from, var(--primary)), var(--hl-to, var(--primary-dark)));
  border-radius: var(--radius);
  padding: 1.3rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 240px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.hl-chip {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.hl-bar { height: 6px; background: rgba(255,255,255,0.22); border-radius: 999px; overflow: hidden; margin: 0.2rem 0 0.5rem; }
.hl-bar span { display: block; height: 100%; background: #fff; border-radius: 999px; animation: hl-fill 1.4s var(--ease) both; }
@keyframes hl-fill { from { width: 0 !important; } }
.hl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255,255,255,0.14);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
}
.hl-row--total { background: rgba(255,255,255,0.25); font-weight: 600; }
.hl-pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.25);
}
.hl-pill--blue  { background: #dbeafe; color: #1d4ed8; }
.hl-pill--amber { background: #fef3c7; color: #92400e; }
.hl-pill--green { background: #dcfce7; color: #166534; }
.hl-note {
  background: rgba(255,255,255,0.16);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.hl-bubble {
  background: #fff;
  color: var(--ink);
  padding: 0.8rem 0.95rem;
  border-radius: 14px 14px 14px 4px;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.hl-pay {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.95;
}
.highlight-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.4rem 0.4rem 0.4rem 0.6rem;
}
.highlight-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0.3rem 0.7rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
}
.highlight-meta h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.highlight-meta p { color: var(--muted); margin: 0; line-height: 1.6; font-size: 0.98rem; }

/* ============================================================
   OFFER
   ============================================================ */
.offer-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 3rem 2.75rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.offer-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-primary);
}
.offer-card::after { display: none; }
.offer-ribbon {
  position: absolute;
  top: 22px;
  right: -50px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 3.2rem;
  transform: rotate(35deg);
  box-shadow: var(--shadow);
  z-index: 2;
}
.offer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.offer-grid--single { grid-template-columns: 1fr; }
.offer-tag { color: var(--primary); background: var(--primary-soft); }
.offer-content h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}
.offer-content .lead { font-size: 1.04rem; max-width: 54ch; }
.offer-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.6rem;
  display: grid;
  gap: 0.6rem;
}
.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.offer-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 3px;
}
.offer-fineprint { margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); font-style: italic; }

.offer-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.meter-ring { position: relative; }
.meter-progress { transition: stroke-dashoffset 1.4s var(--ease); }
.meter-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.meter-number {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.meter-number span { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.meter-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 0.45rem;
}
.meter-hint { margin: 0; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }
.meter-hint strong { color: var(--primary); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .offer-ribbon { animation: ribbon-bob 5s ease-in-out infinite; }
}
@keyframes ribbon-bob {
  0%,100% { transform: rotate(35deg) translateY(0); }
  50%     { transform: rotate(35deg) translateY(-3px); }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 820px;
  margin: 0 auto;
}
details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
details:hover { box-shadow: var(--shadow-sm); border-color: #cbd5e1; }
details[open] { box-shadow: var(--shadow-sm); border-color: #cbd5e1; }
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 1.05rem 1.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background var(--transition);
}
summary:hover { background: var(--surface-2); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--transition);
  line-height: 1;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  margin: 0;
  color: var(--muted);
  padding: 0 1.3rem 1.15rem;
  line-height: 1.7;
  font-size: 0.94rem;
}
.faq-heading { text-align: center; margin-bottom: 2rem; }

/* ============================================================
   CTA & LEAD FORM
   ============================================================ */
.cta-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-grid h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.lead-form {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 2rem 2rem;
  display: grid;
  gap: 1rem;
  overflow: hidden;
}
.lead-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-primary);
}
.lead-form-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.lead-form-eyebrow {
  display: inline-flex;
  align-self: start;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.lead-form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.018em;
  margin: 0.2rem 0 0;
}
.lead-form-sub { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.5; }
.lead-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-transform: none;
}
.lead-form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted-2);
  font-size: 0.78rem;
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font: inherit;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  background: #fff;
  color: var(--ink);
  text-transform: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--muted-2); font-weight: 400; }
.lead-form input:hover,
.lead-form textarea:hover { border-color: #94a3b8; }
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
  background: #fff;
}
.lead-form-submit {
  margin-top: 0.6rem;
  padding: 0.95rem 1.3rem;
  font-size: 0.95rem;
  border-radius: 8px;
}
.lead-form-note { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--muted); text-align: center; }

input, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  color: #fff;
  background: #16a34a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 200;
  box-shadow: 0 10px 24px -8px rgba(22,163,74,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(22,163,74,0.55);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #16a34a;
  z-index: -1;
}
@keyframes wa-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.25); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::before { animation: wa-pulse 2.6s ease-in-out infinite; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}
.footer p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.footer-links { display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 0; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal,
.reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-group.visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-group.visible > *:nth-child(6) { transition-delay: 0.35s; }
.reveal-group.visible > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 2.5rem; }
}

@media (max-width: 900px) {
  .highlight-card { grid-template-columns: 1fr; }
  .highlight-art { min-height: 220px; }
  .testimonial-card { padding: 1.8rem 1.5rem 1.5rem; min-height: 240px; }
  .testimonial-quote { font-size: 1.02rem; }
  .role-scroller .role-card { flex: 0 0 78%; min-width: 0; }
  .role-carousel-btn { display: none; }
  .carousel { grid-template-columns: 1fr; }
  .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
  .carousel-btn.carousel-btn--prev { left: -4px; }
  .carousel-btn.carousel-btn--next { right: -4px; }
  .carousel-viewport { margin: 0 36px; }
  .carousel-dots { margin-top: 1.2rem; }
}

@media (max-width: 800px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid,
  .cta-grid,
  .grid.three,
  .grid.two,
  .grid.five,
  .grid.four,
  .offer-grid { grid-template-columns: 1fr; }

  .offer-card { padding: 2.25rem 1.4rem; }
  .offer-ribbon { right: -58px; top: 22px; font-size: 0.6rem; padding: 0.35rem 3rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--rule);
    padding: 0.9rem 1rem 1.1rem;
    flex-direction: column;
    gap: 0.2rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.7rem 1rem; }
  .nav-links .nav-cta > a { margin: 0.4rem 0 0; }
  .nav-toggle { display: flex; }

  .section { padding: 4rem 0; }

  .problem-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }

  .workflow-flow { flex-direction: column; align-items: stretch; }
  .wf-step { max-width: 100%; }
  .wf-arrow { transform: rotate(90deg); flex: 0 0 28px; height: 28px; }

  .hero-stats { gap: 0; }
  .hero-stat { padding: 0.5rem 1rem; border-left: 0; border-top: 1px solid var(--rule); flex: 1 1 45%; }
  .hero-stat:first-child, .hero-stat:nth-child(2) { border-top: 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .meter-ring svg { width: 150px; height: 150px; }
}

@media (max-width: 480px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; width: 100%; }
  .testimonial-card { padding: 1.6rem 1.3rem 1.3rem; }
  .testimonial-card::before { font-size: 5rem; }
  .offer-card { padding: 2rem 1.2rem; }
  .lead-form { padding: 1.85rem 1.3rem 1.5rem; }
}

/* ============================================================
   REDUCED MOTION — global guards
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .btn:hover, .whatsapp-float:hover { transform: none; }
  .card, .btn, .whatsapp-float { transition: none; }
  .status-dot, .offer-ribbon, .wf-arrow svg path { animation: none; }
  .feature3d-inner { transform: none !important; }
  .hl-bar span { animation: none; width: 78% !important; }
  .carousel-track { transition: none; }
  .modal, .modal-dialog { animation: none !important; }
}

/* ============================================================
   CTA centered layout (no inline form — opens modal instead)
   ============================================================ */
.cta-center {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.cta-center h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}
.cta-center .section-tag { margin-bottom: 1rem; }
.cta-row--center { justify-content: center; }

/* ============================================================
   MODAL (Demo request)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}
.modal[hidden] { display: none; }
.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: transparent;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
  -webkit-overflow-scrolling: touch;
}
.modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.modal-close:hover {
  color: var(--ink);
  border-color: #94a3b8;
  background: #f8fafc;
}
.modal-close:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}
.lead-form--modal {
  margin: 0;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35), 0 8px 24px rgba(15, 23, 42, 0.12);
}
body.modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .modal { padding: 0.75rem; align-items: flex-end; }
  .modal-dialog { max-height: calc(100vh - 1.5rem); }
  .lead-form--modal { padding: 1.85rem 1.3rem 1.5rem; }
  .modal-close { top: 0.6rem; right: 0.6rem; }
}
