/* style.css — Decoder Design System */

@font-face {
  font-family: 'Geist Sans';
  src: url('./assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   TOKENS
   ======================================== */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

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

  /* Fonts (aligned with decoder.technology / Geist) */
  --font-body: 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Brand gradient (insurance marketing — v2 parity) */
  --gradient-primary: linear-gradient(to right, #6a1b9a, #3949ab, #01579b);
  --gradient-primary-hover: linear-gradient(to right, #5a1782, #303f91, #014670);
  /* Flat tints for dense UI (replaces purple-blue wash everywhere) */
  --tint-brand-soft: rgba(106, 27, 154, 0.06);
  --tint-brand-border: rgba(106, 27, 154, 0.12);
  --tint-brand-mid: rgba(57, 73, 171, 0.08);
  --gradient-hero: linear-gradient(180deg, rgba(106, 27, 154, 0.05) 0%, rgba(1, 87, 155, 0.03) 35%, transparent 65%);
}

/* Light theme — dot grid + neutrals (v2 globals.css) */
:root {
  --decoder-bg-primary: #f5f5f5;
  --decoder-dots-color: #c9cfd7;
  --color-bg: var(--decoder-bg-primary);
  --color-surface: #ffffff;
  --color-surface-alt: #f0f0f0;
  --color-text: #020022;
  --color-text-muted: #52525b;
  --color-text-faint: #a1a1aa;
  --color-primary: #6a1b9a;
  --color-primary-hover: #4a148c;
  --color-gradient-start: #6a1b9a;
  --color-gradient-mid: #3949ab;
  --color-gradient-end: #01579b;
  --color-accent-purple: #6a1b9a;
  --color-brand-black: #020022;
  --color-border: #e5e5e5;
  --color-border-light: #ebebeb;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --shadow-derek: 0px 0px 0px 1px rgb(0 0 0 / 0.06), 0px 1px 1px -0.5px rgb(0 0 0 / 0.06),
    0px 3px 3px -1.5px rgb(0 0 0 / 0.06), 0px 6px 6px -3px rgb(0 0 0 / 0.06),
    0px 12px 12px -6px rgb(0 0 0 / 0.06), 0px 24px 24px -12px rgb(0 0 0 / 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.1);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

body {
  background-color: var(--decoder-bg-primary);
  background-image: radial-gradient(var(--decoder-dots-color) 1px, transparent 0);
  background-size: 22px 22px;
  background-position: -19px -19px;
}

/* Headline / key phrase — full brand gradient (use sparingly) */
.text-gradient-brand {
  display: inline;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.navbar-links > li {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.nav-link:hover {
  color: var(--color-primary);
  background: var(--tint-brand-soft);
}

.nav-link .chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-interactive);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-derek), var(--shadow-md);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  z-index: 200;
}

.navbar-links > li:hover .dropdown-menu,
.navbar-links > li:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.navbar-links > li:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.dropdown-menu a:hover {
  background: var(--tint-brand-soft);
  color: var(--color-primary);
}

/* Navbar actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 5px;
  border-radius: var(--radius-md);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  overflow-y: auto;
  padding: var(--space-6);
}
.mobile-nav.active {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-group-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-3) 0 var(--space-1);
  border-bottom: 1px solid var(--color-border);
  margin-top: var(--space-4);
}
.mobile-nav-group-title:first-child {
  margin-top: 0;
}

.mobile-nav-links a {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive);
}
.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  color: var(--color-primary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              background 200ms ease,
              border-color var(--transition-interactive);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: var(--gradient-primary-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-sm {
  padding: 8px 20px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--text-base);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: clamp(3rem, 6vw, 6rem) var(--space-6);
}

.container {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.container-narrow {
  max-width: var(--content-default);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

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

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 680px;
  line-height: 1.6;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-derek);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
}

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

.card-gradient {
  background: var(--tint-brand-soft);
  border-color: var(--tint-brand-border);
}

/* ========================================
   STAT CARDS
   ======================================== */

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

.stat-card {
  text-align: center;
  padding: var(--space-6);
}

.stat-value {
  font-size: var(--text-xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ========================================
   BADGE
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-live {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.badge-designed {
  background: rgba(106, 27, 154, 0.1);
  color: #6a1b9a;
}

.badge-planned {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.badge-production {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  padding: 6px 14px;
  font-size: 13px;
}
.badge-production::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) var(--space-6) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ========================================
   PAGE HERO (subpages)
   ======================================== */

.page-hero {
  padding: clamp(3rem, 8vw, 6rem) var(--space-6) clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
}

.page-hero-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.page-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   TRUST BAR
   ======================================== */

.trust-bar {
  padding: var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.trust-logo-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.trust-logo-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--color-gradient-mid);
  opacity: 0.85;
}

/* ========================================
   PROBLEM SECTION
   ======================================== */

.callout-box {
  background: var(--tint-brand-soft);
  border: 1px solid var(--tint-brand-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  margin-top: var(--space-8);
}

.callout-box p {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   COMPARISON COLUMNS
   ======================================== */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.comparison-col {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
}

.comparison-col-old {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.comparison-col-new {
  background: var(--tint-brand-soft);
  border: 1px solid var(--tint-brand-border);
}

.comparison-col h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.comparison-col p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.limitation-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* ========================================
   AOP LIFECYCLE
   ======================================== */

.aop-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: var(--space-8) 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.aop-step {
  flex: 1;
  min-width: 180px;
  position: relative;
  padding: var(--space-6) var(--space-4);
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-right: var(--space-4);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.aop-step:last-child {
  margin-right: 0;
}

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

.aop-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gradient-mid);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.aop-step h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.aop-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.aop-connector {
  position: absolute;
  top: 50%;
  right: calc(var(--space-4) * -1 + 4px);
  transform: translate(50%, -50%);
  width: 20px;
  height: 20px;
  z-index: 2;
}
.aop-connector svg {
  color: var(--color-primary);
}

/* ========================================
   ACCELERATOR GRID
   ======================================== */

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

.accelerator-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.accelerator-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.accelerator-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ========================================
   CASE STUDY CARDS
   ======================================== */

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

.case-study-card {
  padding: var(--space-8);
}

.case-study-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.case-study-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.case-study-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.case-study-stat {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}

.case-study-stat-value {
  font-size: var(--text-lg);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.case-study-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ========================================
   INTEGRATIONS
   ======================================== */

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

.integration-block {
  text-align: center;
  padding: var(--space-6);
}

.integration-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--tint-brand-soft);
  border: 1px solid var(--tint-brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.integration-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.integration-block h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.integration-block p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ========================================
   GOVERNANCE
   ======================================== */

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

.governance-card {
  text-align: center;
  padding: var(--space-6);
}

.governance-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tint-brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.governance-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.governance-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.governance-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

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

.timeline {
  max-width: 640px;
  margin: var(--space-8) auto;
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.timeline-step {
  position: relative;
  padding-bottom: var(--space-8);
}

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

.timeline-dot {
  position: absolute;
  left: calc(var(--space-8) * -1 + 6px);
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 3px solid var(--color-bg);
}

.timeline-step h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.timeline-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  background: var(--tint-brand-soft);
  border-top: 1px solid var(--tint-brand-border);
  text-align: center;
}

.cta-section .section-title {
  max-width: 600px;
  margin: 0 auto var(--space-4);
}

.cta-section .section-subtitle {
  margin: 0 auto var(--space-8);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cta-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-link:hover {
  color: var(--color-primary);
}

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

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

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

.footer-social a {
  color: var(--color-text-faint);
  transition: color var(--transition-interactive);
}
.footer-social a:hover {
  color: var(--color-primary);
}

/* ========================================
   CONTACT FORM
   ======================================== */

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--tint-brand-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   TEAM SECTION
   ======================================== */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  max-width: 800px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
}

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-4);
  border: 3px solid var(--color-border);
}

.team-member h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.team-member .role {
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-3);
}

.team-member p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
}

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

.vision-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.vision-step {
  text-align: center;
  position: relative;
}

.vision-step-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.vision-step h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

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

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

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .fade-in.visible {
    opacity: 1;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

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

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

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-gradient-mid);
  opacity: 0.25;
}

.check-list li::before {
  background: rgba(16, 185, 129, 0.15);
}

.capacity-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-8);
}

.capacity-item {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-primary);
}

/* Process flow (carrier marketing) */
.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  counter-reset: process-step;
}

.process-step {
  counter-increment: process-step;
  padding: var(--space-4);
  position: relative;
}

.process-step::before {
  content: counter(process-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-gradient-mid);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.process-step h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.process-step p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Metrics bar */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  text-align: center;
  padding: var(--space-6);
  background: var(--tint-brand-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--tint-brand-border);
}

.metric-item .metric-value {
  font-size: var(--text-lg);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-item .metric-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 4px;
}

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

@media (max-width: 1024px) {
  .navbar-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .aop-flow {
    flex-direction: column;
  }
  .aop-step {
    margin-right: 0;
    margin-bottom: var(--space-3);
    min-width: unset;
  }
  .aop-step:last-child { margin-bottom: 0; }
  .aop-connector { display: none; }
  .accelerator-grid {
    grid-template-columns: 1fr 1fr;
  }
  .case-study-grid {
    grid-template-columns: 1fr;
  }
  .integration-grid {
    grid-template-columns: 1fr 1fr;
  }
  .governance-grid {
    grid-template-columns: 1fr 1fr;
  }
  .limitation-cards {
    grid-template-columns: 1fr;
  }
  .capacity-bar {
    grid-template-columns: 1fr 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .vision-steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .metrics-bar { grid-template-columns: 1fr 1fr; }
  .process-flow { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .accelerator-grid {
    grid-template-columns: 1fr;
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .governance-grid {
    grid-template-columns: 1fr;
  }
  .capacity-bar {
    grid-template-columns: 1fr;
  }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  .case-study-stats {
    grid-template-columns: 1fr;
  }
}
