/* ========================================
   School Flow Automations — Landing Page
   Brand palette derived from SFA mascot
   ======================================== */

:root {
  /* Brand color palette */
  --color-navy: #0F1D2F;
  --color-navy-soft: #1E3A5F;
  --color-sky: #5BA4CF;
  --color-sky-soft: #7FB8DD;
  --color-sky-pale: #E8F1F7;

  /* Surfaces */
  --color-bg: #F8F6F2;
  --color-surface: #FFFFFF;
  --color-surface-warm: #FDFBF7;
  --color-surface-dark: var(--color-navy);

  /* Text */
  --color-text: #14213D;
  --color-text-muted: #5A6478;
  --color-text-faint: #8E96A7;
  --color-text-on-dark: #E8EDF4;
  --color-text-on-dark-muted: #94A3B8;

  /* Borders */
  --color-border: #E2DFD7;
  --color-border-strong: #C9C5BA;
  --color-border-dark: rgba(255,255,255,0.12);

  /* Type scale */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-hero: clamp(2.75rem, 6vw, 4.75rem);
  --text-2xl: clamp(2rem, 4vw, 3rem);
  --text-xl: clamp(1.5rem, 2.5vw, 2rem);
  --text-lg: 1.25rem;
  --text-base: 1rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1240px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 29, 47, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 29, 47, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 29, 47, 0.12);
  --shadow-glow: 0 0 0 1px rgba(91, 164, 207, 0.15), 0 12px 40px rgba(15, 29, 47, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 223, 215, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-4) var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-sm);
}

.site-nav a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: var(--space-2) 0;
}

.site-nav a:hover {
  color: var(--color-text);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.125rem;
  background: var(--color-navy);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cta-pill:hover {
  background: var(--color-navy-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: var(--space-2);
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

@media (max-width: 880px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border);
    gap: var(--space-4);
  }
  .cta-pill { display: none; }
  .nav-toggle { display: flex; }
}

/* ========================================
   HERO
   ======================================== */

.hero {
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(4rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(91, 164, 207, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(30, 58, 95, 0.04), transparent 50%),
    var(--color-bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.875rem;
  background: var(--color-sky-pale);
  border: 1px solid rgba(91, 164, 207, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: var(--space-6);
  letter-spacing: 0.01em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--color-sky);
  border-radius: 50%;
  display: inline-block;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 var(--space-6);
  color: var(--color-text);
}

.hero-headline em {
  font-style: italic;
  color: var(--color-navy-soft);
}

.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-8);
  max-width: 36em;
}

.hero-sub strong {
  color: var(--color-text);
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.8125rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-navy);
}

.btn-primary-on-dark {
  background: var(--color-sky);
  color: var(--color-navy);
}

.btn-primary-on-dark:hover {
  background: var(--color-sky-soft);
  transform: translateY(-1px);
}

.btn-ghost-on-dark {
  background: transparent;
  color: var(--color-text-on-dark);
  border-color: var(--color-border-dark);
}

.btn-ghost-on-dark:hover {
  border-color: var(--color-sky);
  color: var(--color-sky-soft);
}

.hero-trust {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.05;
  font-weight: 400;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.trust-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* Hero visual / floating card */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  min-height: 520px;
}

.hero-mascot {
  position: relative;
  width: clamp(180px, 24vw, 240px);
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 24px 40px rgba(15, 29, 47, 0.18));
  align-self: flex-end;
  margin-right: 20px;
}

.hero-card {
  position: relative;
  z-index: 2;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--color-border);
  max-width: 400px;
  width: 100%;
  align-self: flex-start;
}

.hero-card-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.hero-card-value {
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.hero-card-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: var(--space-6);
}

.hero-card-bar {
  height: 4px;
  background: var(--color-sky-pale);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.hero-card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-sky), var(--color-navy-soft));
  border-radius: 2px;
  animation: barGrow 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  width: 0;
}

@keyframes barGrow {
  to { width: 78%; }
}

.hero-card-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--color-sky-pale);
  color: var(--color-navy);
  border-radius: var(--radius-full);
  font-weight: 500;
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; align-items: center; }
  .hero-mascot { margin: 0 auto; }
  .hero-card { align-self: center; margin: 0 auto; }
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-light {
  background: var(--color-bg);
  color: var(--color-text);
}

.section-dark {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(91, 164, 207, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(91, 164, 207, 0.08), transparent 60%);
  pointer-events: none;
}

.section-dark .container { position: relative; z-index: 1; }

.section-header {
  max-width: 760px;
  margin: 0 auto var(--space-16);
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-sky);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
}

.section-header-dark .section-eyebrow {
  color: var(--color-sky-soft);
}

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

.section-header-dark .section-title {
  color: var(--color-text-on-dark);
}

.section-title-display {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: var(--space-4) 0 0;
  line-height: 1.5;
}

.section-header-dark .section-lead {
  color: var(--color-text-on-dark-muted);
}

/* ========================================
   PROBLEM CARDS
   ======================================== */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.problem-card {
  background: var(--color-surface);
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.problem-card:hover {
  border-color: var(--color-sky);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-sky);
  line-height: 1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.problem-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--space-4);
  line-height: 1.3;
  color: var(--color-text);
}

.problem-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* ========================================
   PRODUCT FLOW
   ======================================== */

.product-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-24);
}

.flow-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  height: 100%;
}

.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-sky);
  color: var(--color-navy);
  border-radius: 50%;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.flow-step h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--space-3);
  color: var(--color-text-on-dark);
}

.flow-step p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-on-dark-muted);
  margin: 0;
}

.flow-arrow {
  color: var(--color-sky);
  opacity: 0.4;
}

@media (max-width: 920px) {
  .product-flow {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .flow-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}

.product-modules {
  background: rgba(91, 164, 207, 0.06);
  border: 1px solid rgba(91, 164, 207, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
}

.modules-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text-on-dark);
  margin: 0 0 var(--space-8);
  text-align: center;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.module {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-sm);
  color: var(--color-text-on-dark);
  transition: all 0.2s ease;
}

.module:hover {
  background: rgba(91, 164, 207, 0.12);
  border-color: var(--color-sky);
}

.module-num {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-sky);
  font-weight: 400;
  min-width: 24px;
}

.product-cta {
  text-align: center;
  margin-top: var(--space-16);
}

.product-cta-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
}

/* ========================================
   FUNDING SOURCES
   ======================================== */

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: var(--space-6);
}

.source-family {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: all 0.3s ease;
}

.source-family:hover {
  border-color: var(--color-sky);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.source-family h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--space-4);
  color: var(--color-navy);
  line-height: 1.3;
}

.source-family p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
}

.source-count {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-sky);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.625rem;
  background: var(--color-sky-pale);
  border-radius: var(--radius-full);
}

/* ========================================
   AUDIENCE
   ======================================== */

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.audience-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
}

.audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-sky-pale);
  color: var(--color-navy);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.audience-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.audience-lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0 0 var(--space-6);
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}

.audience-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text);
  position: relative;
  padding-left: var(--space-6);
}

.audience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-sky);
  border-radius: 50%;
}

.audience-list li:last-child {
  border-bottom: 0;
}

.audience-note {
  background: var(--color-sky-pale);
  border-left: 3px solid var(--color-sky);
  padding: var(--space-4) var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.55;
  margin: 0;
}

.audience-note strong { color: var(--color-navy); }
.audience-note em { color: var(--color-navy-soft); font-style: italic; }

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

/* ========================================
   TIERS
   ======================================== */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.tier-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: all 0.3s ease;
}

.tier-card:hover {
  border-color: var(--color-sky);
  transform: translateY(-4px);
}

.tier-featured {
  background: linear-gradient(135deg, rgba(91, 164, 207, 0.15), rgba(91, 164, 207, 0.05));
  border-color: var(--color-sky);
}

.tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-sky);
  color: var(--color-navy);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.tier-desc {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sky-soft);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier-features li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  position: relative;
  padding-left: var(--space-6);
}

.tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.875rem;
  width: 12px;
  height: 1px;
  background: var(--color-sky);
}

.tiers-note {
  text-align: center;
  max-width: 600px;
  margin: var(--space-8) auto 0;
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  line-height: 1.6;
}

/* ========================================
   ABOUT
   ======================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-text .section-eyebrow { color: var(--color-sky); }

.about-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 var(--space-4);
}

.about-text strong { color: var(--color-text); font-weight: 600; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.about-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

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

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

/* ========================================
   FINAL CTA
   ======================================== */

.section-cta {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(91, 164, 207, 0.18), transparent 60%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 400;
  color: var(--color-text-on-dark);
  margin: 0 0 var(--space-6);
  letter-spacing: -0.02em;
}

.cta-sub {
  font-size: var(--text-lg);
  color: var(--color-text-on-dark-muted);
  line-height: 1.55;
  margin: 0 0 var(--space-8);
}

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

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--color-navy);
  color: var(--color-text-on-dark-muted);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-16);
  align-items: start;
}

.footer-brand-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-4);
}

.footer-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-on-dark-muted);
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-links h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-on-dark);
  margin: 0 0 var(--space-4);
  font-weight: 600;
}

.footer-links a {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
}

.footer-attribution a {
  color: var(--color-text-on-dark-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.footer-attribution a:hover {
  color: var(--color-sky);
  border-color: var(--color-sky);
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; gap: var(--space-3); }
}

/* ========================================
   MODAL
   ======================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.modal[hidden] { display: none; }
.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 47, 0.6);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: transparent;
  border: 0;
  font-size: 1.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.modal-panel h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: 0 0 var(--space-4);
  color: var(--color-text);
  font-weight: 400;
}

.modal-panel p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 var(--space-6);
}

/* ========================================
   ACCESSIBILITY & MOTION
   ======================================== */

@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;
  }
}

:focus-visible {
  outline: 2px solid var(--color-sky);
  outline-offset: 2px;
  border-radius: 4px;
}
