/* ========================================================================
   SinalisCare — Cinematic landing page
   Design tokens, glass system, blade layouts
   ======================================================================== */

:root {
  /* Palette */
  --bg-dark: #0B1713;
  --bg-deep: #10201B;
  --bg-mist: #DCE2D7;
  --bg-mist-2: #E8ECE4;
  --bg-sage: #5F765E;
  --text-dark: #F3F5F0;
  --text-light: #15211A;
  --text-dark-2: rgba(243, 245, 240, 0.78);
  --text-light-2: rgba(21, 33, 26, 0.72);
  --accent-sage: #8EA785;
  --accent-sage-strong: #A8C29B;
  --accent-gold: #D7C98A;
  --accent-gold-soft: #E6DAA6;

  /* Glass */
  --glass-dark-bg: rgba(240, 245, 238, 0.08);
  --glass-dark-bg-strong: rgba(240, 245, 238, 0.12);
  --glass-dark-border: rgba(255, 255, 255, 0.16);
  --glass-dark-highlight: rgba(255, 255, 255, 0.18);
  --glass-light-bg: rgba(255, 255, 255, 0.42);
  --glass-light-border: rgba(255, 255, 255, 0.58);

  /* Shadows */
  --shadow-dark: 0 22px 60px rgba(0, 0, 0, 0.32);
  --shadow-light: 0 14px 40px rgba(70, 80, 65, 0.10);

  /* Overlays */
  --veil-dark: linear-gradient(180deg, rgba(11, 23, 19, 0.55) 0%, rgba(11, 23, 19, 0.28) 40%, rgba(11, 23, 19, 0.72) 100%);
  --veil-dark-strong: linear-gradient(180deg, rgba(11, 23, 19, 0.78) 0%, rgba(11, 23, 19, 0.5) 45%, rgba(11, 23, 19, 0.86) 100%);
  --veil-light: linear-gradient(180deg, rgba(220, 226, 215, 0.35) 0%, rgba(220, 226, 215, 0.7) 100%);

  /* Layout */
  --header-height: 82px;
  --container-max: 1440px;
  --container-pad: clamp(16px, 4vw, 56px);
  --blade-h-full: 100svh;
  --blade-h-half: 62svh;

  /* Type */
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --h1: clamp(36px, 5.2vw, 78px);
  --h2: clamp(28px, 3.4vw, 52px);
  --h3: clamp(19px, 1.5vw, 25px);
  --eyebrow: clamp(11px, 0.78vw, 13px);
  --lead: clamp(15px, 1.05vw, 18px);
}

* { box-sizing: border-box; }

html {
  background: var(--bg-dark);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text-dark);
  background: var(--bg-dark);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.is-loading,
body.intro-playing,
body.modal-open { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }

::selection { color: var(--bg-dark); background: var(--accent-sage-strong); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 16px;
  background: var(--bg-deep); color: var(--text-dark);
  padding: 10px 16px; border-radius: 8px; z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-height); z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 0 var(--container-pad);
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.75) 0%, rgba(11, 23, 19, 0) 100%);
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .6s ease, transform .6s ease, background .35s ease, backdrop-filter .35s ease;
}
body.intro-ready .site-header,
body:not(.is-loading):not(.intro-playing) .site-header {
  opacity: 1; transform: translateY(0);
}
.site-header.is-scrolled {
  background: rgba(11, 23, 19, 0.82);
  backdrop-filter: saturate(140%) blur(18px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 34px; width: auto; max-width: min(220px, 42vw);
  display: block; object-fit: contain;
}
.brand-logo--footer { height: 30px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--bg-deep), #16302A);
  border: 1px solid rgba(142, 167, 133, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.35);
  color: var(--accent-sage-strong);
  font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
}
.brand-name {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text-dark);
}
.brand-name em { font-style: normal; color: var(--accent-sage-strong); font-weight: 500; }

.site-nav {
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px);
  justify-content: center;
}
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-dark-2);
  transition: color .2s;
  position: relative; padding: 6px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent-sage-strong);
  transition: width .3s ease;
}
.site-nav a:hover { color: var(--text-dark); }
.site-nav a:hover::after { width: 100%; }

.lang-toggle {
  display: inline-flex; align-items: center; padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.lang-toggle button {
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-dark-2);
  transition: color .2s, background .2s;
}
.lang-toggle button.is-active {
  background: var(--accent-sage-strong); color: var(--bg-dark);
}

.header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--accent-sage-strong); color: var(--bg-dark);
  font-size: 13px; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(168, 194, 155, 0.25); }

.menu-toggle {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12);
}
.menu-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--text-dark);
  margin: 2.5px 0; transition: transform .3s, opacity .3s;
}

@media (max-width: 1099px) {
  .header-cta { display: none; }
}
@media (max-width: 960px) {
  .site-header { grid-template-columns: auto 1fr auto auto; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-height) 0 0 0;
    background: rgba(11, 23, 19, 0.96);
    backdrop-filter: blur(24px);
    flex-direction: column; justify-content: flex-start;
    padding: 32px var(--container-pad);
    gap: 20px;
    transform: translateY(-16px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { font-size: 20px; }
}

/* ============================== Container / blade ============================== */

.container {
  width: 100%; max-width: var(--container-max);
  margin: 0 auto; padding: 0 var(--container-pad);
  position: relative; z-index: 2;
}

.blade {
  position: relative;
  padding: clamp(72px, 10vh, 140px) 0;
  overflow: hidden;
  isolation: isolate;
}

/* Desktop blade rhythm: most blades full viewport, some half */
@media (min-width: 900px) {
  .blade.blade-full {
    min-height: var(--blade-h-full);
    display: flex; align-items: center;
    padding: calc(var(--header-height) + 40px) 0 80px;
  }
  .blade.blade-half {
    min-height: var(--blade-h-half);
    display: flex; align-items: center;
    padding: 80px 0;
  }
  .blade.blade-full > .container,
  .blade.blade-half > .container { width: 100%; }
}

.blade-bg {
  position: absolute; inset: -1px 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}
.blade-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blade-dark { background: var(--bg-dark); color: var(--text-dark); }
.blade-light { background: var(--bg-mist); color: var(--text-light); }


/* Type */
.eyebrow {
  display: inline-block;
  font-size: var(--eyebrow);
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-sage-strong);
  margin: 0 0 18px;
}
.blade-light .eyebrow { color: var(--bg-sage); }

h1, h2, h3 { margin: 0 0 20px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.06; }
h1 { font-size: var(--h1); font-weight: 400; }
h2 { font-size: var(--h2); font-weight: 400; }
h3 { font-size: var(--h3); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }

.highlight { color: var(--accent-sage-strong); font-style: normal; }
.blade-light .highlight { color: var(--bg-sage); }

.lead { font-size: var(--lead); line-height: 1.6; color: var(--text-dark-2); max-width: 60ch; margin: 0 0 28px; }
.blade-light .lead { color: var(--text-light-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.btn-primary {
  background: var(--accent-sage-strong); color: var(--bg-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(168, 194, 155, 0.32); }
.btn-secondary {
  background: transparent; color: var(--text-dark);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-secondary:hover { border-color: var(--accent-sage-strong); background: rgba(142, 167, 133, 0.08); }
.blade-light .btn-secondary { color: var(--text-light); border-color: rgba(21, 33, 26, 0.22); }
.blade-light .btn-secondary:hover { border-color: var(--bg-sage); background: rgba(95, 118, 94, 0.08); }

/* Glass cards */
.glass-dark, .glass-light {
  position: relative;
  border-radius: 30px;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.glass-dark {
  background: var(--glass-dark-bg);
  border: 1px solid var(--glass-dark-border);
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow: var(--shadow-dark), inset 0 1px 0 var(--glass-dark-highlight);
}
.glass-dark:hover {
  transform: translateY(-4px);
  background: var(--glass-dark-bg-strong);
  border-color: rgba(255, 255, 255, 0.24);
}
.glass-light {
  background: var(--glass-light-bg);
  border: 1px solid var(--glass-light-border);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: var(--shadow-light), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.glass-light:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.55);
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.d-1 { transition-delay: .06s; }
.reveal.d-2 { transition-delay: .12s; }
.reveal.d-3 { transition-delay: .18s; }
.reveal.d-4 { transition-delay: .24s; }
.reveal.d-5 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================== Blade 1 — Hero ============================== */

.hero {
  min-height: 100svh;
  padding: 0;
  display: flex; align-items: flex-end;
  color: var(--text-dark);
  background: var(--bg-dark);
}
.hero-video, .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: 0; transition: opacity .8s ease;
}
.hero-fallback {
  background:
    radial-gradient(ellipse at 65% 30%, rgba(142, 167, 133, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(215, 201, 138, 0.14) 0%, transparent 60%),
    linear-gradient(160deg, #0B1713 0%, #10201B 55%, #17332A 100%);
  opacity: 1; transition: none;
}
.hero.video-ready.intro-video-ready:not(.main-video-active) .hero-intro-video { opacity: 1; }
.hero.main-video-active.loop-video-ready .hero-loop-video { opacity: 1; }
.hero.main-video-active .hero-intro-video { opacity: 0; }
.hero.main-video-active.loop-video-ready .hero-fallback { opacity: 0; }

.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(11, 23, 19, 0.85) 0%, rgba(11, 23, 19, 0.15) 50%, transparent 70%),
    linear-gradient(180deg, rgba(11, 23, 19, 0.35) 0%, rgba(11, 23, 19, 0) 40%, rgba(11, 23, 19, 0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: clamp(60px, 10vh, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}
@media (min-width: 1100px) {
  .hero-content { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero-copy { max-width: 720px; }
.hero-copy h1 {
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 300; letter-spacing: -0.03em; line-height: 1.02;
  margin-bottom: 24px;
}
.hero-copy .lead { max-width: 52ch; margin-bottom: 32px; color: var(--text-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero dashboard tiles (Blade 1) ---------- */
.hero-dash {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(96px, auto);
  gap: 14px;
  max-width: 560px;
  align-self: end;
  margin-top: 24px;
}
@media (min-width: 1100px) {
  .hero-content { align-items: start; }
  .hero-dash {
    grid-column: 2;
    justify-self: end;
    align-self: start;
    max-width: 520px;
    width: 100%;
    margin-top: calc(var(--eyebrow) * 1.55 + 22px);
    margin-right: clamp(0px, 4vw, 60px);
  }
}
.hero-tile {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(11,23,19,0.68), rgba(22,48,42,0.48));
  border: 1px solid rgba(168, 194, 155, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(168,194,155,0.10),
    0 22px 46px rgba(0,0,0,0.42);
  backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
  color: var(--accent-sage-strong);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.hero-tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(215,201,138,0.10) 0%, rgba(255,255,255,0) 45%);
}
.hero-tile::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(168,194,155,0.55), transparent);
}
.hero-tile:hover { transform: translateY(-3px); border-color: rgba(168,194,155,0.4); }

.tile-a { grid-column: 1 / span 4; grid-row: 1; }
.tile-b { grid-column: 5 / span 2; grid-row: 1; }
.tile-c { grid-column: 2 / span 4; grid-row: 2; align-items: center; flex-direction: row; gap: 14px; }

.tile-head { display: flex; justify-content: space-between; align-items: center; }
.tile-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dark-2); font-weight: 600; }
.tile-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent-sage-strong);
  box-shadow: 0 0 0 3px rgba(168,194,155,0.14), 0 0 10px rgba(168,194,155,0.6);
  animation: chipPulse 2.6s ease-in-out infinite;
}
.tile-metric { display: flex; align-items: baseline; gap: 8px; }
.tile-value { font-size: 30px; font-weight: 400; letter-spacing: -0.02em; color: var(--text-dark); line-height: 1; }
.tile-delta { font-size: 14px; color: var(--accent-sage-strong); font-weight: 600; }
.tile-sub { font-size: 12px; color: var(--text-dark-2); line-height: 1.45; }
.tile-spark { width: 100%; height: 28px; color: var(--accent-sage-strong); margin-top: auto; opacity: 0.9; }
.tile-bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-top: 4px; }
.tile-bars i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent-sage-strong), rgba(168,194,155,0.25));
}
.tile-ring { position: relative; width: 56px; height: 56px; flex-shrink: 0; color: var(--accent-sage-strong); }
.tile-ring svg { width: 100%; height: 100%; }
.tile-ring-val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--text-dark); }
.tile-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-c .tile-label { font-size: 12px; letter-spacing: 0.14em; }

@keyframes chipPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(168,194,155,0.14), 0 0 10px rgba(168,194,155,0.6); }
  50%     { box-shadow: 0 0 0 5px rgba(168,194,155,0.06), 0 0 18px rgba(168,194,155,0.85); }
}

@media (max-width: 720px) {
  .hero-dash { grid-template-columns: 1fr; max-width: 420px; }
  .tile-a, .tile-b, .tile-c { grid-column: 1 / -1; grid-row: auto; }
  .tile-c { flex-direction: row; }
}

/* Hide site UI while intro plays */
body.is-loading .site-header,
body.is-loading .hero-content,
body.intro-playing .site-header,
body.intro-playing .hero-content {
  opacity: 0; pointer-events: none;
}
body.intro-ready .hero-content { animation: fadeUp .9s ease both .2s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loader */
.hero-loader {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center; gap: 20px;
  background: var(--bg-dark);
  opacity: 1; transition: opacity .6s ease;
}
.hero-loader-inner { display: grid; place-items: center; gap: 18px; }
.hero-loader-mark {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(150deg, var(--bg-deep), #16302A);
  border: 1px solid rgba(142, 167, 133, 0.4);
  display: grid; place-items: center;
  color: var(--accent-sage-strong); font-weight: 700; font-size: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: pulse 2s ease-in-out infinite;
}
.hero-loader-track { width: 140px; height: 2px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.hero-loader-track span { display: block; height: 100%; width: 40%; background: var(--accent-sage-strong); border-radius: 2px; animation: loaderSlide 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
body:not(.is-loading) .hero-loader { opacity: 0; pointer-events: none; }

/* ============================== Blade 2 — Market ============================== */

.market {
  background: transparent;
  color: var(--text-light);
}
.market .blade-bg { opacity: 0.85; }
.market .blade-veil {
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.75) 0%, rgba(11, 23, 19, 0.35) 40%, rgba(11, 23, 19, 0.9) 100%);
}
.market-layout {
  display: grid; gap: clamp(28px, 3.4vw, 44px);
  grid-template-columns: 1fr;
}
.market-copy { max-width: 880px; }
.market h2 { color: var(--text-light); }
.market-copy .lead { color: var(--text-light-2); max-width: 62ch; }

/* Horizontal ribbon of stats */
.stat-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

.stat-card {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 22px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
  background: linear-gradient(150deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42));
  border: 1px solid rgba(21,33,26,0.09);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 24px 48px rgba(70, 80, 65, 0.10);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.stat-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(168,194,155,0.10), transparent 40%);
}
.stat-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(95,118,94,0.65), transparent);
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(95,118,94,0.28); box-shadow: 0 30px 60px rgba(70,80,65,0.16); }

.stat-card .stat-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(95, 118, 94, 0.10);
  border: 1px solid rgba(95, 118, 94, 0.22);
  color: var(--bg-sage);
}
.stat-card .stat-head {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(21,33,26,0.10);
}
.stat-card .stat-value {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--text-light);
}
.stat-card .stat-key {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--bg-sage);
}
.stat-card p { font-size: 13.5px; line-height: 1.55; color: var(--text-light-2); margin: 0; }



/* Mobile carousel */
@media (max-width: 720px) {
  .stat-grid, .role-grid, .partner-grid, .journey-grid, .roadmap-grid, .country-track, .op-grid, .pillar-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 14px; padding-bottom: 12px;
    margin: 0 calc(var(--container-pad) * -1); padding-left: var(--container-pad); padding-right: var(--container-pad);
    scrollbar-width: none;
  }
  .stat-grid::-webkit-scrollbar, .role-grid::-webkit-scrollbar, .partner-grid::-webkit-scrollbar,
  .journey-grid::-webkit-scrollbar, .roadmap-grid::-webkit-scrollbar, .op-grid::-webkit-scrollbar, .pillar-grid::-webkit-scrollbar { display: none; }
  .stat-card, .role-card, .partner-card, .journey-card, .roadmap-card, .op-card, .pillar-card {
    flex: 0 0 88%; scroll-snap-align: start;
  }
}

/* ============================== Blade 3 — Where we operate ============================== */

.operate {
  background: var(--bg-dark);
  color: var(--text-dark);
}
.operate .blade-veil {
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.75) 0%, rgba(11, 23, 19, 0.35) 40%, rgba(11, 23, 19, 0.85) 100%);
}
.operate-layout {
  display: grid; gap: clamp(40px, 5vw, 60px);
  grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
  .operate-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.8fr); align-items: start; row-gap: 0; }
}

.op-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .op-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.op-card {
  position: relative;
  aspect-ratio: 3 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease;
}
.op-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.op-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 1s ease;
}
.op-card:hover img { transform: scale(1.05); }
.op-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 23, 19, 0) 32%, rgba(11, 23, 19, 0.55) 60%, rgba(11, 23, 19, 0.96) 100%);
}
.op-card .op-copy {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 24px 28px; z-index: 2;
}
.op-card .op-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  color: var(--accent-sage-strong);
  font-size: 12px; font-weight: 700;
  margin-bottom: 16px;
}
.op-card h3 { color: var(--text-dark); font-size: clamp(18px, 1.3vw, 22px); margin-bottom: 8px; }
.op-card p { font-size: 13.5px; color: var(--text-dark-2); margin: 0; line-height: 1.5; }
@media (min-width: 1100px) {
  .op-card { aspect-ratio: auto; min-height: calc(100svh - 300px); }
}

/* ============================== Blade 4 — What we're building ============================== */

.building {
  background: var(--bg-dark);
}
.building .blade-veil {
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.6) 0%, rgba(11, 23, 19, 0.35) 45%, rgba(11, 23, 19, 0.85) 100%);
}
.building-layout {
  display: grid; gap: clamp(40px, 5vw, 60px);
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 1100px) {
  .building-layout {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    min-height: calc(100svh - 200px);
    padding-top: clamp(80px, 22vh, 200px);
    padding-bottom: clamp(20px, 4vh, 60px);
  }
  .building-copy { grid-row: 1; grid-column: 1; align-self: center; }
  .pillar-grid { grid-row: 2; grid-column: 2; align-self: end; }
}
.pillar-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 700px) { .pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pillar-card {
  padding: 32px 26px 28px;
  min-height: 240px;
  display: flex; flex-direction: column; gap: 14px;
}
.pillar-card .pillar-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(142, 167, 133, 0.14);
  border: 1px solid rgba(142, 167, 133, 0.34);
  color: var(--accent-sage-strong);
  margin-bottom: 4px;
}
.pillar-card h3 { color: var(--text-dark); margin: 0 0 4px; }
.pillar-card p { font-size: 14px; color: var(--text-dark-2); margin: 0; line-height: 1.55; }

.orbital-line {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  overflow: visible;
}
.orbital-line svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) { .orbital-line { display: none; } }

/* ============================== Blade 5 — Journey ============================== */

.journey {
  background: var(--bg-dark);
}
.journey .blade-veil {
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.65) 0%, rgba(11, 23, 19, 0.35) 40%, rgba(11, 23, 19, 0.85) 100%);
}
.journey-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.journey-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .journey-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .journey-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.journey-card {
  position: relative;
  aspect-ratio: 3 / 4.6;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 22px 52px rgba(0,0,0,0.42);
  isolation: isolate;
  transition: transform .35s ease, box-shadow .35s ease;
}
.journey-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0,0,0,0.55); }
.journey-card .journey-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  transition: transform 1s ease;
}
.journey-card:hover .journey-bg { transform: scale(1.05); }
.journey-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,23,19,0.05) 24%, rgba(11,23,19,0.45) 60%, rgba(11,23,19,0.96) 100%);
}
.journey-card .journey-copy {
  position: absolute; inset: auto 0 0 0;
  padding: 24px 22px 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.journey-card .journey-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  color: var(--accent-sage-strong);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  align-self: flex-start;
}
.journey-card h3 { color: var(--text-dark); font-size: 19px; margin: 0; }
.journey-card p { font-size: 13.5px; color: var(--text-dark-2); margin: 0; line-height: 1.5; }
@media (min-width: 1100px) { .journey-card { aspect-ratio: 3 / 4.2; } }

/* ============================== Blade 6 — Platform ============================== */

.platform {
  background: var(--bg-dark);
}
.platform .blade-veil {
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.75) 0%, rgba(11, 23, 19, 0.4) 45%, rgba(11, 23, 19, 0.86) 100%);
}
.platform-layout {
  display: grid; gap: clamp(40px, 5vw, 60px);
  grid-template-columns: 1fr;
  align-items: center;
  align-content: center;
}
@media (min-width: 1100px) {
  .platform-layout {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
    grid-template-rows: auto;
    align-items: center;
    align-content: center;
    
  }
  .platform-copy { grid-row: 1; grid-column: 1; align-self: center; }
  .role-grid { grid-row: 1; grid-column: 2; align-self: center; }
}
.role-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .role-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.role-card {
  position: relative;
  aspect-ratio: 4 / 6; min-height: clamp(320px, 45svh, 520px);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  background: linear-gradient(160deg, #10201B, #16302A);
  transition: transform .35s ease;
}
.role-card:hover { transform: translateY(-4px); }
.role-card .role-glass {
  position: absolute; inset: 14px 14px auto 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(11, 23, 19, 0.4);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px; color: var(--text-dark-2);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 2;
}
.role-card .role-glass strong { color: var(--text-dark); font-size: 13px; }
.role-card .role-metric {
  color: var(--accent-sage-strong); font-weight: 700; font-size: 15px;
}
.role-card .role-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.96; transform: scale(1.01);
}
.role-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.06) 22%, rgba(11, 23, 19, 0.18) 44%, rgba(11, 23, 19, 0.62) 76%, rgba(11, 23, 19, 0.98) 100%);
}
.role-card .role-copy {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 24px; z-index: 2;
}
.role-card h3 { color: var(--text-dark); font-size: 19px; margin-bottom: 6px; }
.role-card p { font-size: 13px; color: var(--text-dark-2); margin: 0; line-height: 1.5; }

/* ============================== Blade 7 — Invisible/visible pause ============================== */

.blade.pause-blade {
  min-height: 90svh;
  display: flex;
  align-items: center;
  padding: 0 0 66svh;
  background: var(--bg-dark);
}
.pause-blade .container { width: 100%; }
.pause-blade .blade-bg {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.pause-blade .blade-veil {
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.55) 0%, rgba(11, 23, 19, 0.28) 40%, rgba(11, 23, 19, 0.9) 100%);
}
.pause-blade-content, .pause-blade .pause-copy {
  max-width: 640px;
  text-align: left;
  align-self: flex-start;
  margin-top: 200px;
}
.pause-blade h2 {
  font-size: clamp(34px, 4.4vw, 62px);
  margin: 0 0 20px;
  font-weight: 300;
}
.pause-blade p { font-size: var(--lead); color: var(--text-dark-2); max-width: 55ch; margin: 0; }

/* ============================== Blade 4 — Transition: Produto sozinho ============================== */
.transition-blade { text-align: left; }
.transition-blade .blade-veil {
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.78) 0%, rgba(11, 23, 19, 0.45) 45%, rgba(11, 23, 19, 0.82) 100%);
}
.transition-content { max-width: 720px; }
.transition-content h2 { font-weight: 300; }
.transition-content .lead { max-width: 52ch; }
.transition-tag {
  margin-top: 28px;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dark-2);
}
.transition-tag strong { color: var(--accent-sage-strong); font-weight: 600; letter-spacing: 0.16em; }


/* ============================== Blade 8 — Economic engine ============================== */

.engine {
  background: var(--bg-dark);
}
.engine .blade-bg { opacity: 0.72; }
.engine .blade-veil {
  background:
    radial-gradient(ellipse at 25% 30%, rgba(142, 167, 133, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(11, 23, 19, 0.72) 0%, rgba(11, 23, 19, 0.55) 45%, rgba(11, 23, 19, 0.88) 100%);
}
.engine-layout {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
  .engine-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); align-items: start; }
}

.engine-copy .lead { max-width: 42ch; }

.analytics-panel {
  padding: 28px;
  min-height: 340px;
  display: grid; gap: 24px;
  grid-template-columns: 1.4fr 1fr;
}
@media (max-width: 720px) { .analytics-panel { grid-template-columns: 1fr; } }
.analytics-panel .panel-title {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dark-2); margin-bottom: 12px;
}
.analytics-panel .metric-huge {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 300; color: var(--text-dark);
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px;
}
.analytics-panel .metric-sub {
  font-size: 13px; color: var(--text-dark-2); margin-bottom: 20px;
}
.analytics-panel .yoy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(142, 167, 133, 0.16);
  color: var(--accent-sage-strong);
  font-size: 12px; font-weight: 600;
  margin-bottom: 16px;
}
.analytics-panel svg { display: block; width: 100%; height: auto; }

.legend { display: grid; gap: 8px; font-size: 12px; color: var(--text-dark-2); margin-top: 12px; }
.legend .legend-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; }
.legend .legend-swatch { width: 10px; height: 10px; border-radius: 3px; }
.legend .legend-val { color: var(--text-dark); font-weight: 600; font-variant-numeric: tabular-nums; }

.support-grid {
  display: grid; gap: 16px; margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .support-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.support-card { padding: 22px; min-height: 160px; }
.support-card .support-icon { color: var(--accent-sage-strong); margin-bottom: 12px; }
.support-card h3 { font-size: 15px; margin: 0 0 6px; color: var(--text-dark); }
.support-card p { font-size: 12.5px; color: var(--text-dark-2); margin: 0; line-height: 1.5; }

/* ============================== Blade 9 — Partners ============================== */

.partners {
  background: var(--bg-dark);
}
.partners .blade-bg { opacity: 0.85; }
.partners .blade-veil {
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.75) 0%, rgba(11, 23, 19, 0.35) 40%, rgba(11, 23, 19, 0.9) 100%);
}
.partners-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.partner-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .partner-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.partner-card {
  padding: 26px 22px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.partner-card .partner-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.92; z-index: -2;
}
.partner-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.1) 18%, rgba(11, 23, 19, 0.3) 45%, rgba(11, 23, 19, 0.9) 100%);
}
.partner-card .partner-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(142, 167, 133, 0.16);
  border: 1px solid rgba(142, 167, 133, 0.32);
  color: var(--accent-sage-strong);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.partner-card h3 { font-size: 17px; color: var(--text-dark); margin: 0; }
.partner-card p { font-size: 13px; color: var(--text-dark-2); margin: 0; line-height: 1.5; }

/* ============================== Blade 10 — Roadmap ============================== */

.roadmap {
  background: transparent;
  color: var(--text-light);
}
.roadmap .blade-bg { opacity: 0.85; }
.roadmap .blade-veil {
  background: linear-gradient(180deg, rgba(11, 23, 19, 0.75) 0%, rgba(11, 23, 19, 0.35) 40%, rgba(11, 23, 19, 0.9) 100%);
}
.operate { background-color: var(--bg-dark); }
.roadmap-layout {
  display: grid; gap: clamp(40px, 5vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
  .roadmap-layout { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.8fr); align-items: start; }
}
.roadmap h2, .roadmap-card h3 { color: var(--text-light); }
.roadmap-copy .lead { color: var(--text-light-2); max-width: 40ch; }

.roadmap-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
}
@media (min-width: 900px) { .roadmap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.roadmap-card {
  position: relative;
  padding: 28px 24px 26px;
  min-height: 260px;
  border-radius: 22px;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(155deg, rgba(255,255,255,0.72), rgba(255,255,255,0.4));
  border: 1px solid rgba(21,33,26,0.10);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 22px 46px rgba(70,80,65,0.10);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.roadmap-card:hover { transform: translateY(-4px); border-color: rgba(95,118,94,0.28); box-shadow: 0 30px 60px rgba(70,80,65,0.16); }
.roadmap-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(95,118,94,0.6), transparent);
}
.roadmap-card .roadmap-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(95,118,94,0.10);
  border: 1px solid rgba(95,118,94,0.22);
  color: var(--bg-sage);
}
.roadmap-card .roadmap-num {
  font-size: clamp(30px, 3vw, 42px); font-weight: 300;
  background: linear-gradient(135deg, var(--bg-sage), var(--accent-gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em; line-height: 1;
}
.roadmap-card h3 { margin: 0; font-size: 20px; }
.roadmap-card p { font-size: 13.5px; color: var(--text-light-2); margin: 0; line-height: 1.5; }
.roadmap-card .status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(95, 118, 94, 0.14); color: var(--bg-sage);
  align-self: flex-start;
  border: 1px solid rgba(95, 118, 94, 0.22);
  margin-top: auto;
}
.roadmap-card .status-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--bg-sage); box-shadow: 0 0 8px rgba(95,118,94,0.6); }

/* ============================== Blade 11 — Closing ============================== */

.closing {
  background: var(--bg-dark);
  min-height: auto;
  display: flex; align-items: stretch;
}
@media (min-width: 900px) {
  .blade.closing.blade-full {
    min-height: auto;
    padding: 0 0;
    align-items: stretch;
  }
}
.closing .blade-bg {
  opacity: 0.95;
  background-position: right center;
}
.closing .blade-veil {
  background:
    linear-gradient(90deg, rgba(11, 23, 19, 0.85) 0%, rgba(11, 23, 19, 0.55) 45%, rgba(11, 23, 19, 0.10) 80%),
    linear-gradient(180deg, rgba(11, 23, 19, 0.25) 0%, rgba(11, 23, 19, 0.15) 60%, rgba(11, 23, 19, 0.9) 100%);
}
.closing .closing-inner {
  display: flex; flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
  padding-top: clamp(40px, 6vh, 80px);
  padding-bottom: 0;
}
.closing-content { max-width: 620px; }
.closing h2 {
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 300; margin-bottom: 24px;
}
.closing .lead { margin-bottom: 32px; }
@media (min-width: 1100px) {
  .closing .blade-bg { background-position: 78% center; }
}

/* ============================== Footer (integrated into closing blade) ============================== */

.site-footer {
  padding: 32px 0 22px;
  background: transparent;
  color: var(--text-dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: clamp(24px, 4vh, 48px);
}
.footer-row {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 720px) {
  .footer-row { grid-template-columns: 1fr auto auto; }
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text-dark); }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid; place-items: center;
  color: var(--text-dark-2);
  transition: background .2s, color .2s;
}
.social-btn:hover { background: rgba(142, 167, 133, 0.16); color: var(--accent-sage-strong); }
.footer-legal {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px; color: rgba(243, 245, 240, 0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ============================== Modals ============================== */

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(5, 12, 10, 0.85);
  backdrop-filter: blur(12px);
}
.modal.is-open { display: flex; }
.modal-panel {
  width: 100%; max-width: 520px;
  background: linear-gradient(160deg, #10201B, #0B1713);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  max-height: 90vh; overflow-y: auto;
}
.modal-panel h3 { font-size: 22px; margin: 0 0 8px; color: var(--text-dark); }
.modal-panel .modal-eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-sage-strong); margin-bottom: 12px; }
.modal-panel p { color: var(--text-dark-2); font-size: 14px; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dark);
  display: grid; place-items: center;
}
.modal-form { display: grid; gap: 14px; margin-top: 20px; }
.modal-form label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dark-2); margin-bottom: 6px; }
.modal-form input, .modal-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-dark); font-family: inherit; font-size: 14px;
}
.modal-form input:focus, .modal-form textarea:focus {
  outline: none; border-color: var(--accent-sage-strong);
}
.modal-form textarea { min-height: 100px; resize: vertical; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 4px; }
.modal-status { font-size: 12px; color: var(--text-dark-2); margin-right: auto; }

/* ============================== Transition bands ============================== */

.blade + .blade { position: relative; }
.blade + .blade::before {
  content: ""; position: absolute; inset: -60px 0 auto 0;
  height: 120px; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, transparent 0%, var(--blade-edge-color, transparent) 100%);
}
.blade-light + .blade-dark::before { --blade-edge-color: rgba(11, 23, 19, 0.9); }
.blade-dark + .blade-light::before { --blade-edge-color: rgba(220, 226, 215, 0.9); }

/* ============================== Carousel (desktop only) ============================== */

@media (min-width: 900px) {
  .is-carousel {
    display: block !important;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 4px;
  }
  .is-carousel .carousel-track {
    display: flex;
    gap: 18px;
    transition: transform .7s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
  }
  .is-carousel .carousel-track > * {
    flex: 0 0 calc((100% - 36px) / 3);
    min-width: 0;
  }
  .carousel-controls {
    display: flex; justify-content: center; align-items: center;
    gap: 10px; margin-top: 22px;
    min-height: 56px;
  }
  /* Lock carousel row height so paging L/R never shifts other content vertically */
  .operate .is-carousel { min-height: calc((100vw / 4) * 4.4 / 3); }
  .partners .is-carousel { aspect-ratio: 48 / 22; }
  .partners .is-carousel .carousel-track { height: 100%; }
  .partners .is-carousel .carousel-track > * { height: 100%; }

  .carousel-dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255,255,255,0.22);
    transition: background .2s, transform .2s, width .2s;
    padding: 0;
  }
  .blade-light .carousel-dot { background: rgba(21,33,26,0.22); }
  .carousel-dot.is-active { background: var(--accent-sage-strong); width: 24px; }
  .blade-light .carousel-dot.is-active { background: var(--bg-sage); }
  .carousel-arrow {
    width: 36px; height: 36px; border-radius: 999px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: var(--text-dark);
    transition: background .2s;
  }
  .blade-light .carousel-arrow {
    background: rgba(21,33,26,0.06);
    border-color: rgba(21,33,26,0.14);
    color: var(--text-light);
  }
  .carousel-arrow:hover { background: rgba(142,167,133,0.2); }

  /* Operate controls: align with the bottom of the cards */
  .operate .carousel-controls { margin-top: 0; }
  .operate .is-carousel { padding-bottom: 0; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .is-carousel .carousel-track > * { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 899px) {
  .carousel-controls { display: none; }
}

/* ============================== Responsive tightening ============================== */

@media (max-width: 720px) {
  .stat-card, .journey-card, .roadmap-card, .pillar-card, .support-card {
    min-height: 0;
  }
  .hero-copy h1 { font-size: clamp(34px, 8vw, 52px) !important; }
  .pause-blade h2 { font-size: clamp(28px, 7.4vw, 44px); }
  .closing h2 { font-size: clamp(30px, 7.6vw, 48px); }
  h2 { font-size: clamp(26px, 6.6vw, 40px); }
  .analytics-panel { padding: 20px; min-height: 0; }
}
@media (min-width: 721px) and (max-width: 1099px) {
  .hero-copy h1 { font-size: clamp(44px, 6vw, 60px); }
}

/* Closing uses flex integrated footer — blade-full controls min-height */
@media (max-width: 1099px) {
  .closing .closing-inner { min-height: auto; padding-top: clamp(40px, 7vh, 70px); }
  .site-footer { margin-top: clamp(20px, 4vh, 40px); padding: 28px 0 20px; }
}
