/* ============================================================
   FLOW OPS GLOBAL — Shared Stylesheet
   Used across: index, solutions, module pages, about, demo,
                contact, portal, 404
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg: #ffffff;
  --fg: #131e30;
  --fg-60: rgba(19, 30, 48, 0.60);
  --fg-70: rgba(19, 30, 48, 0.70);
  --fg-80: rgba(19, 30, 48, 0.80);
  --fg-40: rgba(19, 30, 48, 0.40);
  --fg-50: rgba(19, 30, 48, 0.50);

  --card: #f5f8fb;
  --muted: #f1f5f9;
  --border: #dde3eb;
  --border-soft: rgba(221, 227, 235, 0.5);

  --primary: #22a762;
  --primary-hover: #1d8f54;
  --primary-light: rgba(34, 167, 98, 0.10);
  --primary-border: rgba(34, 167, 98, 0.20);
  --primary-glow: rgba(34, 167, 98, 0.30);

  --secondary: #3479c3;
  --secondary-light: rgba(52, 121, 195, 0.10);
  --secondary-border: rgba(52, 121, 195, 0.20);

  --dark: #0f172a;
  --dark-2: #1e293b;

  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Menlo', ui-monospace, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 0 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 0 0 rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 0 0 rgba(0, 0, 0, 0.04), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 32px -8px rgba(0, 0, 0, 0.16);

  --nav-height: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--primary); color: #fff; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* ---------- PILL BADGES ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.pill.pill-blue {
  background: var(--secondary-light);
  border-color: var(--secondary-border);
  color: var(--secondary);
}
.pill svg { width: 14px; height: 14px; flex-shrink: 0; }

.pill-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}
.pill-dot::before,
.pill-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
}
.pill-dot::before {
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
  background: none;
  color: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px rgba(34, 167, 98, 0.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 32px rgba(34, 167, 98, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--muted);
  border-color: var(--fg-40);
}

.btn-ghost-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary-border);
}
.btn-ghost-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* ---------- HEADER / NAV ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

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

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-80);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- SOLUTIONS DROPDOWN (nav) ---------- */
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-80);
  cursor: pointer;
  transition: color 0.2s ease;
}
.dropdown-toggle:hover { color: var(--primary); }
.dropdown-toggle[aria-expanded="true"] { color: var(--primary); }
.dropdown-toggle .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.dropdown-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown-toggle[data-active="true"] {
  color: var(--primary);
  font-weight: 600;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.dropdown-panel::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.dropdown[aria-expanded="true"] .dropdown-panel,
.dropdown-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-panel,
  .dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-item {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown-item:hover {
  background: var(--card);
  color: var(--primary);
}
.dropdown-item[aria-current="page"] {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.dropdown-see-all {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--primary);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.dropdown-see-all:hover { background: var(--primary-light); }
.dropdown-footer a:hover svg { transform: translateX(3px); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-actions .btn {
  padding: 10px 18px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.menu-toggle span {
  width: 18px;
  height: 1.75px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

.mobile-menu { display: none; }

/* ---------- LANDING HERO ---------- */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img,
.hero-bg svg { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.92) 35%,
    rgba(255, 255, 255, 0.4) 70%,
    rgba(255, 255, 255, 0.1) 100%);
  z-index: 1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(255, 255, 255, 1) 0%,
    transparent 30%);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }

.hero-title {
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--fg);
}
.hero-title .gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subhead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.25;
  max-width: 560px;
}

.hero-lede {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--fg-70);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- PAGE HERO (sub-pages) ---------- */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  text-align: center;
  background: var(--bg);
}
.page-hero .pill { margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero p.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--fg-70);
  max-width: 680px;
  margin: 0 auto;
}
.page-hero .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

/* ---------- MODULE PAGE HERO ---------- */
.module-page-hero {
  padding: calc(var(--nav-height) + 70px) 0 40px;
  background: linear-gradient(to bottom, var(--card), var(--bg));
}
.module-page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.module-page-hero .pill { margin-bottom: 20px; }
.module-page-hero h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--fg);
}
.module-page-hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 18px;
  line-height: 1.3;
}
.module-page-hero p.lede {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--fg-70);
  margin: 0 0 30px;
  max-width: 560px;
}
.module-page-hero .hero-actions { margin-top: 0; }

.module-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--card);
}
.module-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- SECTION SCAFFOLD ---------- */
.section {
  padding: clamp(80px, 11vw, 140px) 0;
  position: relative;
}
.section.section-tight { padding: clamp(50px, 7vw, 90px) 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(50px, 7vw, 90px);
}

.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.section-intro {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--fg-70);
}

/* ---------- SOLUTIONS / MODULES GRID ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  color: inherit;
  overflow: hidden;
  text-decoration: none;
}
.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.module-card:hover {
  border-color: rgba(34, 167, 98, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.module-card:hover::before { opacity: 1; }

.module-card > * { position: relative; z-index: 1; }

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 24px;
  transition: background 0.3s ease, color 0.3s ease;
}
.module-icon svg { width: 28px; height: 28px; }
.module-card:hover .module-icon {
  background: var(--primary);
  color: white;
}

.module-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.module-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
}
.module-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-50);
  font-weight: 600;
}

.module-desc {
  color: var(--fg-70);
  line-height: 1.6;
  margin: 0 0 24px;
  font-size: 15px;
}

.module-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: auto;
}
.module-card:hover .module-cta {
  opacity: 1;
  transform: translateX(0);
}
.module-cta svg { width: 16px; height: 16px; }

/* ---------- MODULE DETAIL (solutions.html hub) ---------- */
.module-detail {
  padding: clamp(60px, 8vw, 100px) 0;
  border-bottom: 1px solid var(--border-soft);
  scroll-margin-top: 100px;
}
.module-detail:last-child { border-bottom: none; }
.module-detail.alt { background: var(--card); }

.module-detail-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.module-detail-head .module-icon {
  margin-bottom: 0;
  width: 64px;
  height: 64px;
}
.module-detail-head .module-icon svg { width: 32px; height: 32px; }
.module-detail-headings .module-meta { margin-bottom: 4px; }
.module-detail-headings .module-name { font-size: 32px; }
.module-detail-headings .tagline {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

.module-overview {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-80);
  margin-bottom: 32px;
  max-width: 820px;
}

.module-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}
.module-detail.alt .module-metrics { background: var(--card); }
.metric { text-align: center; }
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.metric-label {
  font-size: 13px;
  color: var(--fg-60);
  line-height: 1.3;
}

.capabilities-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-60);
  font-weight: 700;
  font-family: var(--font-display);
  margin: 0 0 18px;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.capability {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.capability svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.capability-title {
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--fg);
}
.capability-desc {
  font-size: 14px;
  color: var(--fg-60);
  line-height: 1.55;
  margin: 0;
}

/* ---------- MODULE PAGE — METRICS BAND ---------- */
.metrics-band {
  padding: 60px 0;
  background: var(--card);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.metrics-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.metrics-band .metric-value {
  font-size: clamp(40px, 5vw, 64px);
}
.metrics-band .metric-label { font-size: 14px; }

/* ---------- MODULE PAGE — FEATURE ROWS ---------- */
.module-feature {
  padding: clamp(70px, 9vw, 110px) 0;
  border-bottom: 1px solid var(--border-soft);
}
.module-feature:last-child { border-bottom: none; }
.module-feature.alt { background: var(--card); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.feature-row.reverse .feature-visual { order: 2; }

.feature-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary);
  font-weight: 700;
  margin: 0 0 14px;
}

.feature-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.feature-lead {
  font-size: 17px;
  color: var(--fg-70);
  line-height: 1.65;
  margin: 0 0 24px;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--fg-80);
  line-height: 1.55;
}
.feature-bullets svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--card);
}
.feature-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- DOWNLOAD DECK CTA ---------- */
.deck-download {
  padding: clamp(70px, 9vw, 110px) 0;
  background: var(--dark);
  color: white;
  text-align: center;
}
.deck-download .container { max-width: 780px; }
.deck-download .pill {
  background: rgba(34, 167, 98, 0.15);
  border-color: rgba(34, 167, 98, 0.3);
  color: #6cd49b;
}
.deck-download h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 16px;
}
.deck-download p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 30px;
}
.deck-download .btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}
.deck-download .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}
.deck-download-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- TECH / CONTROL TOWER ---------- */
.tech {
  background: var(--card);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 80px);
  align-items: center;
}

.tech-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.tech-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-70);
  margin-bottom: 32px;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tech-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  color: var(--fg-80);
}
.tech-list svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.tech-visual { position: relative; }
.tech-visual-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.tech-visual-image img,
.tech-visual-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-stat {
  position: absolute;
  bottom: -32px;
  left: -32px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 22px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
}
.floating-stat .stat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.floating-stat .stat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.92); }
}
.floating-stat .stat-label-top {
  font-size: 13px;
  color: var(--fg-60);
  font-weight: 500;
}
.floating-stat .stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.floating-stat .stat-sub {
  font-size: 13px;
  color: var(--fg-60);
}

/* ---------- ABOUT / FOUNDERS ---------- */
.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto 70px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-70);
}
.about-paragraphs strong { color: var(--fg); font-weight: 600; }

.leader-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 880px;
  margin: 0 auto 24px;
}
.leader-avatar {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }

.leader-name { font-size: 28px; font-weight: 700; margin: 8px 0 4px; }
.leader-title { color: var(--fg-60); font-weight: 500; margin-bottom: 20px; }
.leader-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--fg-70);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- NETWORK / GLOBE CTA ---------- */
.network {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  overflow: hidden;
  text-align: center;
  background: var(--dark);
  color: white;
}
.network-bg { position: absolute; inset: 0; z-index: 0; }
.network-bg img,
.network-bg svg { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.network-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(15, 23, 42, 0.7) 80%);
}

.network-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}
.network-content .pill {
  background: rgba(34, 167, 98, 0.15);
  border-color: rgba(34, 167, 98, 0.3);
  color: #6cd49b;
}
.network-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: white;
}
.network-text {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
}

.network .btn-primary {
  box-shadow: 0 0 32px rgba(34, 167, 98, 0.4);
}
.network .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}
.network .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ---------- CONTACT / DEMO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 60px);
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.contact-info p,
.contact-info a {
  color: var(--fg-60);
  font-size: 15px;
  transition: color 0.2s ease;
  word-break: break-word;
}
.contact-info a:hover { color: var(--primary); }

.form-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.form-field .optional { color: var(--fg-40); font-weight: 400; }
.form-field label a { font-size: 13px; color: var(--primary); font-weight: 600; }
.form-field label a:hover { text-decoration: underline; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%23131e30' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.input-icon { position: relative; }
.input-icon svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--fg-40);
  pointer-events: none;
}
.input-icon input { padding-left: 42px; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-70);
  margin-bottom: 20px;
  user-select: none;
  cursor: pointer;
}
.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-submit { width: 100%; padding: 14px 24px; font-size: 15px; }

.form-note {
  text-align: center;
  font-size: 14px;
  color: var(--fg-60);
  margin: 16px 0 0;
}
.form-note a { color: var(--primary); font-weight: 600; }
.form-note a:hover { text-decoration: underline; }

.form-success {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--fg-80);
  margin-bottom: 20px;
}
.form-success svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- PORTAL ---------- */
.portal {
  padding: calc(var(--nav-height) + 60px) var(--gutter) 80px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vw, 48px);
}
.portal-card .icon-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.portal-card .icon-badge svg { width: 26px; height: 26px; }
.portal-head { text-align: center; margin-bottom: 32px; }
.portal-head h1 { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.portal-head p { color: var(--fg-60); font-size: 15px; margin: 0; }

/* ---------- 404 ---------- */
.notfound {
  padding: calc(var(--nav-height) + 80px) var(--gutter) 100px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.notfound-inner { max-width: 540px; }
.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}
.notfound h1 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; margin: 0 0 14px; }
.notfound p { color: var(--fg-70); font-size: 17px; line-height: 1.6; margin: 0 0 32px; }
.notfound-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 80px 0 36px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .brand-logo { height: 64px; margin-bottom: 20px; }
.footer-tag {
  color: var(--fg-60);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 360px;
}
.footer-copy { font-size: 13px; font-weight: 500; color: var(--fg-40); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--fg);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  font-size: 14px;
  color: var(--fg-60);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--primary); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; gap: 60px; }
  .floating-stat { left: 24px; bottom: -28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .leader-card { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .leader-avatar { margin: 0 auto; }
  .leader-bio { text-align: left; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .module-page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-visual { order: 0; }
  .metrics-band-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 720px) {
  .nav { height: 72px; }
  :root { --nav-height: 72px; }
  .brand-logo { height: 44px; }
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-actions .btn-primary { padding: 9px 16px; font-size: 13px; }
  .menu-toggle { display: flex; }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 49;
    padding: 32px var(--gutter);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu > a,
  .mobile-menu .mobile-solutions summary {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--fg);
    padding: 20px 4px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    min-height: 64px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .mobile-menu > a:active,
  .mobile-menu .mobile-solutions summary:active {
    color: var(--primary);
    background: var(--primary-light);
  }
  .mobile-menu > a[aria-current="page"] { color: var(--primary); }
  .mobile-menu .mobile-solutions { border: none; }
  .mobile-menu .mobile-solutions summary::-webkit-details-marker { display: none; }
  .mobile-menu .mobile-solutions summary::after {
    content: "";
    width: 11px;
    height: 11px;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    opacity: 0.6;
  }
  .mobile-menu .mobile-solutions[open] summary::after {
    transform: rotate(-135deg) translate(-2px, -2px);
    opacity: 1;
  }
  .mobile-menu .mobile-solutions .subnav {
    display: flex;
    flex-direction: column;
    padding: 8px 0 16px 16px;
    margin-left: 4px;
    border-left: 2px solid var(--primary-light);
    gap: 0;
  }
  .mobile-menu .mobile-solutions .subnav a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--fg-80);
    padding: 14px 12px;
    border-bottom: none;
    border-radius: var(--radius-sm);
    letter-spacing: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .mobile-menu .mobile-solutions .subnav a:active {
    background: var(--primary-light);
    color: var(--primary);
  }
  .mobile-menu .mobile-solutions .subnav a[aria-current="page"] {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
  }
  .mobile-menu .btn {
    margin-top: 28px;
    align-self: stretch;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    border: none;
    min-height: 52px;
  }

  .hero { padding: 140px 0 80px; min-height: auto; }
  .hero-bg::before {
    background: linear-gradient(to right,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.85) 100%);
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .module-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .module-metrics { grid-template-columns: 1fr; }
  .metrics-band-grid { grid-template-columns: 1fr; gap: 30px; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .leader-card { padding: 32px 24px; }
  .floating-stat {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 20px auto 0;
    width: max-content;
    max-width: 100%;
  }

  .module-detail-headings .module-name { font-size: 26px; }
  .module-page-hero { padding-top: calc(var(--nav-height) + 40px); }
  .deck-download-actions { flex-direction: column; align-items: stretch; }
  .deck-download-actions .btn { width: 100%; }

  /* Touch feedback for all buttons */
  .btn { -webkit-tap-highlight-color: transparent; }
  .btn:active { transform: scale(0.98); }

  /* Larger tap target for hamburger */
  .menu-toggle {
    width: 44px;
    height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Feature rows on mobile — tighter title, more breathing room */
  .feature-title { font-size: 26px; }
  .feature-lead { font-size: 16px; }
  .feature-bullets li { font-size: 15px; }

  /* Module page hero — trim the title on narrow screens */
  .module-page-hero h1 { font-size: 40px; }
  .module-page-hero .tagline { font-size: 19px; }
  .module-page-hero p.lede { font-size: 16px; }

  /* Ensure images never overflow their containers */
  .module-hero-image,
  .feature-visual,
  .tech-visual-image { max-width: 100%; }

  /* Prevent horizontal scroll on very long labels */
  .metrics-band .metric-label,
  .metric-label,
  .capability-desc,
  .footer-tag { word-wrap: break-word; overflow-wrap: break-word; }
}

/* Extra safeguards for very narrow phones (< 380px) */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .mobile-menu > a,
  .mobile-menu .mobile-solutions summary { font-size: 22px; padding: 18px 4px; min-height: 60px; }
  .mobile-menu .mobile-solutions .subnav a { font-size: 15px; }
  .hero-title { font-size: 40px; }
  .hero-subhead { font-size: 20px; }
  .section-title { font-size: 30px; }
  .module-page-hero h1 { font-size: 34px; }
  .brand-logo { height: 40px; }
  .nav-actions .btn-primary { padding: 8px 12px; font-size: 12px; }
}
