/* ==========================================================
   ZERNYX Tech Studio — styles.css
   Dark & Animated · 2026
   ========================================================== */

/* ── Google Fonts: Syne + Space Grotesk + JetBrains Mono ── */

/* ── Variables ─────────────────────────────────────────── */
:root {
  /* Dark palette */
  --bg:        #080c10;
  --bg2:       #0d1117;
  --bg3:       #111820;
  --bg4:       #161e28;
  --surface:   rgba(255,255,255,0.035);
  --surface2:  rgba(255,255,255,0.055);
  --surface3:  rgba(255,255,255,0.08);

  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.13);
  --border3:   rgba(255,255,255,0.20);

  --txt:       #e8edf4;
  --txt2:      #c0cada;
  --muted:     rgba(192,202,218,0.65);
  --muted2:    rgba(192,202,218,0.40);

  /* Accent: electric cyan */
  --cyan:      #00e5ff;
  --cyan-dk:   #00b8cc;
  --cyan-glow: rgba(0,229,255,0.15);
  --cyan-bd:   rgba(0,229,255,0.25);
  --cyan-bg:   rgba(0,229,255,0.07);

  /* Secondary accent: amber */
  --amber:     #ffb800;
  --amber-bg:  rgba(255,184,0,0.08);
  --amber-bd:  rgba(255,184,0,0.22);

  --shadow-sm: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 72px rgba(0,0,0,0.6);
  --cyan-shadow: 0 0 40px rgba(0,229,255,0.12);

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --wrap:   1160px;
  --pad-x:  clamp(1rem, 3vw, 2rem);

  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-pill: 999px;

  --ease:    cubic-bezier(.16,1,.3,1);
  --fast:    180ms var(--ease);
  --mid:     320ms var(--ease);
  --slow:    600ms var(--ease);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

a { color: inherit; -webkit-tap-highlight-color: transparent; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { border: 0; background: none; }
ul, ol { margin: 0; padding-left: 1.25rem; }
p, blockquote, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--txt); }

.wrap {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.mono { font-family: var(--font-mono); }

/* ── Canvas background ─────────────────────────────────── */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
}

/* ── Accessibility ─────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .65rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border2);
  background: var(--bg2);
  z-index: 9999;
}

/* ── Header ────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: var(--safe-top);
  border-bottom: 1px solid var(--border);
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  transition: background var(--mid), border-color var(--mid), box-shadow var(--mid);
}

.header.scrolled {
  background: rgba(8,12,16,0.96);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 1px 0 rgba(0,229,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: .5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  color: var(--cyan);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0,229,255,0.4));
  transition: filter var(--mid);
}

.logo:hover .logo-mark {
  filter: drop-shadow(0 0 14px rgba(0,229,255,0.7));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--txt);
}

.logo-sub {
  margin-top: .18rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--cyan);
  letter-spacing: .08em;
  opacity: .8;
}

.nav {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .05rem;
  padding: 0;
  margin: 0;
}

.nl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .48rem .78rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--fast), background var(--fast);
}

.nl:hover {
  color: var(--txt);
  background: var(--surface);
}

.nl.active {
  color: var(--cyan);
  background: var(--cyan-bg);
  font-weight: 600;
}

.btn-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .55rem 1.2rem;
  margin-left: .5rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid var(--cyan-bd);
  background: var(--cyan-bg);
  overflow: hidden;
  transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.btn-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--fast);
}

.btn-header:hover {
  transform: translateY(-1px);
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 20px rgba(0,229,255,0.15);
}

.btn-header:hover::before { opacity: 1; }

.header-progress {
  position: relative;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.header-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--cyan), rgba(0,229,255,0.3));
  box-shadow: 0 0 8px rgba(0,229,255,0.5);
  transition: width .1s linear;
}

/* ── Burger ────────────────────────────────────────────── */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  transition: border-color var(--fast), background var(--fast);
}

.burger span {
  width: 18px;
  height: 1.5px;
  border-radius: 99px;
  background: var(--txt2);
  transition: transform var(--mid), opacity var(--fast), width var(--fast);
}

.burger:hover { border-color: var(--border2); background: var(--surface2); }

.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu ───────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(8,12,16,0.98);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--mid);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-inner {
  padding: 1.5rem var(--pad-x) calc(2rem + var(--safe-bot));
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--muted);
  transition: color var(--fast), padding-left var(--fast);
}

.mobile-menu a:hover { color: var(--txt); padding-left: .4rem; }

.mobile-menu .mobile-cta {
  margin-top: .6rem;
  padding: .9rem 1rem;
  border: 1px solid var(--cyan-bd);
  border-radius: var(--r-md);
  background: var(--cyan-bg);
  color: var(--cyan);
  text-align: center;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mid);
}

.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .9rem 1.5rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0,229,255,0.4);
  transition: transform var(--fast), box-shadow var(--fast), filter var(--fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,229,255,0.35), 0 8px 20px rgba(0,229,255,0.2);
  filter: brightness(1.08);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .9rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--txt2);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  transition: transform var(--fast), border-color var(--fast), color var(--fast), background var(--fast);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--border3);
  color: var(--txt);
  background: var(--surface2);
}

.btn-panel-outline,
.btn-panel-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .5rem .95rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn-panel-outline {
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-panel-outline:hover { color: var(--txt); border-color: var(--border2); }

.btn-panel-fill {
  color: var(--bg);
  background: var(--cyan);
  border: 1px solid transparent;
}

.btn-panel-fill:hover { filter: brightness(1.1); }

.btn-plan {
  width: 100%;
  min-height: 44px;
  padding: .8rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--txt2);
  text-align: center;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--fast), border-color var(--fast), color var(--fast), background var(--fast), box-shadow var(--fast);
}

.btn-plan:hover {
  transform: translateY(-1px);
  border-color: var(--border3);
  color: var(--txt);
}

.btn-plan.featured {
  color: var(--bg);
  border-color: transparent;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
}

.btn-plan.featured:hover {
  box-shadow: 0 0 30px rgba(0,229,255,0.35);
  filter: brightness(1.06);
}

.btn-submit {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .95rem 1rem;
  border-radius: var(--r-sm);
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
  transition: transform var(--fast), box-shadow var(--fast), filter var(--fast);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0,229,255,0.35);
  filter: brightness(1.08);
}

.btn-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Sections ───────────────────────────────────────────── */
main { position: relative; z-index: 2; }

.section {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 30px;
  padding: .3rem .75rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--cyan-bd);
  background: var(--cyan-bg);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: .7rem 0 .85rem;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 800;
  max-width: 16ch;
}

.section-head p {
  max-width: 55ch;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.hl { color: var(--cyan); }

/* ── Reveal ─────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--slow), transform var(--slow);
  will-change: transform, opacity;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 31vw, 380px);
  column-gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

.hero-left {
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  margin-bottom: 1rem;
  min-height: 32px;
  padding: .38rem .85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
}

.badge-blink {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0,229,255,0.6);
  animation: blinkPulse 2s ease-out infinite;
}

@keyframes blinkPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,229,255,0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(0,229,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
}

.badge-sep { color: var(--border3); }
.badge-mono { color: var(--cyan); }

.hero-title {
  margin-bottom: .9rem;
  font-size: clamp(3rem, 7.2vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.05em;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: .04em;
}

.hero-title .line-1 {
  color: var(--txt2);
  font-weight: 400;
  font-size: .55em;
  letter-spacing: -.02em;
  line-height: 1.6;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--muted);
}

.hero-title .line-2 {
  font-size: 1em;
  color: var(--txt);
}

.hero-title .line-2 em {
  color: var(--cyan);
  font-style: italic;
  text-shadow: 0 0 60px rgba(0,229,255,0.3);
}

.hero-title .line-3 {
  font-size: .42em;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--muted);
  font-family: var(--font-body);
  line-height: 2;
}

.hero-desc {
  max-width: 50ch;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.5rem;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .32rem .7rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted2);
  font-size: .76rem;
  white-space: nowrap;
  transition: border-color var(--fast), color var(--fast);
}

.hero-tags span:hover {
  border-color: var(--cyan-bd);
  color: var(--cyan);
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: fit-content;
  padding: 1.35rem 0 3.2rem;
  border-top: 1px solid var(--border);
}

.hstat { min-width: 100px; }

.hstat-n {
  margin-bottom: .25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--cyan);
}

.hstat-n sub {
  font-size: .55em;
  font-weight: 600;
  vertical-align: baseline;
  margin-left: .1em;
  color: var(--muted);
}

.hstat-l {
  font-size: .78rem;
  color: var(--muted2);
  line-height: 1.4;
}

.hstat-sep {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Hero Panel ─────────────────────────────────────────── */
.hero-panel {
  position: sticky;
  top: calc(var(--header-h) + 1.2rem);
  align-self: start;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border2);
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md), 0 0 60px rgba(0,229,255,0.05);
  transition: transform var(--mid), box-shadow var(--mid);
}

.hero-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0,229,255,0.09);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem .8rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.panel-dots {
  display: flex;
  gap: .3rem;
}

.panel-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.panel-dots span:nth-child(1) { background: #ff5f57; }
.panel-dots span:nth-child(2) { background: #ffbd2e; }
.panel-dots span:nth-child(3) { background: #28c940; }

.panel-title-bar {
  font-size: .7rem;
  color: var(--muted2);
  letter-spacing: .04em;
  flex: 1;
  text-align: center;
}

.panel-live {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--cyan);
  letter-spacing: .06em;
}

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

.panel-body { padding: 1.1rem; }

.panel-label {
  font-size: .68rem;
  color: var(--muted2);
  letter-spacing: .04em;
  margin-bottom: .35rem;
}

.panel-heading {
  font-family: var(--font-display);
  font-size: 1.48rem;
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 1.1rem;
  color: var(--txt);
}

.panel-metrics {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1rem;
}

.panel-metric {
  padding: .72rem .82rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.pm-label {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .3rem;
}

.pm-val {
  display: block;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: .45rem;
}

.pm-ok { color: var(--cyan); }

.pm-bar {
  height: 3px;
  border-radius: 99px;
  background: var(--surface3);
  overflow: hidden;
}

.pm-fill {
  height: 100%;
  width: var(--w, 0%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan-dk), var(--cyan));
  box-shadow: 0 0 8px rgba(0,229,255,0.4);
  animation: fillGrow 1.2s var(--ease) both;
}

.pm-full { background: linear-gradient(90deg, #00e5a0, var(--cyan)); }

@keyframes fillGrow {
  from { width: 0; }
  to { width: var(--w, 0%); }
}

.panel-chart {
  padding: .65rem .75rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 1rem;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 56px;
  margin-bottom: .4rem;
}

.chart-bars span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 3px 3px 0 0;
  background: var(--cyan);
  opacity: .5;
  animation: barFlicker 3s var(--ease) infinite alternate;
}

.chart-bars span:nth-child(even) { opacity: .35; animation-delay: .3s; }
.chart-bars span:nth-child(3n)   { animation-delay: .6s; opacity: .65; }
.chart-bars span:nth-child(4n)   { opacity: .8; animation-delay: .15s; }

@keyframes barFlicker {
  from { opacity: .35; }
  to   { opacity: .9; }
}

.chart-label {
  font-size: .65rem;
  color: var(--muted2);
  text-align: center;
  letter-spacing: .04em;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ── Ticker ─────────────────────────────────────────────── */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: 1px;
  padding: .65rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0,229,255,0.025);
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  white-space: nowrap;
  animation: tickerRoll 22s linear infinite;
}

.ticker-track span {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted2);
}

.tkr-dot {
  color: var(--cyan) !important;
  opacity: .5;
  font-size: .55rem !important;
}

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

/* ── Services ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--border);
}

.srv-card {
  position: relative;
  min-width: 0;
  padding: 1.8rem;
  background: var(--bg2);
  overflow: hidden;
  transition: background var(--fast);
}

.srv-card:hover { background: var(--bg3); }

.srv-card.featured {
  background: linear-gradient(135deg, rgba(0,229,255,0.06), var(--bg2));
}

.srv-card-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.12), transparent);
  pointer-events: none;
}

.srv-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .2rem .55rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--cyan-bd);
  background: var(--cyan-bg);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.srv-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  color: var(--muted);
  transition: color var(--mid), transform var(--mid);
}

.srv-card:hover .srv-icon {
  color: var(--cyan);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(0,229,255,0.4));
}

.srv-icon svg { width: 100%; height: 100%; }

.srv-card h3 {
  margin-bottom: .6rem;
  font-size: 1.05rem;
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 700;
}

.srv-card p {
  margin-bottom: .9rem;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
}

.srv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 0;
  margin: 0;
}

.srv-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted2);
  font-size: .82rem;
  line-height: 1.5;
}

.srv-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* ── Audience ───────────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.aud-card {
  min-width: 0;
  padding: 2rem 1.8rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--mid), border-color var(--fast), box-shadow var(--fast);
  overflow: hidden;
  position: relative;
}

.aud-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--fast);
}

.aud-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: var(--shadow-md);
}

.aud-card:hover::before { opacity: 1; }

.aud-num {
  margin-bottom: .9rem;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 700;
  color: var(--cyan);
  opacity: .25;
  transition: opacity var(--fast);
}

.aud-card:hover .aud-num { opacity: .5; }

.aud-card h3 {
  margin-bottom: .55rem;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.aud-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

/* ── Process ────────────────────────────────────────────── */
.process-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.process-steps {
  display: flex;
  flex-direction: column;
}

.pstep {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--fast);
}

.pstep:first-child { padding-top: 0; }
.pstep:last-child  { border-bottom: 0; }
.pstep:hover       { padding-left: .4rem; }

.pstep-num {
  min-width: 56px;
  flex-shrink: 0;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 700;
  color: var(--border3);
  transition: color var(--fast);
}

.pstep:hover .pstep-num { color: var(--cyan); }

.pstep-body h3 {
  margin-bottom: .45rem;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.pstep-body p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.72;
}

.process-cta {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: var(--shadow-sm);
}

.process-cta-label {
  font-size: .68rem;
  color: var(--cyan);
  letter-spacing: .05em;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: .8rem;
}

.mt-auto { margin-top: auto; }

/* ── Cases ──────────────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.case-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 1.8rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--mid), border-color var(--fast), box-shadow var(--fast);
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--fast);
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: var(--shadow-md), 0 0 30px rgba(0,229,255,0.06);
}

.case-card:hover::after { opacity: 1; }

.case-num {
  display: block;
  margin-bottom: 1rem;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 700;
  color: var(--cyan);
  opacity: .12;
  transition: opacity var(--fast);
}

.case-card:hover .case-num { opacity: .28; }

.case-card h3 {
  margin-bottom: .6rem;
  font-size: 1.06rem;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.case-card p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.case-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .25rem .6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted2);
  background: var(--surface);
}

/* ── Testimonials ───────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tquote {
  position: relative;
  min-width: 0;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tquote-mark {
  position: absolute;
  top: .5rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--cyan);
  opacity: .1;
  pointer-events: none;
}

.tquote p {
  padding-top: .4rem;
  margin-bottom: .7rem;
  color: var(--txt2);
  font-size: .9rem;
  line-height: 1.68;
  position: relative;
}

.tquote cite {
  font-style: normal;
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: .74rem;
}

/* ── Pricing ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.plan-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.8rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--mid), border-color var(--fast), box-shadow var(--fast);
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: var(--shadow-md);
}

.plan-featured {
  border-color: var(--cyan-bd);
  background: linear-gradient(160deg, rgba(0,229,255,0.07) 0%, var(--bg2) 70%);
  box-shadow: var(--shadow-sm), 0 0 40px rgba(0,229,255,0.07);
}

.plan-featured:hover {
  box-shadow: var(--shadow-md), 0 0 60px rgba(0,229,255,0.12);
}

.plan-ribbon {
  position: absolute;
  top: 1.1rem;
  right: -2.6rem;
  padding: .28rem 3.2rem;
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .05em;
  transform: rotate(35deg);
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.plan-card h3 {
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: .22rem .65rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: .68rem;
  white-space: nowrap;
}

.plan-featured .plan-tag {
  color: var(--cyan);
  background: var(--cyan-bg);
  border-color: var(--cyan-bd);
}

.plan-desc {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
  padding: 0;
  margin: 0;
}

.plan-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.55;
}

.plan-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: .76rem;
}

/* ── Plan seleccionado ─────────────────────────────────── */
.plan-selected {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--cyan-bg);
  border: 1px solid var(--cyan-bd);
  animation: slideIn .35s var(--ease);
}

.plan-selected-label {
  display: block;
  font-size: .65rem;
  color: var(--cyan);
  margin-bottom: .4rem;
  letter-spacing: .05em;
}

.plan-selected p {
  font-size: .88rem;
  color: var(--txt2);
  margin: 0;
}

.plan-selected-sub {
  font-size: .8rem !important;
  color: var(--muted) !important;
  margin-top: .2rem !important;
}

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

/* ── FAQ ───────────────────────────────────────────────── */
.faq-wrap { max-width: 860px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 2.5rem;
}

.faq-item {
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: border-color var(--fast);
}

.faq-item:hover { border-color: var(--border2); }

.faq-item[open] {
  border-color: var(--cyan-bd);
  box-shadow: 0 0 20px rgba(0,229,255,0.05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color var(--fast);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan); }

.faq-ico {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border2);
  transition: transform var(--mid), border-color var(--fast);
}

.faq-ico::before, .faq-ico::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 999px;
  background: var(--muted);
  transition: background var(--fast), transform var(--mid);
}

.faq-ico::before { width: 8px; height: 1.5px; }
.faq-ico::after  { width: 1.5px; height: 8px; }

.faq-item[open] .faq-ico {
  transform: rotate(45deg);
  border-color: var(--cyan-bd);
}

.faq-item[open] .faq-ico::before,
.faq-item[open] .faq-ico::after { background: var(--cyan); }

.faq-body {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.72;
}

.faq-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.8rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0,229,255,0.04), var(--bg2));
  box-shadow: var(--shadow-sm);
}

.faq-cta h3 {
  margin-bottom: .32rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.faq-cta p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

/* ── Contact ────────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.contact-form {
  padding: 1.9rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: var(--shadow-sm);
}

.cf-field { margin-bottom: 1.05rem; }

.cf-field label {
  display: block;
  margin-bottom: .44rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.opt { color: var(--muted2); font-size: .72rem; }

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

input, select, textarea {
  width: 100%;
  min-width: 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--txt);
  padding: .78rem 1rem;
  font-size: .92rem;
  outline: none;
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--muted2); }

input:focus, select:focus, textarea:focus {
  border-color: var(--cyan-bd);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.07);
  background: var(--bg4);
}

textarea { min-height: 126px; resize: vertical; }

select {
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='rgba(192,202,218,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
}

select option {
  background: var(--bg3);
  color: var(--txt);
}

.form-note {
  margin-top: .75rem;
  text-align: center;
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.55;
}

.contact-info {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ci-card {
  padding: 1.4rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: var(--shadow-sm);
}

.ci-card-label {
  display: block;
  font-size: .68rem;
  color: var(--cyan);
  letter-spacing: .05em;
  margin-bottom: .9rem;
}

.ci-steps {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 0;
  padding-left: 1.2rem;
}

.ci-steps li {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.ci-steps strong { color: var(--txt2); }

.ci-data {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.ci-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg2);
}

.ci-label {
  color: var(--muted2);
  font-size: .72rem;
  letter-spacing: .05em;
}

.ci-val {
  text-align: right;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--txt);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 2rem 0 calc(1.5rem + var(--safe-bot));
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--txt);
}

.footer-tagline {
  color: var(--cyan);
  font-size: .68rem;
  letter-spacing: .06em;
  opacity: .7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: .84rem;
  transition: color var(--fast);
}

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

.footer-legal {
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: .74rem;
}

.footer-legal a {
  text-decoration: none;
  color: var(--muted);
  transition: color var(--fast);
}

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

/* ── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  right: 1.2rem;
  bottom: calc(1.2rem + var(--safe-bot));
  z-index: 200;
  max-width: min(400px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border2);
  background: rgba(13,17,23,0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0,229,255,0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: transform var(--mid), opacity var(--mid);
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-ico { flex-shrink: 0; font-size: 1.1rem; }

.toast-content { flex: 1; min-width: 0; }

.toast-title {
  margin: 0 0 .1rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--txt);
}

.toast-msg {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

.toast-close {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--fast), color var(--fast), background var(--fast);
}

.toast-close:hover {
  border-color: var(--border2);
  color: var(--txt);
  background: var(--surface);
}

/* ════════════════════════════════════════════════════════
   BREAKPOINTS
   ════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  :root { --wrap: 95%; --pad-x: 1.3rem; }

  .services-grid,
  .cases-grid,
  .testimonials,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero-wrap {
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 2rem;
  }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }

  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .hero-title, .hero-desc { max-width: none; }

  .hero-panel {
    position: relative;
    top: auto;
    margin-top: 1.5rem;
    max-width: 540px;
  }

  .process-wrap, .contact-wrap {
    grid-template-columns: 1fr;
  }

  .process-cta, .contact-info {
    position: relative;
    top: auto;
  }

  .ci-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .ci-item {
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
  }

  .ci-val { text-align: left; }
}

@media (max-width: 860px) {
  :root { --pad-x: 1.1rem; --header-h: 66px; }

  .nav { display: none; }
  .burger { display: inline-flex; }

  .hero { padding-top: 1.2rem; }

  .hero-title { font-size: clamp(2.5rem, 9vw, 4rem); }

  .hero-stats {
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .hstat-sep { display: none; }

  .services-grid,
  .audience-grid,
  .cases-grid,
  .testimonials,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .faq-cta { align-items: flex-start; }

  .footer-inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 640px) {
  :root { --pad-x: 1rem; --header-h: 62px; }

  .logo-name { font-size: .88rem; }
  .logo-sub  { font-size: .56rem; }

  .hero { padding-top: 1rem; }

  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: none;
    padding: 0 0 1.8rem;
    gap: .65rem;
  }

  .hstat {
    padding: .9rem .8rem;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg2);
  }

  .hstat-n { font-size: 1.5rem; }
  .hstat-l { font-size: .7rem; }

  .hero-panel { max-width: 100%; }

  .panel-heading { font-size: 1.2rem; }

  .panel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section { padding: 2.5rem 0; }

  .section-head h2 { font-size: clamp(1.55rem, 6vw, 2.2rem); }

  .srv-card, .aud-card, .case-card, .plan-card,
  .tquote, .contact-form, .ci-card, .process-cta, .faq-cta {
    padding: 1.25rem;
  }

  .cf-row { grid-template-columns: 1fr; gap: .85rem; }

  .ci-data { grid-template-columns: 1fr; }

  input, select, textarea { font-size: 16px; }

  .toast { right: 1rem; left: 1rem; max-width: none; }
}

@media (max-width: 480px) {
  :root { --pad-x: .88rem; }

  .hero-title { font-size: clamp(1.75rem, 9vw, 2.6rem); }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .section { padding: 2.2rem 0; }

  .section-head h2 { font-size: clamp(1.38rem, 6vw, 2rem); }

  .srv-card, .aud-card, .case-card, .plan-card,
  .tquote, .contact-form, .ci-card, .process-cta, .faq-cta {
    padding: 1rem;
  }

  .footer-links { gap: .75rem 1rem; }

  .toast { padding: .8rem .9rem; left: .88rem; right: .88rem; }
}

@media (max-width: 360px) {
  :root { --pad-x: .75rem; }

  .hero-title { font-size: clamp(1.5rem, 8vw, 2rem); }

  .section-head h2 { font-size: clamp(1.2rem, 6vw, 1.7rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}