/**
 * GacruxAI Global Stylesheet — deck-aligned (v2)
 * Source of truth: pitch deck design system.
 *
 * Primitives:
 *   .sec-head   — eyebrow + tight headline + blue bar
 *   .btn        — pill, primary / secondary
 *   .card       — 1.8px rule border, 12–14px radius
 *   .stat-block — mono label → big number → sub-text
 *   .arrow-list — triangle bullets
 *   .badge      — LIVE / IN DEV / CONCEPT
 *   .section--dark — ink background with subtle grid overlay
 */

@import url("../brand/tokens/css-variables.css");
@import url("../brand/tokens/sharp-overrides.css");

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ========================================
   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-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: var(--tracking-body);
  color: var(--ink-2);
  background: var(--white);
  overflow-x: hidden;
}

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

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

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

ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.05;
  font-weight: 800;
}

h1, .h1 { font-size: clamp(40px, 5.4vw, 72px); letter-spacing: var(--tracking-h1); line-height: 0.98; }
h2, .h2 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: var(--tracking-h2); line-height: 1.02; font-weight: 800; }
h3, .h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: var(--tracking-h3); line-height: 1.15; font-weight: 700; }
h4, .h4 { font-size: 18px; letter-spacing: -0.005em; line-height: 1.25; font-weight: 700; }

p { line-height: 1.65; color: var(--ink-2); }

.lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); }

.text-muted { color: #6C6C6C; }

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

.mono {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: var(--tracking-data);
  text-transform: uppercase;
}

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

.hl { color: var(--blue); }

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

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

.prose { max-width: var(--max-width-text); }
.prose--center { margin-left: auto; margin-right: auto; }

/* Sections — alternate three values: white, panel, ink */
.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section--compact { padding: var(--space-12) 0; }

.section--panel { background: var(--panel); }

.section--muted { background: var(--muted); }

.section--dark {
  background: var(--ink);
  color: #EDEDED;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: #BFBFBF; }
.section--dark .text-muted { color: #9A9A9A; }

/* Subtle 60x60 grid overlay on dark sections — never bigger, never more opaque */
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }

/* ========================================
   Section header — the deck signature pattern
   eyebrow → big tight headline → blue bar
   ======================================== */
.sec-head {
  margin-bottom: var(--space-12);
  max-width: var(--max-width-narrow);
}

.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .bar { margin-left: auto; margin-right: auto; }

.sec-head .eyebrow,
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.section--dark .sec-head .eyebrow,
.section--dark .eyebrow { color: var(--blue-soft); }

.sec-head h1,
.sec-head h2 {
  margin: 0;
}

.sec-head .lead {
  margin-top: var(--space-5);
  color: var(--ink-2);
  max-width: var(--max-width-text);
}
.sec-head--center .lead { margin-left: auto; margin-right: auto; }

.section--dark .sec-head .lead { color: #BFBFBF; }

.sec-head .bar {
  margin-top: 28px;
  width: 200px;
  height: 6px;
  background: var(--blue);
}

.section--dark .sec-head .bar { background: var(--blue-soft); }

/* ========================================
   Grid
   ======================================== */
.grid { display: grid; gap: var(--space-6); }
.grid--lg { gap: var(--space-8); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--t-base);
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--rule); }

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

.nav__logo { display: flex; align-items: center; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding: var(--space-2) 0;
  transition: color var(--t-fast);
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--blue); }
.nav__link.active { color: var(--ink); border-bottom-color: var(--blue); }

.nav__cta { margin-left: var(--space-3); }

.nav__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  padding: 4px;
  z-index: 1001;
}
.nav__menu-btn span {
  display: block;
  width: 100%; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--t-fast);
}
.nav__menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__menu-btn.active span:nth-child(2) { opacity: 0; }
.nav__menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--white);
  padding-top: calc(var(--nav-height) + var(--space-8));
  opacity: 0; visibility: hidden;
  transition: all var(--t-base);
}
.mobile-nav.active { opacity: 1; visibility: visible; }

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--gutter);
  gap: var(--space-1);
}
.mobile-nav__link {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
  transition: color var(--t-fast);
}
.mobile-nav__link:hover,
.mobile-nav__link.active { color: var(--blue); }
.mobile-nav__link--sub { padding-left: var(--space-4); font-size: 0.9375rem; }

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
  .mobile-nav { display: block; }
}

/* ========================================
   Buttons — pill, no gradient, no glow
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.005em;
  padding: 14px 30px;
  border-radius: 9999px;
  border: 2px solid transparent;
  transition: all var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn--secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--secondary:hover { background: var(--blue); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
}
.btn--ghost:hover { color: var(--blue); }

.btn[disabled],
.btn--disabled {
  background: var(--rule);
  color: #8A8A8A;
  border-color: var(--rule);
  cursor: not-allowed;
}

.btn--lg { font-size: 15px; padding: 16px 34px; }
.btn--sm { font-size: 12px; padding: 10px 22px; }

/* On dark sections */
.section--dark .btn--secondary {
  color: var(--white);
  border-color: var(--white);
}
.section--dark .btn--secondary:hover {
  background: var(--white);
  color: var(--ink);
}

/* Outline alias (legacy) */
.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: var(--white); }
.section--dark .btn--outline { color: var(--white); border-color: var(--white); }
.section--dark .btn--outline:hover { background: var(--white); color: var(--ink); }

/* ========================================
   Cards — 1.8px rule border, 12–14px radius
   ======================================== */
.card {
  position: relative;
  background: var(--white);
  border: 1.8px solid var(--rule);
  border-radius: 14px;
  padding: var(--space-8);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.card:hover { border-color: var(--blue); }

a.card { display: block; }
a.card:hover { box-shadow: var(--shadow-card); }

.card--panel { background: var(--panel); }

.card--elevated { box-shadow: var(--shadow-card); }

.card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.card__text { color: var(--ink-2); line-height: 1.65; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  margin-bottom: var(--space-5);
}
.card__icon svg { width: 22px; height: 22px; stroke: currentColor; }

.card--compact { padding: var(--space-5); }
.card--compact .card__title { font-size: 16px; }

/* Card title with status badge */
.card__title-row {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.card__title-row .card__title { margin: 0; }

/* On dark sections — card flips to ink/blue-soft */
.section--dark .card {
  background: #262626;
  border-color: rgba(255,255,255,.10);
}
.section--dark .card:hover { border-color: var(--blue-soft); }
.section--dark .card__title { color: var(--white); }
.section--dark .card__text { color: #BFBFBF; }

/* ========================================
   Stat block — mono label → big number → sub
   ======================================== */
.stat-block,
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-block__label,
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-data);
  color: #6C6C6C;
}
.section--dark .stat-block__label,
.section--dark .stat__label { color: var(--blue-soft); }

.stat-block__value,
.stat__value {
  font-family: var(--font-sans);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.section--dark .stat-block__value,
.section--dark .stat__value { color: var(--white); }

.stat-block__sub,
.stat__sublabel {
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-2);
}
.section--dark .stat-block__sub,
.section--dark .stat__sublabel { color: #BFBFBF; }

/* Compact variant for stats bars */
.stat--compact .stat__value { font-size: clamp(32px, 3.4vw, 44px); }

/* ========================================
   Arrow bullets
   ======================================== */
.arrow-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.arrow-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: var(--space-3);
  line-height: 1.55;
  color: var(--ink-2);
}
.arrow-list li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0.55em;
  width: 16px; height: 16px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.section--dark .arrow-list li { color: #D8D8D8; }
.section--dark .arrow-list li::before { background: var(--blue-soft); }

/* ========================================
   Status badges
   ======================================== */
.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-data);
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
  line-height: 1;
}

.badge--live,
.status-badge--live {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.badge--dev,
.status-badge--dev {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.badge--concept,
.status-badge--spec,
.status-badge--planned {
  background: transparent;
  color: #6C6C6C;
  border-color: #C9C9C9;
}

.section--dark .badge { border-color: var(--blue-soft); color: var(--blue-soft); }
.section--dark .badge--live { background: var(--blue-soft); color: var(--ink); border-color: var(--blue-soft); }
.section--dark .badge--concept { color: #9A9A9A; border-color: #555; }

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-20);
  background: var(--white);
}
.hero--dark,
.hero--navy {
  background: var(--navy);
  color: var(--white);
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero--navy > .container,
.hero--dark > .container { position: relative; z-index: 1; }
.hero--dark::before,
.hero--navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero--navy .hero__title,
.hero--dark .hero__title { color: var(--white); }
.hero--navy .hero__title .hl,
.hero--dark .hero__title .hl { color: var(--blue-soft); }
.hero--navy .hero__subtitle,
.hero--dark .hero__subtitle { color: rgba(255,255,255,.78); }
.hero--navy .eyebrow,
.hero--dark .eyebrow { color: var(--blue-soft); }
.hero--navy .badge,
.hero--dark .badge { color: var(--blue-soft); border-color: var(--blue-soft); }
.hero--navy .badge--live,
.hero--dark .badge--live { background: var(--blue-soft); color: var(--navy); border-color: var(--blue-soft); }
.hero--navy .btn--secondary,
.hero--dark .btn--secondary { color: var(--white); border-color: var(--white); }
.hero--navy .btn--secondary:hover,
.hero--dark .btn--secondary:hover { background: var(--white); color: var(--navy); }
.hero--navy .bar,
.hero--dark .bar { background: var(--blue-soft); }

/* Home page — every dark moment is deck-cover navy for narrative coherence */
body.page-home .section--dark,
body.page-home .cta-section { background: var(--navy); }
body.page-home .section--dark::before,
body.page-home .cta-section::before {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__content { position: relative; z-index: 1; max-width: 820px; }

.hero__title {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: var(--space-5);
  color: var(--ink);
}
.hero--dark .hero__title { color: var(--white); }
.hero__title .hl { color: var(--blue); }
.hero--dark .hero__title .hl { color: var(--blue-soft); }

.hero__subtitle {
  font-size: 1.1875rem;
  line-height: 1.55;
  max-width: 640px;
  color: var(--ink-2);
  margin-bottom: var(--space-8);
}
.hero--dark .hero__subtitle { color: #BFBFBF; }

.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Page header (non-home pages) */
.page-header {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-12);
  background: var(--panel);
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.page-header__content { max-width: var(--max-width-narrow); }
.page-header__title {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 0.98;
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: var(--ink);
}
.page-header__subtitle {
  font-size: 1.0625rem;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: var(--max-width-text);
}
.page-header .bar {
  margin-top: 22px;
  width: 200px; height: 6px;
  background: var(--blue);
}

/* ========================================
   Stats Bar
   ======================================== */
.stats-bar {
  background: var(--panel);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-12) 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
@media (max-width: 1024px) { .stats-bar__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .stats-bar__grid { grid-template-columns: 1fr; } }

/* ========================================
   Section header (legacy classes mapped to new look)
   ======================================== */
.section-header {
  text-align: center;
  max-width: var(--max-width-narrow);
  margin: 0 auto var(--space-12);
}
.section-header__label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  margin-bottom: 14px;
}
.section-header__title {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-4);
  line-height: 1.02;
}
.section--dark .section-header__title { color: var(--white); }
.section-header__subtitle {
  font-size: 1.0625rem;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: var(--max-width-text);
  margin: 0 auto;
}
.section--dark .section-header__subtitle { color: #BFBFBF; }

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  position: relative;
  text-align: left;
  padding: var(--space-20) 0;
  background: var(--ink);
  color: var(--white);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.cta-section > .container { position: relative; z-index: 1; }
.cta-section__content { max-width: var(--max-width-narrow); }
.cta-section__title {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-4);
  line-height: 1.02;
}
.cta-section__text {
  font-size: 1.0625rem;
  color: #BFBFBF;
  max-width: var(--max-width-text);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.cta-section .btn--secondary {
  background: var(--white); color: var(--ink); border-color: var(--white);
}
.cta-section .btn--secondary:hover { background: rgba(255,255,255,.85); border-color: rgba(255,255,255,.85); }

.cta-section .btn--outline { color: var(--white); border-color: var(--white); }
.cta-section .btn--outline:hover { background: var(--white); color: var(--ink); }

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--rule);
  padding: var(--space-16) 0 var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer__brand { max-width: 300px; }
.footer__logo { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer__tagline { color: var(--ink-2); line-height: 1.6; font-size: 14px; }
.footer__column h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: var(--tracking-data);
  margin-bottom: var(--space-4);
}
.footer__link {
  display: block;
  color: var(--ink-2);
  margin-bottom: var(--space-2);
  font-size: 14px;
  transition: color var(--t-fast);
}
.footer__link:hover { color: var(--blue); }

.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule);
}
.footer__copyright { color: #6C6C6C; font-size: 13px; }
.footer__legal { font-size: 12px; color: #6C6C6C; opacity: 0.85; margin-top: 4px; }

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: span 3; max-width: none; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

/* ========================================
   Feature grid + Team + Contact
   ======================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .feature-grid { grid-template-columns: 1fr; } }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.team-card { text-align: left; }
.team-card__photo {
  width: 96px; height: 96px;
  border-radius: 8px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 28px;
}
.team-card__name { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.team-card__role {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: var(--tracking-data);
  margin-bottom: var(--space-3);
}
.team-card__bio { color: var(--ink-2); line-height: 1.6; font-size: 15px; }
@media (max-width: 1024px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px)  { .team-grid { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.contact-card { text-align: left; }
.contact-card__icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.contact-card__icon svg { width: 22px; height: 22px; stroke: var(--white); }
.contact-card__title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: var(--space-2); }
.contact-card__text { color: var(--ink-2); margin-bottom: var(--space-3); }
.contact-card__link {
  color: var(--blue);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* ========================================
   Tables
   ======================================== */
.table-container {
  border: 1.8px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  vertical-align: top;
}
.table th {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: var(--tracking-data);
  font-size: 11px;
  font-weight: 600;
  color: #6C6C6C;
  background: var(--panel);
}
.table td { color: var(--ink-2); }
.table tr:last-child td { border-bottom: none; }
.table tr.is-us td { background: rgba(79, 98, 173, 0.04); }
.table tr.is-us td strong { color: var(--blue); }

/* ========================================
   Charts container
   ======================================== */
.chart-container {
  background: var(--white);
  border: 1.8px solid var(--rule);
  border-radius: 12px;
  padding: var(--space-6);
}
.chart-container__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-5);
  color: var(--ink);
}

/* ========================================
   Roadmap Gantt (deck-style)
   ======================================== */
.gantt {
  background: var(--white);
  border: 1.8px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.gantt__head,
.gantt__row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(10, 1fr);
}
.gantt__head {
  background: var(--panel);
  border-bottom: 1.8px solid var(--rule);
}
.gantt__head > div {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-data);
  text-transform: uppercase;
  color: #6C6C6C;
  padding: 12px 10px;
  text-align: center;
  border-left: 1px solid var(--rule);
}
.gantt__head > div:first-child { text-align: left; border-left: none; }

.gantt__row { border-top: 1px solid var(--rule); }
.gantt__row:first-child { border-top: none; }
.gantt__row > .gantt__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 14px;
  display: flex; align-items: center;
}
.gantt__cell {
  border-left: 1px solid var(--rule);
  position: relative;
  height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.gantt__bar {
  height: 14px;
  width: calc(100% - 8px);
  border-radius: 4px;
  background: var(--rule);
}
.gantt__bar--primary  { background: var(--blue); }
.gantt__bar--support  { background: var(--blue-soft); }
.gantt__bar--inactive { background: transparent; border: 1px dashed #C9C9C9; }

.gantt__legend {
  display: flex; gap: var(--space-6); flex-wrap: wrap;
  margin-top: var(--space-5);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking-data);
  text-transform: uppercase;
  color: #6C6C6C;
}
.gantt__legend span { display: inline-flex; align-items: center; gap: 8px; }
.gantt__legend span::before {
  content: '';
  width: 14px; height: 8px;
  border-radius: 2px;
}
.gantt__legend .lg--primary::before  { background: var(--blue); }
.gantt__legend .lg--support::before  { background: var(--blue-soft); }
.gantt__legend .lg--inactive::before { background: transparent; border: 1px dashed #C9C9C9; }

@media (max-width: 900px) {
  .gantt { overflow-x: auto; }
  .gantt__head, .gantt__row { min-width: 880px; }
}

/* ========================================
   Utilities
   ======================================== */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.mx-auto { margin-left: auto; margin-right: auto; }

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

/* ========================================
   Logo sizing
   ======================================== */
.nav__logo img,
.footer__logo img {
  height: 32px;
  width: auto;
  max-width: 180px;
  display: block;
}
.footer__logo img { height: 36px; }
@media (max-width: 640px) { .nav__logo img { height: 28px; } }

/* ========================================
   Legacy compatibility — selectively used by older pages
   ======================================== */
.text-gradient { color: var(--blue); }
.text-lg { font-size: 1.0625rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; line-height: 1.55; }
.text-caption { font-size: 0.75rem; line-height: 1.4; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-data);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(79, 98, 173, 0.10);
  color: var(--blue);
  border: 1px solid rgba(79, 98, 173, 0.20);
}
.chip--success { color: var(--success); border-color: rgba(31,158,90,.25); background: rgba(31,158,90,.08); }
.chip--warning { color: var(--warning); border-color: rgba(176,112,0,.25); background: rgba(176,112,0,.08); }
.chip--danger  { color: var(--danger);  border-color: rgba(178,58,58,.25);  background: rgba(178,58,58,.08); }

.highlight-card { padding: var(--space-8); }
.highlight-card__header { display: flex; gap: var(--space-4); align-items: center; margin-bottom: var(--space-5); }
.highlight-card__icon {
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.highlight-card__icon svg { width: 22px; height: 22px; stroke: var(--white); }
.highlight-card__title { font-size: 20px; font-weight: 700; color: var(--ink); }
.highlight-card__list { margin: 0; }
.highlight-card__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-3);
  color: var(--ink-2);
  line-height: 1.55;
}
.highlight-card__list li::before {
  content: '';
  position: absolute;
  left: 4px; top: 0.55em;
  width: 14px; height: 14px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.market-card { text-align: left; }
.market-card__value { font-size: clamp(40px, 4.5vw, 64px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1; margin-bottom: var(--space-3); }
.section--dark .market-card__value { color: var(--white); }
.market-card__label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-data);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: var(--space-2);
}
.market-card__desc { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.roi-card { padding-left: var(--space-6); border-left: 4px solid var(--blue); }
.roi-card__title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: var(--space-2); }
.roi-card__value {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
  margin-bottom: var(--space-3);
}
.roi-card__desc { color: var(--ink-2); line-height: 1.65; }

.expansion-card { border-left: 4px solid var(--blue); padding-left: var(--space-6); }
.expansion-card__icon {
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.expansion-card__icon svg { width: 22px; height: 22px; stroke: var(--white); }
.expansion-card__title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: var(--space-2); }
.expansion-card__text { color: var(--ink-2); font-size: 14px; line-height: 1.6; }

.status-list { margin: 0; }
.status-list__item { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); color: var(--ink-2); }
.status-list__bullet { flex-shrink: 0; }
.status-list__bullet--success { color: var(--success); }
.status-list__bullet--warning { color: var(--warning); }
.status-list__bullet--muted   { color: #6C6C6C; }
.status-list__bullet--blue    { color: var(--blue); }
.status-list__bullet--indigo  { color: var(--blue-deep); }

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-data);
  color: var(--blue);
  margin-bottom: var(--space-3);
}
.step-num--blue, .step-num--indigo, .step-num--violet, .step-num--cyan { color: var(--blue); }

/* Suppress legacy section--gradient / section--navy decoration — render flat */
.section--gradient { background: var(--panel); }
.section--gradient::before { display: none; }
.section--navy { background: var(--panel); }
.section--alt  { background: var(--panel); }
.section--deep { background: var(--ink); color: var(--white); }
.section--deep::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.section--deep > .container { position: relative; z-index: 1; }
.section--deep h1, .section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep p { color: #BFBFBF; }

/* Phone mockup (legacy platform.html) */
.phone-mockup {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9/19;
  background: var(--panel);
  border-radius: 36px;
  border: 8px solid var(--ink);
  box-shadow: var(--shadow-cta);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.phone-mockup__notch {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40%; height: 22px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
}
.phone-mockup svg { width: 56px; height: 56px; stroke: var(--blue); opacity: 0.5; }

/* ClinixHero (legacy) */
.clinix-hero {
  background: var(--panel);
  border: 1.8px solid var(--rule);
  border-radius: 14px;
  padding: var(--space-12);
  position: relative;
}
.clinix-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center; }
.clinix-hero__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: var(--space-3); }
.clinix-hero__tagline { font-size: 1.0625rem; color: var(--ink-2); margin-bottom: var(--space-5); }
.clinix-hero__desc { color: var(--ink-2); line-height: 1.65; margin-bottom: var(--space-5); }
.clinix-hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.clinix-stat {
  background: var(--white);
  padding: var(--space-4);
  border-radius: 8px;
  border: 1.8px solid var(--rule);
}
.clinix-stat__value { font-size: 20px; font-weight: 800; color: var(--blue); margin-bottom: 4px; }
.clinix-stat__label { font-family: var(--mono); font-size: 11px; letter-spacing: var(--tracking-data); text-transform: uppercase; color: #6C6C6C; }
.clinix-hero__visual { display: flex; justify-content: center; }
@media (max-width: 1024px) {
  .clinix-hero__grid { grid-template-columns: 1fr; }
  .clinix-hero__visual { order: -1; }
}

/* Hero floating visual (legacy) */
.hero-visual { position: relative; }
.hero-visual__container {
  width: 100%;
  height: 340px;
  background: var(--panel);
  border: 1.8px solid var(--rule);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-visual__core { width: 160px; height: 160px; }
.hero-visual__core svg { width: 100%; height: 100%; opacity: 0.4; stroke: var(--blue); }
.floating-cards { position: absolute; inset: 0; }
.floating-card {
  position: absolute;
  background: var(--white);
  border: 1.8px solid var(--rule);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-card);
}
.floating-card:nth-child(1) { top: 12%; right: 8%; }
.floating-card:nth-child(2) { bottom: 18%; left: 5%; }
.floating-card:nth-child(3) { top: 50%; right: 5%; }

/* Animations (disabled by reduced-motion) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }

/* Bar chart legacy */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 260px;
  gap: var(--space-4);
  padding-bottom: var(--space-10);
}
.bar-chart__item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-chart__bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar-chart__bar {
  width: 100%;
  background: var(--blue);
  border-radius: 4px 4px 0 0;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: var(--space-3);
}
.bar-chart__label { font-weight: 600; color: var(--ink); font-size: 13px; padding-top: var(--space-3); }
