/* ========================================
   UPSTREAM ACCESS — Design Tokens & Styles
   ======================================== */

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

  /* --- Spacing (4px base) --- */
  --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;

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

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

  /* --- Content Widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

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

/* --- LIGHT MODE (Default) --- */
:root, [data-theme="light"] {
  /* Surfaces — cool clinical white */
  --color-bg:             #f8f8fa;
  --color-surface:        #ffffff;
  --color-surface-2:      #f5f5f7;
  --color-surface-offset: #eef0f4;
  --color-divider:        #dde0e6;
  --color-border:         #d0d4dc;

  /* Text */
  --color-text:           #1a1d26;
  --color-text-muted:     #5c6272;
  --color-text-faint:     #9ba1b0;
  --color-text-inverse:   #ffffff;

  /* Primary — Upstream Red */
  --color-primary:        #C41230;
  --color-primary-hover:  #a30f28;
  --color-primary-active: #8a0d22;
  --color-primary-light:  #fce8ec;

  /* Accent — Deep Navy (authority) */
  --color-accent:         #1a2744;
  --color-accent-light:   #2d3f66;

  /* Success / Trust */
  --color-success:        #1a7a4c;
  --color-success-light:  #e6f5ee;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 29, 38, 0.05);
  --shadow-md: 0 4px 12px rgba(26, 29, 38, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 29, 38, 0.12);
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --color-bg:             #0f1118;
  --color-surface:        #161821;
  --color-surface-2:      #1c1f2a;
  --color-surface-offset: #1a1d26;
  --color-divider:        #2a2d38;
  --color-border:         #363a48;

  --color-text:           #e0e2ea;
  --color-text-muted:     #8b91a4;
  --color-text-faint:     #5c6272;
  --color-text-inverse:   #0f1118;

  --color-primary:        #e84a64;
  --color-primary-hover:  #f06a80;
  --color-primary-active: #c41230;
  --color-primary-light:  rgba(232, 74, 100, 0.12);

  --color-accent:         #1a2238;
  --color-accent-light:   #2d3f66;

  --color-success:        #4cb87a;
  --color-success-light:  rgba(76, 184, 122, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .svg-retro-line { stroke: #ffffff; fill: #ffffff; }
[data-theme="dark"] .svg-access-line { stroke: #ffffff; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0f1118;
    --color-surface:        #161821;
    --color-surface-2:      #1c1f2a;
    --color-surface-offset: #1a1d26;
    --color-divider:        #2a2d38;
    --color-border:         #363a48;
    --color-text:           #e0e2ea;
    --color-text-muted:     #8b91a4;
    --color-text-faint:     #5c6272;
    --color-text-inverse:   #0f1118;
    --color-primary:        #e84a64;
    --color-primary-hover:  #f06a80;
    --color-primary-active: #c41230;
    --color-primary-light:  rgba(232, 74, 100, 0.12);
    --color-accent:         #1a2238;
    --color-accent-light:   #2d3f66;
    --color-success:        #4cb87a;
    --color-success-light:  rgba(76, 184, 122, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
  :root:not([data-theme]) .svg-retro-line { stroke: #ffffff; fill: #ffffff; }
  :root:not([data-theme]) .svg-access-line { stroke: #ffffff; }
}

/* ========================================
   GLOBAL COMPONENTS
   ======================================== */

/* --- Container --- */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .header-inner { padding-inline: var(--space-8); }
}
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.logo-text span {
  color: var(--color-primary);
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}
.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

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

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

/* Mobile menu */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 56px;
  right: var(--space-4);
  left: auto;
  bottom: auto;
  width: 200px;
  background: var(--color-surface);
  z-index: 99;
  padding: var(--space-3);
  flex-direction: column;
  gap: var(--space-1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover,
.mobile-nav a:active {
  background: var(--color-surface-offset);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-primary:active {
  background: var(--color-primary-active);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text-muted);
}
.btn-sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
}
.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
}

/* --- Section --- */
.section {
  padding-block: clamp(var(--space-6), 4vw, var(--space-12));
}
.section-narrow {
  max-width: var(--content-default);
  margin-inline: auto;
}

/* --- Section Headers --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.card-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-6);
}
.stat-item {
  text-align: center;
  padding: var(--space-6);
}
.stat-number {
  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-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#sheathTypographyBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 767px) {
  #sheathTypographyBg { display: none; }
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--color-accent) 0%,
    #2a1428 40%,
    var(--color-primary-active) 100%);
  opacity: 0.97;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 70% 30%, rgba(196, 18, 48, 0.2), transparent),
    radial-gradient(ellipse 400px 300px at 20% 70%, rgba(26, 39, 68, 0.3), transparent);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .hero-content {
    padding: var(--space-20) var(--space-8);
    grid-template-columns: 1.2fr 1fr;
  }
}
.hero-text {
  color: #ffffff;
  background: rgba(26, 10, 16, 0.85);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-lg);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: #4cb87a;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: #ffffff;
}
.hero h1 em {
  font-style: normal;
  color: #e84a64;
}
.hero-subtitle {
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 50ch;
  margin-bottom: var(--space-8);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero .btn-primary {
  background: var(--color-primary);
}
.hero .btn-primary:hover {
  background: #e84a64;
}
.hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hero visual */
.hero-visual {
  display: none;
  position: relative;
}
@media (min-width: 768px) {
  .hero-visual { display: block; }
}
.hero-device-graphic {
  position: relative;
  padding: var(--space-8);
}
.device-diagram {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* --- Page Header (interior) --- */
.page-header {
  background: var(--color-accent);
  color: #ffffff;
  padding: clamp(var(--space-12), 8vw, var(--space-20)) var(--space-4);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 300px at 80% 50%, rgba(196, 18, 48, 0.08), transparent);
  pointer-events: none;
}
.page-header .container {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.page-header p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  max-width: 55ch;
  line-height: 1.7;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
.two-col.reversed > :first-child {
  order: 2;
}
@media (max-width: 767px) {
  .two-col.reversed > :first-child { order: 0; }
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 6px);
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
}
.timeline-year {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}
.timeline-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.timeline-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
.team-card {
  text-align: center;
}
.team-photo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-text-faint);
  overflow: hidden;
  border: 3px solid var(--color-divider);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.team-role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.team-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 38ch;
  margin-inline: auto;
}

/* --- Partners --- */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  justify-content: center;
}
.partner-logo {
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* --- Market Sizing Bars --- */
.market-bar-container {
  margin-bottom: var(--space-6);
}
.market-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}
.market-bar-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.market-bar-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
}
.market-bar {
  height: 10px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.market-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), #e84a64);
  transition: width 1s ease-out;
}

/* --- Contact Form --- */
.contact-form {
  display: grid;
  gap: var(--space-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
  color: var(--color-text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-accent);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-12) var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer { padding-inline: var(--space-8); }
}
.footer-brand {
  max-width: 36ch;
}
.footer-brand .logo-text {
  color: #ffffff;
  margin-bottom: var(--space-3);
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
}
.footer-nav h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-nav a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: var(--space-1) 0;
}
.footer-nav a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #ffffff;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Patent Badge --- */
.patent-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-success-light);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* --- Procedure Type Grid --- */
.procedure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .procedure-grid { grid-template-columns: repeat(3, 1fr); }
}
.procedure-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}
.procedure-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.procedure-card .stat {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.procedure-card .desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-accent) 0%, #2a1428 60%, var(--color-primary-active) 100%);
  color: #ffffff;
  text-align: center;
  padding: clamp(var(--space-12), 8vw, var(--space-20)) var(--space-4);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.cta-section p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.cta-section .btn-primary {
  background: var(--color-primary);
}
.cta-section .btn-primary:hover {
  background: #e84a64;
}
.blood-flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.cta-section .container {
  position: relative;
  z-index: 1;
}

/* --- Info Box --- */
.info-box {
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-6);
}
.info-box p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
}

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
