/* ============================================================
   CONTABLO — styles.css
   Tu contador ve el pasado. Contablo ve lo que viene.
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-alt: #0b1120;
  --surface: #0f1626;
  --surface-2: #131c30;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #eef2f8;
  --text-muted: #97a2b8;
  --text-faint: #5b6478;

  --accent: #08c99d;
  --accent-2: #21e6a1;
  --accent-soft: rgba(8, 201, 157, 0.14);
  --gold: #f4c95d;
  --gold-soft: rgba(244, 201, 93, 0.14);
  --violet: #8b7cf6;
  --danger: #ff6a6a;

  --gradient-brand: linear-gradient(120deg, #08c99d 0%, #21e6a1 45%, #f4c95d 100%);
  --gradient-text: linear-gradient(95deg, #21e6a1 0%, #08c99d 40%, #7ee8c7 70%, #f4c95d 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(8, 201, 157, 0.15), 0 20px 60px -15px rgba(8, 201, 157, 0.25);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

p { color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

::selection { background: var(--accent); color: #04150f; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; border: 2px solid var(--bg); }

/* ============================================================
   BACKDROP
   ============================================================ */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.bg-glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.35;
}

.bg-glow--a {
  width: 640px; height: 640px;
  top: -220px; left: -160px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.bg-glow--b {
  width: 560px; height: 560px;
  top: 30%; right: -220px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.18;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 999;
  transition: width 0.1s linear;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  border: 1px solid transparent;
}

.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn .icon path { fill: currentColor; stroke: none; }
.btn .icon--sm { width: 16px; height: 16px; }
.btn .icon--sm path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn--primary {
  background: var(--gradient-brand);
  color: #04150f;
  box-shadow: 0 10px 30px -8px rgba(8, 201, 157, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(8, 201, 157, 0.65); }

.btn--lg { padding: 18px 32px; font-size: 1.05rem; }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #3fe07a;
  border: 1px solid rgba(63, 224, 122, 0.3);
  padding: 10px 18px;
  font-size: 0.88rem;
}
.btn--whatsapp:hover { background: rgba(37, 211, 102, 0.22); transform: translateY(-2px); }
.btn--whatsapp .icon path { fill: #3fe07a; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-mark {
  width: 34px; height: 34px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(8, 201, 157, 0.35));
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--gradient-brand);
  transition: width 0.3s var(--ease);
}
.nav-desktop a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  background: rgba(7, 11, 20, 0.98);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.nav-mobile.is-open { max-height: 500px; }
.nav-mobile a {
  padding: 12px 4px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-mobile .btn { margin-top: 14px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: 168px 0 0;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 80px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(8, 201, 157, 0.3);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(33, 230, 161, 0.2);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 24px;
}

.strike-wrap { position: relative; display: inline-block; color: var(--text-faint); }
.strike {
  position: absolute;
  left: -4%; top: 46%;
  width: 108%; height: 22px;
  overflow: visible;
}
.strike path { stroke: var(--danger); stroke-width: 3; fill: none; stroke-linecap: round; opacity: 0.75; }

.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

.hero-sub {
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 52px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 36px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--text-faint); max-width: 110px; }

/* Hero visual */
.hero-visual { position: relative; min-height: 420px; }

.hero-watermark {
  position: absolute;
  top: 50%; left: 50%;
  width: 480px;
  max-width: none;
  transform: translate(-42%, -50%) rotate(-4deg);
  opacity: 0.06;
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 0;
  animation: float 9s ease-in-out infinite;
}

.orbit-card {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 28, 48, 0.9), rgba(15, 22, 38, 0.9));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  animation: float 7s ease-in-out infinite;
}
.orbit-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(8, 201, 157, 0.4), transparent 40%, rgba(244, 201, 93, 0.25));
  z-index: -1;
  filter: blur(18px);
  opacity: 0.6;
}
.orbit-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(33, 230, 161, 0.2);
  animation: pulse 2s infinite;
}

.mini-chart { margin-bottom: 18px; }
.mini-chart svg { width: 100%; height: 110px; }
.chart-line { stroke: var(--accent-2); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(33, 230, 161, 0.5)); }

.orbit-card__rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.orbit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.tag { padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.tag--ok { background: rgba(33, 230, 161, 0.15); color: var(--accent-2); }
.tag--warn { background: rgba(244, 201, 93, 0.15); color: var(--gold); }

.orbit-card__foot { font-size: 0.78rem; color: var(--text-faint); }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 22, 38, 0.9);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}
.float-chip .icon { width: 15px; height: 15px; }
.float-chip .icon path { fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.float-chip--1 { top: -6px; right: 8%; animation: float 6s ease-in-out infinite 0.4s; }
.float-chip--2 { bottom: 18%; left: -8%; animation: float 8s ease-in-out infinite 0.9s; }
.float-chip--3 { bottom: -8%; right: 2%; animation: float 7.5s ease-in-out infinite 1.3s; }

/* Marquee */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 18px 0;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: scroll-left 30s linear infinite;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.marquee-track span:nth-child(odd) { color: var(--text-muted); }

/* ============================================================
   PROMISE STRIP
   ============================================================ */

.promise {
  padding: 40px 0;
  background: var(--bg-alt);
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
}
.promise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.promise-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  flex: 1 1 180px;
}
.promise-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  border: 1px solid rgba(8, 201, 157, 0.35);
  border-radius: 999px;
  padding: 3px 8px;
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */

.section { position: relative; z-index: 1; padding: 110px 0; }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { margin-top: 14px; font-size: 1.02rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow--light { color: #04150f; opacity: 0.7; }

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

/* ============================================================
   PILARES
   ============================================================ */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.pillar-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pillar-card p { font-size: 0.88rem; }

.pillar-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.pillar-icon svg { width: 24px; height: 24px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pillar-icon--contable { background: rgba(8, 201, 157, 0.12); }
.pillar-icon--contable svg { stroke: var(--accent-2); }
.pillar-icon--tributario { background: rgba(244, 201, 93, 0.12); }
.pillar-icon--tributario svg { stroke: var(--gold); }
.pillar-icon--financiero { background: rgba(139, 124, 246, 0.12); }
.pillar-icon--financiero svg { stroke: var(--violet); }
.pillar-icon--juridico { background: rgba(255, 106, 106, 0.12); }
.pillar-icon--juridico svg { stroke: var(--danger); }

/* ============================================================
   FILTERS + SERVICES
   ============================================================ */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.is-active {
  background: var(--gradient-brand);
  color: #04150f;
  border-color: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: left;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card.is-hidden { display: none; }

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.service-card__code {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.service-card__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.service-card__icon svg { width: 22px; height: 22px; stroke: var(--accent-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.service-card h3 { font-size: 1.05rem; }
.service-card p { font-size: 0.87rem; }

.service-card__pillars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pill--contable { background: rgba(8, 201, 157, 0.14); color: var(--accent-2); }
.pill--tributario { background: rgba(244, 201, 93, 0.14); color: var(--gold); }
.pill--financiero { background: rgba(139, 124, 246, 0.14); color: var(--violet); }
.pill--juridico { background: rgba(255, 106, 106, 0.14); color: var(--danger); }

.service-card__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-top: 4px;
}
.service-card__cta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.3s var(--ease); }
.service-card:hover .service-card__cta svg { transform: translateX(4px); }

/* ============================================================
   ENGINES
   ============================================================ */

.engines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.engine-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.engine-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.engine-card__num {
  position: absolute;
  top: -18px; right: -6px;
  font-family: 'Sora', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.035);
  line-height: 1;
}
.engine-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  margin-bottom: 20px;
  position: relative;
}
.engine-card__icon svg { width: 24px; height: 24px; stroke: var(--accent-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.engine-card h3 { font-size: 1rem; margin-bottom: 10px; position: relative; }
.engine-card p { font-size: 0.85rem; position: relative; margin-bottom: 16px; }
.engine-card ul { display: flex; flex-direction: column; gap: 8px; position: relative; }
.engine-card li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.engine-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* ============================================================
   COMPARE TABLE
   ============================================================ */

.compare-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row--head { background: rgba(255, 255, 255, 0.02); }
.compare-cell { padding: 20px 24px; font-size: 0.92rem; }
.compare-row--head .compare-cell { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; }
.compare-cell--vs { text-align: center; color: var(--text-faint); font-weight: 700; padding: 20px 4px; }
.compare-cell--old { color: var(--text-faint); }
.compare-cell--old::before { content: '✕ '; color: var(--danger); font-weight: 700; }
.compare-cell--new { color: var(--text); font-weight: 500; }
.compare-cell--new::before { content: '✓ '; color: var(--accent-2); font-weight: 700; }
.compare-cell--accent { color: var(--accent-2); }

/* ============================================================
   FOUNDER
   ============================================================ */

.founder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.founder-visual { position: relative; display: flex; justify-content: center; padding: 40px 0; }
.founder-avatar {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--shadow-glow);
}
.founder-avatar::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(8, 201, 157, 0.35);
  animation: spin 40s linear infinite;
}
.founder-avatar span {
  font-family: 'Sora', sans-serif;
  font-size: 4.2rem;
  font-weight: 800;
  color: #04150f;
}

.founder-badge {
  position: absolute;
  background: rgba(15, 22, 38, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  text-align: center;
  line-height: 1.4;
}
.founder-badge--1 { top: 4%; left: 0%; animation: float 6.5s ease-in-out infinite; }
.founder-badge--2 { bottom: 10%; left: -4%; animation: float 7.5s ease-in-out infinite 0.6s; }
.founder-badge--3 { bottom: 30%; right: -6%; animation: float 8s ease-in-out infinite 1.1s; }

.founder-role { color: var(--accent-2); font-weight: 600; margin: 6px 0 18px; }
.founder-copy h2 { margin-bottom: 4px; }
.founder-copy p { margin-bottom: 16px; font-size: 0.98rem; }

.founder-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.founder-tags span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 22px; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent);
  z-index: 0;
}
.timeline-step { position: relative; z-index: 1; }
.timeline-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.timeline-step h3 { font-size: 1rem; margin-bottom: 8px; }
.timeline-step p { font-size: 0.86rem; }

/* ============================================================
   CTA FINAL
   ============================================================ */

.cta-final {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: var(--gradient-brand);
  text-align: center;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(4, 21, 15, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cta-final-inner { position: relative; max-width: 620px; margin: 0 auto; }
.cta-final h2 { color: #04150f; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.cta-final p { color: rgba(4, 21, 15, 0.75); font-size: 1.05rem; margin-bottom: 32px; }
.cta-final .btn--primary { background: #04150f; color: #fff; box-shadow: 0 16px 40px -12px rgba(4, 21, 15, 0.5); }
.cta-final .btn--primary .icon path { fill: #3fe07a; }
.cta-final .btn--primary:hover { background: #0a2119; }
.cta-final-note { display: block; margin-top: 20px; font-size: 0.82rem; color: rgba(4, 21, 15, 0.65); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 72px 0 0; position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { font-size: 0.88rem; margin-top: 14px; max-width: 280px; }
.footer-tagline { font-style: italic; color: var(--text-faint) !important; margin-top: 10px !important; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { font-size: 0.88rem; color: var(--text-muted); transition: color 0.25s; }
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 8, 16, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-soft);
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  transition: background 0.25s;
}
.modal-close:hover { background: var(--border-strong); }
.modal-close svg { width: 16px; height: 16px; stroke: var(--text); fill: none; stroke-width: 2; stroke-linecap: round; }

.modal-body .service-card__code { display: block; margin-bottom: 10px; }
.modal-body h3 { font-size: 1.5rem; margin-bottom: 14px; padding-right: 30px; }
.modal-body .modal-lede { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; }
.modal-section { margin-bottom: 22px; }
.modal-section h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.modal-section ul { display: flex; flex-direction: column; gap: 10px; }
.modal-section li {
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}
.modal-section li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--gradient-brand);
}
.modal-result {
  background: var(--accent-soft);
  border: 1px solid rgba(8, 201, 157, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 24px;
}
.modal-result strong { color: var(--accent-2); }
.modal-body .btn { width: 100%; justify-content: center; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 150;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c4a);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon { width: 30px; height: 30px; }
.whatsapp-float .icon path { fill: #fff; }
.whatsapp-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: ring 2.2s ease-out infinite;
}
.whatsapp-float__tip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.whatsapp-float:hover .whatsapp-float__tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(33, 230, 161, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(33, 230, 161, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 230, 161, 0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes shine {
  to { background-position: 200% center; }
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; margin-top: 20px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .engines-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: 1fr; text-align: center; }
  .founder-tags { justify-content: center; }
  .founder-visual { padding: 20px 0 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-desktop, .btn--nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .hero { padding-top: 130px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .engines-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; text-align: left; padding: 12px 0; }
  .compare-cell--vs { display: none; }
  .compare-row--head .compare-cell--vs { display: none; }
  .compare-cell { padding: 8px 20px; }
  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .timeline::before { display: none; }
  .promise-grid { flex-direction: column; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .whatsapp-float { bottom: 18px; right: 18px; width: 54px; height: 54px; }
  .whatsapp-float__tip { display: none; }
  .modal-card { padding: 28px 20px; }
}
