/* ============================================================
   CLEAR ENERGY — v3 design system
   Enterprise-grade · tech-forward · dark/light rhythm
   ============================================================ */

:root{
  /* Brand */
  --red: #f5113e;
  --red-dark: #c10d31;
  --ink: #0b1220;
  --ink-2: #3b4354;
  --ink-3: #6b7280;
  --bg: #f6f7f9;
  --paper: #ffffff;
  --line: #e6e8ee;

  /* Energy palette */
  --bio: #0f766e;       /* biomass teal */
  --bio-soft: rgba(15,118,110,.10);
  --gas: #d4a017;       /* gas amber */
  --gas-soft: rgba(212,160,23,.12);
  --volt: #2563eb;      /* electric blue */
  --volt-2: #06b6d4;    /* cyan */
  --volt-soft: rgba(37,99,235,.10);
  --h2: #7c3aed;        /* hydrogen violet */
  --h2-soft: rgba(124,58,237,.10);
  --green: #10b981;

  /* Dark surfaces */
  --night: #070b15;
  --night-2: #0c1322;
  --night-card: rgba(255,255,255,.045);
  --night-line: rgba(255,255,255,.09);
  --night-ink: #eef1f6;
  --night-ink-2: #97a1b4;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(11,18,32,.05), 0 12px 40px -12px rgba(11,18,32,.12);
  --shadow-lg: 0 2px 6px rgba(11,18,32,.06), 0 30px 70px -20px rgba(11,18,32,.25);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
::selection{ background: var(--red); color: #fff; }

.container{ width: min(1200px, 92%); margin: 0 auto; }
.container.wide{ width: min(1320px, 94%); }

/* ---------- Typography ---------- */
.display{ font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; }
.d1{ font-size: clamp(40px, 6vw, 76px); }
.d2{ font-size: clamp(32px, 4.4vw, 54px); }
.d3{ font-size: clamp(26px, 3.2vw, 38px); }
.d4{ font-size: clamp(20px, 2.4vw, 27px); }
.lead{ font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); }
.dark .lead, .lead.on-dark{ color: var(--night-ink-2); }
.mono{ font-family: var(--font-mono); }

.kicker{
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.kicker .pulse{
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(245,17,62,.5); animation: pulse 2.2s infinite;
}
.kicker.volt .pulse{ background: var(--volt); box-shadow: 0 0 0 0 rgba(37,99,235,.5); }
.kicker.bio .pulse{ background: var(--bio); box-shadow: 0 0 0 0 rgba(15,118,110,.5); }
@keyframes pulse{ 0%{box-shadow:0 0 0 0 rgba(245,17,62,.45)} 70%{box-shadow:0 0 0 10px rgba(245,17,62,0)} 100%{box-shadow:0 0 0 0 rgba(245,17,62,0)} }

.grad-text{
  background: linear-gradient(95deg, var(--red) 0%, #ff6a3d 50%, var(--gas) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text.volt{ background: linear-gradient(95deg, var(--volt) 0%, var(--volt-2) 60%, var(--green) 110%); -webkit-background-clip:text; background-clip:text; }
.grad-text.bio{ background: linear-gradient(95deg, var(--bio) 0%, var(--green) 100%); -webkit-background-clip:text; background-clip:text; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(11,18,32,.07);
  transition: background .3s;
}
.nav{ display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand{ display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand .brand-icon{ height: 38px; width: auto; }
.brand .brand-word{ height: 16px; width: auto; }
.foot-logo{ display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.foot-logo img:first-child{ height: 36px; width: auto; }
.foot-logo img:last-child{ height: 15px; width: auto; }
.nav-links{ display: flex; gap: 4px; align-items: center; }
.nav-links > a, .nav-item > button{
  font-size: 14px; font-weight: 550; color: var(--ink-2);
  padding: 8px 13px; border-radius: 10px; border: none; background: none;
  font-family: var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  transition: background .18s, color .18s;
}
.nav-links > a, .nav-item > button{ position: relative; }
.nav-links > a::after, .nav-item > button::after{
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav-links > a:hover, .nav-item > button:hover, .nav-item:hover > button, .nav-item.open > button{
  background: rgba(11,18,32,.05); color: var(--ink);
}
.nav-links > a:hover::after, .nav-item:hover > button::after, .nav-item.open > button::after{ transform: scaleX(1); }
.nav-links > a.active{ color: var(--red); font-weight: 650; }
.nav-links > a.active::after{ transform: scaleX(1); }
.nav-item > button.active{ color: var(--red); font-weight: 650; }
.nav-item > button .chev-ic, .nav-item > button [data-lucide="chevron-down"]{ transition: transform .22s ease; }
.nav-item:hover > button .chev-ic, .nav-item.open > button .chev-ic{ transform: rotate(180deg); }
.nav-item{ position: relative; }
.nav-dropdown{
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 540px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
/* invisible bridge so the pointer can cross the gap without closing the menu */
.nav-dropdown::before{
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown, .nav-item.open .nav-dropdown{
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a{
  display: flex; gap: 12px; padding: 12px; border-radius: 12px; align-items: flex-start;
  transition: background .15s, transform .15s;
  border: 1px solid transparent;
}
.nav-dropdown a:hover{ background: var(--bg); border-color: var(--line); transform: translateX(2px); }
.nav-dropdown a:hover b{ color: var(--red); }
.nav-dropdown a .ico{ transition: transform .18s; }
.nav-dropdown a:hover .ico{ transform: scale(1.08); }
.nav-dropdown .ico{
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center;
}
.nav-dropdown b{ display: block; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.nav-dropdown span{ font-size: 12px; color: var(--ink-3); line-height: 1.45; display: block; margin-top: 1px; }
.nav-dropdown .new-pill{
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px; border-radius: 99px;
  background: var(--volt); color: #fff; vertical-align: 2px; margin-left: 6px;
}
.nav-cta{ display: flex; gap: 10px; align-items: center; }
.hamburger{ display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 620; padding: 12px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s; font-family: var(--font-body);
  white-space: nowrap;
}
.btn.primary{ background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px rgba(245,17,62,.5); }
.btn.primary:hover{ background: var(--red-dark); transform: translateY(-1px); }
.btn.dark{ background: var(--ink); color: #fff; }
.btn.dark:hover{ background: #1a2436; transform: translateY(-1px); }
.btn.ghost{ border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn.ghost:hover{ border-color: var(--ink-3); transform: translateY(-1px); }
.btn.ghost.on-dark{ background: rgba(255,255,255,.06); border-color: var(--night-line); color: #fff; }
.btn.ghost.on-dark:hover{ background: rgba(255,255,255,.12); }
.btn.volt{ background: linear-gradient(95deg, var(--volt), var(--volt-2)); color:#fff; box-shadow: 0 8px 24px -8px rgba(37,99,235,.55); }
.btn.volt:hover{ filter: brightness(1.08); transform: translateY(-1px); }
.btn.sm{ padding: 8px 15px; font-size: 13px; border-radius: 10px; }

/* ---------- Chips & badges ---------- */
.chip{
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
}
.chip .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.chip.bio{ background: var(--bio-soft); border-color: rgba(15,118,110,.3); color: #115e59; } .chip.bio .dot{ background: var(--bio); }
.chip.gas{ background: var(--gas-soft); border-color: rgba(212,160,23,.4); color: #92580b; } .chip.gas .dot{ background: var(--gas); }
.chip.volt{ background: var(--volt-soft); border-color: rgba(37,99,235,.32); color: #1e40af; } .chip.volt .dot{ background: var(--volt); }
.chip.h2{ background: var(--h2-soft); border-color: rgba(124,58,237,.3); color: #6d28d9; } .chip.h2 .dot{ background: var(--h2); }
.chip.red{ background: rgba(245,17,62,.06); border-color: rgba(245,17,62,.3); color: #9b1431; } .chip.red .dot{ background: var(--red); }
.chip.on-dark{ background: rgba(255,255,255,.06); border-color: var(--night-line); color: var(--night-ink-2); }

.tag{
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 7px;
  background: rgba(11,18,32,.06); color: var(--ink-2); display: inline-block;
}
.dark .tag{ background: rgba(255,255,255,.08); color: var(--night-ink-2); }

/* ---------- Sections ---------- */
.section{ padding: clamp(64px, 9vw, 120px) 0; }
.section.tight{ padding: clamp(44px, 6vw, 76px) 0; }
.section.dark{
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(37,99,235,.16), transparent 60%),
    radial-gradient(900px 460px at 8% 108%, rgba(245,17,62,.10), transparent 55%),
    var(--night);
  color: var(--night-ink);
}
.section.dark.bio-tint{
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(16,185,129,.13), transparent 60%),
    radial-gradient(900px 460px at 8% 108%, rgba(37,99,235,.10), transparent 55%),
    var(--night);
}
.section.paper{ background: var(--paper); }
.sec-head{ max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2{ margin-top: 16px; }
.sec-head .lead{ margin-top: 16px; }
.sec-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .kicker{ justify-content: center; }

/* ---------- Cards & grids ---------- */
.grid{ display: grid; gap: 18px; }
.cols-2{ grid-template-columns: repeat(2, 1fr); }
.cols-3{ grid-template-columns: repeat(3, 1fr); }
.cols-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3{ font-family: var(--font-display); font-size: 19px; letter-spacing: -.01em; }
.card p{ font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.card .ico{
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
}
.card.dark-card{
  background: var(--night-card); border-color: var(--night-line); color: var(--night-ink);
  backdrop-filter: blur(8px);
}
.card.dark-card p{ color: var(--night-ink-2); }
.card.dark-card h3{ color: #fff; }
.card .card-link{ margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--red); }
.card .card-link.volt{ color: var(--volt); }
.card .card-link.bio{ color: var(--bio); }
.card .topline{ position: absolute; top: 0; left: 0; right: 0; height: 3px; }

.ico.red{ background: rgba(245,17,62,.09); color: var(--red); }
.ico.bio{ background: var(--bio-soft); color: var(--bio); }
.ico.gas{ background: var(--gas-soft); color: #b8860b; }
.ico.volt{ background: var(--volt-soft); color: var(--volt); }
.ico.h2{ background: var(--h2-soft); color: var(--h2); }
.ico.inkish{ background: rgba(11,18,32,.06); color: var(--ink); }
.dark .ico.volt, .dark-card .ico.volt{ background: rgba(37,99,235,.2); color: #7ab3ff; }
.dark .ico.bio, .dark-card .ico.bio{ background: rgba(16,185,129,.16); color: #4ade80; }

/* ---------- Stats ---------- */
.stat-band{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat{
  padding: 26px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
}
.dark .stat{ background: var(--night-card); border-color: var(--night-line); }
.stat .num{
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -.02em; line-height: 1; display: flex; align-items: baseline; gap: 2px;
}
.stat .num .unit{ font-size: .52em; color: var(--ink-3); font-weight: 600; }
.dark .stat .num .unit{ color: var(--night-ink-2); }
.stat .lbl{ font-size: 13px; color: var(--ink-3); margin-top: 9px; line-height: 1.45; }
.dark .stat .lbl{ color: var(--night-ink-2); }

/* ---------- Hero ---------- */
.hero{
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -20%, rgba(37,99,235,.20), transparent 58%),
    radial-gradient(900px 500px at -5% 30%, rgba(245,17,62,.13), transparent 55%),
    radial-gradient(800px 500px at 50% 120%, rgba(16,185,129,.12), transparent 60%),
    var(--night);
  color: var(--night-ink);
}
.hero::before{
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 600px at 60% 20%, #000 30%, transparent 75%);
}
.hero .container{ position: relative; }
.hero-inner{ padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 84px); }
.hero h1{ color: #fff; margin-top: 22px; max-width: 17ch; }
.hero .lead{ margin-top: 24px; max-width: 60ch; color: var(--night-ink-2); }
.hero-grid{ display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-chips{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }

/* live ticker */
.ticker{
  border-top: 1px solid var(--night-line);
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.ticker-track{ display: flex; gap: 56px; padding: 13px 0; width: max-content; animation: marquee 38s linear infinite; }
.ticker-item{ display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12.5px; color: var(--night-ink-2); white-space: nowrap; }
.ticker-item b{ color: #fff; font-weight: 600; }
.ticker-item .ind{ width: 7px; height: 7px; border-radius: 50%; }
.ind.up{ background: var(--green); } .ind.live{ background: var(--volt-2); animation: blink 1.6s infinite; } .ind.warn{ background: var(--gas); }
@keyframes blink{ 50%{ opacity: .25; } }
@keyframes marquee{ to{ transform: translateX(-50%); } }

/* ---------- Console / dashboard mock ---------- */
.console{
  background: linear-gradient(180deg, #0d1424, #0a101d);
  border: 1px solid var(--night-line); border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden; font-family: var(--font-mono);
}
.console-bar{
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--night-line); background: rgba(255,255,255,.03);
}
.console-bar .dots{ display: flex; gap: 6px; }
.console-bar .dots i{ width: 10px; height: 10px; border-radius: 50%; display: block; }
.console-bar .title{ font-size: 11.5px; color: var(--night-ink-2); letter-spacing: .05em; }
.console-bar .live-pill{
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; color: #4ade80; border: 1px solid rgba(74,222,128,.35); padding: 3px 9px; border-radius: 99px;
}
.console-body{ padding: 18px; display: grid; gap: 14px; }
.console-kpis{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ckpi{ background: rgba(255,255,255,.04); border: 1px solid var(--night-line); border-radius: 12px; padding: 12px 14px; }
.ckpi .k{ font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--night-ink-2); }
.ckpi .v{ font-size: 20px; font-weight: 700; color: #fff; margin-top: 5px; letter-spacing: -.01em; }
.ckpi .v small{ font-size: 11px; color: var(--night-ink-2); font-weight: 500; }
.ckpi .delta{ font-size: 10.5px; margin-top: 3px; }
.delta.up{ color: #4ade80; } .delta.dim{ color: var(--night-ink-2); }
.console-chart{ background: rgba(255,255,255,.03); border: 1px solid var(--night-line); border-radius: 12px; padding: 14px; }
.console-chart .ch-head{ display:flex; justify-content: space-between; font-size: 10.5px; color: var(--night-ink-2); letter-spacing:.08em; text-transform: uppercase; margin-bottom: 10px; }
.console-rows{ display: grid; gap: 8px; }
.crow{ display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--night-ink-2); }
.crow .nm{ width: 118px; flex: none; color: #cdd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .bar{ flex: 1; height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.crow .bar i{ display: block; height: 100%; border-radius: 99px; transition: width 1s ease; }
.crow .val{ width: 64px; text-align: right; color: #fff; }

/* ---------- Energy flow card ---------- */
.flow-card{
  background: linear-gradient(180deg, #0d1424, #0a101d);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.06);
  padding: clamp(18px, 2.4vw, 30px);
}
.flow-card svg{ width: 100%; height: auto; display: block; }
.flow-caption{
  margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--night-line);
  font-size: 13px; line-height: 1.55; color: var(--night-ink-2); text-align: center;
}

/* ---------- Marquee logos ---------- */
.logo-marquee{ overflow: hidden; position: relative; padding: 10px 0; }
.logo-marquee::before, .logo-marquee::after{
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.logo-marquee::before{ left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.logo-marquee::after{ right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.logo-track{ display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); width: max-content; animation: marquee 60s linear infinite; }
.logo-track img{ height: 44px; width: auto; opacity: .92; transition: all .25s; }
.logo-track img:hover{ opacity: 1; transform: scale(1.08); }
.logo-marquee:hover .logo-track{ animation-play-state: paused; }

/* ---------- Fuel/offerings tiles ---------- */
.offer{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.offer-tile{
  border-radius: var(--radius-lg); padding: 30px; position: relative; overflow: hidden;
  border: 1px solid var(--night-line); background: var(--night-card); color: var(--night-ink);
  transition: transform .25s, border-color .25s; min-height: 250px; display: flex; flex-direction: column;
}
.offer-tile:hover{ transform: translateY(-4px); border-color: rgba(255,255,255,.22); }
.offer-tile h3{ font-family: var(--font-display); font-size: 22px; margin-top: 14px; color:#fff; }
.offer-tile p{ font-size: 14px; color: var(--night-ink-2); margin-top: 10px; max-width: 48ch; }
.offer-tile .meta{ margin-top: auto; padding-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.offer-tile .glow{ position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(70px); opacity: .35; right: -120px; top: -120px; pointer-events: none; }

/* ---------- Tables ---------- */
.table-wrap{ overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.ce{ width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.ce th{
  text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg);
}
table.ce td{ padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
table.ce tr:last-child td{ border-bottom: none; }
table.ce td b{ color: var(--ink); }
.dark .table-wrap{ border-color: var(--night-line); background: var(--night-card); }
.dark table.ce th{ background: rgba(255,255,255,.04); color: var(--night-ink-2); border-color: var(--night-line); }
.dark table.ce td{ color: var(--night-ink-2); border-color: var(--night-line); }
.dark table.ce td b{ color: #fff; }

/* ---------- Spec rows ---------- */
.spec{ display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.spec:last-child{ border-bottom: none; }
.spec .k{ color: var(--ink-3); }
.spec .v{ font-weight: 650; text-align: right; }
.dark-card .spec{ border-color: var(--night-line); }
.dark-card .spec .k{ color: var(--night-ink-2); }
.dark-card .spec .v{ color: #fff; }

/* ---------- Steps ---------- */
.steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step{ position: relative; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n{
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--red);
  letter-spacing: .1em; margin-bottom: 12px; display: block;
}
.step h3{ font-family: var(--font-display); font-size: 17px; }
.step p{ font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
.dark .step{ background: var(--night-card); border-color: var(--night-line); }
.dark .step h3{ color: #fff; } .dark .step p{ color: var(--night-ink-2); }

/* ---------- Tabs ---------- */
.tabs{ display: inline-flex; gap: 4px; padding: 5px; background: rgba(11,18,32,.05); border-radius: 13px; flex-wrap: wrap; }
.dark .tabs{ background: rgba(255,255,255,.06); }
.tab-btn{
  border: none; background: none; font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 9px 18px; border-radius: 10px; cursor: pointer; color: var(--ink-2); transition: all .18s;
}
.dark .tab-btn{ color: var(--night-ink-2); }
.tab-btn.active{ background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px rgba(11,18,32,.1); }
.dark .tab-btn.active{ background: rgba(255,255,255,.12); color: #fff; }
.tab-panel{ display: none; }
.tab-panel.active{ display: block; animation: fadeUp .4s ease; }

/* ---------- Accordion ---------- */
.acc{ border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.acc-item + .acc-item{ border-top: 1px solid var(--line); }
.acc-q{
  width: 100%; text-align: left; border: none; background: none; cursor: pointer;
  padding: 20px 24px; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc-q .chev{ transition: transform .25s; flex: none; color: var(--ink-3); }
.acc-item.open .acc-q .chev{ transform: rotate(180deg); }
.acc-a{ max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-a > div{ padding: 0 24px 22px; font-size: 14.5px; color: var(--ink-2); max-width: 75ch; }

/* ---------- Calculator ---------- */
.calc{
  border-radius: var(--radius-lg); border: 1px solid var(--night-line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  padding: clamp(24px, 3.4vw, 40px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 3.4vw, 48px);
}
.calc label{ display: block; font-size: 13px; font-weight: 600; color: var(--night-ink-2); margin: 22px 0 10px; }
.calc label:first-of-type{ margin-top: 0; }
.calc .range-row{ display: flex; align-items: center; gap: 16px; }
.calc input[type="range"]{ flex: 1; accent-color: var(--red); height: 4px; }
.calc .range-val{
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid var(--night-line); padding: 7px 12px; border-radius: 9px;
  min-width: 96px; text-align: center;
}
.calc select{
  width: 100%; padding: 12px 14px; border-radius: 11px; background: rgba(255,255,255,.06);
  border: 1px solid var(--night-line); color: #fff; font-family: var(--font-body); font-size: 14px;
}
.calc select option{ color: var(--ink); }
.seg{ display: flex; gap: 6px; flex-wrap: wrap; }
.seg button{
  border: 1px solid var(--night-line); background: rgba(255,255,255,.04); color: var(--night-ink-2);
  font-family: var(--font-body); font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 10px; cursor: pointer;
  transition: all .18s;
}
.seg button.active{ background: var(--red); border-color: var(--red); color: #fff; }
.seg.volt button.active{ background: var(--volt); border-color: var(--volt); }
.calc-out{
  border-radius: var(--radius); border: 1px solid var(--night-line); background: rgba(7,11,21,.55);
  padding: 26px; display: flex; flex-direction: column; gap: 4px;
}
.calc-out .row{ display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--night-line); }
.calc-out .row:last-child{ border-bottom: none; }
.calc-out .k{ font-size: 13px; color: var(--night-ink-2); }
.calc-out .v{ font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: #fff; }
.calc-out .v.hl{ font-size: clamp(26px, 2.6vw, 34px); color: #4ade80; }
.calc-out .note{ font-size: 11.5px; color: var(--night-ink-2); margin-top: 14px; line-height: 1.55; }

/* ---------- Timeline ---------- */
.timeline{ position: relative; padding-left: 28px; }
.timeline::before{ content:""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--red), var(--volt)); border-radius: 2px; }
.tl-item{ position: relative; padding-bottom: 30px; }
.tl-item:last-child{ padding-bottom: 0; }
.tl-item::before{
  content:""; position: absolute; left: -27px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--red);
}
.tl-item .when{ font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--red); text-transform: uppercase; }
.tl-item h3{ font-family: var(--font-display); font-size: 18px; margin-top: 6px; }
.tl-item p{ font-size: 14px; color: var(--ink-2); margin-top: 6px; max-width: 65ch; }

/* ---------- Banner CTA ---------- */
.cta-banner{
  border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(37,99,235,.3), transparent 60%),
    radial-gradient(600px 300px at 10% 110%, rgba(245,17,62,.25), transparent 55%),
    var(--night-2);
  color: #fff; padding: clamp(40px, 6vw, 72px); text-align: center;
}
.cta-banner h2{ max-width: 22ch; margin: 14px auto 0; }
.cta-banner .lead{ margin: 18px auto 0; max-width: 58ch; color: var(--night-ink-2); }
.cta-banner .actions{ margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--night); color: var(--night-ink-2); padding: clamp(50px, 7vw, 80px) 0 0; border-top: 1px solid var(--night-line); }
.foot-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
.foot-grid h4{ font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 600; }
.foot-grid a{ display: block; font-size: 13.5px; padding: 5px 0; transition: color .15s; }
.foot-grid a:hover{ color: #fff; }
.foot-brand > img{ height: 38px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.foot-brand p{ font-size: 13px; line-height: 1.65; max-width: 34ch; }
.foot-certs{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.foot-bottom{
  border-top: 1px solid var(--night-line); padding: 22px 0; display: flex; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 12.5px;
}
.status-chip{ display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; }
.status-chip .ind{ width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(16,185,129,.8); animation: blink 2s infinite; }

/* ---------- Forms ---------- */
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field{ display: flex; flex-direction: column; gap: 7px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea{
  padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(245,17,62,.12);
}
.field textarea{ resize: vertical; min-height: 120px; }

/* ---------- Reveal animations ---------- */
.reveal{ opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s 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; }
@keyframes fadeUp{ from{ opacity: 0; transform: translateY(14px);} to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  .ticker-track, .logo-track{ animation: none; }
}

/* ---------- Breadcrumb hero (interior pages) ---------- */
.page-hero{
  position: relative; overflow: hidden; color: var(--night-ink);
  background:
    radial-gradient(900px 420px at 80% -20%, rgba(37,99,235,.18), transparent 58%),
    radial-gradient(700px 400px at 0% 120%, rgba(245,17,62,.12), transparent 55%),
    var(--night);
  padding: clamp(54px, 7vw, 92px) 0;
}
.page-hero.volt-tint{ background: radial-gradient(900px 420px at 80% -20%, rgba(6,182,212,.2), transparent 58%), radial-gradient(700px 400px at 0% 120%, rgba(37,99,235,.16), transparent 55%), var(--night); }
.page-hero.bio-tint{ background: radial-gradient(900px 420px at 80% -20%, rgba(16,185,129,.18), transparent 58%), radial-gradient(700px 400px at 0% 120%, rgba(212,160,23,.10), transparent 55%), var(--night); }
.page-hero::before{
  content:""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: radial-gradient(700px 420px at 70% 30%, #000 30%, transparent 80%);
}
.page-hero .container{ position: relative; }
.crumb{ font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--night-ink-2); display: flex; gap: 10px; align-items: center; }
.crumb a:hover{ color: #fff; }
.page-hero h1{ color: #fff; margin-top: 20px; max-width: 20ch; }
.page-hero .lead{ margin-top: 20px; max-width: 64ch; }
.page-hero .hero-chips{ margin-top: 24px; }

/* ---------- Split layout ---------- */
.split{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .media{ border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.split .media img{ width: 100%; height: 100%; object-fit: cover; }
.dark .split .media{ border-color: var(--night-line); }

/* ---------- Feature list ---------- */
.flist{ display: grid; gap: 14px; margin-top: 26px; }
.flist li{
  list-style: none; display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2);
}
.flist li .tick{
  flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; margin-top: 1px;
  background: var(--bio-soft); color: var(--bio); font-size: 12px; font-weight: 800;
}
.flist li b{ color: var(--ink); }
.dark .flist li{ color: var(--night-ink-2); } .dark .flist li b{ color: #fff; }

/* ---------- Map panels (light-on-dark dotmap SVGs) ---------- */
.map-panel{
  background: #0a101d; /* matches the maps' night background so letterboxing is invisible */
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.dark .map-panel{ border-color: var(--night-line); }
.map-panel img{ width: 100%; max-height: 380px; object-fit: contain; display: block; }

/* ---------- Misc ---------- */
.divider{ height: 1px; background: var(--line); border: none; }
.center{ text-align: center; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-48{margin-top:48px}.mt-64{margin-top:64px}
.muted{ color: var(--ink-3); } .dark .muted{ color: var(--night-ink-2); }
.small{ font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .cols-4{ grid-template-columns: repeat(2, 1fr); }
  .cols-3{ grid-template-columns: repeat(2, 1fr); }
  .stat-band{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .hero-grid{ grid-template-columns: 1fr; }
  .foot-grid{ grid-template-columns: repeat(2, 1fr); }
  .calc{ grid-template-columns: 1fr; }
  .nav-dropdown{ min-width: 440px; }
}
@media (max-width: 760px){
  .cols-2, .cols-3, .offer, .split, .form-grid{ grid-template-columns: 1fr; }
  .nav-links{
    position: fixed; inset: 72px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 16px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open{ display: flex; }
  .nav-links > a, .nav-item > button{ padding: 13px 14px; width: 100%; justify-content: space-between; font-size: 15px; }
  .nav-dropdown{
    position: static; transform: none; opacity: 1; pointer-events: auto; min-width: 0; box-shadow: none;
    border: none; grid-template-columns: 1fr; padding: 0 0 8px 10px; display: none;
  }
  .nav-item.open .nav-dropdown{ display: grid; }
  .hamburger{ display: inline-flex; }
  .nav-cta .btn{ display: none; }
  .stat-band, .steps{ grid-template-columns: 1fr; }
  .console-kpis{ grid-template-columns: 1fr 1fr; }
}
