/* ============================================
   CorpoMotion — Design tokens & base styles
   ============================================ */

:root {
  /* Brand colors (from logo) */
  --navy-900: #0b1730;
  --navy-800: #0f1f44;
  --navy-700: #16295c;
  /* A genuinely "blue" step, brighter than navy-700 — used for section
     backgrounds that need to read as blue, not near-black. */
  --navy-500: #2456c9;
  --slate-600: #5b6472;
  --slate-400: #8992a0;
  --slate-200: #d7dbe1;
  --white: #ffffff;
  --off-white: #f6f7f9;

  /* Accent — teal, contrasts navy/gray, reads as "calm + modern health-tech" */
  --accent-500: #14b8a6;
  --accent-600: #0f9488;
  --accent-100: #e3f8f5;

  /* Second accent — warm coral, reserved for the free-audit "hook" CTAs only,
     so the one action we most want clicked reads as visibly different from
     the rest of the (teal) product UI. Coral over amber/yellow on purpose:
     it doesn't read as a "sale/warning" color, and it plays nicer against
     the warm skin tones in the hero photo. */
  --hook-500: #ff6b57;
  --hook-600: #e5503c;
  --hook-100: #ffe9e4;

  /* Third accent — soft indigo, exclusive to the "we also build websites"
     cross-sell. It's a separate offer from the AI product (teal) and the
     free-audit CTA (coral), so it gets its own color to read as distinct
     rather than blending into either. Used only in this one section. */
  --web-500: #7c6ff0;
  --web-600: #6152d9;
  --web-100: #edebff;

  /* Semantic — theme-aware. Redefined under [data-theme="dark"] below.
     Brand colors above (navy/teal/coral/violet) stay constant in both
     themes; only page surfaces, text and borders adapt. */
  --bg: var(--white);
  --bg-alt: var(--off-white);
  --surface: var(--white);
  --nav-surface: rgba(255, 255, 255, 0.85);
  --text: var(--navy-900);
  --text-muted: var(--slate-600);
  --border: var(--slate-200);

  color-scheme: light;

  /* Typography — Outfit for display/headings (has character, matches the
     geometric wide-tracked logo), Inter for body (proven readability) */
  --font-display: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 31, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 31, 68, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 31, 68, 0.14);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Dark mode ----------
   Two ways in: the visitor's OS preference (auto), or the manual toggle in
   the nav (which sets data-theme and wins either way, persisted via
   localStorage — see js/main.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1c;
    --bg-alt: #0d1424;
    --surface: #141b2e;
    --nav-surface: rgba(10, 15, 28, 0.85);
    --text: #eef1f7;
    --text-muted: #9aa5b8;
    --border: #262f47;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0f1c;
  --bg-alt: #0d1424;
  --surface: #141b2e;
  --nav-surface: rgba(10, 15, 28, 0.85);
  --text: #eef1f7;
  --text-muted: #9aa5b8;
  --border: #262f47;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

button {
  font-family: inherit;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 100;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.15s var(--ease);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-7);
}

.section-alt {
  background:
    radial-gradient(ellipse 55% 65% at 85% 0%, rgba(20, 184, 166, 0.1), transparent 60%),
    var(--bg-alt);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: var(--space-2);
}

.section-eyebrow.on-dark {
  color: var(--accent-500);
}

.section-title {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  max-width: 34ch;
  text-wrap: balance;
}

.section-title.on-dark {
  color: var(--white);
}

.section-subtitle {
  margin-top: var(--space-2);
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.section-subtitle.on-dark {
  color: rgba(255, 255, 255, 0.75);
}

.section-head {
  margin-bottom: var(--space-5);
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-head.center .section-title,
.section-head.center .section-subtitle {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-500);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.32);
}

.btn-primary:hover {
  background: var(--accent-600);
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.4);
}

/* "Hook" CTAs — every button that leads to the free audit. Warm and a touch
   louder than the rest of the (teal) UI on purpose: this is the one click
   we want to win. */
.btn-hook {
  background: linear-gradient(135deg, #ff8a73, var(--hook-500));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(255, 107, 87, 0.35);
}

.btn-hook:hover {
  background: linear-gradient(135deg, #ff8a73, var(--hook-600));
  box-shadow: 0 10px 26px rgba(255, 107, 87, 0.45);
}

.btn-hook.btn-pulse {
  animation: hook-pulse 2.6s ease-in-out infinite;
}

@keyframes hook-pulse {
  0%, 100% {
    box-shadow: 0 8px 22px rgba(255, 107, 87, 0.35), 0 0 0 0 rgba(255, 107, 87, 0.32);
  }
  50% {
    box-shadow: 0 8px 22px rgba(255, 107, 87, 0.35), 0 0 0 10px rgba(255, 107, 87, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-hook.btn-pulse {
    animation: none;
  }
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
}

.btn-on-dark {
  background: var(--white);
  color: var(--navy-900);
}
.btn-on-dark:hover {
  background: var(--accent-100);
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-surface);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

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

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

.nav-logo .logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-logo .logo-light {
    display: none;
  }
  :root:not([data-theme="light"]) .nav-logo .logo-dark {
    display: block;
  }
}

:root[data-theme="dark"] .nav-logo .logo-light {
  display: none;
}

:root[data-theme="dark"] .nav-logo .logo-dark {
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent-600);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block-start: var(--space-6);
  overflow: hidden;
}


.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-title {
  margin-top: var(--space-2);
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
  max-width: 18ch;
  text-wrap: balance;
}

.hero-subtitle {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero-stats {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero-stat span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero visual: real photo + a floating product card layered on top of it —
   gives the hero a human, attention-grabbing focal point instead of just UI chrome. */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  filter: drop-shadow(0 24px 44px rgba(15, 31, 68, 0.22));
  /* Corner cut echoes the diagonal cut in the "C" of the isologo — a small,
     deliberate brand signature instead of a generic rounded rectangle. */
  clip-path: polygon(32px 0, 100% 0, 100% 100%, 0 100%, 0 32px);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-floating-card {
  position: absolute;
  left: -6%;
  bottom: -8%;
  z-index: 2;
}

.phone-mock {
  width: min(230px, 62vw);
  background: var(--navy-800);
  padding: var(--space-1);
  filter: drop-shadow(0 16px 32px rgba(15, 31, 68, 0.32));
  /* Corner cut echoes the diagonal cut in the "C" of the isologo — a small,
     deliberate brand signature instead of a generic rounded rectangle. */
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
}

.phone-mock-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.7rem 0.75rem 0.5rem;
}

.phone-mock-mark {
  width: auto;
  height: 14px;
  opacity: 0.9;
}

.phone-mock-body {
  background: var(--off-white);
  border-radius: 14px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chat-bubble {
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  font-size: 0.72rem;
  line-height: 1.35;
  max-width: 88%;
}

.chat-in {
  /* This mockup always looks like a real WhatsApp chat, regardless of the
     site's theme — background AND text are fixed, not theme-aware. */
  background: var(--white);
  color: var(--navy-900);
  border: 1px solid var(--slate-200);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-out {
  background: var(--accent-500);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-confirm {
  background: var(--accent-100);
  border: 1px solid var(--accent-500);
  color: var(--navy-900);
  font-weight: 600;
}

/* ---------- Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

/* Break the "three equal columns" symmetry slightly — the middle card
   sits a touch lower, echoing the offset already used in pricing. */
.grid-3 > .problem-card:nth-child(2),
.grid-3 > .value-card:nth-child(2) {
  margin-top: var(--space-3);
}

/* ---------- Problem cards ---------- */
.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-100);
  color: var(--accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.problem-figure {
  margin-top: var(--space-2);
  font-weight: 700;
  color: var(--text);
}

.problem-closing {
  text-align: center;
  margin-top: var(--space-5);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Pillars ---------- */
.pillar-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-5);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pillar-bridge.on-dark {
  color: rgba(255, 255, 255, 0.8);
}

.bridge-arrow {
  color: var(--accent-500);
  font-weight: 700;
}

/* ---------- Solución section: blue background ---------- */
.solucion-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 90% 0%, rgba(20, 184, 166, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-500) 130%);
}

.pillar-card {
  position: relative;
}

.pillar-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-600);
  letter-spacing: 0.05em;
}

.pillar-card h3 {
  margin-top: 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.pillar-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  margin-bottom: var(--space-2);
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pillar-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pillar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-500);
}

/* ---------- Steps (Cómo funciona) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
}

.step {
  position: relative;
  padding-top: var(--space-4);
  border-top: 2px solid var(--border);
}

.step-number {
  position: absolute;
  top: -1px;
  left: 0;
  transform: translateY(-50%);
  background: var(--accent-500);
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.pricing-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.pricing-price-custom {
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-100);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.price-custom-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
}

.price-custom-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
  margin-bottom: var(--space-3);
}

.pricing-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-500);
  font-weight: 700;
}

.pricing-result {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.pricing-featured {
  border: 1.5px solid var(--accent-500);
  box-shadow: 0 20px 48px rgba(20, 184, 166, 0.18);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: var(--space-4);
  background: var(--accent-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.pricing-highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--hook-100);
  border: 1.5px solid rgba(255, 107, 87, 0.3);
}

.pricing-highlight-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hook-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-highlight-icon svg {
  width: 21px;
  height: 21px;
}

.pricing-highlight p {
  font-size: 0.98rem;
  color: var(--navy-900);
  line-height: 1.55;
}

.pricing-highlight strong {
  color: var(--hook-600);
}

/* ---------- Web service cross-sell (its own accent color, on purpose —
   this is a different offer from the AI product, it shouldn't blend in) ---------- */
.webservice {
  padding-block: var(--space-5);
}

.webservice-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(124, 111, 240, 0.25);
  background:
    radial-gradient(ellipse 70% 100% at 100% 0%, rgba(124, 111, 240, 0.14), transparent 65%),
    var(--web-100);
  box-shadow: 0 10px 28px rgba(124, 111, 240, 0.14);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.webservice-inner:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 111, 240, 0.5);
  box-shadow: 0 16px 36px rgba(124, 111, 240, 0.22);
}

.webservice-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--web-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(124, 111, 240, 0.4);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.webservice-inner:hover .webservice-icon {
  transform: rotate(-8deg) scale(1.08);
}

.webservice-icon svg {
  width: 27px;
  height: 27px;
}

.webservice-text {
  flex: 1;
}

.webservice-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--web-600);
  margin-bottom: 0.3rem;
}

.webservice-title {
  display: inline;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  background-image: linear-gradient(var(--web-500), var(--web-500));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.4s var(--ease);
}

.webservice-inner:hover .webservice-title {
  background-size: 100% 2px;
}

.webservice-text p {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.webservice-cta {
  flex-shrink: 0;
}

.btn-web {
  background: var(--web-500);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(124, 111, 240, 0.35);
}

.btn-web:hover {
  background: var(--web-600);
  box-shadow: 0 8px 22px rgba(124, 111, 240, 0.45);
}

/* ---------- Results (dark band) ---------- */
.results {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 15% 20%, rgba(20, 184, 166, 0.16), transparent 60%),
    var(--navy-800);
}

.results-grid {
  gap: var(--space-4);
}

.result-stat {
  text-align: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.result-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: var(--space-3);
  text-align: left;
}

.result-bar-row {
  display: grid;
  grid-template-columns: 44px 1fr 52px;
  align-items: center;
  gap: 0.6rem;
}

.result-bar-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.result-bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.result-stat.reveal-visible .result-bar-fill {
  width: var(--fill);
}

.result-bar-before {
  background: rgba(255, 255, 255, 0.35);
}

.result-bar-after {
  background: var(--accent-500);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.5);
}

.result-bar-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.result-stat p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Values ---------- */
.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pitch-quote {
  margin: var(--space-6) auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  border-left: none;
  padding: 0 var(--space-3);
  position: relative;
}

.pitch-quote::before {
  content: "“";
  display: block;
  font-size: 3rem;
  color: var(--accent-500);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.2rem;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.testimonial-stars {
  color: var(--hook-500);
  font-size: 1rem;
  letter-spacing: 0.15em;
}

.testimonial-quote {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.testimonial-name {
  font-weight: 700;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-disclaimer {
  margin: var(--space-5) auto 0;
  max-width: 52ch;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact / CTA form ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
  /* The one section we most want people to act in — a touch warmer and
     more layered than the rest of the (mostly navy/teal) page. */
  background:
    radial-gradient(ellipse 55% 70% at 90% 100%, rgba(255, 107, 87, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 60% at 5% 0%, rgba(20, 184, 166, 0.08), transparent 60%),
    var(--bg-alt);
}

.cta-watermark {
  position: absolute;
  top: -12%;
  left: -6%;
  width: min(30vw, 420px);
  height: auto;
  opacity: 0.06;
  transform: rotate(10deg);
  pointer-events: none;
  z-index: 0;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.contact-points {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-600);
  font-weight: 700;
}

.contact-form {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-500), var(--hook-500));
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-100);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.footer-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--white);
}

.footer-brand p {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a,
.footer-contact a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  transition: color 0.15s var(--ease);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--space-3);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cta-watermark {
    width: 45vw;
  }

  .nav-links {
    /* .nav has backdrop-filter, which makes it the containing block for
       fixed-position descendants — so height must be explicit (viewport
       units), not "bottom: 0", or it collapses to the header's own height. */
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    height: calc(100vh - 64px);
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-2) var(--space-3);
    border-top: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-actions .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding-block: var(--space-6);
  }

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

  .hero-visual {
    order: -1;
    margin-bottom: var(--space-4);
  }

  .hero-photo-frame {
    width: min(300px, 78vw);
  }

  .hero-floating-card {
    left: -4%;
    bottom: -6%;
  }

  .phone-mock {
    width: min(190px, 52vw);
  }

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

  .hero-stats {
    gap: var(--space-4);
  }

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

  .grid-3 > .problem-card:nth-child(2),
  .grid-3 > .value-card:nth-child(2) {
    margin-top: 0;
  }

  .pillar-bridge {
    flex-direction: column;
    gap: 0.25rem;
  }

  .bridge-arrow {
    transform: rotate(90deg);
  }

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

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

  .pricing-featured {
    transform: none;
    order: -1;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .webservice-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Theme toggle
   ============================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.theme-toggle:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
  transform: rotate(-8deg);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: block;
  }
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* ============================================
   Back to top
   ============================================ */
.back-to-top {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s, background 0.2s var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-600);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.25s var(--ease), visibility 0.25s;
    transform: none;
  }
}

/* ============================================
   Form validation states
   ============================================ */
.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: var(--hook-500);
}

.contact-form input.invalid:focus,
.contact-form textarea.invalid:focus {
  box-shadow: 0 0 0 3px var(--hook-100);
}

.field-error {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--hook-600);
  min-height: 1.1em;
}

.field-error:empty {
  display: none;
}

/* ============================================
   Button micro-interactions
   ============================================ */
.btn {
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary::after,
.btn-hook::after,
.btn-web::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-hook:hover::after,
.btn-web:hover::after {
  animation: btn-shine 0.9s var(--ease);
}

@keyframes btn-shine {
  from {
    left: -60%;
  }
  to {
    left: 130%;
  }
}

.btn:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover::after,
  .btn-hook:hover::after,
  .btn-web:hover::after {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* ============================================
   A few extra hover micro-interactions
   ============================================ */
.card:hover .icon-badge {
  transform: scale(1.08) rotate(-4deg);
}

.icon-badge {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-links a,
.footer-contact a {
  position: relative;
}

.pricing-card .btn:hover,
.webservice-cta:hover {
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .back-to-top {
    width: 42px;
    height: 42px;
    right: var(--space-2);
    bottom: var(--space-2);
  }
}
