/* =====================================================
   CONVERXITY — styles.css
   =====================================================

   Art direction: Tracking / Data SaaS → tech preciso, oscuro como Stripe
   Paleta: negro near-dark + azul eléctrico como acento único
   Tipografía: Cabinet Grotesk (display) + Satoshi (body) vía Fontshare
   Densidad: equilibrada — generosa en hero, compacta en features

   ── MANUAL DE IDENTIDAD (editar aquí) ──────────────
   Para cambiar colores de marca, modifica las variables
   de la sección "BRAND TOKENS" a continuación.
   ================================================== */

/* =====================================================
   0. BRAND TOKENS — Edita aquí tu identidad visual
   ===================================================== */
:root {
  /* ── Tipografía de Marca ── */
  --font-display: "Cabinet Grotesk", "Helvetica Neue", sans-serif;
  --font-body: "Satoshi", "Inter", "Helvetica Neue", sans-serif;

  /* ── Color Primario (Azul Eléctrico) ── */
  --brand-primary: #1d6fff;
  --brand-primary-hover: #0f5fe8;
  --brand-primary-glow: rgba(29, 111, 255, 0.18);
  --brand-primary-subtle: rgba(29, 111, 255, 0.08);

  /* ── Color Secundario (Cyan de Datos) ── */
  --brand-cyan: #00cfff;
  --brand-cyan-glow: rgba(0, 207, 255, 0.15);

  /* ── Gradiente de Marca ── */
  --brand-gradient: linear-gradient(135deg, #1d6fff 0%, #00cfff 100%);

  /* ── Superficie (Dark por defecto) ── */
  --color-bg: #080b12;
  --color-surface: #0e1420;
  --color-surface-2: #131925;
  --color-surface-offset: #1a2130;
  --color-surface-dynamic: #212b3d;
  --color-divider: rgba(255, 255, 255, 0.06);
  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-strong: rgba(255, 255, 255, 0.15);

  /* ── Texto ── */
  --color-text: #e8edf5;
  --color-text-muted: #7c8ba0;
  --color-text-faint: #3e4d63;
  --color-text-inverse: #080b12;

  /* ── Semánticos ── */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* ── Sombras ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 32px var(--brand-primary-glow);

  /* ── Radios ── */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* ── Espaciado 4px ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Tipografía fluida ── */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.65vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* ── Transiciones ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 180ms var(--ease-out);
  --transition-slow: 400ms var(--ease-out);

  /* ── Anchos ── */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* ── Nav ── */
  --nav-h: 64px;
}

/* ── Modo Claro opcional ── */
[data-theme="light"] {
  --color-bg: #f6f8fc;
  --color-surface: #ffffff;
  --color-surface-2: #f0f3fa;
  --color-surface-offset: #e6eaf4;
  --color-surface-dynamic: #dde2ee;
  --color-divider: rgba(0, 0, 0, 0.06);
  --color-border: rgba(0, 0, 0, 0.09);
  --color-border-strong: rgba(0, 0, 0, 0.18);
  --color-text: #0d1425;
  --color-text-muted: #5a6680;
  --color-text-faint: #a0abbe;
  --color-text-inverse: #f6f8fc;
  --shadow-sm: 0 1px 3px rgba(0, 40, 100, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 40, 100, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 40, 100, 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #f6f8fc;
    --color-surface: #ffffff;
    --color-surface-2: #f0f3fa;
    --color-surface-offset: #e6eaf4;
    --color-surface-dynamic: #dde2ee;
    --color-divider: rgba(0, 0, 0, 0.06);
    --color-border: rgba(0, 0, 0, 0.09);
    --color-border-strong: rgba(0, 0, 0, 0.18);
    --color-text: #0d1425;
    --color-text-muted: #5a6680;
    --color-text-faint: #a0abbe;
    --color-text-inverse: #f6f8fc;
    --shadow-sm: 0 1px 3px rgba(0, 40, 100, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 40, 100, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 40, 100, 0.12);
  }
}

/* =====================================================
   1. RESET & BASE
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--space-4));
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul,
ol {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.15;
  font-family: var(--font-display);
}
p,
li {
  text-wrap: pretty;
  max-width: 68ch;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--brand-primary-subtle);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a,
button,
[role="button"] {
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition),
    transform var(--transition);
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus {
  top: var(--space-2);
}

/* =====================================================
   2. LAYOUT HELPERS
   ===================================================== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--dark {
  background-color: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-12), 6vw, var(--space-20));
  max-width: 700px;
  margin-inline: auto;
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 60ch;
  margin-inline: auto;
}

/* =====================================================
   3. BOTONES
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn-sm {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}
.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-6);
}
.btn-xl {
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-10);
}
.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 2px 12px var(--brand-primary-glow);
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  box-shadow: 0 4px 24px var(--brand-primary-glow);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-surface-offset);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-surface-dynamic);
  border-color: var(--color-border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* =====================================================
   4. NAV
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  width: auto;
  height: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.nav-link.active {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
}
.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =====================================================
   5. HERO
   ===================================================== */
.hero {
  position: relative;
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: center;
}

/* Fondo de cuadrícula sutil */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 111, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 111, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(29, 111, 255, 0.12) 0%,
    transparent 70%
  );
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-primary-subtle);
  border: 1px solid rgba(29, 111, 255, 0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.hero-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.highlight-num {
  font-variant-numeric: tabular-nums;
  color: var(--brand-primary);
}
.highlight-num.muted {
  color: var(--color-text-faint);
}

.hero-question {
  display: block;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.sp-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-num {
  font-size: var(--text-lg);
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.sp-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.sp-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ── Hero Visual: Data Cards ── */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}

.data-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-md);
}

.data-card--converxity {
  border-color: rgba(29, 111, 255, 0.3);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.dc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.dc-platform {
  font-weight: 700;
  font-size: var(--text-sm);
}
.dc-platform--brand {
  color: var(--brand-primary);
}

.dc-status {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}
.dc-status--warn {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.dc-status--muted {
  background: var(--color-surface-offset);
  color: var(--color-text-faint);
}
.dc-status--good {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.dc-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-1);
}
.dc-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.dc-value {
  font-size: var(--text-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
}
.dc-value--warn {
  color: #ef4444;
}
.dc-value--muted {
  color: var(--color-text-faint);
}
.dc-value--good {
  color: #22c55e;
}

.data-connector {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-inline: var(--space-8);
}
.connector-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.connector-badge {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-base);
  border-radius: 50%;
  flex-shrink: 0;
}
.connector-badge--bad {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.hero-solution-arrow {
  text-align: center;
  color: var(--brand-primary);
  opacity: 0.7;
  animation: bounce-down 1.5s ease-in-out infinite;
}
@keyframes bounce-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* =====================================================
   6. SOCIAL STRIP
   ===================================================== */
.social-strip {
  padding-block: var(--space-10);
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  flex-wrap: wrap;
}
.strip-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}
.strip-num {
  font-size: var(--text-xl);
  font-weight: 800;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--brand-primary);
  line-height: 1;
}
.strip-prefix,
.strip-suffix {
  font-size: var(--text-xl);
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--brand-primary);
}
.strip-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =====================================================
   7. PAIN GRID
   ===================================================== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-5);
}

.pain-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.pain-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.pain-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.08);
  border-radius: var(--radius-lg);
  color: #ef4444;
  margin-bottom: var(--space-4);
}

.pain-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.pain-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.pain-quote {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
}

/* =====================================================
   8. SOLUTION
   ===================================================== */
.solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: center;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.solution-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.solution-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.sol-check {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Dashboard Mock ── */
.dashboard-mock {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.dash-title {
  font-weight: 700;
  font-size: var(--text-sm);
}
.dash-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px var(--space-2);
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-radius: var(--radius-full);
  animation: pulse-dot 2s ease-in-out infinite;
}

.dash-metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.dm-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  display: block;
}
.dm-bar-wrap {
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-1);
}
.dm-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-out);
}
.dm-bar--good {
  background: var(--brand-primary);
}
.dm-bar--info {
  background: var(--brand-cyan);
}
.dm-val {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.dash-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
}
.dash-channel {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.ch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ch-dot--meta {
  background: #1877f2;
}
.ch-dot--google {
  background: #ea4335;
}
.ch-dot--tiktok {
  background: #000;
  box-shadow: 0 0 0 1px var(--color-border);
}
.ch-name {
  flex: 1;
  color: var(--color-text-muted);
}
.ch-val {
  font-size: var(--text-xs);
  color: #22c55e;
  font-weight: 600;
}

/* =====================================================
   9. FEATURES GRID
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}
.feature-card:hover {
  border-color: rgba(29, 111, 255, 0.3);
  box-shadow:
    var(--shadow-md),
    0 0 24px var(--brand-primary-glow);
  transform: translateY(-2px);
}
.feature-card--wide {
  grid-column: span 2;
}

.fc-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary-subtle);
  border-radius: var(--radius-lg);
  color: var(--brand-primary);
  margin-bottom: var(--space-4);
}
.fc-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.fc-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =====================================================
   10. STEPS
   ===================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  position: relative;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.step-num {
  font-size: var(--text-xl);
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--brand-primary-subtle);
  -webkit-text-stroke: 1px var(--brand-primary);
  text-stroke: 1px var(--brand-primary);
  line-height: 1;
  min-width: 56px;
  flex-shrink: 0;
}
.step-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =====================================================
   11. TESTIMONIALS
   ===================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.testi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.testi-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.testi-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.testi-text::before {
  content: '"';
}
.testi-text::after {
  content: '"';
}

.testi-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  background: var(--brand-primary-subtle);
  border: 1px solid rgba(29, 111, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand-primary);
  flex-shrink: 0;
}
.testi-name {
  display: block;
  font-weight: 700;
  font-size: var(--text-sm);
}
.testi-role {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* =====================================================
   12. PRICING
   ===================================================== */
.pricing-slider-wrap {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.slider-value {
  font-weight: 700;
  color: var(--brand-primary);
}

.orders-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  margin-bottom: var(--space-2);
}
.orders-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-primary-subtle);
  cursor: pointer;
  transition: box-shadow var(--transition);
}
.orders-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: none;
  cursor: pointer;
}
.orders-slider:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px var(--brand-primary-subtle);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding-inline: var(--space-1);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  align-items: stretch;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition:
    border-color var(--transition-slow),
    box-shadow var(--transition-slow),
    transform var(--transition-slow);
}

.pricing-card--featured {
  border-color: rgba(29, 111, 255, 0.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: linear-gradient(
    160deg,
    var(--color-surface-2) 0%,
    var(--color-surface) 100%
  );
}

.pricing-card.is-active {
  border-color: rgba(29, 111, 255, 0.5);
  box-shadow:
    var(--shadow-lg),
    0 0 40px var(--brand-primary-glow);
  transform: translateY(-4px);
}

.pc-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pc-name {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-1);
}
.pc-volume {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.pc-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.pc-amount {
  font-size: var(--text-2xl);
  font-weight: 800;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.pc-period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pc-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.pc-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.pf-item {
  font-size: var(--text-xs);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.pf-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-item--yes {
  color: var(--color-text);
}
.pf-item--yes::before {
  content: "✓";
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-item--no {
  color: var(--color-text-faint);
  text-decoration: line-through;
  text-decoration-color: var(--color-text-faint);
}
.pf-item--no::before {
  content: "×";
  background: var(--color-surface-offset);
  color: var(--color-text-faint);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-note {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}
.link-inline {
  color: var(--brand-primary);
  text-decoration: underline;
}
.link-inline:hover {
  color: var(--brand-primary-hover);
}

/* =====================================================
   13. FAQ
   ===================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
}
.faq-trigger:hover {
  background: var(--color-surface-offset);
}
.faq-trigger[aria-expanded="true"] {
  color: var(--brand-primary);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-text-faint);
  transition: transform var(--transition);
}
.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 var(--space-6) var(--space-5);
  background: var(--color-surface);
}
.faq-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* =====================================================
   14. CTA FINAL
   ===================================================== */
.section--cta {
  background: var(--color-bg);
}

.cta-card {
  background: var(--color-surface);
  border: 1px solid rgba(29, 111, 255, 0.2);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-12), 8vw, var(--space-20));
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(29, 111, 255, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.cta-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 50ch;
  margin-inline: auto;
}
.cta-actions {
  margin-bottom: var(--space-4);
}
.cta-footnote {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* =====================================================
   15. FOOTER
   ===================================================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 36ch;
  line-height: 1.65;
}
.footer-nav-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-link:hover {
  color: var(--color-text);
}
.footer-cta-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
}
.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* =====================================================
   16. SCROLL REVEAL ANIMATIONS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   17. RESPONSIVE — TABLET (≤ 1024px)
   ===================================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub {
    max-width: 100%;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-social-proof {
    justify-content: center;
  }
  .hero-visual {
    max-width: 480px;
    margin-inline: auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--wide {
    grid-column: span 2;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .solution-layout {
    grid-template-columns: 1fr;
  }
  .solution-visual {
    order: -1;
    max-width: 480px;
    margin-inline: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* =====================================================
   18. RESPONSIVE — MOBILE (≤ 640px)
   ===================================================== */
@media (max-width: 640px) {
  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
    gap: var(--space-2);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 99;
    border-top: 1px solid var(--color-divider);
  }
  .nav-menu.is-open {
    transform: translateX(0);
  }
  .nav-link {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card--wide {
    grid-column: span 1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .strip-inner {
    gap: var(--space-6);
  }

  .data-connector {
    padding-inline: var(--space-4);
  }

  .solution-layout {
    grid-template-columns: 1fr;
  }
}