/* ==========================================================================
   SyncSentrix — Synccion landing page
   Light, clean hero + header; bold dark sections below; GSAP/ScrollSmoother
   driven motion. Base CSS renders a complete, readable page with zero JS;
   script.js progressively enhances it (see the .js-enhanced gate below).
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F3F5FA;
  --bg-dark: #05070A;
  --bg-dark-2: #0D1220;

  --ink: #0A0C10;
  --ink-70: #454B58;
  --ink-50: #767B8A;

  --on-dark: #F5F7FB;
  --on-dark-60: #8D93A6;

  --line: #E2E6F0;
  --line-strong: #C9D0E2;
  --line-dark: #1C212E;

  --blue: #1E2A8F;
  --blue-2: #161F6B;
  --blue-glow: #7C89E0;
  --blue-soft: #E5E7F7;
  --cyan: #7FD8EC;
  --cyan-soft: #E4F9FC;
  --loader-bg: #0A1240;

  --ok: #1FAE5C;
  --ok-bg: rgba(31, 174, 92, 0.14);
  --warn: #E8940C;
  --warn-bg: rgba(232, 148, 12, 0.14);
  --crit: #EF4444;
  --crit-bg: rgba(239, 68, 68, 0.14);

  --shadow-sm: 0 1px 2px rgba(5, 7, 10, 0.08);
  --shadow-md: 0 14px 32px -12px rgba(5, 7, 10, 0.22);
  --shadow-lg: 0 34px 70px -20px rgba(5, 7, 10, 0.4);

  --font-display: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --edge: clamp(20px, 5vw, 64px);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: inherit; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--edge); }
.container.narrow { max-width: 860px; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--blue); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm); z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Type utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.02em; text-transform: none; color: var(--blue);
  margin: 0 0 14px;
}
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.4rem, 1.9rem + 2.6vw, 4.2rem); font-weight: 700; line-height: 0.98; }
.section-head p.lead { margin-top: 18px; font-size: 1.0625rem; color: var(--ink-70); max-width: 46ch; font-family: var(--font-body); text-transform: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
section { padding-block: clamp(72px, 10vw, 128px); }

.dot-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--ok); animation: pulse-ring 2.2s cubic-bezier(0.3, 0.6, 0.4, 1) infinite;
}
@keyframes pulse-ring { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.1); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-magnetic { will-change: transform; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 18px 34px; font-size: 1.02rem; }
.btn:disabled { opacity: 0.6; cursor: default; }
.link-cta { font-weight: 500; font-size: 0.95rem; padding: 10px 6px; white-space: nowrap; opacity: 0.75; }
.link-cta:hover { opacity: 1; }

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--loader-bg);
  display: flex; align-items: center; justify-content: center;
  animation: preloader-curtain 0.8s cubic-bezier(0.7, 0, 0.84, 0) 1.7s forwards;
}
.loader-logo {
  width: min(58vw, 300px); height: auto;
  opacity: 0; transform: translateY(14px) scale(0.96);
  animation: loader-logo-in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s forwards;
}
@keyframes loader-logo-in { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes preloader-curtain { to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) {
  #preloader { animation: none; display: none; }
  .loader-logo { animation: none; opacity: 1; transform: none; }
}
noscript #preloader, .no-js #preloader { display: none !important; }

/* ==========================================================================
   Header — light, clean, always sticky
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
/* ScrollSmoother pulls #smooth-content out of normal flow relative to the
   header (see the JS next to ScrollSmoother.create for why) — this restores
   the gap the header's real height should have reserved. */
.smooth-active #smooth-content { padding-top: var(--header-h); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--ink); flex: none; white-space: nowrap;
}
.brand-icon { width: 24px; height: auto; flex: none; transform: rotate(90deg); }
.brand-logo { height: 34px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 0.92rem; font-weight: 500; white-space: nowrap; color: var(--ink-70); }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.mobile-nav-cta { display: none; }
.nav-toggle {
  display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong); color: var(--ink); flex: none;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ==========================================================================
   Hero — light, dot-grid, floating bubbles (Clause-style composition)
   ========================================================================== */
.hero { position: relative; overflow: clip; background: var(--bg); color: var(--ink); padding-block: clamp(56px, 8vw, 96px) 0; }
.hero-dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--line-strong) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 38%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 70% at 50% 38%, #000 35%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-copy { max-width: 800px; margin-inline: auto; position: relative; }
.hero-inner .eyebrow { justify-content: center; }
.hero h1 {
  font-size: clamp(2.6rem, 1.7rem + 4.2vw, 5.6rem);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.01em; color: var(--ink);
}
.hero h1 .accent { position: relative; color: var(--blue); display: inline-block; }
.hero h1 .accent .underline-mark { position: absolute; left: -2%; right: -2%; bottom: -0.14em; width: 104%; height: 0.3em; overflow: visible; }
.hero h1 .accent .underline-mark path { stroke: var(--blue); stroke-width: 7; fill: none; stroke-linecap: round; opacity: 0.55; }
.hero-sub { margin: 26px auto 0; max-width: 46ch; font-size: 1.125rem; color: var(--ink-70); text-transform: none; font-family: var(--font-body); }
.hero-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 38px; }

.hero-stage { position: relative; max-width: 1080px; margin-inline: auto; height: clamp(60px, 10vw, 120px); }
.hero-bubble {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 16px 7px 7px; box-shadow: var(--shadow-md);
}
.hero-bubble .bubble-icon {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.hero-bubble .bubble-text { font-size: 0.78rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hero-bubble .bubble-sub { display: block; font-size: 0.66rem; font-weight: 400; color: var(--ink-50); }
.bubble-arrow { position: absolute; width: 20px; height: 20px; color: var(--ink-50); opacity: 0.5; }

.hero-b1 { top: -10px; left: 2%; }
.hero-b1 .bubble-arrow { right: -22px; top: 8px; transform: rotate(20deg); }
.hero-b2 { top: 6px; right: 3%; }
.hero-b2 .bubble-arrow { left: -22px; top: 8px; transform: scaleX(-1) rotate(20deg); }
.hero-b3 { bottom: -10px; left: 14%; }
.hero-b3 .bubble-arrow { right: -20px; top: -10px; transform: rotate(-30deg); }
.hero-b4 { bottom: -16px; right: 13%; }
.hero-b4 .bubble-arrow { left: -20px; top: -10px; transform: scaleX(-1) rotate(-30deg); }

.hero-strip {
  position: relative; z-index: 1; margin-top: clamp(52px, 7vw, 84px);
  border-top: 1px solid var(--line); padding-block: 26px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.hero-strip-label { font-size: 0.85rem; color: var(--ink-50); max-width: 18ch; flex: none; text-align: left; }
.hero-strip-items { display: flex; align-items: center; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap; row-gap: 10px; }
.hero-strip-items span { font-size: 1.05rem; color: var(--ink-50); }
.hs-serif { font-family: var(--font-display); font-style: normal; font-size: 1.25rem; text-transform: uppercase; }
.hs-mono { font-family: var(--font-mono); font-size: 0.92rem; }

@media (max-width: 900px) {
  .hero-stage { display: none; }
  .hero-strip { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Marquee ticker
   ========================================================================== */
.marquee { overflow: hidden; white-space: nowrap; background: var(--bg-alt); color: var(--ink-70); border-block: 1px solid var(--line); }
.marquee-track { display: inline-flex; align-items: center; width: max-content; padding-block: 16px; }
/* Plain CSS animation (compositor-only, no per-frame JS) instead of a
   GSAP-ticked tween — these run continuously for the whole time the page
   is open, so keeping them off the main thread matters. */
#marqueeTrack1 { animation: marquee-scroll 28s linear infinite; }
#marqueeTrack2 { animation: marquee-scroll 34s linear infinite; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
.marquee-seq { display: inline-flex; align-items: center; }
.marquee-item { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem); letter-spacing: 0.01em; padding-inline: 1.1rem; }
.marquee-sep { opacity: 0.55; font-size: 1.2rem; }
.marquee.alt { background: var(--bg); color: var(--ink-50); border-color: var(--line); }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-tile { background: var(--bg); padding: 36px 28px; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem); line-height: 1; color: var(--ink); }
.stat-label { display: block; margin-top: 10px; font-size: 0.88rem; color: var(--ink-70); max-width: 22ch; }

/* ==========================================================================
   Como Funciona
   ========================================================================== */
.pin-section { background: var(--bg); color: var(--ink); }
.pin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.pin-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pin-step { border-top: 2px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.pin-step-num { font-family: var(--font-mono); color: var(--blue); font-size: 0.95rem; }
.pin-step h3 { font-size: 1.4rem; font-weight: 700; }
.pin-step p { color: var(--ink-70); font-size: 0.96rem; }

.industries { padding-block: 0; }

/* ==========================================================================
   Recursos
   ========================================================================== */
/* This section is a deliberate accent moment — bolder and looser than the
   rest of the (calm, professional) page, not a pattern to repeat elsewhere. */
.stack-section { background: var(--bg-alt); position: relative; overflow: clip; }
.stack-shape { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.stack-shape-1 { width: 260px; height: 260px; background: var(--cyan-soft); top: -80px; right: 5%; }
.stack-shape-2 { width: 170px; height: 170px; background: var(--blue-soft); bottom: 6%; left: 2%; }

.stack-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 52px; flex-wrap: wrap; position: relative; z-index: 1; }
.stack-badge {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--ink); color: #fff; transform: rotate(-10deg);
  display: flex; align-items: center; justify-content: center;
}

.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; position: relative; z-index: 1; }
.stack-card {
  background: var(--bg); border: 2.5px solid var(--ink); border-radius: 30px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 22px; height: 100%;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.stack-card:hover { transform: translateY(-6px); box-shadow: 8px 8px 0 var(--ink); }

.stack-num {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.stack-card:nth-child(even) .stack-num { background: var(--cyan); color: var(--ink); }
.stack-card h3 { font-size: 1.4rem; font-weight: 700; }
.stack-features { display: flex; flex-direction: column; gap: 20px; }
.stack-feature { display: flex; gap: 14px; align-items: flex-start; }
.stack-feature-icon {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.stack-card:nth-child(even) .stack-feature-icon { background: var(--cyan-soft); }
.stack-feature h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.stack-feature p { color: var(--ink-70); font-size: 0.92rem; }

/* ==========================================================================
   Dashboard showcase
   ========================================================================== */
.showcase { background: var(--bg); overflow: clip; position: relative; }
.showcase-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.showcase-points { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.showcase-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; color: var(--ink-70); }
.showcase-points svg { flex: none; color: var(--blue); margin-top: 3px; }
.showcase-copy > .btn { margin-top: 30px; }

.browser-mockup { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-chrome { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.browser-chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-body { display: flex; background: var(--bg-dark); color: var(--on-dark); min-height: 380px; }
.dash-sidebar { width: 64px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 22px; padding-block: 24px; border-right: 1px solid var(--line-dark); }
.dash-sidebar svg { width: 19px; height: 19px; color: var(--on-dark-60); }
.dash-sidebar .is-active svg { color: var(--blue-glow); }
.dash-main { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi-tile { background: rgba(245, 247, 251, 0.04); border: 1px solid var(--line-dark); border-radius: var(--r-sm); padding: 14px; }
.kpi-tile .kpi-label { font-size: 0.64rem; color: var(--on-dark-60); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-body); }
.kpi-tile .kpi-num { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600; margin-top: 6px; }
.dash-chart-panel { background: rgba(245, 247, 251, 0.04); border: 1px solid var(--line-dark); border-radius: var(--r-sm); padding: 16px; }
.dash-chart-panel .panel-label { font-size: 0.72rem; color: var(--on-dark-60); margin-bottom: 10px; display: block; font-family: var(--font-body); }
.dash-chart-panel svg { width: 100%; height: 110px; }
.dash-table { display: flex; flex-direction: column; gap: 8px; }
.dash-row { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; background: rgba(245, 247, 251, 0.04); border: 1px solid var(--line-dark); border-radius: var(--r-sm); padding: 9px 12px; }
.dash-row .machine-reading { margin-left: auto; font-family: var(--font-mono); }
.machine-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ok); }
.machine-dot.warn { background: var(--warn); }

/* ==========================================================================
   Equipe
   ========================================================================== */
.team-section { background: var(--bg); }

/* One elaborate profile at a time, alternating sides, instead of a compact
   grid — reads more like an editorial "meet the team" than a directory. */
.team-profiles { display: flex; flex-direction: column; }
.team-profile {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center;
  padding-block: 56px; border-top: 1px solid var(--line);
}
.team-profile:first-child { border-top: 0; padding-top: 0; }
.team-profile.is-reverse { grid-template-columns: 1.15fr 0.85fr; }
.team-profile.is-reverse .team-profile-media { order: 2; }
.team-profile.is-reverse .team-profile-copy { order: 1; }

.team-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--blue-soft); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-index { font-family: var(--font-mono); color: var(--blue); font-size: 0.95rem; }
.team-profile-name { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 700; margin: 10px 0 12px; }
.team-profile-copy .team-role { margin-bottom: 18px; }
.team-role {
  display: inline-flex; font-family: var(--font-body); font-size: 0.76rem;
  font-weight: 600; color: var(--blue);
  background: var(--blue-soft); border-radius: var(--r-pill); padding: 5px 12px;
}
.team-profile-bio { color: var(--ink-70); font-size: 1.02rem; max-width: 54ch; }
.team-profile-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.team-profile-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; color: var(--ink-70); }
.team-profile-list svg { flex: none; color: var(--blue); margin-top: 3px; }
.team-profile-gh { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.team-profile-gh span { font-size: 0.9rem; font-weight: 600; color: var(--ink); }

.team-note { margin-top: 36px; font-size: 0.8rem; color: var(--ink-50); }

/* GitHub icon button — from Uiverse.io by vinodjangid07 */
.gh-btn {
  width: 45px; height: 45px; display: inline-flex; align-items: center; justify-content: center;
  position: relative; border-radius: 7px; transition: all 0.3s ease; margin-top: auto;
}
.gh-btn-icon {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background-color: transparent; backdrop-filter: blur(0px); border-radius: 10px;
  border: 1px solid rgba(156, 156, 156, 0.466); transition: all 0.3s ease;
}
.gh-btn-bg {
  position: absolute; content: ""; width: 100%; height: 100%;
  background: #181818; z-index: -1; border-radius: 10px; pointer-events: none; transition: all 0.3s ease;
}
.gh-btn:hover .gh-btn-bg { transform: rotate(35deg); transform-origin: bottom; }
.gh-btn:hover .gh-btn-icon { background-color: rgba(156, 156, 156, 0.466); backdrop-filter: blur(4px); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; text-align: left; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 700; font-family: var(--font-display);
}
.faq-question svg { flex: none; color: var(--blue); transition: transform 0.25s ease; }
.faq-item[data-open="true"] .faq-question svg { transform: rotate(45deg); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.faq-item[data-open="true"] .faq-answer { max-height: 220px; }
.faq-answer p { padding: 0 4px 26px; color: var(--ink-70); font-size: 1rem; max-width: 68ch; text-transform: none; font-family: var(--font-body); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--blue); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(2.2rem, 1.8rem + 2vw, 3.6rem); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 50ch; margin: 18px auto 0; font-size: 1.08rem; font-family: var(--font-body); }
.cta-band .btn { margin-top: 34px; }
.cta-band .btn-primary { background: #fff; color: var(--blue); }
.cta-band .btn-primary:hover { background: var(--bg-alt); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 24px; }
.contact-info li { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--ink-70); }
.contact-info svg { flex: none; color: var(--blue); }
.whatsapp-link { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: var(--r-pill); background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: 0.92rem; }
.whatsapp-link:hover { filter: brightness(0.97); }

.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.contact-form .field-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-70); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--bg); font-size: 0.95rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 88px; }
.contact-form .btn { margin-top: 4px; }
.form-note { grid-column: 1 / -1; font-size: 0.78rem; color: var(--ink-50); margin-top: -4px; }
.form-error { grid-column: 1 / -1; font-size: 0.85rem; color: var(--crit); background: var(--crit-bg); border-radius: var(--r-sm); padding: 10px 14px; margin-top: -4px; }
.form-success { position: absolute; inset: 0; background: var(--bg); border-radius: var(--r-lg); display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 32px; }
.form-success:not([hidden]) { display: flex; }
.form-success svg { color: var(--ok); width: 40px; height: 40px; }
.form-success h3 { font-size: 1.4rem; font-weight: 700; }
.form-success p { color: var(--ink-70); max-width: 34ch; text-transform: none; font-family: var(--font-body); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-dark); color: var(--on-dark); padding-top: 72px; position: relative; overflow: clip; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; position: relative; z-index: 1; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand p { color: var(--on-dark-60); font-size: 0.92rem; max-width: 32ch; text-transform: none; font-family: var(--font-body); }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; color: var(--on-dark-60); }
.footer-social a:hover { border-color: var(--blue-glow); color: var(--blue-glow); }
.footer-col h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-dark-60); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: 0.94rem; color: var(--on-dark-60); }
.footer-col a:hover { color: var(--on-dark); }

.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 26px; border-top: 1px solid var(--line-dark); position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--on-dark-60);
  border: 2px solid var(--line-dark); border-radius: var(--r-pill); padding: 7px 14px;
}
.badge svg { width: 15px; height: 15px; color: var(--blue-glow); flex: none; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: 0.85rem; color: var(--on-dark-60);
  position: relative; z-index: 1;
}
.footer-legal { display: flex; gap: 20px; }

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: background-color 0.2s ease;
}
.whatsapp-float:hover { background: var(--blue-2); }

/* ---------- Reveal-on-scroll base ---------- */
.reveal { opacity: 1; transform: none; }
.js-enhanced .reveal { opacity: 0; transform: translateY(28px); }
.js-enhanced .reveal.in-view { opacity: 1; transform: translateY(0); transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }

.hero-anim { opacity: 1; transform: none; }
/* Pure CSS entrance (autoplay via @keyframes, no JS ticking involved) so it
   can never get stuck hidden regardless of rAF/JS timer throttling. */
.js-enhanced .hero-anim {
  animation: hero-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--anim-delay, 0s);
}
.js-enhanced .hero-bubble.hero-anim { animation-name: hero-rise-bubble; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-rise-bubble { from { opacity: 0; transform: translateY(10px) scale(0.85); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .showcase-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pin-steps { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .team-profile, .team-profile.is-reverse { grid-template-columns: 1fr; gap: 24px; padding-block: 40px; }
  .team-profile.is-reverse .team-profile-media, .team-profile.is-reverse .team-profile-copy { order: initial; }
  .team-photo { max-width: 320px; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .link-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header[data-menu-open="true"] { background: var(--bg); box-shadow: var(--shadow-md); }
  .site-header[data-menu-open="true"] .main-nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--bg); padding: 20px var(--edge) 26px; gap: 18px; border-bottom: 1px solid var(--line);
  }
  .mobile-nav-cta { display: inline-flex; margin-top: 6px; }
}
@media (max-width: 600px) {
  .header-actions > .btn-primary { display: none; }
}
@media (max-width: 720px) {
  .browser-body { flex-direction: column; }
  .dash-sidebar { flex-direction: row; width: 100%; border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 14px; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pin-steps { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
}
