/* ============================================================
   ATLAS MARKETING - style.css
   Zone & Operations Intelligence Platform
   ============================================================
   1.  TOKENS & CUSTOM PROPERTIES
   2.  RESET & BASE
   3.  TYPOGRAPHY UTILITIES
   4.  LAYOUT UTILITIES
   5.  BUTTONS
   6.  BADGES & CHIPS
   7.  NAV
   8.  HERO
   9.  DCC CARD
   10. HERO WAVE
   11. METRICS STRIP
   12. PROBLEM / BEFORE-AFTER
   13. HOW IT WORKS (TEASER)
   14. CAPABILITIES BENTO
   15. INDUSTRIES GRID
   16. RESULTS DARK BAND
   17. AI ANALYST / TERMINAL
   18. DEMO CTA STRIP
   19. FOOTER
   20. INNER PAGE HERO
   21. STEPS ALTERNATING (how-it-works page)
   22. FEATURES GRID (how-it-works page)
   23. USE CASES EXPANDED
   24. DEMO PAGE
   25. FORM
   26. SCROLL REVEAL BASE STATES
   27. ANIMATIONS & KEYFRAMES
   28. RESPONSIVE - 1024px
   29. RESPONSIVE - 768px
   30. RESPONSIVE - 375px
   31. REDUCED MOTION
   ============================================================ */

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* Brand - exact values from demo CSS */
  --brand:        #15a087;
  --brand-dark:   #0e7d68;
  --brand-soft:   #e5f5f1;
  --brand-dim:    rgba(21,160,135,0.10);
  --brand-glow:   rgba(21,160,135,0.20);
  --brand-border: rgba(21,160,135,0.28);
  --brandgrad:    linear-gradient(135deg, #22b89e 0%, #0f8a74 100%);

  /* Accent (orange / "mars") */
  --accent:       #e0703a;
  --accent-dark:  #bf5526;
  --accent-soft:  #fbede5;

  /* Status */
  --green:        #1a9e6b;
  --amber:        #d98e27;
  --red:          #d1495b;
  --blue:         #2f6fed;

  /* Surfaces */
  --bg:           #f4f5f7;
  --bg-2:         #eceef1;
  --surface:      #ffffff;
  --surface-2:    #fbfbfd;

  /* Dark sections */
  --dark:         #0d1520;
  --dark-2:       #162030;
  --dark-surf:    rgba(255,255,255,0.06);
  --dark-border:  rgba(255,255,255,0.10);

  /* Text */
  --text-1:       #1d1d1f;
  --text-2:       #5b6470;
  --text-3:       #8a929e;

  /* Borders */
  --border:       #e7e9ee;
  --border-2:     #d9dce2;

  /* Shadows */
  --shadow-sm:    0 1px 2px rgba(16,24,40,.05);
  --shadow-md:    0 1px 3px rgba(16,24,40,.05), 0 10px 28px rgba(16,24,40,.05);
  --shadow-lg:    0 18px 48px rgba(16,24,40,.16);
  --shadow-brand: 0 8px 32px rgba(21,160,135,.28), 0 2px 8px rgba(21,160,135,.12);

  /* Radius */
  --r-xs:   4px;
  --r-sm:   8px;
  --r:      16px;
  --r-lg:   22px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* Layout */
  --max-w:  1200px;
  --nav-h:  62px;
  --pad-x:  clamp(20px, 5vw, 64px);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);

  /* Type */
  --font:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-1);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ============================================================
   3. TYPOGRAPHY UTILITIES
   ============================================================ */
.overline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}
.overline.light { color: rgba(255,255,255,0.55); }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 16px;
}
.section-title.light { color: #ffffff; }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  transition: gap 200ms var(--ease-out);
}
.link-arrow:hover { gap: 10px; }

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.section { padding: 96px var(--pad-x); }
.section-alt { background: var(--bg); }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--r-pill);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms, color 180ms;
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn-lg { font-size: 1rem; padding: 14px 28px; }
.btn-md { font-size: 0.9rem; padding: 11px 22px; }
.btn-sm { font-size: 0.82rem; padding: 9px 18px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 1.5px solid var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand-border);
}
.btn-ghost:hover {
  background: var(--brand-soft);
  transform: translateY(-2px);
}


.btn-white {
  background: #fff;
  color: var(--brand-dark);
  border: 1.5px solid rgba(255,255,255,0.3);
  font-weight: 700;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
  border: 1.5px solid var(--dark-border);
}
.btn-dark:hover {
  background: var(--dark-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Loading state */
.btn .btn-spinner { display: none; }
.btn.loading .btn-text { display: none; }
.btn.loading .btn-spinner { display: block; }
.btn.loading { opacity: 0.75; pointer-events: none; }

/* ============================================================
   6. BADGES & CHIPS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-brand {
  background: rgba(21,160,135,0.12); color: var(--brand-dark);
  border: 1px solid rgba(21,160,135,0.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.badge-accent {
  background: rgba(224,112,58,0.12); color: var(--accent-dark);
  border: 1px solid rgba(224,112,58,0.24);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.badge-dark  { background: var(--dark-surf); color: rgba(255,255,255,0.75); border: 1px solid var(--dark-border); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255,255,255,0.55);
  color: var(--text-2);
  border: 1px solid rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
          backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 1px 2px rgba(16,24,40,0.04), inset 0 1px 0 rgba(255,255,255,0.6);
}
.chip svg { color: var(--brand); flex-shrink: 0; }

/* ============================================================
   7. NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms, box-shadow 250ms;
}
.site-nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}


.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 9px;
}
.nav__logo img { height: 30px; width: auto; }
.nav__logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: color 180ms, background 180ms;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.nav__link:hover { color: var(--text-1); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.active { color: var(--brand); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 280ms var(--ease-out), opacity 200ms;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px var(--pad-x) 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms var(--ease-out), opacity 250ms;
  z-index: 99;
}
.nav__mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav__mobile .nav__link { font-size: 1rem; padding: 10px 12px; }
.nav__mobile .btn { margin-top: 8px; width: 100%; text-align: center; }

/* ============================================================
   8. HERO
   ============================================================ */

/* Hero wrap - light professional, relative for overflow */
.hero-wrap {
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: 56px;
  padding: 80px var(--pad-x) 0;
  max-width: var(--max-w);
  margin-inline: auto;
  overflow: hidden;
}

.hero__city-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__city-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.10;
  filter: saturate(0.3) brightness(0.9);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: rgba(21,160,135,0.10);
  border: 1px solid rgba(21,160,135,0.22);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
          backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 10px rgba(21,160,135,0.08);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__headline {
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text-1);
}
.hero__headline .accent { color: var(--brand); }

.hero__sub {
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text-2);
  max-width: 500px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 540px;
  padding-bottom: 40px;
}
/* Globe is the star: large, centered, dominant in the right column */
.hero-globe-canvas {
  position: absolute;
  top: 46%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: min(600px, 48vw);
  aspect-ratio: 1 / 1;
  z-index: 0;
  pointer-events: none;
}
.globe-glow {
  position: absolute;
  top: 46%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: min(640px, 52vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(circle, rgba(21,160,135,0.16) 0%, rgba(21,160,135,0.05) 46%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
/* small floating map labels */
.globe-tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-2);
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 11px;
  box-shadow: 0 2px 10px rgba(16,24,40,0.06);
}
.globe-tag--tl { top: 14%; left: 4%; }
.globe-tag--tr { top: 24%; right: 2%; }
/* compact dispatch card floats over the globe's lower corner */
.dcc-card--float {
  position: relative;
  z-index: 1;
  width: 340px;
  max-width: 92%;
  margin-right: 8%;
}

/* ============================================================
   9. DCC CARD
   ============================================================ */
.dcc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow:
    0 1px 2px rgba(16,24,40,0.04),
    0 8px 32px rgba(16,24,40,0.10),
    0 32px 80px rgba(16,24,40,0.10),
    0 0 0 1px rgba(21,160,135,0.10);
  animation: card-float 6s ease-in-out infinite;
  width: 100%;
  max-width: 360px;
  position: relative;
}

.dcc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dcc-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.dcc-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.06em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Health score */
.dcc-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dcc-score-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-1);
  letter-spacing: -0.03em;
}
.dcc-score-num .den {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0;
}

.dcc-healthy-badge {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dcc-progress-track {
  height: 5px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  margin-bottom: 12px;
  overflow: hidden;
}
.dcc-progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--brandgrad);
  width: var(--w, 0%);
  animation: zone-bar-grow 1s var(--ease-out) 0.6s forwards;
}

/* Signals */
.dcc-signals {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.dcc-sig {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.dcc-sig .sig-name { color: var(--text-3); }
.dcc-sig .sig-val  { font-weight: 600; color: var(--brand-dark); }
.dcc-sig .sig-val.warn { color: var(--accent); }

/* Alert */
.dcc-alert {
  background: var(--accent-soft);
  border: 1px solid rgba(224,112,58,0.2);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dcc-alert-badge {
  display: inline-flex;
  width: fit-content;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
}
.dcc-alert-text {
  font-size: 0.78rem;
  color: var(--text-1);
  line-height: 1.4;
  font-weight: 500;
}
.dcc-alert-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--accent-dark);
}

/* Zone Rail */
.dcc-zone-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.dcc-zone-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.zone-name {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zone-bar-track {
  width: 72px;
  height: 5px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.zone-bar {
  height: 100%;
  border-radius: var(--r-pill);
  width: 0;
  animation: zone-bar-grow 1s var(--ease-out) forwards;
}
.zone-bar.hi   { background: var(--brand);  animation-delay: 0.8s; }
.zone-bar.med  { background: #72b9ac;        animation-delay: 0.9s; }
.zone-bar.warn { background: var(--accent); animation-delay: 1.0s; }

.zone-ratio {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  min-width: 52px;
  text-align: right;
}
.zone-ratio.hi   { color: var(--brand); }
.zone-ratio.med  { color: var(--text-2); }
.zone-ratio.warn { color: var(--accent); }

/* DCC footer */
.dcc-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
}
.dcc-sep { color: var(--border-2); }

/* ============================================================
   10. HERO WAVE
   ============================================================ */

/* ============================================================
   11. METRICS STRIP
   ============================================================ */
.metrics-strip {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #f0faf8 100%);
  border-top: 1px solid rgba(21,160,135,0.15);
  border-bottom: 1px solid rgba(21,160,135,0.15);
  padding: 44px var(--pad-x);
}
.metrics-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.metric-num {
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric-label {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.metric-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ============================================================
   12. PROBLEM / BEFORE-AFTER
   ============================================================ */
.problem {
  padding: 96px var(--pad-x);
  background: var(--surface);
}
.problem .container { max-width: var(--max-w); margin-inline: auto; }
.problem-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
}

.problem-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.problem-col-label.before { color: var(--text-3); border-color: var(--border); }
.problem-col-label.after  { color: var(--brand); border-color: var(--brand); }

.problem-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r);
  margin-bottom: 8px;
  transition: background 200ms;
}
.problem-item.before .problem-icon { color: var(--border-2); }
.problem-item.before strong { color: var(--text-3); }
.problem-item.before p { color: var(--text-3); font-size: 0.88rem; }

.problem-item.after { }
.problem-item.after:hover { background: var(--brand-soft); }
.problem-item.after .problem-icon { color: var(--brand); }
.problem-item.after strong { color: var(--text-1); }
.problem-item.after p { color: var(--text-2); font-size: 0.88rem; }

.problem-icon { flex-shrink: 0; width: 20px; margin-top: 2px; }
.problem-item strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }

.problem-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 40px;
}
.divider-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  transform-origin: top;
}
.divider-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ============================================================
   13. HOW IT WORKS (homepage teaser)
   ============================================================ */
.steps-teaser {
  padding: 96px var(--pad-x);
  background: var(--bg);
}
.steps-teaser .container { max-width: var(--max-w); margin-inline: auto; }
.steps-header { max-width: 600px; margin-bottom: 56px; }

.steps-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.steps-line {
  position: absolute;
  top: 28px;
  left: calc(28px + 32px);
  right: calc(28px + 32px);
  height: 1.5px;
  background: var(--border);
  z-index: 0;
}
.steps-line-fill {
  height: 100%;
  background: var(--brand);
  width: 0;
  transition: width 1.2s var(--ease-out);
}

.step-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.step-body {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

.steps-cta { margin-top: 8px; }

/* ── Editorial Steps ───────────────────────────────── */
.steps-editorial { display: flex; flex-direction: column; margin-top: 48px; }
.step-ed-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step-ed-item:last-child { border-bottom: none; }
.step-ed-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.03em;
  opacity: 0.92;
}
.step-ed-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step-ed-body {
  font-size: 0.975rem;
  color: var(--text-2);
  line-height: 1.78;
  max-width: 540px;
}

@media (max-width: 600px) {
  .step-ed-item { grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; }
  .step-ed-num { font-size: 1.8rem; }
}

/* ============================================================
   14. CAPABILITIES BENTO
   ============================================================ */
.capabilities {
  padding: 96px var(--pad-x);
  background: var(--surface);
}
.capabilities .container { max-width: var(--max-w); margin-inline: auto; }
.capabilities-header { max-width: 640px; margin-bottom: 48px; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 14px;
}

.bento-overview { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-dcc      { grid-column: 3 / 4; grid-row: 1 / 3; }
.bento-zones    { grid-column: 1 / 2; grid-row: 3 / 4; }
.bento-sql      { grid-column: 2 / 3; grid-row: 3 / 4; }
.bento-ai       { grid-column: 3 / 4; grid-row: 3 / 4; }
.bento-ai .bento-body { flex: 0; }

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms var(--ease-out), border-color 200ms, box-shadow 200ms;
  cursor: default;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-brand);
}

.bento-screen {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.bento-overview .bento-screen { max-height: 300px; }
.bento-dcc .bento-screen { max-height: 200px; }
.bento-zones .bento-screen,
.bento-sql .bento-screen { max-height: 150px; }

.bento-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.bento-badge-wrap { margin-bottom: 4px; }
.bento-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.bento-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* AI terminal preview inside bento */
/* AI Analyst bento card - full terminal preview */
.bai-term {
  margin: 2px 18px 18px;
  background: var(--dark);
  border-radius: 12px;
  padding: 14px 16px 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(13,21,32,0.18);
}

.bai-query {
  display: flex;
  gap: 8px;
  color: rgba(255,255,255,0.48);
  line-height: 1.55;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.bai-prompt { color: var(--brand); flex-shrink: 0; }

.bai-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bai-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bai-zone { color: rgba(255,255,255,0.55); }
.bai-rate { font-weight: 600; letter-spacing: 0.02em; }
.r-hi  { color: #f87171; }
.r-med { color: var(--accent); }
.r-lo  { color: var(--brand); }

.bai-pin {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.42);
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 7px 12px;
  text-align: left;
  cursor: pointer;
  transition: background 180ms, color 180ms, border-color 180ms;
  margin-top: 2px;
}
.bai-pin:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.22);
}

/* ============================================================
   BENTO PRODUCT VISUALS - charts, bars, console (animated)
   ============================================================ */

/* Overview: live orders area chart */
.bento-chart {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 50% 0%, #f0faf7 0%, #f5f8f7 60%, #f2f5f4 100%);
  padding: 18px 20px 12px;
}
.chart-plot { position: relative; }
.chart-plot svg { display: block; width: 100%; height: 140px; overflow: visible; }
.bento-chart .gl { stroke: rgba(16,24,40,0.055); stroke-width: 1; }
.bento-chart .area { fill: url(#ovGrad); opacity: 0; }
.bento-chart .line {
  fill: none; stroke: var(--brand); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}
.chart-dot {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--brand);
  transform: translate(-50%, -50%) scale(0.3); opacity: 0;
  box-shadow: 0 0 0 4px rgba(21,160,135,0.12);
}
.bento-card.in-view .bento-chart .line { animation: ov-draw 1.5s var(--ease-out) forwards; }
.bento-card.in-view .bento-chart .area { animation: ov-fade 0.7s ease 0.5s forwards; }
.bento-card.in-view .chart-dot { animation: dot-pop 0.45s var(--ease-spring) 1.25s forwards; }
.chart-axis {
  display: flex; justify-content: space-between; padding: 9px 2px 0;
  font-family: var(--mono); font-size: 0.6rem; color: var(--text-3); letter-spacing: 0.04em;
}
@keyframes ov-draw { to { stroke-dashoffset: 0; } }
@keyframes ov-fade { to { opacity: 1; } }
@keyframes dot-pop { from { opacity: 0; transform: translate(-50%,-50%) scale(0.3);} to { opacity: 1; transform: translate(-50%,-50%) scale(1);} }

.bento-stats { display: flex; border-top: 1px solid var(--border); background: var(--surface); }
.bento-stat { flex: 1; text-align: center; padding: 15px 8px; }
.bento-stat + .bento-stat { border-left: 1px solid var(--border); }
.bento-stat .v { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.bento-stat .l { font-size: 0.7rem; color: var(--text-3); margin-top: 5px; }

/* Zone Explorer: animated demand bars */
.bento-zbars { margin: 2px 18px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 13px; }
.zbar-row { display: grid; grid-template-columns: 88px 1fr 38px; align-items: center; gap: 11px; }
.zbar-name { font-size: 0.73rem; color: var(--text-2); white-space: nowrap; }
.zbar-track { display: block; height: 7px; background: rgba(16,24,40,0.07); border-radius: 999px; overflow: hidden; }
.zbar-fill { display: block; height: 100%; border-radius: 999px; width: 0; transition: width 1s var(--ease-out); }
.bento-card.in-view .zbar-fill { width: var(--w); }
.zbar-fill.hi   { background: linear-gradient(90deg, var(--brand), #1fc3a2); }
.zbar-fill.warn { background: linear-gradient(90deg, var(--accent), #ef9266); }
.zbar-val { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; text-align: right; }
.zbar-val.hi   { color: var(--brand); }
.zbar-val.warn { color: var(--accent); }

/* Data Explorer: SQL console */
.bento-console { margin: 2px 18px 18px; background: var(--dark); border-radius: 12px; padding: 15px 16px; font-family: var(--mono); font-size: 0.7rem; line-height: 1.7; box-shadow: 0 8px 24px rgba(13,21,32,0.18); }
.bento-console .kw  { color: #4fd1b5; }
.bento-console .col { color: rgba(255,255,255,0.82); }
.bento-console .tbl { color: #e0a36a; }
.bento-console .res { margin-top: 11px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,0.09); display: flex; flex-direction: column; gap: 6px; }
.bento-console .res-row { display: flex; justify-content: space-between; color: rgba(255,255,255,0.5); }
.bento-console .res-row .num { font-weight: 600; }
.bento-console .res-row .num.hi { color: #f87171; }

.zm-street { stroke: rgba(21,160,135,0.13); stroke-width: 1; }
.zm-glrim  { fill: rgba(21,160,135,0.03); stroke: rgba(21,160,135,0.22); stroke-width: 1.4; }
.zm-glline { fill: none; stroke: rgba(21,160,135,0.14); stroke-width: 1; }
.zm-contour { fill: none; stroke: rgba(21,160,135,0.30); stroke-width: 1.1; }
.zm-contour.faint { stroke: rgba(21,160,135,0.15); }
.zm-zone   { fill: rgba(21,160,135,0.05); stroke: rgba(21,160,135,0.30); stroke-width: 1.25; stroke-dasharray: 5 5; }
.zm-zone.hot { fill: rgba(224,112,58,0.06); stroke: rgba(224,112,58,0.34); }
.zm-heat { animation: zm-pulse 3.4s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center; }
.zm-heat.b { animation-delay: 1.1s; }
.zm-heat.c { animation-delay: 2.2s; }
.zm-route { stroke: rgba(21,160,135,0.5); stroke-width: 1.5; fill: none; stroke-dasharray: 4 6; animation: zm-dash 9s linear infinite; }
.zm-driver { fill: var(--brand); }
@keyframes zm-pulse { 0%,100% { opacity: 0.35; transform: scale(0.85);} 50% { opacity: 0.9; transform: scale(1.15);} }
@keyframes zm-dash  { to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) {
  .zm-heat, .zm-route { animation: none; }
  .bento-card .line { stroke-dashoffset: 0 !important; animation: none !important; }
  .bento-card .area { opacity: 1 !important; }
  .zbar-fill { width: var(--w) !important; }
}

/* ============================================================
   15. INDUSTRIES GRID
   ============================================================ */
.industries {
  padding: 96px var(--pad-x);
  background: var(--bg);
}
.industries .container { max-width: var(--max-w); margin-inline: auto; }
.industries-header { max-width: 640px; margin-bottom: 48px; }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms, border-color 200ms;
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.industry-card:hover .industry-icon { transform: rotate(5deg) scale(1.08); }

.industry-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  border-radius: var(--r-sm);
  color: var(--brand);
  transition: transform 250ms var(--ease-spring);
}

.industry-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.industry-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.industry-tag {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.industries-cta { margin-top: 8px; }

/* ============================================================
   15B. STATEMENT CAROUSEL
   ============================================================ */
.statement-carousel {
  background: var(--dark);
  padding: 80px var(--pad-x);
  text-align: center;
  overflow: hidden;
}

.stmt-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 36px;
}

.stmt-track {
  position: relative;
  height: clamp(80px, 12vw, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stmt {
  position: absolute;
  width: 100%;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--brand);
  opacity: 0;
  transform: translateY(10px);
  margin: 0;
}

.stmt-accent { color: var(--accent); }

.stmt-1 { animation: stmt1 12s ease-in-out infinite; }
.stmt-2 { animation: stmt2 12s ease-in-out infinite; }
.stmt-3 { animation: stmt3 12s ease-in-out infinite; }

@keyframes stmt1 {
  0%,100% { opacity: 0; transform: translateY(10px); }
  5%      { opacity: 1; transform: none; }
  29%     { opacity: 1; transform: none; }
  34%     { opacity: 0; transform: translateY(-6px); }
}
@keyframes stmt2 {
  0%,34%  { opacity: 0; transform: translateY(10px); }
  39%     { opacity: 1; transform: none; }
  62%     { opacity: 1; transform: none; }
  67%     { opacity: 0; transform: translateY(-6px); }
  100%    { opacity: 0; }
}
@keyframes stmt3 {
  0%,67%  { opacity: 0; transform: translateY(10px); }
  72%     { opacity: 1; transform: none; }
  95%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .stmt-1 { animation: none; opacity: 1; transform: none; }
  .stmt-2, .stmt-3 { display: none; }
}

/* ============================================================
   16. RESULTS DARK BAND
   ============================================================ */
.results {
  position: relative;
  padding: 96px var(--pad-x);
  background: var(--dark);
  overflow: hidden;
}

.results-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.results-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.38;
  filter: saturate(0.85) brightness(0.78) contrast(1.05);
}
/* brand-tinted cinematic overlay so text stays readable */
.results-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, var(--dark) 12%, rgba(13,21,32,0.72) 46%, rgba(13,21,32,0.35) 100%),
    radial-gradient(140% 120% at 85% 0%, rgba(21,160,135,0.28) 0%, transparent 55%);
}

.results .container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
}
.results-header { max-width: 560px; margin-bottom: 56px; }

.results-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.stat-card {
  background: var(--dark-surf);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: background 200ms;
}
.stat-card:hover { background: rgba(255,255,255,0.09); }

.stat-num {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  line-height: 1.4;
}

.results-quote {
  border-left: 2px solid var(--brand);
  padding-left: 24px;
  max-width: 640px;
}
.results-quote p {
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 12px;
}
.results-quote footer {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* ============================================================
   17. AI ANALYST / TERMINAL
   ============================================================ */
.ai-callout {
  padding: 96px var(--pad-x);
  background: var(--surface);
}
.ai-callout .container { max-width: var(--max-w); margin-inline: auto; }

.ai-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ai-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-copy p { color: var(--text-2); }
.ai-copy .link-arrow { margin-top: 8px; }

.terminal-card {
  background: var(--dark);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.term-bar {
  background: var(--dark-2);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--dark-border);
}
.term-dots { display: flex; gap: 6px; }
.term-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-dots span:nth-child(1) { background: #ff5f57; }
.term-dots span:nth-child(2) { background: #ffbd2e; }
.term-dots span:nth-child(3) { background: #28ca41; }
.term-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  margin-left: 4px;
}

.term-body { padding: 24px; min-height: 260px; }

.term-query {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}
.term-prompt { color: var(--brand); flex-shrink: 0; font-weight: 700; }
.term-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--brand);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

.term-thinking {
  display: flex;
  gap: 6px;
  padding: 12px 0;
}
.think-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: think-pulse 1.2s ease-in-out infinite;
}
.think-dot:nth-child(2) { animation-delay: 0.2s; }
.think-dot:nth-child(3) { animation-delay: 0.4s; }

.term-result {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-bottom: 16px;
}
.term-result th {
  text-align: left;
  padding: 6px 10px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  border-bottom: 1px solid var(--dark-border);
}
.term-result td {
  padding: 7px 10px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.term-result td.rate-hi  { color: var(--red); }
.term-result td.rate-med { color: var(--amber); }
.term-result td.rate-lo  { color: var(--green); }

.term-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms;
}
.term-pin:hover { background: var(--brand-dim); }

/* ============================================================
   18. DEMO CTA STRIP
   ============================================================ */
.cta-strip {
  padding: 96px var(--pad-x);
  background: var(--brand);
  text-align: center;
}
.cta-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-strip .overline { color: rgba(255,255,255,0.65); }
.cta-strip .section-title { color: #fff; margin-bottom: 0; }
.cta-strip .section-sub {
  color: rgba(255,255,255,0.78);
  text-align: center;
  max-width: 520px;
  margin-bottom: 0;
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
}

.footer-main {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 64px var(--pad-x) 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo-wrap { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand .logo-wrap .nav__logo-text { color: #fff; }
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  padding: 4px 0;
  transition: color 150ms;
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }

.footer-bar {
  border-top: 1px solid var(--dark-border);
  padding: 20px var(--pad-x);
}
.footer-bar-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-bar span, .footer-bar a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bar a:hover { color: rgba(255,255,255,0.65); }

/* ============================================================
   20. INNER PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--bg);
  padding: calc(var(--nav-h) + 64px) var(--pad-x) 64px;
  border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: var(--max-w); margin-inline: auto; }
.page-hero .section-title { max-width: 680px; }
.page-hero .section-sub { margin-bottom: 0; }

/* ============================================================
   21. STEPS ALTERNATING (how-it-works page)
   ============================================================ */
.step-alt {
  padding: 80px var(--pad-x);
  border-bottom: 1px solid var(--border);
}
.step-alt:last-of-type { border-bottom: none; }
.step-alt .container {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.step-alt:nth-child(even) .step-alt-visual { order: -1; }

.step-alt-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-alt-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-alt-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--brand-soft);
}
.step-alt-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
}
.step-alt-desc { color: var(--text-2); }
.step-alt-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.step-alt-bullet {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.step-alt-bullet::before {
  content: '→';
  color: var(--brand);
  flex-shrink: 0;
  font-weight: 700;
}

.step-alt-visual img {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(16,24,40,.14), 0 4px 12px rgba(21,160,135,.10);
  width: 100%;
}

/* ============================================================
   22. FEATURES GRID (how-it-works page)
   ============================================================ */
.features-grid-section {
  padding: 80px var(--pad-x);
  background: var(--bg);
}
.features-grid-section .container { max-width: var(--max-w); margin-inline: auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 180ms var(--ease-out), box-shadow 180ms;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.feature-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
}
.feature-card p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ============================================================
   23. USE CASES EXPANDED
   ============================================================ */
.use-case-section {
  padding: 80px var(--pad-x);
  border-bottom: 1px solid var(--border);
}
.use-case-section:nth-child(even) { background: var(--bg); }
.use-case-section .container {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.use-case-section:nth-child(even) .use-case-visual { order: -1; }

.use-case-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.use-case-icon {
  width: 48px; height: 48px;
  background: var(--brand-soft);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); flex-shrink: 0;
}
.use-case-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-1); }
.use-case-problem {
  background: var(--bg);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent);
}
.use-case-problem p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }
.use-case-values { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.use-case-value {
  display: flex; gap: 10px; font-size: 0.9rem; color: var(--text-2);
}
.use-case-value::before { content: '✓'; color: var(--brand); font-weight: 700; flex-shrink: 0; }
.use-case-modules { display: flex; flex-wrap: wrap; gap: 6px; }
.use-case-module {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 600;
}
.use-case-visual img {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  width: 100%;
}

/* ============================================================
   24. DEMO PAGE
   ============================================================ */
.demo-layout {
  padding: 80px var(--pad-x);
}
.demo-layout .container {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.demo-promises { display: flex; flex-direction: column; gap: 24px; }

.promise-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.promise-icon {
  width: 42px; height: 42px; border-radius: var(--r);
  background: var(--brand-soft); border: 1px solid var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); flex-shrink: 0;
}
.promise-body h3 { font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.promise-body p  { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; }

.demo-contact {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-3);
}
.demo-contact a { color: var(--brand); font-weight: 600; }

/* ============================================================
   25. FORM
   ============================================================ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 24px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
}
.field-group label .req { color: var(--brand); }

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  color: var(--text-1);
  background: var(--surface);
  transition: border-color 180ms, box-shadow 180ms;
  outline: none;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
.field-group input.error,
.field-group select.error,
.field-group textarea.error { border-color: var(--red); }

.field-error {
  font-size: 0.78rem;
  color: var(--red);
  min-height: 1em;
}

.form-submit-error {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(209,73,91,0.08);
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}
.form-submit-error.show { display: block; }

.form-success {
  text-align: center;
  padding: 48px 24px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.form-success.show { display: flex; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 1.4rem;
}
.form-success h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-1); }
.form-success p  { font-size: 0.9rem; color: var(--text-2); }

/* Spinner SVG */
.spin-svg { animation: spin 0.8s linear infinite; }

/* ============================================================
   NEW INNER PAGE STYLES - How It Works, Use Cases, Demo
   ============================================================ */

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef4f3 0%, var(--bg) 100%);
  padding: calc(var(--nav-h) + 72px) var(--pad-x) 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/city-trails.jpg') center 58% / cover no-repeat;
  opacity: 0.13;
  filter: saturate(0.55) brightness(1.08);
  -webkit-mask-image: radial-gradient(115% 130% at 90% 25%, #000 0%, rgba(0,0,0,0.5) 42%, transparent 72%);
          mask-image: radial-gradient(115% 130% at 90% 25%, #000 0%, rgba(0,0,0,0.5) 42%, transparent 72%);
}
.page-hero .container { position: relative; z-index: 1; max-width: var(--max-w); margin-inline: auto; }
.page-hero__title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 20px;
  max-width: 680px;
}
.page-hero__sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.72;
  max-width: 560px;
  margin-bottom: 28px;
}
.page-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* How It Works steps */
.hiw-steps { padding: 0 var(--pad-x); }
.hiw-steps .container { max-width: var(--max-w); margin-inline: auto; }

.hiw-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.hiw-step:last-child { border-bottom: none; }
.hiw-step--flip .hiw-step__visual { order: -1; }

.hiw-step__copy { display: flex; flex-direction: column; gap: 18px; }

.hiw-step__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hiw-step__num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--brand-soft);
  max-width: 48px;
}

.hiw-step__title {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-1);
}
.hiw-step__body { font-size: 1rem; color: var(--text-2); line-height: 1.72; }
.hiw-step__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 0;
}
.hiw-step__list li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
  list-style: none;
}
.hiw-step__list li::before { content: '→'; color: var(--brand); font-weight: 700; flex-shrink: 0; }

/* Step cards (visual side) */
.hiw-step__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.hiw-card--dark { background: var(--dark); border-color: var(--dark-border); }
.hiw-card--term { background: var(--dark); border-color: var(--dark-border); padding: 0; overflow: hidden; }

.hiw-card__label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hiw-card__label.light { color: rgba(255,255,255,0.4); }
.hiw-card__foot {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 18px;
}
.hiw-card__foot.light { color: rgba(255,255,255,0.3); }

/* Connection list (step 1) */
.hiw-conn-list { display: flex; flex-direction: column; gap: 10px; }
.hiw-conn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}
.hiw-conn-row.connected { border-color: var(--brand-border); background: var(--brand-soft); }
.hiw-conn-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.hiw-conn-dot.dim { background: var(--text-3); }
.hiw-conn-name { flex: 1; font-size: 0.875rem; font-weight: 500; color: var(--text-1); }
.hiw-conn-status { font-size: 0.75rem; font-weight: 600; color: var(--brand); }
.hiw-conn-status.muted { color: var(--text-3); }

/* Overview stats (step 2) */
.hiw-overview-stats { display: flex; gap: 24px; margin-bottom: 20px; }
.hiw-stat { display: flex; flex-direction: column; gap: 4px; }
.hiw-stat__val { font-size: 1.5rem; font-weight: 800; color: rgba(255,255,255,0.9); letter-spacing: -0.03em; }
.hiw-stat__label { font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.hiw-sparkline { width: 100%; height: 48px; }
.hiw-sparkline svg { width: 100%; height: 100%; }

/* Alert list (step 3) */
.hiw-alert-list { display: flex; flex-direction: column; gap: 10px; }
.hiw-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}
.hiw-alert.hi { background: rgba(209,73,91,0.05); border-color: rgba(209,73,91,0.2); }
.hiw-alert.med { background: rgba(224,112,58,0.05); border-color: rgba(224,112,58,0.2); }
.hiw-alert.lo { background: rgba(21,160,135,0.05); border-color: var(--brand-border); }
.hiw-alert__badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.hiw-alert__badge.hi { background: rgba(209,73,91,0.15); color: var(--red); }
.hiw-alert__badge.med { background: rgba(224,112,58,0.15); color: var(--accent); }
.hiw-alert__badge.lo { background: var(--brand-soft); color: var(--brand); }
.hiw-alert__text { font-size: 0.82rem; color: var(--text-2); line-height: 1.5; }

/* AI terminal card (step 4) */
.hiw-term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hiw-term-dots { display: flex; gap: 5px; }
.hiw-term-dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.hiw-term-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
}
.hiw-term-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.hiw-term-q {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}
.hiw-term-p { color: var(--brand); flex-shrink: 0; }
.hiw-term-rows { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 14px; }
.hiw-term-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.t-val { color: var(--brand); font-weight: 600; }
.t-val.warn { color: var(--accent); }
.hiw-term-pin {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 180ms;
  margin-top: 2px;
}
.hiw-term-pin:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); }

/* Features grid (how-it-works page) */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 180ms var(--ease-out), box-shadow 180ms;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--brand-soft);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.feat-title { font-size: 1.05rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.01em; }
.feat-body { font-size: 0.92rem; color: var(--text-2); line-height: 1.65; }

/* Use cases page */
.uc-section { padding: 80px var(--pad-x); border-bottom: 1px solid var(--border); }
.uc-section:last-of-type { border-bottom: none; }
.uc-section .container { max-width: var(--max-w); margin-inline: auto; }

.uc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.uc-block--flip .uc-visual { order: -1; }

.uc-copy { display: flex; flex-direction: column; gap: 18px; }
.uc-copy .btn { align-self: flex-start; }
.uc-icon {
  width: 52px; height: 52px;
  background: var(--brand-soft);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.uc-title {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-1);
}
.uc-body { font-size: 1rem; color: var(--text-2); line-height: 1.72; }
.uc-list { display: flex; flex-direction: column; gap: 9px; padding: 0; }
.uc-list li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--text-2); list-style: none; }
.uc-list li::before { content: '→'; color: var(--brand); font-weight: 700; flex-shrink: 0; }

.uc-visual { display: flex; justify-content: center; }
.uc-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  width: 100%;
}
.uc-stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 18px;
}
.uc-stat-foot {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 16px;
}

/* Demand rows */
.uc-demand-rows { display: flex; flex-direction: column; gap: 12px; }
.uc-demand-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-2); }
.uc-demand-row span:first-child { width: 120px; flex-shrink: 0; }
.uc-bar-track { flex: 1; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.uc-bar { height: 100%; border-radius: 3px; }
.uc-bar.hi { background: var(--brand); }
.uc-bar.warn { background: var(--accent); }
.uc-bar.ok { background: var(--green); }
.uc-ratio { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; width: 36px; text-align: right; }
.uc-ratio.hi { color: var(--brand); }
.uc-ratio.warn { color: var(--accent); }
.uc-ratio.ok { color: var(--green); }

/* Fleet stats */
.uc-fleet-stats { display: flex; flex-direction: column; gap: 10px; }
.uc-fleet-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.uc-fleet-row:last-child { border-bottom: none; }
.uc-fleet-label { font-size: 0.85rem; color: var(--text-2); }
.uc-fleet-val { font-family: var(--mono); font-size: 0.9rem; font-weight: 600; color: var(--text-1); }
.uc-fleet-val.brand { color: var(--brand); }
.uc-fleet-val.warn { color: var(--accent); }

/* Case study */
.uc-case-study { padding: 80px var(--pad-x); }
.uc-case-study .container { max-width: var(--max-w); margin-inline: auto; }
.uc-case-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  margin-top: 40px;
}
.uc-case-body { display: flex; flex-direction: column; gap: 28px; }
.uc-case-block h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.uc-case-block p { font-size: 0.95rem; color: var(--text-2); line-height: 1.72; }
.uc-case-stats { display: flex; flex-direction: column; gap: 24px; }
.uc-case-stat { display: flex; flex-direction: column; gap: 4px; }
.uc-case-stat__val { font-size: 2rem; font-weight: 800; color: var(--brand); letter-spacing: -0.04em; }
.uc-case-stat__label { font-size: 0.85rem; color: var(--text-2); }
.uc-case-quote {
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-top: 8px;
}
.uc-case-quote p { font-size: 0.95rem; color: rgba(255,255,255,0.8); line-height: 1.7; font-style: italic; margin-bottom: 12px; }
.uc-case-quote cite { font-size: 0.78rem; color: rgba(255,255,255,0.4); font-style: normal; }

/* ============================================================
   USE-CASES PRODUCT VISUALS - animated bars, hover, live dot
   ============================================================ */
.uc-stat-card {
  transition: transform 220ms var(--ease-out), box-shadow 220ms, border-color 220ms;
}
.uc-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-brand);
}
/* demand bars grow on scroll */
.uc-bar { width: 0; transition: width 1.1s var(--ease-out); }
.uc-stat-card.in-view .uc-bar { width: var(--w); }
.uc-bar.hi   { background: linear-gradient(90deg, var(--brand), #1fc3a2); }
.uc-bar.warn { background: linear-gradient(90deg, var(--accent), #ef9266); }
.uc-bar.ok   { background: linear-gradient(90deg, var(--green), #2fc189); }
/* terminal variant keeps its dark, edge-to-edge treatment (beat .uc-stat-card) */
.uc-stat-card.hiw-card--term { background: var(--dark); border-color: var(--dark-border); padding: 0; overflow: hidden; }
.uc-stat-card.hiw-card--term:hover { border-color: var(--dark-border); box-shadow: var(--shadow-lg); }
/* fleet values + foot subtle entrance */
.uc-stat-card.in-view .uc-fleet-row { animation: uc-row-in 0.5s var(--ease-out) backwards; }
.uc-stat-card.in-view .uc-fleet-row:nth-child(2) { animation-delay: 0.06s; }
.uc-stat-card.in-view .uc-fleet-row:nth-child(3) { animation-delay: 0.12s; }
.uc-stat-card.in-view .uc-fleet-row:nth-child(4) { animation-delay: 0.18s; }
.uc-stat-card.in-view .uc-fleet-row:nth-child(5) { animation-delay: 0.24s; }
@keyframes uc-row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* live pulse dot */
.uc-live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 999px;
  background: var(--green); margin-right: 7px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(26,158,107,0.5);
  animation: uc-live 2.2s var(--ease-out) infinite;
}
@keyframes uc-live {
  0% { box-shadow: 0 0 0 0 rgba(26,158,107,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(26,158,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,158,107,0); }
}
@media (prefers-reduced-motion: reduce) {
  .uc-bar { width: var(--w) !important; transition: none; }
  .uc-live-dot, .uc-fleet-row { animation: none !important; }
}

/* Demo page */
.demo-page { padding: calc(var(--nav-h) + 48px) var(--pad-x) 80px; }
.demo-page__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.demo-left { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.demo-left__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--text-1);
}
.demo-left__sub { font-size: 1.05rem; color: var(--text-2); line-height: 1.72; }
.demo-promises { display: flex; flex-direction: column; gap: 22px; }
.demo-promise {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.demo-promise__icon {
  width: 36px; height: 36px;
  background: var(--brand-soft);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.demo-promise strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.demo-promise p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }
.demo-quote {
  background: var(--bg);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--brand);
  padding: 20px 22px;
}
.demo-quote p { font-size: 0.95rem; color: var(--text-2); line-height: 1.7; font-style: italic; margin-bottom: 8px; }
.demo-quote cite { font-size: 0.78rem; color: var(--text-3); }

/* Demo form card */
.demo-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.demo-form-card__title { font-size: 1.3rem; font-weight: 700; color: var(--text-1); margin-bottom: 6px; letter-spacing: -0.02em; }
.demo-form-card__sub { font-size: 0.88rem; color: var(--text-2); margin-bottom: 28px; }

.demo-form { display: flex; flex-direction: column; gap: 0; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.form-label { font-size: 0.84rem; font-weight: 600; color: var(--text-1); }
.form-label .req { color: var(--brand); }
.form-optional { font-weight: 400; color: var(--text-3); font-size: 0.78rem; }

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  color: var(--text-1);
  background: var(--surface);
  transition: border-color 180ms, box-shadow 180ms;
  outline: none;
  appearance: none;
}
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.form-input.error { border-color: var(--red); }
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238a929e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { font-size: 0.75rem; color: var(--red); min-height: 1em; display: none; }
.form-privacy { font-size: 0.75rem; color: var(--text-3); text-align: center; margin-top: 12px; line-height: 1.5; }

/* Demo success state */
.demo-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px 0;
}
.demo-success__icon { color: var(--brand); }
.demo-success h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-1); }
.demo-success p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; max-width: 320px; }

/* ============================================================
   26. SCROLL REVEAL BASE STATES
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
[data-reveal="slide-right"] { transform: translateX(30px); opacity: 0; }
[data-reveal="slide-left"]  { transform: translateX(-30px); opacity: 0; }
[data-reveal="scale"]       { transform: scale(0.97); opacity: 0; }
[data-reveal="up"]          { transform: translateY(24px); opacity: 0; }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   27. ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes card-float {
  0%, 100% { transform: translateY(0px)  rotate(0deg); }
  33%       { transform: translateY(-9px) rotate(0.4deg); }
  66%       { transform: translateY(-5px) rotate(-0.25deg); }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(21,160,135,0);
  }
  50% { opacity: 0.6; transform: scale(0.75); }
  70% { box-shadow: 0 0 0 6px rgba(21,160,135,0); }
}

@keyframes zone-bar-grow {
  from { width: 0; }
  to   { width: var(--w, 50%); }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes think-pulse {
  0%, 60%, 100% { transform: scale(1);   opacity: 0.35; }
  30%            { transform: scale(1.4); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   28. RESPONSIVE - 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-overview { grid-column: 1/3; grid-row: 1/2; }
  .bento-dcc      { grid-column: 1/2; grid-row: 2/3; }
  .bento-zones    { grid-column: 2/3; grid-row: 2/3; }
  .bento-sql      { grid-column: 1/2; grid-row: 3/4; }
  .bento-ai       { grid-column: 2/3; grid-row: 3/4; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .results-stats { grid-template-columns: repeat(2, 1fr); }
  .ai-split { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .step-alt .container { grid-template-columns: 1fr; gap: 40px; }
  .step-alt:nth-child(even) .step-alt-visual { order: 0; }
  .use-case-section .container { grid-template-columns: 1fr; gap: 32px; }
  .use-case-section:nth-child(even) .use-case-visual { order: 0; }
  .demo-layout .container { grid-template-columns: 1fr; gap: 48px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   29. RESPONSIVE - 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --pad-x: 20px; }

  .section { padding: 64px var(--pad-x); }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 40px);
    gap: 40px;
  }
  .hero__copy { padding-bottom: 0; }
  .hero__visual { padding-bottom: 0; }
  .hero__headline { font-size: clamp(2rem, 8vw, 2.8rem); }

  .nav__links, .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }

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

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .problem-divider { flex-direction: row; padding: 0; }
  .divider-line { flex: 1; width: auto; height: 1px; }

  .steps-track { grid-template-columns: 1fr; }
  .steps-line { display: none; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-overview,
  .bento-dcc,
  .bento-zones,
  .bento-sql,
  .bento-ai { grid-column: 1; grid-row: auto; }

  .industries-grid { grid-template-columns: 1fr; }
  .results-stats { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-bar-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   30. RESPONSIVE - 375px
   ============================================================ */
@media (max-width: 430px) {
  .hero__headline { font-size: 2.1rem; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; text-align: center; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .results-stats { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}

/* ============================================================
   31. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .dcc-card { animation: none !important; }
  .live-dot, .badge-dot { animation: none !important; }
  .term-cursor { animation: none !important; }
}

/* ============================================================
   INTERACTIVE ZONE MAP
   ============================================================ */
.zonemap-header { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.zonemap-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; max-width: var(--max-w); margin-inline: auto; align-items: stretch; }
.zonemap-canvas { position: relative; background: linear-gradient(160deg,#eef6f3,#e6f0ed); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; overflow: hidden; }
.zonemap-canvas svg { width: 100%; height: auto; display: block; }
.zmap-zone { fill: rgba(21,160,135,0.14); stroke: #fff; stroke-width: 3; cursor: pointer; transition: fill 180ms, filter 180ms; outline: none; }
.zmap-zone.hot  { fill: rgba(224,112,58,0.20); }
.zmap-zone.warn { fill: rgba(217,142,39,0.20); }
.zmap-zone.ok   { fill: rgba(21,160,135,0.18); }
.zmap-zone:hover, .zmap-zone:focus-visible, .zmap-zone.active { fill: rgba(21,160,135,0.42); filter: drop-shadow(0 4px 12px rgba(21,160,135,0.28)); }
.zmap-zone.hot:hover, .zmap-zone.hot.active   { fill: rgba(224,112,58,0.50); filter: drop-shadow(0 4px 12px rgba(224,112,58,0.30)); }
.zmap-zone.warn:hover, .zmap-zone.warn.active { fill: rgba(217,142,39,0.48); filter: drop-shadow(0 4px 12px rgba(217,142,39,0.28)); }
.zmap-pins circle { fill: rgba(13,21,32,0.4); }
.zonemap-livetag { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; font-family: var(--mono); font-size: 0.64rem; color: var(--text-2); background: rgba(255,255,255,0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; }
.zonemap-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.zmap-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zmap-panel-name { font-size: 1.1rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.01em; }
.zmap-panel-level { font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); white-space: nowrap; }
.zmap-panel-demand { margin: 22px 0; }
.zmap-demand-val { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; color: var(--brand); line-height: 1; }
.zmap-demand-cap { display: block; font-size: 0.8rem; color: var(--text-3); margin-top: 6px; }
.zmap-panel-rows { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.zmap-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-2); }
.zmap-row b { font-family: var(--mono); color: var(--text-1); font-weight: 600; }
.zmap-panel-hint { font-size: 0.78rem; color: var(--text-3); margin-top: 18px; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-header { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.compare-table { max-width: var(--max-w); margin-inline: auto; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.compare-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--border); }
.compare-cell { padding: 15px 18px; font-size: 0.88rem; color: var(--text-2); display: flex; align-items: center; }
.compare-feat { font-weight: 600; color: var(--text-1); }
.compare-head .compare-cell { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; color: var(--text-3); background: var(--surface-2); }
.compare-us { background: rgba(21,160,135,0.05); box-shadow: inset 1px 0 0 var(--brand-border), inset -1px 0 0 var(--brand-border); }
.compare-head .compare-us { color: var(--brand-dark); background: rgba(21,160,135,0.10); }
.ci { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 500; }
.ci::before { font-weight: 800; font-size: 0.9rem; }
.ci.yes { color: var(--brand-dark); font-weight: 700; }
.ci.yes::before { content: '✓'; color: var(--brand); }
.ci.no { color: var(--text-3); }
.ci.no::before { content: '✕'; color: var(--text-3); opacity: 0.6; }
.ci.partial { color: var(--accent-dark); }
.ci.partial::before { content: '~'; color: var(--accent); }

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integ-header { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.integ-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--max-w); margin-inline: auto; }
.integ-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); font-size: 0.86rem; font-weight: 600; color: var(--text-1); text-align: center; transition: transform 180ms var(--ease-out), box-shadow 180ms, border-color 180ms; }
.integ-card:hover { transform: translateY(-3px); border-color: var(--brand-border); box-shadow: var(--shadow-brand); }
.integ-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }

/* ============================================================
   SECURITY
   ============================================================ */
.security-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; max-width: var(--max-w); margin-inline: auto; }
.security-lead { font-size: 1.02rem; color: var(--text-2); line-height: 1.75; margin-top: 16px; }
.security-points { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.sec-point { display: flex; gap: 14px; }
.sec-ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.sec-point strong { display: block; font-size: 0.95rem; color: var(--text-1); margin-bottom: 5px; }
.sec-point p { font-size: 0.84rem; color: var(--text-2); line-height: 1.6; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 780px; margin-inline: auto; }
.faq-header { text-align: center; margin-bottom: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color 180ms, box-shadow 180ms; }
.faq-item[open] { border-color: var(--brand-border); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 19px 22px; font-size: 1rem; font-weight: 600; color: var(--text-1); display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color 150ms; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover, .faq-item[open] summary { color: var(--brand-dark); }
.faq-mark { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq-mark::before, .faq-mark::after { content: ''; position: absolute; background: var(--brand); border-radius: 2px; transition: transform 250ms var(--ease-out), opacity 250ms; }
.faq-mark::before { top: 8px; left: 2px; width: 14px; height: 2px; }
.faq-mark::after { top: 2px; left: 8px; width: 2px; height: 14px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 0 22px 22px; font-size: 0.92rem; color: var(--text-2); line-height: 1.72; }

/* ---- Responsive for new sections ---- */
@media (max-width: 900px) {
  .zonemap-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; gap: 36px; }
  .integ-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .compare-table { overflow-x: auto; }
  .compare-row { min-width: 580px; }
  .integ-grid { grid-template-columns: repeat(2, 1fr); }
  .security-points { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   CAPABILITIES TEASER (homepage)
   ============================================================ */
.cap-teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.cap-teaser { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; transition: transform 180ms var(--ease-out), box-shadow 180ms, border-color 180ms; }
.cap-teaser:hover { transform: translateY(-4px); border-color: var(--brand-border); box-shadow: var(--shadow-brand); }
.cap-teaser-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.cap-teaser h3 { font-size: 1rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.01em; }
.cap-teaser p { font-size: 0.86rem; color: var(--text-2); line-height: 1.55; }
.cap-teaser-cta { text-align: center; margin-top: 36px; }
@media (max-width: 900px) { .cap-teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cap-teaser-grid { grid-template-columns: 1fr; } }

/* ============================================================
   INSIGHTS INDEX
   ============================================================ */
.blog-cat-header { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.blog-cat-header .section-sub { margin-top: 10px; }
.insights-tabs { display: flex; width: max-content; max-width: 100%; gap: 4px; padding: 5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; margin: 0 auto 44px; flex-wrap: wrap; justify-content: center; }
.insights-tab { display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-2); padding: 9px 18px; border-radius: 999px; transition: background 180ms, color 180ms; }
.insights-tab:hover { color: var(--text-1); }
.insights-tab.is-active { background: var(--surface); color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.insights-tab__n { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; color: var(--text-3); background: var(--bg-2); padding: 1px 7px; border-radius: 999px; }
.insights-tab.is-active .insights-tab__n { background: var(--brand-soft); color: var(--brand-dark); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--max-w); margin-inline: auto; }
.blog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: transform 200ms var(--ease-out), box-shadow 200ms, border-color 200ms; }
.blog-card:hover { transform: translateY(-5px); border-color: var(--brand-border); box-shadow: var(--shadow-lg); }
.blog-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.blog-card__cat { align-self: flex-start; font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.blog-card__cat--cs { background: var(--brand-soft); color: var(--brand-dark); }
.blog-card__cat--ind { background: var(--accent-soft); color: var(--accent-dark); }
.blog-card__title { font-size: 1.12rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.02em; line-height: 1.25; }
.blog-card__teaser { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; flex: 1; }
.blog-card__meta { font-family: var(--mono); font-size: 0.68rem; color: var(--text-3); margin-top: 4px; }

/* ============================================================
   ARTICLE (blog post)
   ============================================================ */
.article-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; }
.article-hero__img { position: absolute; inset: 0; z-index: 0; }
.article-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.article-hero__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(175deg, rgba(13,21,32,0.30) 0%, rgba(13,21,32,0.62) 55%, rgba(13,21,32,0.88) 100%); }
.article-hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--max-w); margin-inline: auto; padding: 130px var(--pad-x) 46px; color: #fff; }
.article-back { display: inline-block; font-family: var(--mono); font-size: 0.74rem; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 18px; transition: color 150ms; }
.article-back:hover { color: #fff; }
.article-cat { display: inline-block; font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; }
.article-cat--cs { background: rgba(21,160,135,0.9); color: #fff; }
.article-cat--ind { background: rgba(224,112,58,0.92); color: #fff; }
.article-title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; color: #fff; max-width: 900px; }
.article-sub { margin-top: 16px; font-size: 1.08rem; color: rgba(255,255,255,0.82); line-height: 1.6; max-width: 680px; }
.article-meta { margin-top: 20px; font-family: var(--mono); font-size: 0.72rem; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }

.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; max-width: var(--max-w); margin-inline: auto; padding: 64px 0 20px; align-items: start; }
.article-layout--notoc { grid-template-columns: 1fr; }
.article-layout--notoc .article-body { max-width: 760px; margin-inline: auto; }
.article-toc { position: sticky; top: 88px; align-self: start; }
.article-toc__label { display: block; font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 14px; }
.article-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--border); }
.article-toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 0.82rem; color: var(--text-2); text-decoration: none; line-height: 1.4; transition: color 150ms, border-color 150ms; }
.article-toc li a:hover { color: var(--brand-dark); border-left-color: var(--brand-border); }

.article-body { max-width: 720px; font-size: 1.05rem; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.02em; line-height: 1.25; margin: 40px 0 16px; scroll-margin-top: 84px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: var(--text-2); line-height: 1.78; margin-bottom: 18px; }
.article-body p.article-lead { font-size: 1.2rem; color: var(--text-1); line-height: 1.6; font-weight: 500; }
.article-sources { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-3); line-height: 1.7; font-style: italic; }

.demo-fig { margin: 30px 0; }
.demo-fig figcaption { margin-top: 12px; font-size: 0.82rem; color: var(--text-3); line-height: 1.55; text-align: center; }

.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); }
.article-nav__a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; max-width: 46%; }
.article-nav__a--next { text-align: right; margin-left: auto; }
.article-nav__a span { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.article-nav__a b { font-size: 0.95rem; color: var(--text-1); font-weight: 600; transition: color 150ms; }
.article-nav__a:hover b { color: var(--brand-dark); }

/* ---- demo mockups inside articles ---- */
.mk { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-md); font-size: 0.9rem; }
.mk-dark { background: var(--dark); border-color: var(--dark-border); color: rgba(255,255,255,0.85); box-shadow: 0 12px 40px rgba(13,21,32,0.2); }
.mk-mono { font-family: var(--mono); }
.mk-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); text-transform: uppercase; margin-bottom: 14px; }
.mk-live { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); }
.mk-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); display: inline-block; }
.mk-score { font-family: var(--mono); font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; display: flex; align-items: center; gap: 10px; }
.mk-score span:first-child, .mk-score > span { font-size: 1rem; color: rgba(255,255,255,0.35); }
.mk-badge { font-family: var(--mono); font-size: 0.6rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.05em; }
.mk-badge.ok { background: rgba(21,160,135,0.16); color: #7fe0cb; }
.mk-badge.warn { background: rgba(224,112,58,0.18); color: #f0a878; }
.mk-badge.hi { background: rgba(248,113,113,0.16); color: #fca5a5; }
.mk-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 999px; margin: 14px 0; overflow: hidden; }
.mk-bar div { height: 100%; background: linear-gradient(90deg, var(--brand), #1fc3a2); }
.mk-rows { display: flex; flex-direction: column; gap: 9px; font-size: 0.82rem; }
.mk-rows > div { display: flex; justify-content: space-between; color: rgba(255,255,255,0.55); }
.mk-rows b { color: #fff; font-family: var(--mono); }
.mk-alert { margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,0.09); font-size: 0.8rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
.mk-dim { color: rgba(255,255,255,0.4); font-family: var(--mono); }
.mk-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.mk-zone { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; margin-bottom: 11px; font-size: 0.82rem; color: var(--text-2); }
.mk-track { height: 7px; background: rgba(16,24,40,0.07); border-radius: 999px; overflow: hidden; }
.mk-track i { display: block; height: 100%; border-radius: 999px; }
.mk-track i.hi { background: linear-gradient(90deg, var(--brand), #1fc3a2); }
.mk-track i.warn { background: linear-gradient(90deg, var(--accent), #ef9266); }
.mk-track i.ok { background: linear-gradient(90deg, var(--green), #2fc189); }
.mk-zone b { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; text-align: right; }
.mk-zone b.hi { color: var(--brand); } .mk-zone b.warn { color: var(--accent); } .mk-zone b.ok { color: var(--green); }
.mk-foot { font-family: var(--mono); font-size: 0.68rem; color: var(--text-3); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.mk-dark .mk-foot { border-top-color: rgba(255,255,255,0.09); color: rgba(255,255,255,0.4); }
.mk-risk { display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.mk-risk:last-of-type { border-bottom: none; }
.mk-risk b { font-size: 0.85rem; color: var(--text-1); font-weight: 600; }
.mk-risk p { font-size: 0.76rem; color: var(--text-3); line-height: 1.45; margin: 2px 0 0; }
.mk-score-sm { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--text-1); text-align: right; }
.mk-code { font-size: 0.76rem; line-height: 1.7; white-space: pre-wrap; color: rgba(255,255,255,0.8); }
.mk-code .c-q { color: rgba(255,255,255,0.5); display: block; margin-bottom: 8px; }
.mk-code .c-kw { color: #4fd1b5; }
.mk-code .c-tbl { color: #e0a36a; }
.mk-res { margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,0.09); display: flex; flex-direction: column; gap: 7px; }
.mk-res > div { display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.mk-res b { font-family: var(--mono); }
.mk-res b.hi { color: #fca5a5; } .mk-res b.warn { color: #f0a878; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-toc { display: none; }
  .article-body { max-width: 760px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .mk-zone { grid-template-columns: 104px 1fr 40px; gap: 8px; }
}
