/**
 * GacruxAI Global Stylesheet
 * Source of truth: /brand/tokens/css-variables.css
 *
 * This stylesheet imports brand tokens and provides
 * reusable component classes across all pages.
 */

/* Import brand design tokens */
@import url("../brand/tokens/css-variables.css");

/* Import Sharp v2 overrides (must come after base tokens) */
@import url("../brand/tokens/sharp-overrides.css");

/* Google Fonts - Poppins for display, Inter for body */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS Custom Properties - Extended
   ======================================== */
:root {
  /* Gradients - controlled usage */
  --ga-gradient-aurora: radial-gradient(ellipse 80% 60% at 60% 20%, rgba(68,94,239,0.4) 0%, rgba(90,68,191,0.15) 40%, transparent 70%);
  --ga-gradient-hero-bg: linear-gradient(180deg, var(--ga-midnight) 0%, var(--ga-navy) 100%);
  --ga-gradient-btn-primary: linear-gradient(135deg, var(--ga-electric-blue) 0%, var(--ga-indigo) 100%);

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

  /* Section rhythm - consistent vertical spacing */
  --ga-section-py: var(--ga-space-20);
  --ga-section-py-sm: var(--ga-space-12);

  /* Layout - strict container system */
  --ga-max-width: 1200px;
  --ga-max-width-narrow: 800px;
  --ga-max-width-text: 640px;
  --ga-gutter: 1.5rem;
  --ga-gutter-lg: 2rem;

  /* Navbar */
  --ga-nav-height: 64px;

  /* Logo sizing contract */
  --ga-logo-nav-height: 32px;
  --ga-logo-nav-height-sm: 28px;
  --ga-logo-footer-height: 36px;
  --ga-logo-max-width: 180px;

  /* Typography scale */
  --ga-text-h1: 3rem;
  --ga-text-h2: 2.25rem;
  --ga-text-h3: 1.5rem;
  --ga-text-h4: 1.25rem;
  --ga-text-body-lg: 1.125rem;
  --ga-text-body: 1rem;
  --ga-text-body-sm: 0.875rem;
  --ga-text-caption: 0.75rem;
  --ga-text-micro: 0.625rem;

  /* Transitions */
  --ga-transition-fast: 150ms ease-out;
  --ga-transition-base: 200ms ease-out;
  --ga-transition-slow: 300ms ease-out;
}

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

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

body {
  font-family: var(--ga-font-body);
  font-size: var(--ga-text-body);
  line-height: 1.65;
  color: var(--ga-white);
  background: var(--ga-midnight);
  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;
}

ul, ol {
  list-style: none;
}

/* Focus states for accessibility */
:focus-visible {
  outline: 2px solid var(--ga-electric-blue);
  outline-offset: 2px;
}

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ga-font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-size: var(--ga-text-h1);
  font-weight: 700;
}

h2, .h2 {
  font-size: var(--ga-text-h2);
  letter-spacing: -0.015em;
}

h3, .h3 {
  font-size: var(--ga-text-h3);
  letter-spacing: -0.01em;
}

h4, .h4 {
  font-size: var(--ga-text-h4);
  letter-spacing: -0.005em;
}

.text-lg {
  font-size: var(--ga-text-body-lg);
  line-height: 1.6;
}

.text-sm {
  font-size: var(--ga-text-body-sm);
  line-height: 1.6;
}

.text-caption {
  font-size: var(--ga-text-caption);
  line-height: 1.4;
}

.text-muted {
  color: var(--ga-cool-gray);
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--ga-electric-blue), var(--ga-violet-mist));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Readable line lengths for text blocks */
.prose {
  max-width: var(--ga-max-width-text);
}

.prose--center {
  margin-left: auto;
  margin-right: auto;
}

/* Section system - consistent rhythm */
.section {
  padding: var(--ga-section-py) 0;
}

.section--compact {
  padding: var(--ga-section-py-sm) 0;
}

/* Section backgrounds - Sharp v2 */
.section--dark {
  background: var(--ga-midnight);
}

.section--navy {
  background: var(--ga-navy);
}

.section--deep {
  background: var(--ga-near-black);
}

/* Alternating section pattern for visual rhythm */
.section--alt {
  background: var(--ga-deep-ocean);
}

/* Hero-style gradient section (dark with subtle aurora) */
.section--gradient {
  position: relative;
  background: var(--ga-gradient-hero-bg);
  overflow: hidden;
}

.section--gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ga-gradient-aurora);
  opacity: 0.3;
  pointer-events: none;
}

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--ga-space-6);
}

.grid--lg {
  gap: var(--ga-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) {
  :root {
    --ga-text-h1: 2.5rem;
    --ga-text-h2: 2rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --ga-text-h1: 2rem;
    --ga-text-h2: 1.75rem;
    --ga-section-py: var(--ga-space-12);
    --ga-gutter: 1rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Navigation - Sharp v2 (Crisp, No Glass)
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ga-midnight);
  border-bottom: var(--ga-border-hairline);
  transition: background var(--ga-transition-base);
}

.site-header.scrolled {
  background: var(--ga-near-black);
}

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

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

/* Logo img sizing controlled by Logo Sizing Contract section */

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

.nav__link {
  font-size: var(--ga-text-body-sm);
  font-weight: 500;
  color: var(--ga-cool-gray);
  padding: var(--ga-space-2) 0;
  transition: color var(--ga-transition-fast);
  border-bottom: 2px solid transparent;
}

.nav__link:hover {
  color: var(--ga-white);
}

.nav__link.active {
  color: var(--ga-white);
  border-bottom-color: var(--ga-electric-blue);
}

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

/* Mobile menu button */
.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(--ga-white);
  border-radius: 2px;
  transition: all var(--ga-transition-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 navigation - solid background */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ga-midnight);
  padding-top: calc(var(--ga-nav-height) + var(--ga-space-8));
  opacity: 0;
  visibility: hidden;
  transition: all var(--ga-transition-base);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  padding: var(--ga-space-6) var(--ga-gutter);
  gap: var(--ga-space-1);
}

.mobile-nav__link {
  font-size: var(--ga-text-body-lg);
  font-weight: 500;
  color: var(--ga-cool-gray);
  padding: var(--ga-space-3) 0;
  border-bottom: var(--ga-border-hairline);
  transition: color var(--ga-transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--ga-electric-blue);
}

.mobile-nav__link--sub {
  padding-left: var(--ga-space-4);
  font-size: var(--ga-text-body-sm);
}

@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__menu-btn {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }
}

/* ========================================
   Buttons - Sharp v2 (Two variants only)
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ga-space-2);
  font-family: var(--ga-font-body);
  font-size: var(--ga-text-body-sm);
  font-weight: 600;
  padding: var(--ga-space-3) var(--ga-space-5);
  border-radius: var(--ga-radius-sm);
  border: 1px solid transparent;
  transition: all var(--ga-transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

/* Primary: solid gradient with crisp border */
.btn--primary {
  background: var(--ga-gradient-btn-primary);
  color: var(--ga-white);
  border-color: var(--ga-electric-blue);
}

.btn--primary:hover {
  opacity: 0.9;
  box-shadow: var(--ga-glow-cta);
}

/* Secondary: outline style */
.btn--secondary {
  background: transparent;
  color: var(--ga-white);
  border-color: var(--ga-border-hairline-color);
}

.btn--secondary:hover {
  border-color: var(--ga-white);
  background: rgba(255, 255, 255, 0.05);
}

/* Outline variant for contrast sections */
.btn--outline {
  background: transparent;
  color: var(--ga-electric-blue);
  border-color: var(--ga-electric-blue);
}

.btn--outline:hover {
  background: var(--ga-electric-blue);
  color: var(--ga-white);
}

/* Ghost variant for subtle actions */
.btn--ghost {
  background: transparent;
  color: var(--ga-cool-gray);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--ga-white);
}

/* Size variants */
.btn--lg {
  font-size: var(--ga-text-body);
  padding: var(--ga-space-4) var(--ga-space-6);
}

.btn--sm {
  font-size: var(--ga-text-caption);
  padding: var(--ga-space-2) var(--ga-space-4);
}

/* ========================================
   Cards - Sharp v2 (Two variants: Dark/Light)
   ======================================== */

/* Base card - dark variant (default) */
.card {
  position: relative;
  background: var(--ga-navy);
  border: var(--ga-border-hairline);
  border-radius: var(--ga-radius-md);
  padding: var(--ga-space-6);
  transition: border-color var(--ga-transition-fast);
}

.card:hover {
  border-color: var(--ga-border-accent-color);
}

/* Link cards */
a.card {
  text-decoration: none;
  display: block;
}

/* Light card variant - for contrast sections */
.card--light {
  background: rgba(255, 255, 255, 0.03);
}

/* Solid navy variant */
.card--solid {
  background: var(--ga-navy);
}

/* Accent border variants */
.card--accent-success {
  border-left: 3px solid var(--ga-success);
}

.card--accent-warning {
  border-left: 3px solid var(--ga-warning);
}

.card--accent-muted {
  border-left: 3px solid var(--ga-slate);
}

/* Card icon - simplified */
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--ga-gradient-btn-primary);
  border-radius: var(--ga-radius-sm);
  margin-bottom: var(--ga-space-4);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--ga-white);
}

/* Card typography */
.card__title {
  font-family: var(--ga-font-display);
  font-size: var(--ga-text-h4);
  font-weight: 600;
  margin-bottom: var(--ga-space-2);
  color: var(--ga-white);
}

.card__text {
  color: var(--ga-cool-gray);
  line-height: 1.65;
  font-size: var(--ga-text-body-sm);
}

/* Compact card variant */
.card--compact {
  padding: var(--ga-space-4);
}

.card--compact .card__title {
  font-size: var(--ga-text-body);
}

.card--compact .card__text {
  font-size: var(--ga-text-caption);
}

/* ========================================
   Stats
   ======================================== */
.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--ga-font-display);
  font-size: 3.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--ga-electric-blue), var(--ga-violet-mist));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--ga-space-2);
}

.stat__label {
  font-size: var(--ga-text-body);
  font-weight: 500;
  color: var(--ga-cool-gray);
}

.stat__sublabel {
  font-size: var(--ga-text-body-sm);
  color: var(--ga-slate);
  margin-top: var(--ga-space-1);
}

@media (max-width: 768px) {
  .stat__value {
    font-size: 2.5rem;
  }
}

/* ========================================
   Hero - Sharp v2 (Controlled Aurora)
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--ga-nav-height);
  background: var(--ga-gradient-hero-bg);
  overflow: hidden;
}

/* Aurora glow - ONLY in hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ga-gradient-aurora);
  pointer-events: none;
}

/* Subtle grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--ga-max-width-text);
}

.hero__title {
  font-size: var(--ga-text-h1);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--ga-space-4);
}

.hero__subtitle {
  font-size: var(--ga-text-body-lg);
  color: var(--ga-cool-gray);
  line-height: 1.6;
  margin-bottom: var(--ga-space-6);
}

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

/* Page header (non-home pages) - simpler, controlled */
.page-header {
  position: relative;
  padding: calc(var(--ga-nav-height) + var(--ga-space-12)) 0 var(--ga-space-12);
  background: var(--ga-gradient-hero-bg);
  text-align: center;
  overflow: hidden;
}

/* Subtle aurora on page headers */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ga-gradient-aurora);
  opacity: 0.5;
  pointer-events: none;
}

.page-header__content {
  position: relative;
  z-index: 1;
  max-width: var(--ga-max-width-narrow);
  margin: 0 auto;
}

.page-header__title {
  font-size: var(--ga-text-h1);
  margin-bottom: var(--ga-space-3);
}

.page-header__subtitle {
  font-size: var(--ga-text-body-lg);
  color: var(--ga-cool-gray);
  line-height: 1.6;
}

/* ========================================
   Section Headers - Sharp v2 Pattern
   (Micro label + H2 + Subtext)
   ======================================== */
.section-header {
  text-align: center;
  max-width: var(--ga-max-width-narrow);
  margin: 0 auto var(--ga-space-10);
}

/* Micro label above title */
.section-header__label {
  display: inline-block;
  font-size: var(--ga-text-caption);
  font-weight: 600;
  color: var(--ga-electric-blue);
  text-transform: uppercase;
  letter-spacing: var(--ga-tracking-label);
  margin-bottom: var(--ga-space-3);
}

.section-header__title {
  font-size: var(--ga-text-h2);
  margin-bottom: var(--ga-space-3);
}

.section-header__subtitle {
  font-size: var(--ga-text-body);
  color: var(--ga-cool-gray);
  line-height: 1.6;
  max-width: var(--ga-max-width-text);
  margin: 0 auto;
}

/* Left-aligned section header variant */
.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-header--left .section-header__subtitle {
  margin-left: 0;
}

/* ========================================
   CTA Section - Sharp v2
   ======================================== */
.cta-section {
  position: relative;
  text-align: center;
  padding: var(--ga-space-16) 0;
  background: var(--ga-gradient-btn-primary);
  overflow: hidden;
}

.cta-section__content {
  position: relative;
  z-index: 1;
  max-width: var(--ga-max-width-text);
  margin: 0 auto;
}

.cta-section__title {
  font-size: var(--ga-text-h2);
  color: var(--ga-white);
  margin-bottom: var(--ga-space-3);
}

.cta-section__text {
  font-size: var(--ga-text-body);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--ga-space-6);
  line-height: 1.6;
}

/* CTA section button overrides */
.cta-section .btn--secondary {
  background: var(--ga-white);
  color: var(--ga-midnight);
  border-color: var(--ga-white);
}

.cta-section .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.9);
}

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

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

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--ga-near-black);
  padding: var(--ga-space-16) 0 var(--ga-space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--ga-space-8);
  margin-bottom: var(--ga-space-12);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--ga-space-3);
  margin-bottom: var(--ga-space-4);
}

/* Logo img sizing controlled by Logo Sizing Contract section */

.footer__tagline {
  color: var(--ga-cool-gray);
  line-height: 1.7;
}

.footer__column h4 {
  font-size: var(--ga-text-body);
  font-weight: 600;
  color: var(--ga-electric-blue);
  margin-bottom: var(--ga-space-4);
}

.footer__link {
  display: block;
  color: var(--ga-cool-gray);
  margin-bottom: var(--ga-space-3);
  transition: color var(--ga-transition-fast);
}

.footer__link:hover {
  color: var(--ga-electric-blue);
}

.footer__bottom {
  padding-top: var(--ga-space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__copyright {
  color: var(--ga-slate);
  margin-bottom: var(--ga-space-2);
}

.footer__legal {
  font-size: var(--ga-text-body-sm);
  color: var(--ga-slate);
  opacity: 0.7;
}

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

  .footer__brand {
    grid-column: span 3;
    max-width: none;
    margin-bottom: var(--ga-space-4);
  }
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--ga-space-6);
  }

  .footer__brand {
    grid-column: span 2;
  }
}

/* ========================================
   Feature Grid
   ======================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ga-space-6);
}

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

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

/* ========================================
   Team Grid
   ======================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ga-space-8);
}

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

.team-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ga-electric-blue), var(--ga-indigo));
  margin: 0 auto var(--ga-space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ga-shadow-focus);
}

.team-card__photo svg {
  width: 56px;
  height: 56px;
  stroke: var(--ga-white);
}

.team-card__name {
  font-size: var(--ga-text-h4);
  font-weight: 600;
  margin-bottom: var(--ga-space-2);
}

.team-card__role {
  font-size: var(--ga-text-body-sm);
  font-weight: 600;
  color: var(--ga-electric-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--ga-space-4);
}

.team-card__bio {
  color: var(--ga-cool-gray);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ========================================
   Contact Grid
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ga-space-6);
}

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

.contact-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ga-electric-blue), var(--ga-indigo));
  margin: 0 auto var(--ga-space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ga-shadow-focus);
}

.contact-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--ga-white);
}

.contact-card__title {
  font-size: var(--ga-text-h4);
  font-weight: 600;
  margin-bottom: var(--ga-space-3);
}

.contact-card__text {
  color: var(--ga-cool-gray);
  margin-bottom: var(--ga-space-4);
}

.contact-card__link {
  color: var(--ga-electric-blue);
  font-weight: 600;
  font-size: var(--ga-text-body-lg);
  transition: color var(--ga-transition-fast);
}

.contact-card__link:hover {
  color: var(--ga-violet-mist);
  text-decoration: underline;
}

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

/* ========================================
   Stats Bar
   ======================================== */
.stats-bar {
  position: relative;
  background: var(--ga-navy);
  border-top: 1px solid rgba(68, 94, 239, 0.2);
  border-bottom: 1px solid rgba(68, 94, 239, 0.2);
  padding: var(--ga-space-10) 0;
}

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

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

@media (max-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Charts / Data Visualization
   ======================================== */
.chart-container {
  background: var(--ga-surface-card);
  border: var(--ga-border-hairline);
  border-radius: var(--ga-radius-md);
  padding: var(--ga-space-6);
}

.chart-container__title {
  font-size: var(--ga-text-h4);
  font-weight: 600;
  margin-bottom: var(--ga-space-6);
  text-align: center;
}

/* Bar chart styling */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 280px;
  gap: var(--ga-space-4);
  padding-bottom: var(--ga-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: linear-gradient(180deg, var(--ga-electric-blue), var(--ga-indigo));
  border-radius: var(--ga-radius-sm) var(--ga-radius-sm) 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--ga-space-3);
  color: var(--ga-white);
  font-weight: 600;
  font-size: var(--ga-text-body-sm);
  transition: opacity var(--ga-transition-fast);
}

.bar-chart__bar:hover {
  opacity: 0.85;
}

.bar-chart__label {
  font-weight: 600;
  color: var(--ga-white);
  font-size: var(--ga-text-body-sm);
  padding-top: var(--ga-space-3);
}

/* ========================================
   Tables
   ======================================== */
.table-container {
  overflow-x: auto;
  border-radius: var(--ga-radius-md);
  border: var(--ga-border-hairline);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--ga-space-4);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
  background: var(--ga-navy);
  font-weight: 600;
  font-size: var(--ga-text-body-sm);
}

.table td {
  font-size: var(--ga-text-body-sm);
  color: var(--ga-cool-gray);
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* ========================================
   Chips / Tags
   ======================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--ga-space-1);
  font-size: var(--ga-text-caption);
  font-weight: 500;
  padding: var(--ga-space-1) var(--ga-space-3);
  border-radius: var(--ga-radius-pill);
  background: rgba(68, 94, 239, 0.15);
  color: var(--ga-electric-blue);
}

.chip--success {
  background: rgba(46, 219, 124, 0.15);
  color: var(--ga-success);
}

.chip--warning {
  background: rgba(255, 176, 32, 0.15);
  color: var(--ga-warning);
}

.chip--danger {
  background: rgba(255, 77, 79, 0.15);
  color: var(--ga-danger);
}

/* Status badges (compact chips for card titles) */
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--ga-text-caption);
  font-weight: 600;
  padding: 2px var(--ga-space-2);
  border-radius: var(--ga-radius-sm);
  text-transform: uppercase;
  letter-spacing: var(--ga-tracking-label);
}

.status-badge--live {
  background: rgba(46, 219, 124, 0.20);
  color: var(--ga-success);
}

.status-badge--dev {
  background: rgba(255, 176, 32, 0.20);
  color: var(--ga-warning);
}

.status-badge--spec {
  background: rgba(255, 176, 32, 0.20);
  color: var(--ga-warning);
}

.status-badge--planned {
  background: var(--ga-midnight);
  color: var(--ga-slate);
  border: 1px solid var(--ga-slate);
}

/* Larger status badge variant (for hero sections) */
.status-badge--lg {
  padding: var(--ga-space-1) var(--ga-space-3);
}

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

.card__title-row .card__title {
  margin: 0;
}

/* Status row (badge only, no title - for card headers) */
.card__status-row {
  display: flex;
  align-items: center;
  gap: var(--ga-space-2);
  margin-bottom: var(--ga-space-3);
}

/* Hero title with status badge (larger gap) */
.hero__title-row {
  display: flex;
  align-items: center;
  gap: var(--ga-space-3);
  margin-bottom: var(--ga-space-4);
}

.hero__title-row h2 {
  margin: 0;
}

/* ========================================
   Highlight Cards (Investors)
   ======================================== */
.highlight-card {
  position: relative;
  padding: var(--ga-space-6);
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(68, 94, 239, 0.12), transparent);
}

.highlight-card__header {
  display: flex;
  align-items: center;
  gap: var(--ga-space-4);
  margin-bottom: var(--ga-space-5);
}

.highlight-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ga-electric-blue), var(--ga-indigo));
  border-radius: var(--ga-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--ga-white);
}

.highlight-card__title {
  font-size: var(--ga-text-h4);
  font-weight: 600;
}

.highlight-card__list {
  position: relative;
  z-index: 1;
}

.highlight-card__list li {
  position: relative;
  padding-left: var(--ga-space-6);
  margin-bottom: var(--ga-space-3);
  color: var(--ga-cool-gray);
  line-height: 1.6;
}

.highlight-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--ga-electric-blue);
  border-radius: 50%;
}

/* ========================================
   Market/ROI Cards (Investors)
   ======================================== */
.market-card {
  text-align: center;
}

.market-card__value {
  font-family: var(--ga-font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--ga-space-2);
}

.market-card__label {
  font-size: var(--ga-text-body);
  font-weight: 600;
  color: var(--ga-white);
  margin-bottom: var(--ga-space-3);
}

.market-card__desc {
  font-size: var(--ga-text-body-sm);
  color: var(--ga-cool-gray);
}

.roi-card {
  border-left: 4px solid var(--ga-electric-blue);
  padding-left: var(--ga-space-6);
}

.roi-card__title {
  font-size: var(--ga-text-h4);
  font-weight: 600;
  margin-bottom: var(--ga-space-3);
}

.roi-card__value {
  font-family: var(--ga-font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ga-electric-blue);
  margin-bottom: var(--ga-space-3);
}

.roi-card__desc {
  color: var(--ga-cool-gray);
  line-height: 1.7;
}

/* ========================================
   Expansion Cards (Platform)
   ======================================== */
.expansion-card {
  border-left: 4px solid var(--ga-electric-blue);
  padding-left: var(--ga-space-6);
}

.expansion-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ga-electric-blue), var(--ga-indigo));
  border-radius: var(--ga-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--ga-space-4);
}

.expansion-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--ga-white);
}

.expansion-card__title {
  font-size: var(--ga-text-body-lg);
  font-weight: 600;
  margin-bottom: var(--ga-space-3);
}

.expansion-card__text {
  color: var(--ga-cool-gray);
  font-size: var(--ga-text-body-sm);
}

/* ========================================
   ClinixSummary Hero (Platform)
   ======================================== */
.clinix-hero {
  background: var(--ga-navy);
  border-radius: var(--ga-radius-lg);
  padding: var(--ga-space-12);
  position: relative;
  overflow: hidden;
  border: var(--ga-border-hairline);
}

.clinix-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ga-gradient-aurora);
  opacity: 0.3;
}

.clinix-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ga-space-10);
  align-items: center;
  position: relative;
  z-index: 1;
}

.clinix-hero__title {
  font-size: var(--ga-text-h2);
  margin-bottom: var(--ga-space-3);
}

.clinix-hero__tagline {
  font-size: var(--ga-text-body-lg);
  color: var(--ga-cool-gray);
  margin-bottom: var(--ga-space-6);
}

.clinix-hero__desc {
  color: var(--ga-cool-gray);
  line-height: 1.7;
  margin-bottom: var(--ga-space-6);
}

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

.clinix-stat {
  background: var(--ga-surface-card-hover);
  padding: var(--ga-space-4);
  border-radius: var(--ga-radius-sm);
  border: var(--ga-border-hairline);
}

.clinix-stat__value {
  font-size: var(--ga-text-h4);
  font-weight: 700;
  color: var(--ga-electric-blue);
  margin-bottom: var(--ga-space-1);
}

.clinix-stat__label {
  font-size: var(--ga-text-body-sm);
  color: var(--ga-cool-gray);
}

.clinix-hero__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/19;
  background: linear-gradient(135deg, var(--ga-deep-ocean), var(--ga-indigo));
  border-radius: var(--ga-radius-phone);
  border: 8px solid var(--ga-graphite);
  box-shadow: var(--ga-shadow-phone);
  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: 24px;
  background: var(--ga-graphite);
  border-radius: 0 0 16px 16px;
}

.phone-mockup svg {
  width: 64px;
  height: 64px;
  stroke: var(--ga-cool-gray);
  opacity: 0.4;
}

@media (max-width: 1024px) {
  .clinix-hero__grid {
    grid-template-columns: 1fr;
  }

  .clinix-hero__visual {
    order: -1;
  }
}

/* ========================================
   Floating Cards (Hero Visual)
   ======================================== */
.hero-visual {
  position: relative;
}

.hero-visual__container {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, rgba(68, 94, 239, 0.1), rgba(90, 68, 191, 0.1));
  border-radius: var(--ga-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-visual__core {
  width: 180px;
  height: 180px;
}

.hero-visual__core svg {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.floating-cards {
  position: absolute;
  inset: 0;
}

.floating-card {
  position: absolute;
  background: var(--ga-surface-card);
  padding: var(--ga-space-3) var(--ga-space-4);
  border-radius: var(--ga-radius-sm);
  border: var(--ga-border-hairline);
  font-size: var(--ga-text-body-sm);
  font-weight: 500;
  box-shadow: var(--ga-shadow-subtle);
  animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(1) {
  top: 12%;
  right: 8%;
}

.floating-card:nth-child(2) {
  bottom: 18%;
  left: 5%;
  animation-delay: 1s;
}

.floating-card:nth-child(3) {
  top: 50%;
  right: 5%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-card {
    animation: none;
  }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* ========================================
   Utility Classes
   ======================================== */
.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;
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--ga-space-2); }
.mb-4 { margin-bottom: var(--ga-space-4); }
.mb-6 { margin-bottom: var(--ga-space-6); }
.mb-8 { margin-bottom: var(--ga-space-8); }
.mb-12 { margin-bottom: var(--ga-space-12); }

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

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

.relative { position: relative; }
.z-1 { z-index: 1; }

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

.ml-4 { margin-left: var(--ga-space-4); }
.mr-4 { margin-right: var(--ga-space-4); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ========================================
   Typography Polish - Sharp v2
   ======================================== */

/* Tighter heading line-heights */
h1, .h1, h2, .h2, h3, .h3 {
  line-height: 1.15;
}

h4, .h4, h5, .h5, h6, .h6 {
  line-height: 1.25;
}

/* Label style - micro caps for section headers and metadata */
.label {
  font-size: var(--ga-text-caption);
  font-weight: 600;
  color: var(--ga-electric-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.label--muted {
  color: var(--ga-cool-gray);
}

/* Tabular numerals for stats and data */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Monospace for code-like content */
.font-mono {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', monospace;
}

/* ========================================
   Interaction Polish - Focus States
   ======================================== */

/* Consistent focus ring for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ga-electric-blue);
  outline-offset: 2px;
}

/* Remove default focus for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* Button focus enhancement */
.btn:focus-visible {
  box-shadow: var(--ga-glow-cta);
}

/* Card focus for link cards */
a.card:focus-visible {
  outline: 2px solid var(--ga-electric-blue);
  outline-offset: 2px;
}

/* Nav link focus */
.nav__link:focus-visible,
.mobile-nav__link:focus-visible {
  background: rgba(68, 94, 239, 0.15);
  border-radius: var(--ga-radius-sm);
}

/* ========================================
   Interaction Polish - Hover States
   ======================================== */

/* Subtle link underline on hover */
.link-underline {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ga-transition-fast);
}

.link-underline:hover {
  border-bottom-color: currentColor;
}

/* Icon buttons hover */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ga-radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--ga-transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ========================================
   Reduced Motion Support
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  /* Disable all non-essential animations */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Keep instant transitions for necessary state changes */
  .btn,
  .nav__link,
  .card {
    transition: none !important;
  }

  /* Disable floating card animations */
  .floating-card {
    animation: none !important;
    transform: none !important;
  }

  /* Disable scroll behavior */
  html {
    scroll-behavior: auto !important;
  }
}

/* ========================================
   Step Numbers - Consistent Pattern
   ======================================== */

.step-num {
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--ga-space-4);
  line-height: 1;
}

.step-num--blue { color: var(--ga-electric-blue); }
.step-num--indigo { color: var(--ga-indigo); }
.step-num--violet { color: var(--ga-violet-mist); }
.step-num--cyan { color: var(--ga-cyan-accent); }

/* ========================================
   List Patterns - Consistent Styling
   ======================================== */

/* Status list with colored bullets */
.status-list {
  list-style: none;
  margin-top: var(--ga-space-4);
}

.status-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--ga-space-3);
  margin-bottom: var(--ga-space-3);
}

.status-list__bullet {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.status-list__bullet--success { color: var(--ga-success); }
.status-list__bullet--warning { color: var(--ga-warning); }
.status-list__bullet--muted { color: var(--ga-slate); }
.status-list__bullet--blue { color: var(--ga-electric-blue); }
.status-list__bullet--indigo { color: var(--ga-indigo); }

/* ========================================
   Image Optimization Support
   ======================================== */

/* Prevent layout shift from images (exclude logos - they have explicit sizing) */
img[width][height]:not(.nav__logo img):not(.footer__logo img) {
  height: auto;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
  background: var(--ga-navy);
}

/* ========================================
   Logo Sizing Contract
   Centralized control for all logo instances
   ======================================== */
.nav__logo img,
.footer__logo img {
  height: var(--ga-logo-nav-height, 32px);
  width: auto;
  max-width: var(--ga-logo-max-width, 180px);
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.footer__logo img {
  height: var(--ga-logo-footer-height, 36px);
}

@media (max-width: 640px) {
  .nav__logo img {
    height: var(--ga-logo-nav-height-sm, 28px);
  }
}
