/* ===========================
   PRECOH.AI — Design System
   Healthcare AI Consultancy
   =========================== */

/* ---- CUSTOM PALETTE: Deep Navy + Clinical Teal + Soft White ---- */
:root, [data-theme='light'] {
  /* 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);
  --text-hero: clamp(3rem,     0.5rem + 7vw,    8rem);

  /* 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;

  /* Surfaces — crisp clinical whites */
  --color-bg:              #f4f6f9;
  --color-surface:         #ffffff;
  --color-surface-2:       #f9fafb;
  --color-surface-offset:  #edf0f5;
  --color-surface-offset-2:#e4e8f0;
  --color-surface-dynamic: #d8dde8;
  --color-divider:         #d0d5e0;
  --color-border:          #c5cbda;

  /* Text */
  --color-text:         #0f1928;
  --color-text-muted:   #5c6880;
  --color-text-faint:   #a8b0c0;
  --color-text-inverse: #f4f6f9;

  /* Primary — deep teal-blue (clinical, trustworthy) */
  --color-primary:          #1a5f7a;
  --color-primary-hover:    #124558;
  --color-primary-active:   #0c3040;
  --color-primary-highlight:#c8dde8;

  /* Accent — vivid teal */
  --color-accent:           #00a8b5;
  --color-accent-hover:     #007f8a;
  --color-accent-active:    #005f68;
  --color-accent-highlight: #ccedf0;

  /* Navy (hero background) */
  --color-navy:             #0b1f3a;
  --color-navy-mid:         #112a4e;

  /* Semantic */
  --color-success:          #1a8a50;
  --color-success-highlight:#c8e8d5;
  --color-warning:          #9a5d00;
  --color-error:            #c0253a;

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

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

  /* Shadows */
  --shadow-sm:  0 1px 3px oklch(0.15 0.05 220 / 0.08);
  --shadow-md:  0 4px 16px oklch(0.15 0.05 220 / 0.10);
  --shadow-lg:  0 12px 40px oklch(0.15 0.05 220 / 0.14);
  --shadow-xl:  0 24px 64px oklch(0.15 0.05 220 / 0.18);

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

  /* Font families */
  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg:              #090e1a;
  --color-surface:         #0e1628;
  --color-surface-2:       #121c30;
  --color-surface-offset:  #111726;
  --color-surface-offset-2:#161e32;
  --color-surface-dynamic: #1e2840;
  --color-divider:         #1e2840;
  --color-border:          #28355a;

  --color-text:         #e0e6f0;
  --color-text-muted:   #8090b0;
  --color-text-faint:   #485070;
  --color-text-inverse: #090e1a;

  --color-primary:          #5baccc;
  --color-primary-hover:    #7ec4db;
  --color-primary-active:   #9dd4e7;
  --color-primary-highlight:#1a3550;

  --color-accent:           #00c8d8;
  --color-accent-hover:     #00a8b5;
  --color-accent-active:    #008890;
  --color-accent-highlight: #0e2d35;

  --color-navy:             #060e20;
  --color-navy-mid:         #0c1830;

  --color-success:          #2aaa68;
  --color-success-highlight:#0e2820;
  --color-warning:          #d4840a;
  --color-error:            #e8485c;

  --shadow-sm:  0 1px 3px oklch(0 0 0 / 0.3);
  --shadow-md:  0 4px 16px oklch(0 0 0 / 0.4);
  --shadow-lg:  0 12px 40px oklch(0 0 0 / 0.5);
  --shadow-xl:  0 24px 64px oklch(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:              #090e1a;
    --color-surface:         #0e1628;
    --color-surface-2:       #121c30;
    --color-surface-offset:  #111726;
    --color-surface-offset-2:#161e32;
    --color-surface-dynamic: #1e2840;
    --color-divider:         #1e2840;
    --color-border:          #28355a;
    --color-text:         #e0e6f0;
    --color-text-muted:   #8090b0;
    --color-text-faint:   #485070;
    --color-text-inverse: #090e1a;
    --color-primary:          #5baccc;
    --color-primary-hover:    #7ec4db;
    --color-accent:           #00c8d8;
    --color-accent-hover:     #00a8b5;
    --color-accent-highlight: #0e2d35;
    --color-navy:             #060e20;
    --color-navy-mid:         #0c1830;
    --shadow-sm:  0 1px 3px oklch(0 0 0 / 0.3);
    --shadow-md:  0 4px 16px oklch(0 0 0 / 0.4);
    --shadow-lg:  0 12px 40px oklch(0 0 0 / 0.5);
  }
}

/* ===========================
   LAYOUT UTILITIES
   =========================== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
}

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

/* ===========================
   NAVIGATION
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition-slow), background var(--transition-slow);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: var(--space-8);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.site-logo svg {
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.logo-text span {
  color: var(--color-accent);
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

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

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  border-color: var(--color-primary);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  cursor: pointer;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 2px;
  transition: transform var(--transition-interactive), opacity var(--transition-interactive);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-actions .btn { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--space-3) var(--space-4); }
  .nav-toggle { display: flex; }
  .site-header { position: sticky; }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: all var(--transition-interactive);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-navy);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

/* ===========================
   SECTION UTILITIES
   =========================== */
section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.7;
}

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

.text-center .section-subtitle {
  margin-inline: auto;
}

.text-center .section-label {
  justify-content: center;
}
.text-center .section-label::before { display: none; }
.text-center .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ===========================
   CARDS
   =========================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-highlight);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-accent);
}

[data-theme='dark'] .card-icon {
  background: var(--color-accent-highlight);
  color: var(--color-accent);
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 48ch;
}

/* ===========================
   GRID LAYOUTS
   =========================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-6);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--space-5);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--color-navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,168,181,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 70%, rgba(26,95,122,0.2) 0%, transparent 60%),
    linear-gradient(135deg, var(--color-navy) 0%, #0d2447 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,168,181,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,168,181,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-24);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: rgba(0,168,181,0.1);
  border: 1px solid rgba(0,168,181,0.25);
  border-radius: var(--radius-full);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-description {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-8);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero-stat-value em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 20ch;
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  background: var(--color-navy);
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 20% 50%, rgba(0,168,181,0.08) 0%, transparent 60%);
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero .hero-eyebrow { margin-bottom: var(--space-4); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.page-hero p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  max-width: 54ch;
  line-height: 1.7;
}

/* ===========================
   DIVIDER WITH LABEL
   =========================== */
.divider-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-block: var(--space-4);
}

.divider-label::before, .divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.65);
  padding-block: var(--space-16) var(--space-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: var(--color-accent); }

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-4);
  max-width: 36ch;
  line-height: 1.65;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}

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

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-brand { grid-column: 1 / -1; }
}

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

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ===========================
   TRUST BADGES / LOGOS
   =========================== */
.trust-bar {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding-block: var(--space-6);
}

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

.trust-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.trust-item {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ===========================
   STEP/PROCESS LIST
   =========================== */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
  align-items: start;
}

.process-step:last-child { border-bottom: none; }

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-primary-highlight);
  line-height: 1;
  font-weight: 400;
  padding-top: var(--space-2);
}

[data-theme='dark'] .step-number { color: rgba(91,172,204,0.25); }

.step-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 56ch;
}

/* ===========================
   STAT BLOCKS
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-6);
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===========================
   PROBLEM/CALLOUT BLOCKS
   =========================== */
.callout-block {
  background: var(--color-surface-offset);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-6) var(--space-8);
}

.callout-block p {
  font-size: var(--text-base);
  color: var(--color-text);
  font-style: italic;
  max-width: 65ch;
}

/* Challenge/problem item */
.challenge-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.challenge-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: rgba(192,37,58,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-error);
}

[data-theme='dark'] .challenge-icon {
  background: rgba(232,72,92,0.1);
}

.challenge-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.challenge-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===========================
   CONTACT FORM
   =========================== */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

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

.form-field input,
.form-field textarea,
.form-field select {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

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

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

/* ===========================
   CASE STUDY CARDS
   =========================== */
.case-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

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

.case-card-header {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.case-card-header::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0,168,181,0.12);
}

.case-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0,168,181,0.12);
  border: 1px solid rgba(0,168,181,0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.case-card-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}

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

.case-result {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.result-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1;
}

.result-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===========================
   TEAM / ABOUT
   =========================== */
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

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

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-primary-highlight), var(--color-accent-highlight));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
}

.team-info { padding: var(--space-5) var(--space-6); }

.team-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.team-info .role {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.team-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===========================
   CTA BANNER
   =========================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, #0d2d4a 100%);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-10), 6vw, var(--space-20));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,168,181,0.12) 0%, transparent 60%);
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--space-4);
  max-width: 20ch;
  margin-inline: auto;
  line-height: 1.1;
}

.cta-banner p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

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

/* ===========================
   SKIP LINK
   =========================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

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

/* ===========================
   SUCCESS MESSAGE
   =========================== */
.form-success {
  display: none;
  background: var(--color-success-highlight);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  color: var(--color-success);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--space-4);
}

/* ===========================
   RESPONSIVE TWEAKS
   =========================== */
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: var(--space-6); }
  .cta-actions { flex-direction: column; align-items: center; }
  .process-step { grid-template-columns: 48px 1fr; gap: var(--space-4); }
  .step-number { font-size: var(--text-2xl); }
}
