/* ============================================================
   GENCE LAB — LANDING PAGE STYLES
   Brand: White / #D85A30 (Burnt Orange) / #EF9F27 (Amber Gold)
   Fonts: DM Serif Display (headings) + Inter (body)
   Philosophy: Clean, minimal, trust-first. Premium feel.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --clr-primary:       #D85A30;
  --clr-primary-dark:  #c24e27;
  --clr-primary-glow:  rgba(216, 90, 48, 0.18);
  --clr-secondary:     #EF9F27;
  --clr-secondary-dim: rgba(239, 159, 39, 0.35);
  --clr-black:         #0F1635;
  --clr-dark-bg:       #141210;
  --clr-dark-card:     #1C1916;
  --clr-warm-bg:       #FAFAF8;
  --clr-white:         #FFFFFF;
  --clr-muted:         #6B6460;
  --clr-border:        #E8E3DE;

  /* Hero Algoscale-style Background Blobs Configuration */
  --hero-blob-1:       rgba(216, 90, 48, 0.28);  /* Burnt Orange */
  --hero-blob-2:       rgba(239, 159, 39, 0.24);  /* Amber Gold */
  --hero-blob-3:       rgba(33, 49, 89, 0.22);   /* Deep Slate/Navy Accent */
  --hero-overlay-bg:   rgba(255, 255, 255, 0.82); /* Semi-opaque veil to guarantee crisp readability */

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad:   8rem;
  --section-pad-m: 5rem;
  --container-max: 1120px;
  --container-pad: clamp(1.25rem, 4vw, 2rem);

  /* Radius */
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-card:    0 2px 16px rgba(0, 0, 0, 0.05);
  --shadow-hover:   0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-orange:  0 6px 28px rgba(216, 90, 48, 0.35);
  --shadow-orange-sm: 0 3px 14px rgba(216, 90, 48, 0.22);

  /* Transitions */
  --transition: 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--clr-white);
  color: var(--clr-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============================================================
   TYPOGRAPHY — SHARED
   ============================================================ */
.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 1.1rem;
}

.section-label--amber { color: var(--clr-secondary); }

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--clr-black);
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--clr-muted);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 3.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

/* Primary */
.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: 0.9rem 2rem;
  box-shadow: var(--shadow-orange-sm);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--clr-primary-dark);
  box-shadow: var(--shadow-orange);
  transform: translateY(-2px);
}

.btn--primary:active { transform: translateY(0); }

/* Large variant */
.btn--large {
  font-size: 1.05rem;
  padding: 1.05rem 2.6rem;
}

/* Nav ghost button */
.btn--nav {
  background: transparent;
  color: var(--clr-black);
  padding: 0.6rem 1.25rem;
  border: 1.5px solid var(--clr-border);
  font-size: 0.875rem;
  border-radius: var(--radius);
}

.btn--nav:hover,
.btn--nav:focus-visible {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

/* Focus styles */
.btn:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
}

/* ============================================================
   EYEBROW LABEL (replaces pill badge — plain editorial style)
   ============================================================ */
.badge {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 1.4rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 227, 222, 0.7);
  transition: box-shadow var(--transition);
}

.nav--scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden; /* Crops the image's top/bottom whitespace so it doesn't hang out of the nav */
}

.logo-img {
  height: 108px;         /* scaled to read at Anthropic-comparable wordmark size */
  width: auto;
  display: block;
}

.logo-img--footer {
  height: 80px;
}

/* ——————————————————————————
   NAV LINKS (desktop)
—————————————————————————— */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clr-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--clr-black);
  background: rgba(15, 22, 53, 0.05);
}

/* ——————————————————————————
   NAV ACTIONS (CTA + hamburger)
—————————————————————————— */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ——————————————————————————
   HAMBURGER BUTTON
—————————————————————————— */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 6px;
  background: transparent;
  border: 1.5px solid var(--clr-border);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.nav__hamburger:hover {
  border-color: var(--clr-primary);
  background: rgba(216, 90, 48, 0.05);
}

.hamburger__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--clr-black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X when open */
.nav__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ——————————————————————————
   MOBILE DRAWER
—————————————————————————— */
.nav__mobile-drawer {
  max-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--clr-border);
  transition: max-height 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav__mobile-drawer.is-open {
  max-height: 400px;
}

.nav__mobile-links {
  list-style: none;
  margin: 0;
  padding: 1rem var(--container-pad) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__mobile-link {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr-muted);
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  border-bottom: 1px solid var(--clr-border);
}

.nav__mobile-link:last-child {
  border-bottom: none;
}

.nav__mobile-link:hover {
  color: var(--clr-black);
  background: rgba(15, 22, 53, 0.04);
}

.nav__mobile-link--cta {
  color: var(--clr-primary);
  font-weight: 600;
  border-bottom: none;
  margin-top: 0.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: calc(84px + 6rem) 0 7rem;
  background: var(--clr-white);
  overflow: hidden;
}

/* Algoscale-style dynamic animated gradient background */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Semi-opaque overlay to keep text contrast crisp */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 1;
}

/* Base blob styling — GPU-accelerated transforms and opacity only */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  z-index: 0;
}

/* Blob 1: Burnt orange aura floating top-right */
.hero__blob--1 {
  top: -12%;
  right: -8%;
  width: min(650px, 85vw);
  height: min(650px, 85vw);
  background: radial-gradient(circle at center, var(--hero-blob-1) 0%, rgba(216, 90, 48, 0.08) 55%, transparent 75%);
  animation: driftBlob1 22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* Blob 2: Amber gold glow drifting center-left */
.hero__blob--2 {
  top: 25%;
  left: -12%;
  width: min(580px, 75vw);
  height: min(580px, 75vw);
  background: radial-gradient(circle at center, var(--hero-blob-2) 0%, rgba(239, 159, 39, 0.07) 50%, transparent 75%);
  animation: driftBlob2 26s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* Blob 3: Deep slate/navy anchor drifting bottom-right */
.hero__blob--3 {
  bottom: -15%;
  right: 18%;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  background: radial-gradient(circle at center, var(--hero-blob-3) 0%, rgba(15, 22, 53, 0.06) 55%, transparent 75%);
  animation: driftBlob3 20s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* Fluid, organic drifting animations (Algoscale-style) */
@keyframes driftBlob1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  33% {
    transform: translate3d(-70px, 60px, 0) scale(1.12);
    opacity: 1;
  }
  66% {
    transform: translate3d(-35px, 110px, 0) scale(0.94);
    opacity: 0.78;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
}

@keyframes driftBlob2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.75;
  }
  40% {
    transform: translate3d(85px, -50px, 0) scale(1.18);
    opacity: 0.95;
  }
  75% {
    transform: translate3d(45px, 45px, 0) scale(0.92);
    opacity: 0.70;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.75;
  }
}

@keyframes driftBlob3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(-60px, -45px, 0) scale(1.15);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
}

/* Accessibility: respect user motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero__blob {
    animation: none !important;
    transform: none !important;
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--clr-black);
  margin-bottom: 1.6rem;
}

.hero__headline em {
  font-style: normal;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--clr-secondary);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--clr-muted);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 2.75rem;
  font-weight: 400;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero__trust {
  font-size: 0.8rem;
  color: #aaa;
  letter-spacing: 0.04em;
}

/* ============================================================
   HERO STATS ROW — VERIFIED CLAIMS ONLY
   ============================================================ */
.hero__stats {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 3.5rem;
  padding: 1.4rem 1.6rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 680px;
}

.hero__stat-item {
  flex: 1;
  min-width: 170px;
  display: flex;
  flex-direction: column;
}

.hero__stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.3rem);
  font-weight: 700;
  color: var(--clr-black);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: baseline;
  letter-spacing: -0.02em;
}

.hero__stat-prefix {
  color: var(--clr-primary);
  margin-right: 2px;
}

.hero__stat-num {
  font-variant-numeric: tabular-nums;
}

.hero__stat-unit {
  color: var(--clr-primary);
  font-size: 0.85em;
  margin-left: 2px;
}

.hero__stat-static {
  color: var(--clr-primary);
  font-family: var(--font-serif);
}

.hero__stat-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-black);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.hero__stat-detail {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--clr-muted);
  line-height: 1.45;
}

.hero__stat-divider {
  width: 1px;
  background: var(--clr-border);
  align-self: stretch;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero__stats {
    gap: 1.25rem;
    padding: 1.2rem 1.1rem;
  }

  .hero__stat-divider {
    display: none;
  }

  .hero__stat-item {
    min-width: 100%;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--clr-border);
  }

  .hero__stat-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}

/* ============================================================
   PAIN SECTION
   ============================================================ */
.pain {
  padding: var(--section-pad) 0;
  background: var(--clr-warm-bg);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.pain__card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pain__card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.pain__num {
  font-family: var(--font-sans);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--clr-secondary);
  opacity: 0.25;
  margin-bottom: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pain__card h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--clr-black);
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
}

.pain__card p {
  font-size: 0.91rem;
  color: var(--clr-muted);
  line-height: 1.75;
}

.pain__card p strong {
  color: var(--clr-black);
  font-weight: 600;
}

/* ============================================================
   SOLUTION / PILLARS
   ============================================================ */
.solution {
  padding: var(--section-pad) 0;
  background: var(--clr-white);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar__card {
  position: relative;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem 2rem;
  background: var(--clr-white);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.pillar__card:hover {
  border-color: rgba(216, 90, 48, 0.3);
  box-shadow: 0 14px 48px rgba(216, 90, 48, 0.07);
  transform: translateY(-4px);
}

/* Featured middle card */
.pillar__card--featured {
  border-color: var(--clr-primary);
  background: linear-gradient(
    155deg,
    rgba(216, 90, 48, 0.04) 0%,
    rgba(239, 159, 39, 0.03) 100%
  );
  padding-top: 3.25rem;
}

.pillar__card--featured:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 16px 52px rgba(216, 90, 48, 0.14);
}

.pillar__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-primary);
  color: var(--clr-white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
}

.pillar__num {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--clr-secondary);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pillar__title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.24;
  color: var(--clr-black);
  margin-bottom: 0.9rem;
  letter-spacing: -0.015em;
}

.pillar__desc {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.pillar__desc strong {
  color: var(--clr-black);
  font-weight: 600;
}

.pillar__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clr-primary);
  border: 1px solid rgba(216, 90, 48, 0.22);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: var(--section-pad) 0;
  background: var(--clr-warm-bg);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.steps__wrapper {
  margin-top: 3.5rem;
  max-width: 680px;
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 1.75rem;
  position: relative;
  padding-bottom: 3.25rem;
}

.step--last { padding-bottom: 0; }

/* Vertical connector line */
.step__connector {
  position: absolute;
  left: 26px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(239, 159, 39, 0.4) 0%,
    transparent 100%
  );
}

/* Step number circle */
.step__marker {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clr-white);
  border: 2px solid var(--clr-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--clr-secondary);
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--transition), border-color var(--transition);
}

.step:hover .step__marker {
  background: var(--clr-secondary);
  color: var(--clr-white);
}

.step__content {
  padding-top: 0.7rem;
}

.step__content h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-black);
  margin-bottom: 0.65rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.step__content p {
  font-size: 0.92rem;
  color: var(--clr-muted);
  line-height: 1.75;
}

/* ============================================================
   STATS / PROOF
   ============================================================ */
.stats {
  background: var(--clr-dark-bg);
  padding: 5.5rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.stat__divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 1rem;
}

.stat__card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.stat__number {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--clr-secondary);
  line-height: 1;
  margin-bottom: 1.1rem;
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  max-width: 240px;
  margin: 0 auto;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final {
  position: relative;
  padding: var(--section-pad) 0;
  background: linear-gradient(160deg, #1C120C 0%, #141210 60%, #141210 100%);
  overflow: hidden;
}

.cta-final__glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 700px;
  background: radial-gradient(
    ellipse at 50% 20%,
    rgba(216, 90, 48, 0.16) 0%,
    rgba(239, 159, 39, 0.06) 35%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-final__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-final__sub {
  font-size: 1.03rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.8;
  margin-bottom: 2.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final__sub em {
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
}

.cta-final__fine {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border);
  padding: 3.5rem 0 3rem;
}

.footer__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.footer__tagline {
  font-size: 0.83rem;
  color: var(--clr-muted);
  font-style: italic;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  margin: 0.25rem 0;
}

.footer__link {
  font-size: 0.82rem;
  color: var(--clr-muted);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--clr-primary);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--clr-muted);
  opacity: 0.65;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.pain__card:nth-child(2),
.pillar__card:nth-child(2) { transition-delay: 0.1s; }

.pain__card:nth-child(3),
.pillar__card:nth-child(3) { transition-delay: 0.2s; }

.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.22s; }

.stat__card:nth-child(3) { transition-delay: 0.1s; }
.stat__card:nth-child(5) { transition-delay: 0.2s; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --section-pad: 6rem;
  }

  .pain__grid,
  .pillars__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat__divider {
    width: 80%;
    height: 1px;
    margin: 0 auto;
  }

  .stat__card {
    padding: 2.5rem 1.5rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --section-pad: 4.5rem;
  }

  .logo-img { height: 64px; }

  .hero {
    padding: calc(72px + 4rem) 0 5rem;
  }

  .nav__inner { height: 72px; }
  .logo-img { height: 72px; }

  /* Hide desktop links, show hamburger on tablet */
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__headline {
    font-size: clamp(2.6rem, 9vw, 3.5rem);
    letter-spacing: -0.02em;
  }

  .hero__cta-group { gap: 0.85rem; }

  .btn--large {
    width: 100%;
    justify-content: center;
  }

  .step {
    grid-template-columns: 44px 1fr;
    column-gap: 1.25rem;
  }

  .step__marker {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .step__connector { left: 21px; top: 44px; }

  .cta-final__sub { font-size: 0.95rem; }

  .pillar__card--featured { padding-top: 3rem; }

  .section-headline { font-size: clamp(1.85rem, 6vw, 2.4rem); }
}

/* ============================================================
   FLOATING CTA BANNER TOAST (Algoscale-style)
   ============================================================ */
.floating-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate3d(-50%, 40px, 0);
  opacity: 0;
  visibility: hidden;
  z-index: 180;
  width: min(840px, calc(100vw - 2rem));
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s;
}

.floating-banner.is-visible {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.floating-banner.is-dismissing {
  transform: translate3d(-50%, 30px, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.floating-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(20, 18, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.7rem 0.9rem 0.7rem 1.2rem;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Orange Pill Badge */
.floating-banner__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.65rem;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Middle Content */
.floating-banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.floating-banner__title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-banner__desc {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Right Actions */
.floating-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.floating-banner__btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-orange-sm);
}

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

/* Dismiss Button */
.floating-banner__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.floating-banner__close:hover,
.floating-banner__close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: var(--clr-white);
  outline: none;
}

.floating-banner__close:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

/* Mobile adjustments (≤ 768px): keep compact at viewport bottom */
@media (max-width: 768px) {
  .floating-banner {
    bottom: 1rem;
    width: calc(100vw - 1.25rem);
    max-height: 24vh;
  }

  .floating-banner__inner {
    border-radius: var(--radius-lg);
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .floating-banner__content {
    flex: 1;
    min-width: 140px;
  }

  .floating-banner__title {
    font-size: 0.82rem;
  }

  .floating-banner__desc {
    display: none; /* Hide secondary line on narrow screens to keep under 25% viewport height */
  }

  .floating-banner__actions {
    gap: 0.4rem;
  }

  .floating-banner__btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.76rem;
  }

  .floating-banner__close {
    width: 28px;
    height: 28px;
  }
}

/* Respect prefers-reduced-motion: fade only, no transform */
@media (prefers-reduced-motion: reduce) {
  .floating-banner {
    transform: translate3d(-50%, 0, 0) !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
  }

  .floating-banner.is-dismissing {
    transform: translate3d(-50%, 0, 0) !important;
    opacity: 0;
  }
}
