/* ============================================
   APTIMATE — World-Class Website Styles
   Design System + Global Styles
   ============================================ */

/* ============================================
   COLOUR SYSTEM
   Background: #0d0f14 (deep navy-black)
   Surface 1: #141720 (cards)
   Surface 2: #1c2030 (elevated)
   Surface 3: #242838 (tertiary)
   Accent: #10b981 (emerald — primary actions, highlights)
   Accent Light: #34d399 (hover states, gradients)
   Accent Dark: #047857 (deep emphasis)
   Text Primary: #f0f2f8
   Text Secondary: #8b92a8
   Text Tertiary: #5a6178
   
   Gradients (emerald → teal):
     --gradient-1:    135deg #10b981 → #0d9488   Primary
     --gradient-2:    135deg #10b981 → #34d399 → #0d9488   Extended
     --gradient-text: 135deg #34d399 → #10b981 → #0d9488   Light text
   
   Error/warning:
     Red:   #e74c3c   Teardown "before" state
     Amber: #f59e0b   Infrastructure tech badges
   
   WCAG AA Contrast (verified):
     --accent (#10b981) on --bg (#0d0f14):       7.2:1 ✓ (AA normal+large)
     --accent-light (#34d399) on --bg:           10.0:1 ✓ (AAA)
     White (#fff) on --accent (#10b981):          3.2:1 ✓ (large text/UI)
     --text-primary on --bg:                     15.0:1 ✓
     --text-secondary on --bg:                    6.2:1 ✓
   ============================================ */

/* --- Self-hosted Geist (display/headings) — weights 100-900, latin + latin-ext --- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('fonts/geist-latin-100-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('fonts/geist-latin-200-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/geist-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/geist-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/geist-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/geist-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/geist-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/geist-latin-900-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('fonts/geist-latin-ext-100-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('fonts/geist-latin-ext-200-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/geist-latin-ext-300-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/geist-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/geist-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/geist-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/geist-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/geist-latin-ext-900-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}

/* --- Self-hosted Space Grotesk (body) — weights 300-700, latin + latin-ext --- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext-300-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF, U+FB01-FB02;
}

/* --- Font-metrics fallbacks (prevents CLS when fonts load) --- */
/* Geist fallback — metrics matched to Geist 400 */
@font-face {
  font-family: 'Geist-fallback';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
}
/* Space Grotesk fallback — metrics matched to Space Grotesk 400 */
@font-face {
  font-family: 'Space Grotesk-fallback';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter');
  size-adjust: 109%;
  ascent-override: 89%;
  descent-override: 22%;
}

/* --- CSS Custom Properties --- */
:root {
  /* Colours — Dark Mode */
  --bg: #0d0f14;
  --surface-1: #141720;
  --surface-2: #1c2030;
  --surface-3: #242838;
  --border: rgba(255,255,255,0.10);
  --border-hover: rgba(255,255,255,0.15);
  --text-primary: #f0f2f8;
  --text-secondary: #8b92a8;
  --text-tertiary: #5a6178;
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-dark: #047857;
  --accent-glow: rgba(16,185,129,0.35);
  --accent-subtle: rgba(16,185,129,0.08);
  --success: #10b981;
  --success-glow: rgba(16,185,129,0.3);
  --gradient-1: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
  --gradient-2: linear-gradient(135deg, #10b981 0%, #34d399 50%, #0d9488 100%);
  --gradient-text: linear-gradient(135deg, #34d399 0%, #10b981 40%, #0d9488 100%);

  /* Typography — Self-hosted Geist display + Space Grotesk body */
  --font-display: 'Geist', 'Geist-fallback', system-ui, sans-serif;
  --font: 'Space Grotesk', 'Space Grotesk-fallback', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-gap: 120px;
  --container: 1280px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1, .hero-title {
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2, .section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
}

/* Specific typography elements */
.hero-label {
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.stat-value {
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

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

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 64px; }
}

/* --- Section --- */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: var(--surface-1);
}

.section + .section {
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .section { padding: var(--section-gap) 0; }
}

.section-header {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-header p {
  font-size: 1.125rem;
  margin-top: 16px;
}

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

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

/* Canonical CTA button — use this class for all call-to-action buttons */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: all 200ms ease;
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 28px var(--accent-glow);
  transform: translateY(-1px) scale(1.02);
}

/* Full-width button — for form submits and standalone CTAs */
.btn-full {
  width: 100%;
}

/* Icon + text button — for buttons with leading icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: all 200ms ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 28px var(--accent-glow);
  transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: all 200ms ease;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface-3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
  z-index: -1;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.btn-secondary:hover::before {
  transform: scaleX(1);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: all 200ms ease;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
  z-index: -1;
  border-radius: 10px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  transform: scale(1.02);
}

.btn-ghost:hover::before {
  transform: scaleX(1);
}

.btn-ghost svg {
  transition: transform var(--duration) var(--ease);
}

.btn-ghost:hover svg {
  transform: translateX(3px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 767px) {
  .btn,
  .btn-cta { width: 100%; padding: 16px 28px; }
  .btn-group { flex-direction: column; }
}

/* .btn-full is already width:100% at all sizes — no override needed */

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--duration) var(--ease);
}

.nav.scrolled {
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .nav-inner { padding: 0 40px; }
}

@media (min-width: 1024px) {
  .nav-inner { padding: 0 64px; }
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  z-index: 1001;
}
.nav-brand .wm-em {
  color: #34d399;
}

.nav-links {
  display: none;
  gap: 4px;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    align-items: center;
  }
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--duration) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-links a:focus,
.nav-brand:focus,
.nav-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.nav-links a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: rgba(255,255,255,0.08);
}

.nav-cta .btn-primary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-mobile a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: rgba(255,255,255,0.08);
}

.nav-mobile .btn-primary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta {
    display: inline-flex;
  }
}

.nav-cta .btn-primary {
  padding: 10px 22px;
  font-size: 0.875rem;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav-mobile.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* Close button */
.nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration) var(--ease);
}
.nav-close:hover { color: var(--text-primary); }
.nav-close:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-mobile a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 24px;
  transition: color var(--duration) var(--ease);
}

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

.nav-mobile .btn-primary {
  margin-top: 24px;
  font-size: 1.125rem;
  padding: 16px 32px;
}

/* --- Cards --- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--border-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9375rem;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  gap: 24px;
}

.grid-3 {
  display: grid;
  gap: 24px;
}

.grid-4 {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Centered flex grid — for non-multiple-of-3 item counts in 3-col layouts */
.grid-3--center-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.grid-3--center-wrap > * {
  width: 100%;
}

@media (min-width: 768px) {
  .grid-3--center-wrap > * {
    width: calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .grid-3--center-wrap > * {
    width: calc(33.333% - 16px);
  }
}

/* Bento Grid */
.bento {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-wide { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-wide { grid-column: span 2; }
}

/* --- Stats --- */
.stat-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.hero-gradient-1 {
  background: var(--accent);
  top: -200px;
  right: -200px;
}

.hero-gradient-2 {
  background: var(--success);
  bottom: -300px;
  left: -200px;
  animation-delay: -7s;
}

.hero-gradient-3 {
  background: #047857;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  opacity: 0.08;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  max-width: 600px;
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 48px;
  opacity: 0.85;
  filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.15));
}

.hero-illustration img {
  width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }
  .hero-illustration {
    margin-top: 0;
    max-width: 100%;
  }
}

@media (max-width: 479px) {
  .hero-illustration {
    margin-top: 32px;
    max-width: 100%;
  }
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .page-hero { padding: 180px 0 100px; }
}

.page-hero .hero-bg {
  opacity: 0.5;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.125rem;
  max-width: 640px;
}

/* --- Feature Highlight --- */
.feature-row {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-row--reverse .feature-visual { order: -1; }
}

.feature-visual {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  padding: 24px;
}
@media (min-width: 768px) {
  .feature-visual { aspect-ratio: 4/3; padding: 0; }
}

.feature-visual-inner {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* --- Method Diagram (Interactive 4-Phase Timeline — APT-129) --- */
.method-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  gap: 0;
}

/* Entrance animation */
.method-diagram__phase {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.method-diagram.visible .method-diagram__phase {
  opacity: 1;
  transform: translateY(0);
}

.method-diagram__connector {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.method-diagram.visible .method-diagram__connector {
  opacity: 1;
}

/* Progress track (vertical on mobile) */
.method-diagram__track {
  display: none;
}

/* Phase card (button) */
.method-diagram__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  user-select: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.method-diagram__card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.12);
}

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

.method-diagram__card[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow), inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}

/* Phase number */
.method-diagram__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

/* Duration badge */
.method-diagram__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* Phase name */
.method-diagram__name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Phase description */
.method-diagram__desc {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Expand hint */
.method-diagram__hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 10px;
  opacity: 0.6;
  transition: opacity var(--duration) var(--ease);
}

.method-diagram__card[aria-expanded="true"] .method-diagram__hint {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Expandable details panel — uses max-height for no layout shift */
.method-diagram__details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
  padding: 0 24px;
}

.method-diagram__details[aria-hidden="false"] {
  max-height: 500px;
  opacity: 1;
  padding: 16px 24px 20px;
}

.method-diagram__detail-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}

.method-diagram__detail-row:first-child {
  border-top: none;
}

.method-diagram__detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 90px;
}

.method-diagram__detail-value {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.method-diagram__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.method-diagram__link:hover {
  color: var(--accent-hover);
}

/* Vertical connector (mobile default) */
.method-diagram__connector {
  width: 2px;
  height: 28px;
  background: var(--gradient-1);
  margin: 0 auto;
  position: relative;
  flex-shrink: 0;
}

.method-diagram__connector::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--success);
}

/* Desktop: horizontal layout */
@media (min-width: 960px) {
  .method-diagram {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .method-diagram__phase {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
  }

  .method-diagram__connector {
    width: 36px;
    height: 2px;
    align-self: center;
    margin: 0;
    margin-top: 48px;
    flex-shrink: 0;
  }

  .method-diagram__connector::after {
    bottom: auto;
    top: 50%;
    left: auto;
    right: -4px;
    transform: translateY(-50%);
    border-left: 6px solid var(--success);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: none;
  }

  /* Progress track (horizontal on desktop) */
  .method-diagram__track {
    display: block;
    position: absolute;
    top: 48px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: var(--surface-3);
    border-radius: 2px;
    z-index: 0;
    pointer-events: none;
  }

  .method-diagram__track-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 0.5s var(--ease);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .method-diagram__phase {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .method-diagram__connector {
    opacity: 1;
    transition: none;
  }
  .method-diagram__details {
    transition: none;
  }
  .method-diagram__track-fill {
    transition: none;
  }
}

/* --- Pricing Cards --- */
.pricing-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--duration) var(--ease);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 16px 0 8px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-features {
  margin: 24px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Blog/Insights Cards --- */
.insight-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.insight-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.insight-card-img {
  aspect-ratio: 16/9;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

.insight-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-subtle), rgba(16,185,129,0.05));
}

.insight-card-body {
  padding: 24px;
}

.insight-card-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}

.insight-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.insight-card-body h3 a:hover {
  color: var(--accent);
}

.insight-card-body p {
  font-size: 0.875rem;
  line-height: 1.6;
}


/* --- Insights Index Page --- */
.insights-index-header {
  margin-bottom: 40px;
}
.insights-index-header h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.insights-index-header p {
  color: var(--text-tertiary);
  font-size: 1rem;
}
.insights-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .insights-grid { grid-template-columns: repeat(3, 1fr); }
}
.insights-index-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}
.insights-index-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.insights-index-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
@media (max-width: 767px) {
  .insights-index-card--featured { flex-direction: column; }
}
.insights-index-card__img {
  aspect-ratio: 16/9;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.insights-index-card--featured .insights-index-card__img {
  aspect-ratio: auto;
  width: 40%;
}
@media (max-width: 767px) {
  .insights-index-card--featured .insights-index-card__img {
    width: 100%;
    aspect-ratio: 16/9;
  }
}
.insights-index-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.insights-index-card--featured .insights-index-card__body {
  padding: 32px;
  justify-content: center;
}
.insights-index-card__meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.insights-index-card__tag {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(99,185,255,0.1);
  color: var(--accent);
}
.insights-index-card__tag--featured {
  background: rgba(99,185,255,0.15);
  color: var(--accent);
}
.insights-index-card__tag--whitepaper {
  background: rgba(168,85,247,0.15);
  color: #a855f7;
}
.insights-index-card__body h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--text-primary);
}
.insights-index-card--featured .insights-index-card__body h3 {
  font-size: 1.5rem;
}
.insights-index-card__body p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
}
.insights-index-card--featured .insights-index-card__body p {
  font-size: 1rem;
}


/* --- Article Byline --- */
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.article-byline__avatar {
  flex-shrink: 0;
}

.article-byline__name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.article-byline__name a {
  color: var(--accent);
  text-decoration: none;
}

.article-byline__name a:hover {
  text-decoration: underline;
}

.article-byline__meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* --- Case Study Cards --- */
.case-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--duration) var(--ease);
}

.case-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.case-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.case-card h3 {
  margin-bottom: 12px;
}

.case-card p {
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.case-metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--success);
}

.case-metric-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: all var(--duration) var(--ease);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 16px rgba(16,185,129,0.15);
  animation: input-glow 1.5s ease-in-out infinite alternate;
}

@keyframes input-glow {
  from { box-shadow: 0 0 0 3px var(--accent-glow), 0 0 16px rgba(16,185,129,0.1); }
  to   { box-shadow: 0 0 0 4px var(--accent-glow), 0 0 24px rgba(16,185,129,0.25); }
}

/* Floating label lift on focus */
.form-group {
  position: relative;
}

.form-group .form-label {
  transition: all 200ms ease;
}

.form-group:focus-within .form-label {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Form error states (APT-306) */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--error, #ef4444);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
  border-color: var(--error, #ef4444);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--error, #ef4444);
}

.form-error::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--error, #ef4444);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-info-item h4 {
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9375rem;
}

/* --- Trust Badges --- */
.trust-badges {
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--border);
}
.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-badges-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-badges-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.trust-badge-items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-1);
  border: 1px solid var(--border);
  transition: border-color var(--duration) var(--ease);
  white-space: nowrap;
  text-decoration: none; /* reset anchor default */
  cursor: default;
}
a.trust-badge {
  cursor: pointer;
}
.trust-badge svg {
  width: 14px;
  height: 14px;
  color: var(--badge-color, var(--text-tertiary));
  flex-shrink: 0;
}
.trust-badge:hover {
  border-color: var(--border-hover);
}
.trust-badge--compliance svg {
  color: var(--badge-color, var(--success));
}
.trust-badges-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .trust-badges-row {
    flex-direction: column;
    gap: 16px;
  }
  .trust-badges-group {
    flex-direction: column;
    gap: 8px;
  }
  .trust-badges-divider {
    width: 40px;
    height: 1px;
  }
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .nav-brand {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
}

.footer-col h4 {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.footer-partners-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 8px;
  color: var(--text-tertiary);
}
.footer-partner {
  color: var(--text-secondary);
}
.footer-partner-sep {
  color: var(--text-tertiary);
  opacity: 0.5;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* --- Social Proof Logos --- */
/* --- CTA Banner --- */
.cta-banner {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-subtle) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  position: relative;
  margin-bottom: 16px;
}

.cta-banner p {
  position: relative;
  margin: 0 auto 32px;
  font-size: 1.125rem;
}

.cta-banner .btn-group {
  position: relative;
  justify-content: center;
}

/* --- Animations (Scroll Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 80px 0;
}

@media (min-width: 768px) {
  .divider { margin: 120px 0; }
}

/* --- Tags / Chips --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-1);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Network animation canvas --- */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: screen; /* additive glow over dark bg */
}

/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to main content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  z-index: 9999;
  transition: top var(--duration) var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* --- Stat Callout --- */
.stat-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--accent-subtle);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.stat-callout-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

.stat-callout-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-callout-value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-callout-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Multiple stat callouts in a row */
.stat-callout-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .stat-callout-row { grid-template-columns: repeat(2, 1fr); }
}

/* --- Key Insight --- */
.key-insight {
  position: relative;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.key-insight p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.key-insight strong {
  color: var(--text-primary);
}

.key-insight-icon {
  position: absolute;
  top: -10px;
  left: -14px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: #fff;
}

/* ============================================
   MOBILE-FIRST RESPONSIVE FIXES (APT-118)
   ============================================ */

/* --- Touch targets: minimum 44x44px --- */
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-mobile a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-col a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* --- 375px (small phones) breakpoint --- */
@media (max-width: 479px) {
  html {
    font-size: 16px; /* enforce minimum */
  }

  .container {
    padding: 0 16px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  h1, .hero-title {
    font-size: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
  }

  h2, .section-title {
    font-size: 1.625rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-gradient {
    width: 400px;
    height: 400px;
  }

  .hero-gradient-3 {
    width: 300px;
    height: 300px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header p {
    font-size: 1rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat {
    padding: 20px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .card {
    padding: 24px 20px;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .cta-banner p {
    font-size: 1rem;
  }

  .process-step::before {
    font-size: 2.25rem;
  }

  /* Feature visual inline metrics — prevent overflow */
  .feature-visual-inner {
    padding: 24px 16px !important;
  }

  .feature-visual-inner div[style*="font-size: 2.5rem"] {
    font-size: 1.75rem !important;
  }

  /* Footer stacking */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 24px 20px;
  }

  .testimonial-quote {
    font-size: 0.875rem;
  }

  /* Industries grid-4 already collapses but ensure single col */
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Page hero */
  .page-hero {
    padding: 120px 0 48px;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  /* Pricing */
  .pricing-card {
    padding: 28px 20px;
  }

  .pricing-price {
    font-size: 2.25rem;
  }

  /* Ensure no horizontal overflow from large elements */
  .hero-bg {
    overflow: hidden;
  }

  /* Mobile nav CTA — full-width, thumb-reachable */
  .nav-mobile .btn-primary {
    width: calc(100% - 48px);
    max-width: 320px;
  }
}

/* --- Tablet typography (768px–1023px) --- */
@media (min-width: 480px) and (max-width: 1023px) {
  h1, .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  h2, .section-title {
    font-size: 2rem;
    line-height: 1.2;
  }
}

/* --- 768px fixes (tablets) --- */
@media (max-width: 767px) {
  /* Ensure grid-4 goes single column on phones/small tablets */
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Feature row stacks vertically — already handled but ensure ordering */
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    aspect-ratio: auto;
    min-height: 240px;
  }

  /* Case study metrics — 2 col on small, not 3 */
  .case-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Bento stays single column */
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  /* Mobile CTA in hero: always full width */
  .btn-group {
    margin-top: 24px;
  }

  /* Stat grid: 2 col is fine at 768, already set */
}

/* --- Sticky mobile CTA bar --- */
@media (max-width: 1023px) {
  .nav-cta {
    display: none; /* already hidden, but be explicit */
  }

  /* Mobile menu: position CTA at bottom for thumb reach */
  .nav-mobile {
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 40px;
    overflow-y: auto;
  }

  .nav-mobile .btn-primary {
    margin-top: auto;
    position: sticky;
    bottom: 24px;
  }
}

/* --- Stagger children in grids --- */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children > *:nth-child(6) { transition-delay: 500ms; }

/* Ensure all card-like elements have hover lift */
.testimonial-card:hover,
.team-card:hover,
.pricing-card:hover,
.case-card:hover,
.insight-card:hover,
.security-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--border-hover);
}

/* Tech badges hover lift */
.tech-badge:hover {
  transform: translateY(-2px);
}

/* --- Reduce motion preference --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-gradient {
    animation: none;
  }

  .hero-canvas {
    display: none;
  }

  /* Disable all micro-interaction animations */
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-ghost:hover {
    transform: none;
  }

  .btn-secondary::before,
  .btn-ghost::before {
    transition: none;
  }

  .card:hover,
  .testimonial-card:hover,
  .team-card:hover,
  .pricing-card:hover,
  .case-card:hover,
  .insight-card:hover,
  .security-item:hover,
  .tech-badge:hover {
    transform: none;
  }

  @keyframes input-glow {
    from, to { box-shadow: 0 0 0 3px var(--accent-glow); }
  }

  .form-group:focus-within .form-label {
    transform: none;
  }

  .stagger-children > * {
    transition-delay: 0ms !important;
  }

  .counter-animated {
    /* Skip count-up, show final value immediately */
    transition: none;
  }
}

/* --- Misc --- */
::selection {
  background: var(--accent);
  color: #fff;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* --- Sticky CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(16,185,129,0.35), 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
  transform: translateY(calc(100% + 40px));
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
  opacity: 0;
}

.sticky-cta[hidden] {
  display: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .sticky-cta {
    transition: none;
  }
}

.sticky-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  min-height: 48px;
  text-decoration: none;
  transition: background var(--duration) var(--ease);
}

.sticky-cta-link:hover {
  background: rgba(255,255,255,0.1);
}

.sticky-cta-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 48px;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
  flex-shrink: 0;
}

.sticky-cta-dismiss:hover,
.sticky-cta-dismiss:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Mobile: full-width bottom bar */
@media (max-width: 767px) {
  .sticky-cta {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    max-height: 60px;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.3);
  }

  .sticky-cta-link {
    flex: 1;
    justify-content: center;
    padding: 14px 16px;
    min-height: 44px;
  }

  .sticky-cta-dismiss {
    min-height: 44px;
  }
}

/* --- Workflow Tear-Down Section --- */
.teardown {
  background: var(--surface-1);
}

.teardown-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.teardown-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 4px;
  gap: 0;
  position: relative;
}

.teardown-toggle-btn {
  position: relative;
  z-index: 1;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 36px;
  transition: color var(--duration) var(--ease);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  white-space: nowrap;
}

.teardown-toggle-btn[aria-pressed="true"] {
  color: #fff;
}

.teardown-toggle-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  border-radius: 36px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.teardown-toggle[data-active="before"] .teardown-toggle-indicator {
  transform: translateX(0);
  background: #e74c3c;
  box-shadow: 0 0 16px rgba(231, 76, 60, 0.35);
}

.teardown-toggle[data-active="after"] .teardown-toggle-indicator {
  transform: translateX(100%);
  background: var(--success);
  box-shadow: 0 0 16px var(--success-glow);
}

/* Workflow pipeline */
.teardown-pipeline-wrap {
  position: relative;
  overflow: hidden;
}

.teardown-pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

@media (max-width: 767px) {
  .teardown-pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .teardown-pipeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.teardown-pipeline--hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.teardown-pipeline--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.teardown-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  position: relative;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.teardown-step:hover {
  border-color: var(--border-hover);
}

/* Step number badge */
.teardown-step-num {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.teardown--before .teardown-step-num {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.teardown--after .teardown-step-num {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

/* Step icon */
.teardown-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.teardown--before .teardown-step-icon {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.teardown--after .teardown-step-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.teardown-step-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.teardown-step-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.45;
  max-width: 100%;
}

/* Arrow connectors — desktop only */
.teardown-step-arrow {
  display: none;
}

@media (min-width: 1024px) {
  .teardown-step-arrow {
    display: block;
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 0.875rem;
  }
  .teardown--before .teardown-step-arrow { color: #e74c3c; }
  .teardown--after .teardown-step-arrow { color: var(--success); }
  .teardown-step:last-child .teardown-step-arrow { display: none; }
}

/* Summary bar */
.teardown-summary {
  margin-top: 32px;
  padding: 20px 28px;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border: 1px solid var(--border);
}

.teardown-summary--before {
  background: rgba(231, 76, 60, 0.06);
  border-color: rgba(231, 76, 60, 0.15);
}

.teardown-summary--after {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
}

.teardown-summary-item {
  text-align: center;
}

.teardown-summary-value {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.teardown-summary--before .teardown-summary-value { color: #e74c3c; }
.teardown-summary--after .teardown-summary-value { color: var(--success); }

.teardown-summary-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* No-JS fallback: show both */
.teardown-noscript .teardown-pipeline {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  margin-bottom: 32px;
}

.teardown-noscript .teardown-pipeline--hidden {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* --- Team Section --- */
.team-section {
  background: var(--surface-1);
}

.team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

.team-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--duration) var(--ease);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

/* Override gradient text for the avatar circle background */
.team-avatar {
  background: var(--accent-subtle);
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--accent);
}

/* Photo avatar variant */
.team-avatar--photo {
  object-fit: cover;
  background: transparent;
  border: 2px solid var(--accent);
}

/* LinkedIn link */
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--duration) var(--ease);
}

.team-linkedin:hover {
  opacity: 0.8;
}

.team-linkedin svg {
  flex-shrink: 0;
}

.team-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 100%;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: auto;
}

.team-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface-3);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.team-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 32px;
  font-style: italic;
}

/* Centre a small number of cards so they don't left-align in a wide grid */
.team-grid--centered {
  justify-content: center;
}

@media (min-width: 768px) {
  .team-grid--centered { grid-template-columns: repeat(2, minmax(0, 360px)); }
}

/* Compact team grid for consulting page */
.team-grid--compact {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .team-grid--compact { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .team-grid--compact { grid-template-columns: repeat(4, 1fr); }
}

.team-card--compact {
  padding: 24px 20px;
}

.team-card--compact .team-avatar {
  width: 56px;
  height: 56px;
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.team-card--compact .team-role {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.team-card--compact .team-bio {
  font-size: 0.8125rem;
  margin-bottom: 12px;
}

/* --- Testimonials Section --- */
.testimonials-section {
  background: var(--surface-1);
}

.testimonial-grid {
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  right: 16px;
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.07;
  pointer-events: none;
}

.testimonial-metric {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent-hover);
  border: 1px solid rgba(16,185,129,0.15);
  align-self: flex-start;
}

.testimonial-quote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  flex: 1;
  border: none;
  margin: 0;
  padding: 0;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-tertiary);
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* --- Tech Stack Section --- */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.tech-category h3 {
  font-family: var(--font);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  font-weight: 600;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.tech-badge:hover {
  border-color: var(--border-hover);
  background: var(--surface-3);
}

.tech-badge .tech-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: grayscale(100%) brightness(0.7);
  transition: filter var(--duration) var(--ease);
}

.tech-badge:hover .tech-logo {
  filter: grayscale(0%) brightness(1);
}

/* Category brand colours */
.tech-badge--ai { border-color: rgba(16,163,127,0.2); }
.tech-badge--ai:hover { border-color: rgba(16,163,127,0.4); }

.tech-badge--automation { border-color: rgba(168,85,247,0.2); }
.tech-badge--automation:hover { border-color: rgba(168,85,247,0.4); }

.tech-badge--infra { border-color: rgba(245,158,11,0.2); }
.tech-badge--infra:hover { border-color: rgba(245,158,11,0.4); }

.tech-badge--business { border-color: rgba(59,130,246,0.2); }
.tech-badge--business:hover { border-color: rgba(59,130,246,0.4); }

@media (max-width: 640px) {
  .tech-stack-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ─── Security Section ─── */
.security-section {
  background: var(--surface-2);
  border-top: 1px solid rgba(16,185,129,0.15);
  border-bottom: 1px solid rgba(16,185,129,0.15);
}

.security-shield-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.security-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 12px;
  padding: 20px 32px;
  margin: 32px auto 40px;
  max-width: 640px;
}

.security-highlight-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.security-highlight-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--surface-3);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.2s ease;
}

.security-item:hover {
  border-color: rgba(16,185,129,0.2);
}

.security-check {
  color: var(--success);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.security-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.security-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.security-footer {
  text-align: center;
  margin-top: 36px;
}

.security-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.security-policy-link:hover {
  color: var(--accent-hover);
}

@media (max-width: 900px) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .security-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .security-highlight {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
  }
  .security-highlight-text {
    font-size: 1rem;
  }
}

/* ============================================
   How We're Different — Comparison Table
   ============================================ */
.comparison-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-1);
}

.comparison-header {
  display: none;
}

@media (min-width: 768px) {
  .comparison-header {
    display: grid;
    grid-template-columns: 160px 1fr 1fr;
    gap: 0;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
  }
  .comparison-dimension-label {
    padding: 16px 20px;
  }
  .comparison-col {
    padding: 16px 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .comparison-col--them {
    color: var(--text-tertiary);
    border-left: 1px solid var(--border);
  }
  .comparison-col--us {
    color: var(--accent);
    border-left: 1px solid var(--border);
    background: var(--accent-subtle);
  }
}

@media (min-width: 1024px) {
  .comparison-header {
    grid-template-columns: 180px 1fr 1fr;
  }
}

.comparison-row {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.comparison-row:first-of-type {
  border-top: none;
}

@media (min-width: 768px) {
  .comparison-row {
    display: grid;
    grid-template-columns: 160px 1fr 1fr;
    flex-direction: unset;
  }
}

@media (min-width: 1024px) {
  .comparison-row {
    grid-template-columns: 180px 1fr 1fr;
  }
}

.comparison-dimension {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--surface-2);
}

@media (min-width: 768px) {
  .comparison-dimension {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 24px 20px;
  }
}

.comparison-dimension-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.comparison-dimension-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.comparison-cell {
  padding: 16px 20px;
}

.comparison-cell p {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}

.comparison-cell--them {
  color: var(--text-tertiary);
  position: relative;
}

.comparison-cell--them::before {
  content: "Traditional consultancies";
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  opacity: 0.7;
}

.comparison-cell--us {
  color: var(--text-primary);
  background: var(--accent-subtle);
  position: relative;
}

.comparison-cell--us::before {
  content: "Aptimate";
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .comparison-cell {
    padding: 24px;
    border-left: 1px solid var(--border);
  }
  .comparison-cell--them::before,
  .comparison-cell--us::before {
    display: none;
  }
}

/* Hover highlight on rows */
@media (min-width: 768px) {
  .comparison-row {
    transition: background var(--duration) var(--ease);
  }
  .comparison-row:hover {
    background: rgba(255, 255, 255, 0.02);
  }
  .comparison-row:hover .comparison-cell--us {
    background: rgba(16, 185, 129, 0.12);
  }
}

/* Mobile stacked layout refinements */
@media (max-width: 767px) {
  .comparison-table {
    border-radius: var(--radius);
  }
  .comparison-cell--them {
    border-top: 1px solid var(--border);
  }
  .comparison-cell--us {
    border-top: 1px solid var(--border);
  }
}

/* ============================================
   PAGE TRANSITIONS (APT-134)
   Uses CSS View Transitions API with JS fade fallback.
   GPU-composited: opacity + transform only.
   ============================================ */

/* --- View Transition API (Chrome 111+, Edge 111+) --- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 200ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

::view-transition-old(root) {
  animation-name: vt-fade-out;
}

::view-transition-new(root) {
  animation-name: vt-fade-in;
}

@keyframes vt-fade-out {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.99); }
}

@keyframes vt-fade-in {
  from { opacity: 0; transform: scale(0.99); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- JS fallback fade transition (non-VT browsers) --- */
.page-transition-fade-out {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

/* --- GPU performance hints for animated elements --- */
.reveal,
.card,
.testimonial-card,
.team-card,
.pricing-card,
.case-card,
.insight-card,
.security-item,
.tech-badge,
.btn-primary,
.btn-secondary,
.btn-ghost,
.method-diagram__phase,
.method-diagram__connector,
.teardown-pipeline,
.sticky-cta {
  will-change: transform, opacity;
}

/* Remove will-change after animation completes (set by JS) */
.will-change-auto {
  will-change: auto;
}

/* --- Low-FPS mode: triggered by JS FPS monitor (APT-134) --- */
body.low-fps-mode .hero-canvas {
  display: none;
}

body.low-fps-mode .reveal,
body.low-fps-mode .card,
body.low-fps-mode .testimonial-card,
body.low-fps-mode .team-card,
body.low-fps-mode .pricing-card,
body.low-fps-mode .case-card,
body.low-fps-mode .insight-card,
body.low-fps-mode .security-item,
body.low-fps-mode .tech-badge,
body.low-fps-mode .method-diagram__phase,
body.low-fps-mode .method-diagram__connector,
body.low-fps-mode .teardown-pipeline {
  transition: none !important;
  animation: none !important;
}

/* --- Low-end device: detected at startup (APT-134) --- */
body.low-end-device .hero-canvas {
  display: none;
}

body.low-end-device .reveal,
body.low-end-device .card,
body.low-end-device .testimonial-card,
body.low-end-device .team-card,
body.low-end-device .pricing-card,
body.low-end-device .case-card,
body.low-end-device .insight-card,
body.low-end-device .security-item,
body.low-end-device .tech-badge,
body.low-end-device .method-diagram__phase,
body.low-end-device .method-diagram__connector,
body.low-end-device .teardown-pipeline {
  transition-duration: 150ms !important;
  transition-delay: 0ms !important;
  animation: none !important;
}

/* --- prefers-reduced-motion: disable page transitions too --- */
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  .page-transition-fade-out {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal,
  .card,
  .testimonial-card,
  .team-card,
  .pricing-card,
  .case-card,
  .insight-card,
  .security-item,
  .tech-badge,
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .method-diagram__phase,
  .method-diagram__connector,
  .teardown-pipeline,
  .sticky-cta {
    will-change: auto;
  }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  font-size: 0.9375rem;
  line-height: 1.5;
  display: none;
  align-items: flex-start;
  gap: 16px;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.cookie-banner__content {
  flex: 1;
  color: var(--text-secondary);
}

.cookie-banner__title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.875rem;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: var(--accent-hover);
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

.cookie-banner__btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.cookie-banner__btn--accept {
  background: var(--accent);
  color: #fff;
}

.cookie-banner__btn--accept:hover {
  background: var(--accent-hover);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.cookie-banner__btn--reject:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    padding: 16px;
  }

  .cookie-banner__actions {
    width: 100%;
    margin-top: 12px;
  }

  .cookie-banner__btn {
    flex: 1;
    text-align: center;
  }
}
