/* =========================================================================
   R.E.A.C.T. Bihor — Centrul Integrat pentru Climă
   Design system + components. Authored for the project prototype.
   ========================================================================= */

:root {
  /* Brand palette */
  --navy-900: #071426;
  --navy-800: #0a1a2f;
  --navy-700: #0f2742;
  --navy-600: #163351;
  --teal:     #12b8a6;   /* resilience / water */
  --teal-600: #0e9f90;
  --sky:      #2e9be6;   /* data / air */
  --amber:    #f5a524;   /* heat */
  --amber-600:#e08c0b;
  --red:      #e23d4b;   /* high risk */
  --green:    #1fa971;   /* adaptation */
  --green-600:#178a5c;

  --ink:      #0e1b2a;
  --ink-soft: #33475b;
  --muted:    #64748b;
  --line:     #e4ebf2;
  --bg:       #f4f8fc;
  --bg-alt:   #eef4fa;
  --card:     #ffffff;
  --white:    #ffffff;

  --grad-hero: linear-gradient(135deg, #071426 0%, #0d2a4a 55%, #10464a 100%);
  --grad-teal: linear-gradient(135deg, var(--teal) 0%, var(--sky) 100%);
  --grad-heat: linear-gradient(120deg, #f5a524 0%, #e23d4b 100%);

  --shadow-sm: 0 1px 2px rgba(9,26,47,.06), 0 1px 3px rgba(9,26,47,.08);
  --shadow-md: 0 6px 18px rgba(9,26,47,.08), 0 2px 6px rgba(9,26,47,.06);
  --shadow-lg: 0 24px 60px -18px rgba(9,26,47,.32);
  --shadow-teal: 0 18px 40px -14px rgba(18,184,166,.5);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --nav-h: 72px;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------- utilities */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px,6vw,84px) 0; }
.section--dark { background: var(--navy-800); color: #dbe6f2; }
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4 { color: #fff; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600);
  margin-bottom: 16px;
}
.section--dark .eyebrow { color: var(--teal); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

.section-title { font-size: clamp(28px, 4vw, 46px); margin-bottom: 18px; max-width: 20ch; }
.section-lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); max-width: 62ch; }
.section--dark .section-lead { color: #a9bdd2; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.center .section-title, .center .section-lead { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; transition: .28s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-teal); color: #04262a; box-shadow: var(--shadow-teal); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -14px rgba(18,184,166,.65); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-3px); }

/* --------------------------------------------------------------- navbar */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 20px; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: .02em; color: var(--ink); }
.brand__sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav:not(.is-scrolled) .brand__name { color: #fff; }
.nav:not(.is-scrolled) .brand__sub { color: rgba(255,255,255,.7); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 14.5px; font-weight: 500; padding: 9px 14px; border-radius: 999px;
  color: var(--ink-soft); transition: .2s; position: relative;
}
.nav:not(.is-scrolled) .nav__links a { color: rgba(255,255,255,.82); }
.nav__links a:hover { color: var(--teal-600); background: rgba(18,184,166,.1); }
.nav:not(.is-scrolled) .nav__links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav__links a.active { color: var(--teal-600); }
.nav:not(.is-scrolled) .nav__links a.active { color: var(--teal); }
.nav-contact-mobile { display: none; } /* shown only inside the mobile burger menu */

.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: flex; background: rgba(148,163,184,.16); border-radius: 999px; padding: 3px; }
.nav:not(.is-scrolled) .lang-toggle { background: rgba(255,255,255,.14); }
.lang-toggle button {
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px; color: var(--muted); transition: .2s;
}
.nav:not(.is-scrolled) .lang-toggle button { color: rgba(255,255,255,.8); }
.lang-toggle button.active { background: var(--white); color: var(--navy-800); box-shadow: var(--shadow-sm); }
.nav:not(.is-scrolled) .lang-toggle button.active { background: var(--teal); color: #04262a; }

.nav__cta { display: inline-flex; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s;
}
.nav:not(.is-scrolled) .nav__burger span, .nav:not(.is-scrolled) .nav__burger span::before, .nav:not(.is-scrolled) .nav__burger span::after { background: #fff; }
.nav__burger span::before { transform: translateY(-7px); }
.nav__burger span::after { transform: translateY(5px); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1001; background: var(--grad-teal); transition: width .1s linear; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 24s ease-in-out infinite alternate; }
@keyframes heroZoom { to { transform: scale(1.16); } }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,20,38,.7) 0%, rgba(7,20,38,.55) 40%, rgba(9,26,47,.92) 100%); }
.hero__mesh { position: absolute; inset: 0; z-index: 1; opacity: .5; mix-blend-mode: screen;
  background: radial-gradient(50% 50% at 18% 22%, rgba(18,184,166,.55), transparent 60%),
              radial-gradient(45% 45% at 85% 30%, rgba(46,155,230,.45), transparent 60%);
  animation: meshFloat 16s ease-in-out infinite alternate; }
@keyframes meshFloat { to { transform: translate3d(0,-24px,0) scale(1.05); } }
.hero__inner { position: relative; z-index: 3; width: 100%; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  font-size: 13.5px; font-weight: 500; margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(18,184,166,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,184,166,.7); } 70% { box-shadow: 0 0 0 12px rgba(18,184,166,0); } 100% { box-shadow: 0 0 0 0 rgba(18,184,166,0); } }
.hero h1 { font-size: clamp(38px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: 22px; }
.hero h1 .grad { background: var(--grad-teal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(17px, 1.7vw, 21px); color: #c8d6e6; max-width: 54ch; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__acronym { display: flex; flex-wrap: wrap; gap: 10px; }
.acro-chip { display: flex; align-items: baseline; gap: 7px; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.acro-chip b { font-family: var(--font-head); color: var(--teal); font-size: 18px; }
.acro-chip span { font-size: 12.5px; color: #b6c6d8; }

.hero__panel { background: rgba(9,22,42,.55); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); }
.hero__panel h2 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.hero__panel .sub { font-size: 13px; color: #9fb3c8; margin-bottom: 20px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-stat { background: rgba(255,255,255,.05); border-radius: 14px; padding: 16px; border: 1px solid rgba(255,255,255,.08); }
.hero-stat .num { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: #fff; line-height: 1; }
.hero-stat .num .suffix { color: var(--teal); }
.hero-stat .lbl { font-size: 12.5px; color: #9fb3c8; margin-top: 6px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.hero__scroll .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative; }
.hero__scroll .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: #fff; border-radius: 3px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,12px); } }

/* --------------------------------------------------- heatwave alert strip */
.alertband { background: var(--grad-heat); color: #fff; }
.alertband__inner { display: flex; align-items: center; gap: 22px; padding: 22px 0; }
.alertband__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.alertband__icon svg { width: 28px; height: 28px; }
.alertband__txt { flex: 1; }
.alertband__txt strong { font-family: var(--font-head); }
.alertband__txt p { font-size: 15px; color: rgba(255,255,255,.92); }
.alertband a { font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* --------------------------------------------------------------- cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(18,184,166,.35); }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(18,184,166,.12); color: var(--teal-600); }
.card__icon svg { width: 28px; height: 28px; }
.card__num { font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--teal-600); letter-spacing: .1em; }
.card h3 { font-size: 20px; margin: 6px 0 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card ul.ticks { margin-top: 14px; display: grid; gap: 8px; }
.card ul.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-soft); }
.card ul.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: rgba(31,169,113,.15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231fa971' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }

.icon-amber { background: rgba(245,165,36,.14) !important; color: var(--amber-600) !important; }
.icon-sky { background: rgba(46,155,230,.14) !important; color: var(--sky) !important; }
.icon-green { background: rgba(31,169,113,.14) !important; color: var(--green-600) !important; }
.icon-red { background: rgba(226,61,75,.12) !important; color: var(--red) !important; }

/* --------------------------------------------------- stats counter band */
.statband { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px,5vw,54px); line-height: 1; background: var(--grad-teal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .num .suffix { -webkit-text-fill-color: initial; color: var(--teal); }
.stat .lbl { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.section--dark .stat .lbl { color: #9fb3c8; }

/* ------------------------------------------------- about / split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .8s var(--ease); }
.media-frame:hover img { transform: scale(1.05); }
.media-frame__tag { position: absolute; left: 16px; bottom: 16px; background: rgba(9,22,42,.72); color: #fff; padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); display: flex; align-items: center; gap: 8px; }
.media-frame__tag .d { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.feature-list { display: grid; gap: 18px; margin-top: 26px; }
.feature { display: flex; gap: 16px; }
.feature__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(18,184,166,.12); color: var(--teal-600); display: grid; place-items: center; }
.feature__ic svg { width: 22px; height: 22px; }
.feature h4 { font-size: 17px; margin-bottom: 3px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* --------------------------------------------------------------- MAP */
.map-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--navy-600); background: var(--navy-800); }
.map-side { padding: 26px; color: #cfe0f0; display: flex; flex-direction: column; gap: 20px; background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); }
.map-side h3 { color: #fff; font-size: 19px; }
.map-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.map-metric { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px; }
.map-metric .n { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: #fff; line-height: 1; }
.map-metric .n.amber { color: var(--amber); } .map-metric .n.red { color: var(--red); } .map-metric .n.teal { color: var(--teal); }
.map-metric .l { font-size: 12px; color: #9fb3c8; margin-top: 6px; }
.map-filters { display: flex; flex-direction: column; gap: 8px; }
.map-filters .flabel { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #7d93aa; margin-bottom: 2px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; color: #cfe0f0; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); transition: .2s;
}
.chip .d { width: 9px; height: 9px; border-radius: 50%; }
.chip[data-risk="ridicat"] .d { background: var(--red); }
.chip[data-risk="mediu"] .d { background: var(--amber); }
.chip[data-risk="scăzut"] .d { background: var(--green); }
.chip.off { opacity: .38; }
.chip:hover { border-color: rgba(255,255,255,.35); }

.map-feed { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }
.map-feed .flabel { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #7d93aa; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.map-feed .live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
#mapFeed { display: grid; gap: 8px; font-size: 13px; }
.feed-item { display: flex; justify-content: space-between; gap: 10px; opacity: 0; transform: translateY(6px); animation: feedIn .5s var(--ease) forwards; }
@keyframes feedIn { to { opacity: 1; transform: none; } }
.feed-item .fname { color: #dbe9f7; font-weight: 600; }
.feed-item .fval { color: var(--teal); font-family: var(--font-head); font-weight: 700; }
.feed-item .fval.hot { color: var(--amber); }

#map { min-height: 560px; height: 100%; background: #aadaff; z-index: 1; }
.map-attr-note { font-size: 11.5px; color: var(--muted); margin-top: 12px; text-align: right; }
.leaflet-popup-content-wrapper { border-radius: 14px !important; box-shadow: var(--shadow-lg) !important; }
.leaflet-popup-content { margin: 14px 16px !important; font-family: var(--font-body) !important; }
.pp { min-width: 210px; }
.pp__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pp__h b { font-family: var(--font-head); font-size: 16px; color: var(--ink); }
.pp__tier { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pp__badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; }
.pp__badge.ridicat { background: var(--red); } .pp__badge.mediu { background: var(--amber); } .pp__badge.scăzut { background: var(--green); }
.pp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 8px; }
.pp__grid div { font-size: 13px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.pp__grid b { color: var(--ink); font-weight: 700; }
.pp__id { font-size: 11px; color: var(--muted); margin-top: 8px; font-family: var(--font-head); }
.map-hint { position: absolute; z-index: 500; bottom: 14px; left: 14px; background: rgba(9,22,42,.8); color: #cfe0f0; font-size: 12px; padding: 7px 12px; border-radius: 8px; pointer-events: none; transition: opacity .4s; }
.leaflet-interactive.mk-high { animation: mkPulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mkPulse { 0%,100% { fill-opacity: .9; } 50% { fill-opacity: .35; } }
.leaflet-container { font-family: var(--font-body); background: #dbeafe; }
.leaflet-bar a { color: var(--navy-800); }
@media (prefers-reduced-motion: reduce) { .leaflet-interactive.mk-high { animation: none; } }

/* ------------------------------------------------ before/after slider */
.ba {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y;
  border: 1px solid var(--navy-600); cursor: ew-resize; background: #0b1f33;
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer svg { width: 100%; height: 100%; display: block; }
.ba__after { clip-path: inset(0 0 0 50%); will-change: clip-path; }
.ba__label { position: absolute; top: 18px; padding: 8px 16px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .03em; color: #fff; backdrop-filter: blur(4px); z-index: 4; }
.ba__label--before { left: 18px; background: rgba(226,61,75,.85); }
.ba__label--after { right: 18px; background: rgba(31,169,113,.9); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; transform: translateX(-50%); z-index: 5; box-shadow: 0 0 0 1px rgba(9,22,42,.25); }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; color: var(--navy-800); }
.ba__grip svg { width: 26px; height: 26px; }
.ba__cap { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 4; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.ba__cap span { background: rgba(9,22,42,.7); color: #dbe9f7; font-size: 12.5px; padding: 6px 12px; border-radius: 8px; backdrop-filter: blur(4px); max-width: 46%; }
.ba-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.ba-legend div { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-soft); }
.ba-legend .k { width: 14px; height: 14px; border-radius: 4px; }

/* --------------------------------------------------------------- AI models */
.ai-card { background: var(--navy-700); border: 1px solid var(--navy-600); border-radius: var(--radius-lg); padding: 32px; color: #cfe0f0; position: relative; overflow: hidden; }
.ai-card::before { content: ""; position: absolute; top: -40%; right: -20%; width: 320px; height: 320px; border-radius: 50%; filter: blur(60px); opacity: .5; }
.ai-card--risk::before { background: radial-gradient(circle, rgba(245,165,36,.6), transparent 70%); }
.ai-card--storm::before { background: radial-gradient(circle, rgba(46,155,230,.6), transparent 70%); }
.ai-card__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; position: relative; }
.ai-card--risk .ai-card__tag { background: rgba(245,165,36,.16); color: var(--amber); }
.ai-card--storm .ai-card__tag { background: rgba(46,155,230,.16); color: var(--sky); }
.ai-card h3 { color: #fff; font-size: 26px; margin-bottom: 8px; position: relative; }
.ai-card > p { position: relative; color: #a9bdd2; font-size: 15.5px; }
.ai-flow { display: flex; align-items: center; gap: 10px; margin: 24px 0; position: relative; flex-wrap: wrap; }
.ai-node { flex: 1; min-width: 84px; text-align: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 8px; font-size: 12px; color: #cfe0f0; }
.ai-node svg { width: 22px; height: 22px; margin-bottom: 6px; }
.ai-node.core { background: var(--grad-teal); color: #04262a; border: none; font-weight: 700; }
.ai-card--storm .ai-node.core { background: linear-gradient(135deg, var(--sky), #6bc1ff); }
.ai-card--risk .ai-node.core { background: linear-gradient(135deg, var(--amber), #ffcf6b); }
.ai-arrow { color: rgba(255,255,255,.35); flex: none; }
.ai-metrics { display: flex; gap: 22px; margin-top: 10px; position: relative; flex-wrap: wrap; }
.ai-metric .n { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: #fff; }
.ai-metric .l { font-size: 12.5px; color: #9fb3c8; }

/* storm radar */
.radar { width: 130px; height: 130px; border-radius: 50%; position: relative; margin: 0 auto; background: radial-gradient(circle, rgba(46,155,230,.12), transparent 70%); border: 1px solid rgba(46,155,230,.3); overflow: hidden; }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(46,155,230,.25); margin: 22px; }
.radar::after { margin: 44px; }
.radar__sweep { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(46,155,230,.5), transparent 40%); border-radius: 50%; animation: sweep 3.4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar__blip { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: blip 3.4s infinite; }

/* --------------------------------------------------------- caravan */
.caravan-map { position: relative; background: var(--navy-700); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--navy-600); box-shadow: var(--shadow-lg); }
.caravan-map svg { width: 100%; height: auto; display: block; }
.route-dot { animation: none; }
.caravan-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: #9fb3c8; }
.caravan-legend span { display: inline-flex; align-items: center; gap: 7px; }
.caravan-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

.timeline { position: relative; display: grid; gap: 8px; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.section--dark .tl-item { border-color: rgba(255,255,255,.1); }
.tl-item .yr { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--teal-600); }
.section--dark .tl-item .yr { color: var(--teal); }
.tl-item h4 { font-size: 18px; margin-bottom: 4px; }
.tl-item p { color: var(--ink-soft); font-size: 15px; }
.section--dark .tl-item p { color: #a9bdd2; }

/* -------------------------------------------------- partners / impact */
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow-sm); }
.pill svg { width: 18px; height: 18px; color: var(--teal-600); }

/* --------------------------------------------------------------- CTA */
.cta { background: var(--grad-hero); border-radius: var(--radius-lg); padding: clamp(40px,6vw,72px); color: #fff; position: relative; overflow: hidden; text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 20% 10%, rgba(18,184,166,.4), transparent 60%), radial-gradient(50% 60% at 90% 90%, rgba(46,155,230,.35), transparent 60%); }
.cta__in { position: relative; z-index: 2; }
.cta h2 { color: #fff; font-size: clamp(28px,4vw,44px); margin-bottom: 16px; }
.cta p { color: #c8d6e6; max-width: 56ch; margin: 0 auto 30px; }
.cta .hero__cta { justify-content: center; }

/* --------------------------------------------------------------- footer */
.footer { background: var(--navy-900); color: #93a8bf; padding: 68px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .04em; }
.footer a { color: #93a8bf; font-size: 14.5px; transition: .2s; }
.footer a:hover { color: var(--teal); }
.footer__links { display: grid; gap: 10px; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: #6c839c; }
.footer p.desc { font-size: 14.5px; margin-top: 16px; max-width: 34ch; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 13px; color: #6c839c; }
.footer__bottom a { text-decoration: underline; }
.contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14.5px; }
.contact-line svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

/* --------------------------------------------------------- reveal anim */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero__bg img, .hero__mesh { animation: none; } }

/* --------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__panel { max-width: 520px; }
  .map-wrap { grid-template-columns: 1fr; }
  .map-side { flex-direction: column; }
  #map { min-height: 460px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .statband { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav.open .nav__links { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 14px 20px 20px; box-shadow: var(--shadow-md); border-top: 1px solid var(--line); }
  .nav.open .nav__links a { color: var(--ink-soft); padding: 12px 10px; border-radius: 10px; }
  .nav.open .nav__links .nav-contact-mobile { display: block; color: var(--teal-600); font-weight: 700; }
  .nav__burger { display: grid; }
  .grid-2, .grid-3, .split, .split--reverse .split__media { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .alertband__inner { flex-direction: column; text-align: center; gap: 14px; }
  .hero h1 { font-size: clamp(34px,9vw,52px); }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .ba__cap span { max-width: 44%; font-size: 11px; }
}
