/* ============================
   HealthOS — Warm light theme
   1. Custom Properties
   2. Reset & Base
   3. Typography
   4. Layout
   5. Navigation
   6. Buttons
   7. Hero
   8. Problem Section
   9. Markets Grid
   10. Solutions Grid
   11. Integrations Grid
   12. Trust & Compliance
   13. CTA Section
   14. Footer
   15. Scroll Reveal
   16. Responsive
   ============================ */

/* ===== 1. Custom Properties ===== */
:root {
  --teal:        #0D9488;
  --teal-dark:   #0F766E;
  --teal-light:  #CCFBF1;
  --teal-subtle: #F0FDFA;

  --white:       #FFFFFF;
  --grey-50:     #F9FAFB;
  --grey-100:    #F3F4F6;
  --grey-200:    #E5E7EB;
  --grey-300:    #D1D5DB;
  --grey-500:    #6B7280;
  --grey-700:    #374151;
  --grey-800:    #1F2937;
  --grey-900:    #111827;

  --shadow-sm:   0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);

  --radius:      16px;
  --radius-sm:   12px;
  --radius-lg:   24px;
  --container:   1200px;
}

/* ===== 2. Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--grey-700);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== 3. Typography ===== */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--grey-800);
  letter-spacing: -0.02em;
}

/* ===== 4. Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ===== 5. Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text {
  font-size: 18px;
  color: var(--grey-800);
}
.brand-text span {
  color: var(--teal);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--grey-500);
}
.nav-links a {
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--grey-800); }
.nav-links a[data-active="true"] {
  color: var(--teal);
  font-weight: 500;
}
.nav-cta { display: flex; gap: 10px; }

/* ===== 6. Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary {
  color: #FFFFFF;
  background: var(--teal);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border-color: var(--grey-200);
  color: var(--grey-800);
  background: var(--white);
}
.btn-outline:hover {
  border-color: var(--grey-300);
  background: var(--grey-50);
}
.btn-ghost {
  color: var(--grey-500);
}
.btn-ghost:hover { color: var(--grey-800); }

/* ===== 7. Hero ===== */
.hero {
  padding: 80px 0 60px;
  background: var(--white);
}
.hero-inner { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(13,148,136,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13,148,136,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(13,148,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); }
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--grey-900);
  margin: 0 0 22px;
}
.hero-sub {
  color: var(--grey-700);
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.55;
}
.hero-sub strong {
  color: var(--grey-800);
  font-weight: 600;
}
.hero-sub--founder {
  color: var(--grey-500);
  font-size: clamp(14px, 1.1vw, 15px);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero-sub--founder::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--teal-light);
  margin: 0 auto 14px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.hero-meta > div {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: box-shadow 0.2s;
}
.hero-meta > div:hover {
  box-shadow: var(--shadow-md);
}
.hero-meta strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--grey-800);
}
.hero-meta span {
  font-size: 13px;
  color: var(--grey-500);
}

/* ===== 8. Problem Section ===== */
.why {
  padding: 100px 0 80px;
  background: var(--grey-50);
}
.why-inner {
  max-width: 780px;
  margin: 0 auto;
}
.why-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--grey-800);
  margin: 0 0 32px;
}
.why-body {
  color: var(--grey-500);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 22px;
}
.why-thesis {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--grey-800);
  font-weight: 600;
  margin: 36px 0;
}
.why-indictment {
  font-size: 17px;
  line-height: 1.55;
  color: var(--grey-700);
  margin: 28px 0;
  padding-left: 18px;
  border-left: 3px solid var(--teal);
}
.why-pivot {
  margin-top: 48px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--teal-subtle);
  border: 1px solid rgba(13,148,136,0.15);
  color: var(--grey-700);
  font-size: 17px;
  line-height: 1.55;
}
.why-pivot strong {
  display: block;
  margin-top: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.015em;
  color: var(--grey-800);
  font-weight: 600;
}

/* Staccato variant */
.why--staccato .why-lines {
  display: grid;
  gap: 14px;
  margin: 32px 0;
}
.why--staccato .why-lines p {
  color: var(--grey-600, #4B5563);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  padding-left: 22px;
  position: relative;
}
.why--staccato .why-lines p::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 3px;
  border-radius: 2px;
  background: var(--teal);
  opacity: 0.5;
}

/* ===== Sections (shared) ===== */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--grey-50);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .tag,
.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--grey-800);
}
.section-head p {
  color: var(--grey-500);
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

/* ===== 9. Markets Grid ===== */
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.market-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.market-card:hover {
  border-color: var(--grey-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.market-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: var(--teal);
}
.market-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--grey-800);
}
.market-card p {
  color: var(--grey-500);
  font-size: 15px;
  margin: 0 0 18px;
  line-height: 1.55;
}
.market-card ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 8px;
}
.market-card li {
  font-size: 14px;
  color: var(--grey-700);
  padding-left: 22px;
  position: relative;
}
.market-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 2px;
  border-radius: 2px;
  background: var(--teal);
  opacity: 0.5;
}

/* ===== 10. Solutions Grid ===== */
.solutions-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--grey-300) transparent;
}
.solutions-grid::-webkit-scrollbar { height: 6px; }
.solutions-grid::-webkit-scrollbar-track { background: transparent; }
.solutions-grid::-webkit-scrollbar-thumb { background: var(--grey-300); border-radius: 3px; }
.solution-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 32px;
  min-width: 280px;
  flex: 0 0 calc((100% - 100px) / 6);
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.solution-card:hover {
  border-color: var(--grey-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.solution-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--grey-300);
  margin-bottom: 14px;
}
.solution-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-subtle);
  border: 1px solid rgba(13,148,136,0.15);
  color: var(--teal);
  margin-bottom: 16px;
}
.solution-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--grey-800);
}
.solution-card p {
  color: var(--grey-500);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* ===== 11. Integrations Grid ===== */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.integ-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.integ-card:hover {
  border-color: var(--grey-300);
  box-shadow: var(--shadow-sm);
}
.integ-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey-500);
  margin: -8px 0 14px;
}
.integ-card h4 {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--grey-800);
}
.dot-accent {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.integ-logos {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.integ-logos span {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  font-size: 13px;
  color: var(--grey-700);
  transition: all 0.2s;
}
.integ-logos span:hover {
  color: var(--teal-dark);
  border-color: rgba(13,148,136,0.3);
  background: var(--teal-subtle);
}

/* ===== 12. Trust & Compliance ===== */
.trust {
  padding: 50px 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  background: var(--grey-50);
}
.trust-label {
  text-align: center;
  color: var(--grey-500);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
  justify-items: center;
}
.trust-grid > div {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--grey-500);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.trust-grid > div:hover { opacity: 1; color: var(--grey-800); }

/* Trust badges section */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.trust-badge {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s;
}
.trust-badge:hover { box-shadow: var(--shadow-md); }
.trust-badge-icon {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-subtle);
  color: var(--teal);
}
.trust-badge h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--grey-800);
}
.trust-badge p {
  font-size: 13px;
  color: var(--grey-500);
  margin: 0;
  line-height: 1.45;
}

/* ===== 13. CTA Section ===== */
.cta {
  padding: 100px 0;
}
.cta-inner {
  text-align: center;
  padding: 72px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--teal-subtle), #E0F7FA 50%, #F0FDFA);
  border: 1px solid rgba(13,148,136,0.15);
}
.cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--grey-800);
}
.cta p {
  color: var(--grey-500);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-actions {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}
.cta-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--grey-500);
}

/* ===== 14. Footer ===== */
.footer {
  border-top: 1px solid var(--grey-200);
  padding: 60px 0 24px;
  background: var(--grey-900);
  color: rgba(255,255,255,0.6);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .brand-text {
  color: rgba(255,255,255,0.9);
}
.footer .brand-text span {
  color: var(--teal-light);
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin: 14px 0 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-cols a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--teal-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== 14b. UI Placeholder ===== */
.ui-placeholder {
  background: var(--grey-100);
  border: 2px dashed var(--grey-300);
  border-radius: var(--radius);
  padding: 80px 40px;
  text-align: center;
}
.ui-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--grey-500);
}
.ui-placeholder-inner svg {
  opacity: 0.4;
}
.ui-placeholder-inner span {
  font-size: 14px;
  font-weight: 500;
}

/* ===== 14b2. Pathway selector ===== */
.pathway-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--grey-200);
  background: var(--white);
  color: var(--grey-500);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.pathway-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.pathway-btn--active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.pathway-btn--active:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

/* ===== 14c. Mid-page CTA ===== */
.cta--mid {
  padding: 48px 0;
}
.cta--mid .cta-inner {
  padding: 40px;
}

/* ===== 15. Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 16. Responsive ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: 1fr; }
  .solutions-grid { flex-wrap: nowrap; }
  .integrations-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .why { padding: 72px 0 60px; }
  .why--staccato .why-lines p { font-size: 16px; }
}

@media (max-width: 540px) {
  .hero { padding: 60px 0 40px; }
  .hero-meta { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-badges { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 24px; }
  .solution-card { min-width: 260px; }
}

/* ===== 17. Dropdown Navigation ===== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--grey-500);
  padding: 0;
  transition: color 0.2s;
}
.nav-dropdown-toggle:hover { color: var(--grey-800); }
.nav-dropdown-toggle svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown.open .nav-dropdown-toggle { color: var(--grey-800); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -16px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--grey-600);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--grey-50);
  color: var(--teal);
}

/* ===== 18. Hamburger & Mobile Nav ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--grey-700);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 57px;
  background: var(--white);
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
  border-top: 1px solid var(--grey-200);
}
.nav-mobile.open { display: block; }
.nav-mobile-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin: 28px 0 12px;
  font-weight: 600;
}
.nav-mobile-section:first-child h3 { margin-top: 0; }
.nav-mobile-section a {
  display: block;
  padding: 12px 0;
  color: var(--grey-700);
  font-size: 15px;
  border-bottom: 1px solid var(--grey-100);
  transition: color 0.15s;
}
.nav-mobile-section a:hover { color: var(--teal); }

/* ===== 19. Page Hero (sub-pages) ===== */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(160deg, var(--teal-subtle), #E0F7FA 60%, var(--white));
}
.page-hero .container { max-width: 800px; }
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 18px 0;
  color: var(--grey-900);
  font-weight: 700;
}
.page-hero p {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--grey-600);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 640px;
}

/* ===== 20. Challenge Grid ===== */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.challenge-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s;
}
.challenge-card:hover { box-shadow: var(--shadow-sm); }
.challenge-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #FEF2F2;
  color: #EF4444;
  margin-bottom: 16px;
}
.challenge-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--grey-800);
}
.challenge-card p {
  font-size: 14px;
  color: var(--grey-500);
  margin: 0;
  line-height: 1.6;
}

/* ===== 21. Alternating Feature Blocks ===== */
.feature-alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}
.feature-alt:not(:last-child) {
  border-bottom: 1px solid var(--grey-100);
}
.feature-alt.reverse { direction: rtl; }
.feature-alt.reverse > * { direction: ltr; }
.feature-alt-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--grey-800);
}
.feature-alt-text p {
  font-size: 15px;
  color: var(--grey-500);
  line-height: 1.6;
  margin: 0 0 20px;
}
.feature-alt-text ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.feature-alt-text li {
  font-size: 14px;
  color: var(--grey-700);
  padding-left: 22px;
  position: relative;
}
.feature-alt-text li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.feature-alt-visual {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: var(--grey-400);
}

/* ===== 22. Capability Grid (platform pages) ===== */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.capability-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.capability-card:hover {
  border-color: var(--grey-300);
  box-shadow: var(--shadow-sm);
}
.capability-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-subtle);
  border: 1px solid rgba(13,148,136,0.15);
  color: var(--teal);
  margin-bottom: 14px;
}
.capability-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--grey-800);
}
.capability-card p {
  font-size: 14px;
  color: var(--grey-500);
  margin: 0;
  line-height: 1.6;
}

/* ===== 23. Card Link ===== */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  margin-top: 16px;
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }

/* ===== 24. Integration Strip (sub-pages) ===== */
.integ-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.integ-strip span {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  font-size: 14px;
  color: var(--grey-700);
  font-weight: 500;
}

/* ===== 25. Related Pages ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--grey-300);
}
.related-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--grey-800);
}
.related-card p {
  font-size: 14px;
  color: var(--grey-500);
  margin: 0;
  line-height: 1.5;
}

/* ===== 26. Platform Overview Grid (hub) ===== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.platform-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.platform-card:hover {
  border-color: var(--grey-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.platform-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--grey-800);
}
.platform-card p {
  font-size: 14px;
  color: var(--grey-500);
  margin: 0 0 14px;
  line-height: 1.6;
}

/* ===== 27. Roadmap Timeline ===== */
.challenge-icon--teal {
  background: var(--teal-subtle);
  color: var(--teal);
}

.roadmap-timeline {
  display: flex;
  position: relative;
  padding-top: 20px;
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--grey-200);
  border-radius: 2px;
}
.roadmap-milestone {
  flex: 1;
  position: relative;
  padding: 40px 20px 0;
  text-align: center;
}
.roadmap-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grey-300);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--grey-200);
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.roadmap-milestone--active .roadmap-marker {
  background: var(--teal);
  box-shadow: 0 0 0 2px var(--teal), 0 0 0 6px rgba(13,148,136,0.15);
}
.roadmap-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.roadmap-milestone h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--grey-800);
}
.roadmap-milestone p {
  font-size: 14px;
  color: var(--grey-500);
  margin: 0;
  line-height: 1.55;
}

/* ===== 28. Sub-page Responsive ===== */
@media (max-width: 960px) {
  .nav-hamburger { display: flex; }
  .nav-dropdown { display: none; }
  .challenge-grid { grid-template-columns: 1fr; }
  .feature-alt { grid-template-columns: 1fr; gap: 32px; }
  .feature-alt.reverse { direction: ltr; }
  .capability-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 60px 0 40px; }
  .roadmap-timeline {
    flex-direction: column;
    padding-top: 0;
    padding-left: 30px;
  }
  .roadmap-timeline::before {
    top: 0;
    bottom: 0;
    left: 18px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .roadmap-milestone {
    padding: 0 0 32px 30px;
    text-align: left;
  }
  .roadmap-marker {
    top: 2px;
    left: -30px;
    transform: none;
  }
}

@media (max-width: 540px) {
  .page-hero { padding: 48px 0 32px; }
  .integ-strip { justify-content: flex-start; }
}
