/* ============================================================
   MEDFLOW AGENTS — Design Tokens
   Fixed dark editorial brand identity (established palette — do not alter):
   near-black warm charcoal bg, cream headline text, sage-teal + emerald +
   amber accents. Fraunces (serif display) + Inter (geometric sans/UI).
   ============================================================ */

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

  /* Spacing — 4px system */
  --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;

  /* ==========================================================
     BRAND PALETTE — exact hex values, established identity.
     ========================================================== */
  --color-bg: #111210;              /* near-black warm charcoal */
  --color-surface: #161714;         /* card surface, slightly lifted */
  --color-surface-2: #1B1C18;       /* secondary surface layer */
  --color-surface-offset: #1E1F1B;  /* alt band background */
  --color-surface-offset-2: #23241F;
  --color-surface-dynamic: #2A2B25;
  --color-divider: #2C2D27;
  --color-border: #33342D;

  --color-text: #F3EEE4;            /* warm off-white/cream — headlines */
  --color-text-muted: #CECAC1;      /* light warm gray — body */
  --color-text-faint: #9C9991;      /* medium warm gray — secondary/meta */
  --color-text-inverse: #111210;

  /* Sage-teal — logo + italic emphasis words */
  --color-sage: #658F77;
  --color-sage-highlight: #253026;

  /* Emerald — CTA buttons, key highlights */
  --color-emerald: #25A57C;
  --color-emerald-hover: #1E8A67;
  --color-emerald-active: #186F52;
  --color-emerald-highlight: #16302A;

  /* Amber/gold — highlight pills & badges, sparingly */
  --color-amber: #B58A53;
  --color-amber-highlight: #2E2519;

  /* Semantic (kept within brand family) */
  --color-warning: #B58A53;
  --color-error: #C97A6B;
  --color-success: #25A57C;

  /* Primary accent alias (link/focus default = emerald) */
  --color-primary: #25A57C;
  --color-primary-hover: #1E8A67;
  --color-primary-active: #186F52;
  --color-primary-highlight: #16302A;

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

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows — warm dark-tinted */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.42);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* Fonts — Fraunces (serif display, italic emphasis) + Inter (geometric sans) */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* ============================================================
   Utility & Layout
   ============================================================ */

html,
body {
  overflow-x: hidden;
}

.hero .container > *,
.hub-grid > *,
.solution-grid > *,
.hats-grid > *,
.trust-section .container > *,
.form-row > *,
.footer-top > * {
  min-width: 0;
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--default {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-12);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-3);
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center p {
  margin-inline: auto;
}
em, .italic-accent {
  font-style: italic;
  color: var(--color-sage);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive),
    border-color var(--transition-interactive);
}
.btn-primary {
  background: var(--color-emerald);
  color: #0B120D;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-emerald-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--color-emerald-active);
  transform: translateY(0);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid oklch(from var(--color-text) l c h / 0.22);
}
.btn-secondary:hover {
  background: var(--color-surface-offset);
  border-color: oklch(from var(--color-text) l c h / 0.35);
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: translateY(0);
}
.btn-block {
  width: 100%;
}

/* ============================================================
   Header / Nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow var(--transition-interactive);
}
.site-header.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: var(--space-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover {
  color: var(--color-text);
}
.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--color-sage);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.main-nav ul {
  display: flex;
  gap: var(--space-6);
}
.main-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  text-decoration: none;
}
.main-nav a:hover {
  color: var(--color-text);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-emerald);
  color: #0B120D;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

@media (max-width: 860px) {
  .main-nav ul {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions .btn-primary {
    display: none;
  }
}

@media (max-width: 400px) {
  .site-header .container {
    padding-inline: var(--space-4);
  }
  .brand span {
    font-size: var(--text-xs);
  }
}

/* ============================================================
   Mobile Nav Drawer
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
  transform: translateX(100%);
  transition: transform 320ms var(--ease-out);
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-10);
}
.mobile-nav-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-nav a {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav-cta {
  margin-top: var(--space-8);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32)) clamp(var(--space-12), 8vw, var(--space-20));
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 20% -10%, oklch(from var(--color-sage) l c h / 0.10), transparent 60%),
    radial-gradient(ellipse 55% 40% at 100% 10%, oklch(from var(--color-emerald) l c h / 0.08), transparent 55%);
}
.hero .container {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-amber-highlight);
  border: 1px solid oklch(from var(--color-amber) l c h / 0.45);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-amber);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-amber);
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-top: var(--space-5);
  max-width: 19ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-sage);
}
.hero-sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 62ch;
  font-weight: 400;
}
.hero-sub strong {
  color: var(--color-text);
  font-weight: 600;
}
.hero-verticals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.vertical-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}
.vertical-chip svg {
  width: 18px;
  height: 18px;
  color: var(--color-sage);
  flex-shrink: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.hero-note {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================================================
   Problem Section — Hub / Network Diagram
   ============================================================ */
.problem-section {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.hub-diagram {
  position: relative;
  margin-top: var(--space-16);
}
.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hub-lines path {
  fill: none;
  stroke: oklch(from var(--color-sage) l c h / 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}
.hub-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.hub-center {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-2);
}
.hub-center-node {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  color: var(--color-emerald);
  position: relative;
}
.hub-center-node svg {
  width: 38px;
  height: 38px;
}
.hub-center-label {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--color-text);
  max-width: 30ch;
}

.problem-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.problem-card-badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-amber);
  flex-shrink: 0;
}
.problem-card-badge svg {
  width: 30px;
  height: 30px;
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
}
.trend-svg {
  width: 100%;
  height: 56px;
}
.trend-svg path.trend-line {
  fill: none;
  stroke: var(--color-amber);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.trend-svg path.trend-fill {
  fill: oklch(from var(--color-amber) l c h / 0.12);
  stroke: none;
}
.trend-svg.trend-positive path.trend-line {
  stroke: var(--color-emerald);
}
.trend-svg.trend-positive path.trend-fill {
  fill: oklch(from var(--color-emerald) l c h / 0.12);
}
.problem-card-stat {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.problem-card-stat strong {
  color: var(--color-text);
  font-weight: 600;
}
.illustrative-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-amber);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   Solution Section
   ============================================================ */
.solution-section {
  background: var(--color-bg);
}
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.solution-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.solution-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.solution-card-badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-emerald);
  flex-shrink: 0;
}
.solution-card-badge svg {
  width: 30px;
  height: 30px;
}
.solution-answers {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.solution-answers svg {
  width: 14px;
  height: 14px;
}
.solution-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
}
.solution-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.hipaa-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  align-self: flex-start;
  background: var(--color-amber-highlight);
  border: 1px solid oklch(from var(--color-amber) l c h / 0.4);
  color: var(--color-amber);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-top: var(--space-1);
}
.hipaa-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ============================================================
   Hats Section (Use Cases)
   ============================================================ */
.hats-section {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.hats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.hat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.hat-card-icon {
  width: 40px;
  height: 40px;
  color: var(--color-sage);
}
.hat-card-icon svg {
  width: 100%;
  height: 100%;
}
.hat-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
}
.hat-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.hats-note {
  margin-top: var(--space-10);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-align: center;
}

/* ============================================================
   Trust / Credibility Section
   ============================================================ */
.trust-section {
  background: var(--color-surface-offset);
  color: var(--color-text);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.trust-section .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  position: relative;
  z-index: 1;
}
.trust-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sage);
}
.trust-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-top: var(--space-3);
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.trust-section > .container > div:first-child > p {
  margin-top: var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.compliance-line {
  margin-top: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.compliance-line svg {
  width: 22px;
  height: 22px;
  color: var(--color-amber);
  flex-shrink: 0;
  margin-top: 2px;
}
.compliance-line p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}
.compliance-line strong {
  color: var(--color-text);
  font-weight: 600;
}
.trust-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.trust-stat {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-5);
}
.trust-stat .num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  display: block;
  color: var(--color-emerald);
}
.trust-stat .label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ============================================================
   CTA / Contact Section
   ============================================================ */
.cta-section {
  background: var(--color-bg);
}
.cta-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}
.cta-head .eyebrow {
  justify-content: center;
  width: 100%;
}
.cta-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-top: var(--space-4);
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.cta-head p {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-inline: auto;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-12);
  max-width: var(--content-default);
  margin-inline: auto;
  align-items: start;
}
.contact-wrap > * {
  min-width: 0;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
}
.contact-info p {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.contact-list {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-width: 0;
}
.contact-list li > span {
  min-width: 0;
}
.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--color-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.form-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-field label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-field input,
.form-field select {
  height: 48px;
  padding-inline: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.form-field input::placeholder {
  color: var(--color-text-faint);
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px oklch(from var(--color-emerald) l c h / 0.2);
  outline: none;
}
.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
}
.footer-brand svg {
  width: 30px;
  height: 30px;
  color: var(--color-sage);
}
.footer-tagline {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 32ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-text);
}
.footer-cities {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.footer-cities h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.footer-cities p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 78ch;
}
.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-legal {
  display: flex;
  gap: var(--space-5);
}
.footer-legal a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--color-text-muted);
}

/* ============================================================
   Scroll Reveal (opacity/clip-path only — no CLS)
   ============================================================ */
.reveal {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}
@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .trust-section .container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 860px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  section {
    padding-block: clamp(var(--space-12), 10vw, var(--space-20));
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .solution-grid {
    grid-template-columns: 1fr;
  }
  .hats-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero h1 {
    max-width: none;
  }
}
