/* ============================================================
   FuelOps · Landing — Premium Light System
   Schibsted Grotesk (display) · Inter (UI) · JetBrains Mono (data)
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-tint: #f6f8fc;
  --bg-tint-2: #eef2f9;
  --deep: #0a0f1d;
  --deep-2: #0e1426;

  /* Ink */
  --ink: #0b1220;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-4: #94a3b8;
  --ink-5: #b8c2d4;

  /* Lines */
  --line: rgba(11, 18, 32, 0.08);
  --line-2: rgba(11, 18, 32, 0.13);
  --line-3: rgba(11, 18, 32, 0.18);

  /* Brand + semantics */
  --brand: #1e62ff;
  --brand-600: #0d4ee6;
  --brand-700: #0a3db8;
  --brand-tint: #eaf2ff;
  --brand-tint-2: #d7e4ff;
  --cyan: #1bb8d4;
  --emerald: #0f9d6b;
  --emerald-tint: #e7f6ef;
  --amber: #e08600;
  --amber-tint: #fdf3e2;
  --rose: #e11d48;
  --rose-tint: #fdeaef;
  --violet: #7c4ddb;
  --warm: #f97316;

  /* Fuel products */
  --magna: #0f9d6b;
  --premium: #e0392b;
  --diesel: #64748b;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(11, 18, 32, 0.05);
  --sh-sm: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 1px 3px rgba(11, 18, 32, 0.06);
  --sh: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 2px 4px rgba(11, 18, 32, 0.04), 0 12px 32px -14px rgba(11, 18, 32, 0.16);
  --sh-lg: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 30px 70px -28px rgba(11, 18, 32, 0.32);
  --sh-brand: 0 10px 24px -10px rgba(30, 98, 255, 0.5), 0 1px 0 rgba(255, 255, 255, 0.3) inset;

  --font-display: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --maxw: 1200px;
  --maxw-narrow: 880px;
  --nav-h: 70px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(30, 98, 255, 0.16); color: var(--ink); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--maxw-narrow); }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; position: relative; }
.tint { background: var(--bg-tint); }
.divider-top { border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}
.h1 { font-size: clamp(34px, 6vw, 66px); }
.h2 { font-size: clamp(28px, 4.4vw, 46px); }
.h3 { font-size: clamp(20px, 2.6vw, 28px); }
.lead {
  font-size: clamp(15.5px, 1.7vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.tnum { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow .tick {
  width: 22px; height: 1px; background: linear-gradient(90deg, var(--brand), transparent);
}

.grad-text {
  background: linear-gradient(110deg, var(--brand) 0%, var(--brand-700) 45%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* section header */
.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head .lead { margin-top: 18px; }
.sec-head .display { margin-top: 16px; }

/* ---------- Backdrops ---------- */
.bg-grid, .bg-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bg-grid::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,18,32,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,18,32,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 78%);
}
.bg-dots::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11,18,32,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 25%, transparent 80%);
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(40px);
  pointer-events: none; z-index: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; border-radius: 12px;
  padding: 12px 20px; transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3a78ff 0%, var(--brand) 45%, var(--brand-600) 100%);
  box-shadow: var(--sh-brand);
}
.btn-primary:hover { transform: translateY(-1.5px); box-shadow: 0 16px 34px -12px rgba(30,98,255,.62), 0 1px 0 rgba(255,255,255,.4) inset; }
.btn-ghost {
  color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-xs);
}
.btn-ghost:hover { background: var(--bg-tint); color: var(--ink); border-color: var(--line-3); transform: translateY(-1px); }
.btn-dark {
  color: #fff; background: linear-gradient(180deg, #1a2236, var(--deep)); border: 1px solid rgba(255,255,255,.08);
}
.btn-dark:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); background: #fff; box-shadow: var(--sh-xs);
  border-radius: 999px; padding: 6px 13px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.pulse { position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: currentColor; opacity: .4; animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 75%,100% { transform: scale(2.4); opacity: 0; } }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2);
  background: var(--bg-tint); color: var(--ink-3);
}
.sev { display:inline-flex; align-items:center; gap:5px; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.sev-ok { color: var(--emerald); background: var(--emerald-tint); border: 1px solid #bfe8d4; }
.sev-warn { color: var(--amber); background: var(--amber-tint); border: 1px solid #f5d9a8; }
.sev-crit { color: var(--rose); background: var(--rose-tint); border: 1px solid #f6c2cf; }
.sev-info { color: var(--brand-600); background: var(--brand-tint); border: 1px solid var(--brand-tint-2); }
.sev .d { width:6px; height:6px; border-radius:50%; background: currentColor; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh); position: relative;
}
.card-pad { padding: 22px; }
.lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--line-2); }

/* ============================================================
   NAV + announcement
   ============================================================ */
.announce {
  position: relative; z-index: 60;
  background: linear-gradient(90deg, #0c1424, #131c33);
  color: #e8edf7; font-size: 13px;
}
.announce .row { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 24px; text-align: center; flex-wrap: wrap; }
.announce .ico { color: #ff8a5c; display: inline-flex; }
.announce a.link { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 1px; }
.announce a.link:hover { border-color: #fff; }
.announce .close { color: rgba(255,255,255,.5); position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display:inline-flex; padding:4px; border-radius:6px; }
.announce .close:hover { color: #fff; background: rgba(255,255,255,.1); }
.announce.hide { display: none; }

.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line); box-shadow: 0 4px 24px -16px rgba(11,18,32,.4);
}
.nav .row { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; filter: drop-shadow(0 1px 1px rgba(15,23,42,.16)) drop-shadow(0 4px 10px rgba(15,23,42,.12)); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 13px; font-size: 14px; font-weight: 500; color: var(--ink-3); border-radius: 9px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-tint); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; align-items: center; justify-content: center; color: var(--ink-2); }
.nav-burger svg { width: 20px; height: 20px; }

.mobile-menu { display: none; }
@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .mobile-menu {
    display: none; position: fixed; inset: 0; top: var(--nav-h); z-index: 49;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px); padding: 18px 24px;
    flex-direction: column; gap: 6px; animation: fadeIn .2s ease;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 14px 12px; font-size: 16px; font-weight: 500; color: var(--ink-2); border-radius: 12px; }
  .mobile-menu a:hover { background: var(--bg-tint); }
  .mobile-menu .mm-cta { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
  .mobile-menu .btn { width: 100%; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }
.hero .lead { max-width: 640px; margin-top: 22px; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-bullets { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
.hero-bullets li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); }
.hero-bullets svg { width: 15px; height: 15px; color: var(--emerald); }
.chip-new { cursor: pointer; }
.chip-new .pill { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand); border-radius: 5px; padding: 2px 6px; }

.hero-glow-1 { width: 720px; height: 460px; left: 50%; top: -120px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(30,98,255,.18), transparent 65%); }
.hero-glow-2 { width: 520px; height: 360px; right: 4%; top: 120px; background: radial-gradient(ellipse at center, rgba(27,184,212,.12), transparent 65%); }

/* ============================================================
   BROWSER FRAME + DASHBOARD
   ============================================================ */
.frame {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden;
}
.frame-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.frame-dots { display: flex; gap: 7px; }
.frame-dots span { width: 11px; height: 11px; border-radius: 50%; }
.frame-url {
  flex: 1; max-width: 420px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 12px; text-align: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3);
}
.frame-live { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.frame-live .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px rgba(16,185,129,.7); }
@media (max-width: 640px) { .frame-live { display: none; } }

.hero-dash { position: relative; margin-top: clamp(36px, 5vw, 60px); z-index: 1; }
.hero-dash .glow { width: 80%; height: 70%; left: 10%; top: 12%; background: radial-gradient(ellipse at center, rgba(30,98,255,.14), transparent 70%); z-index: -1; }

.dash-body { display: grid; grid-template-columns: 188px 1fr; }
.dash-aside { border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; }
.dash-aside .grp { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); padding: 8px 10px 4px; }
.dash-nav-btn {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: var(--ink-3); text-align: left; width: 100%; transition: background .15s, color .15s;
}
.dash-nav-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.dash-nav-btn:hover { background: var(--bg-tint); color: var(--ink-2); }
.dash-nav-btn.active { background: var(--brand-tint); color: var(--brand-700); font-weight: 600; }
.dash-main { padding: 16px; min-height: 430px; }
.dash-panel { display: none; animation: panelIn .26s ease; }
.dash-panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.dash-mobnav { display: none; }
@media (max-width: 760px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-aside { display: none; }
  .dash-main { padding: 12px; min-height: 0; }
  .dash-mobnav {
    display: grid; grid-auto-flow: column; gap: 4px; overflow-x: auto; padding: 10px 12px;
    border-bottom: 1px solid var(--line); background: var(--bg-tint); scrollbar-width: none;
  }
  .dash-mobnav::-webkit-scrollbar { display: none; }
  .dash-mobnav button {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; border: 1px solid transparent;
  }
  .dash-mobnav button svg { width: 14px; height: 14px; }
  .dash-mobnav button.active { background: #fff; color: var(--brand-700); border-color: var(--line); font-weight: 600; }
}

/* dashboard widgets */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { border: 1px solid var(--line); background: var(--bg-tint); border-radius: var(--r-sm); padding: 11px 13px; }
.kpi .l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.kpi .v { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 3px; letter-spacing: -.01em; }
.kpi .s { font-size: 11px; font-weight: 600; margin-top: 2px; }
.kpi .s.up { color: var(--emerald); }
.kpi .s.down { color: var(--rose); }

.tile { border: 1px solid var(--line); background: var(--bg-tint); border-radius: var(--r); padding: 14px; }
.tile.white { background: #fff; }
.tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tile-l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.tile-t { font-family: var(--font-display); font-size: 14.5px; font-weight: 650; color: var(--ink); margin-top: 2px; }
.tile-meta { font-size: 10.5px; color: var(--ink-4); font-family: var(--font-mono); }
.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.dash-row { margin-top: 12px; }

.legend { display: flex; gap: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-3); }
.legend i { width: 9px; height: 9px; border-radius: 3px; }

/* data table */
.dtable { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.dtable thead th { text-align: left; font-weight: 500; color: var(--ink-4); background: var(--bg-tint); padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 10.5px; }
.dtable tbody td { padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dtable tbody tr:last-child td { border-bottom: none; }
.dtable .r { text-align: right; }
.dtable .sans { font-family: var(--font-sans); }
.dtable-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.dtable-cap { padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg-tint); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dtable-scroll { overflow-x: auto; }

/* bars + progress */
.barrow { display: grid; grid-template-columns: 78px 1fr 52px; align-items: center; gap: 10px; padding: 5px 0; font-size: 11.5px; }
.barrow .nm { color: var(--ink-2); }
.barrow .track { height: 8px; border-radius: 5px; background: var(--bg-tint-2); overflow: hidden; }
.barrow .fill { height: 100%; border-radius: 5px; }
.barrow .val { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.prog { height: 7px; border-radius: 5px; background: var(--bg-tint-2); overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--emerald), var(--cyan)); }

/* tank cylinders */
.tanks { display: grid; gap: 10px; }
.tank { text-align: center; }
.tank .cyl {
  position: relative; height: 96px; width: 100%; max-width: 60px; margin: 0 auto;
  border: 1.5px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--bg-tint);
}
.tank .liq { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0 0 7px 7px; transition: height 1s cubic-bezier(.2,.7,.2,1); }
.tank .pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink); text-shadow: 0 1px 2px rgba(255,255,255,.6); }
.tank .nm { font-size: 10.5px; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.tank .sub { font-size: 9.5px; color: var(--ink-4); font-family: var(--font-mono); }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 14px; }
.donut { width: 96px; height: 96px; flex-shrink: 0; }
.donut-legend { display: grid; gap: 3px; font-size: 10.5px; color: var(--ink-3); }
.donut-legend span { display: inline-flex; align-items: center; gap: 6px; }
.donut-legend i { width: 8px; height: 8px; border-radius: 50%; }

/* alert rows */
.alert { display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 13px; }
.alert.crit { border-color: #f6c2cf; background: var(--rose-tint); }
.alert.warn { border-color: #f5d9a8; background: var(--amber-tint); }
.alert.info { border-color: var(--brand-tint-2); background: var(--brand-tint); }
.alert .ai { flex-shrink: 0; margin-top: 1px; }
.alert .ai svg { width: 16px; height: 16px; }
.alert.crit .ai { color: var(--rose); }
.alert.warn .ai { color: var(--amber); }
.alert.info .ai { color: var(--brand-600); }
.alert .at { font-size: 12.5px; font-weight: 650; color: var(--ink); }
.alert .ad { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.alert .atime { font-size: 10px; color: var(--ink-4); white-space: nowrap; }

/* ============================================================
   TRUST BAND
   ============================================================ */
.trust { padding: 38px 0; }
.trust .cap { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-4); }
.marquee { margin-top: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 34px; width: auto; object-fit: contain; opacity: .62; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.marquee-track img:hover { opacity: 1; filter: grayscale(0); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   STAT RIBBON
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 26px 24px; position: relative; overflow: hidden; }
.stat .ico { width: 22px; height: 22px; }
.stat .v { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 780; letter-spacing: -.02em; line-height: 1; margin-top: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 10px; }
.stat .s { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 22px; overflow: hidden; }
.pillar .picon { display: inline-flex; padding: 9px; border-radius: 11px; border: 1px solid var(--line); }
.pillar .picon svg { width: 18px; height: 18px; }
.pillar h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 650; margin-top: 16px; color: var(--ink); }
.pillar p { font-size: 13px; color: var(--ink-3); margin-top: 9px; line-height: 1.55; }
.pillar .pglow { position: absolute; top: -60px; right: -60px; width: 150px; height: 150px; border-radius: 50%; filter: blur(30px); opacity: .4; transition: opacity .3s; }
.pillar:hover .pglow { opacity: .85; }

/* ============================================================
   SHOWCASE (tabbed deep-dive)
   ============================================================ */
.show-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.show-tab {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line-2); background: #fff;
  transition: all .18s; box-shadow: var(--sh-xs);
}
.show-tab svg { width: 17px; height: 17px; }
.show-tab:hover { color: var(--ink); border-color: var(--line-3); }
.show-tab.active { color: #fff; background: linear-gradient(180deg, #3a78ff, var(--brand-600)); border-color: transparent; box-shadow: var(--sh-brand); }
.show-panel { display: none; margin-top: 40px; }
.show-panel.active { display: block; animation: panelIn .3s ease; }
.show-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 36px; align-items: center; }
@media (max-width: 940px) { .show-grid { grid-template-columns: 1fr; gap: 28px; } }
.show-feats { margin-top: 22px; display: grid; gap: 12px; }
.show-feat { display: flex; gap: 13px; align-items: flex-start; }
.show-feat .fi { flex-shrink: 0; display: inline-flex; padding: 8px; border-radius: 10px; border: 1px solid; }
.show-feat .fi svg { width: 17px; height: 17px; }
.show-feat h4 { font-family: var(--font-display); font-size: 14.5px; font-weight: 650; color: var(--ink); }
.show-feat p { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.show-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.show-foot li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.show-foot svg { width: 14px; height: 14px; color: var(--emerald); }

/* ============================================================
   MODULES
   ============================================================ */
.mod-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.mod-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-3); border: 1px solid var(--line-2); background: #fff; transition: all .16s;
}
.mod-tab .ct { font-family: var(--font-mono); font-size: 11px; background: var(--bg-tint-2); color: var(--ink-3); border-radius: 999px; padding: 1px 7px; }
.mod-hint { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 20px; min-height: 20px; }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
@media (max-width: 880px) { .mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mod-grid { grid-template-columns: 1fr; } }
.mod { padding: 22px; overflow: hidden; }
.mod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mod-ico { padding: 9px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-tint); display: inline-flex; }
.mod-ico svg { width: 17px; height: 17px; color: var(--ink-2); }
.mod-pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.mod h3 { font-family: var(--font-display); font-size: 15px; font-weight: 650; margin-top: 16px; color: var(--ink); line-height: 1.25; }
.mod .tl { font-family: var(--font-mono); font-size: 11.5px; color: var(--brand-600); margin-top: 4px; }
.mod p { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.mod .fields { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 780px; margin: 44px auto 0; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: background .2s, border-color .2s; overflow: hidden; }
.faq-item.open { background: var(--bg-tint); border-color: var(--line-2); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; text-align: left; }
.faq-q span { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; color: var(--ink); }
.faq-ic { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transition: transform .25s; }
.faq-item.open .faq-ic { transform: rotate(45deg); }
.faq-ic svg { width: 15px; height: 15px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 20px 20px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }

/* ============================================================
   CTA
   ============================================================ */
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(160deg, #0b1326 0%, #0e1830 55%, #0a1b3a 100%);
  color: #fff; padding: clamp(32px, 5vw, 60px);
}
.cta-card .glow { width: 480px; height: 360px; }
.cta-g1 { top: -120px; right: -80px; background: radial-gradient(ellipse at center, rgba(30,98,255,.4), transparent 70%); }
.cta-g2 { bottom: -160px; left: -100px; background: radial-gradient(ellipse at center, rgba(27,184,212,.26), transparent 70%); }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
@media (max-width: 880px) { .cta-grid { grid-template-columns: 1fr; gap: 28px; } }
.cta-card .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #dce6f7; }
.cta-card h2 { color: #fff; }
.cta-card h2 .grad-text { background: linear-gradient(110deg, #6ea0ff, #5ee0f5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cta-card .lead { color: #b9c6dd; margin-top: 18px; max-width: 520px; }
.cta-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-card .btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; box-shadow: none; }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,.14); }
.contact-cards { display: grid; gap: 12px; }
.ccard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .18s; }
.ccard:hover { background: rgba(255,255,255,.1); }
.ccard .ci { flex-shrink: 0; display: inline-flex; padding: 9px; border-radius: 10px; background: rgba(255,255,255,.08); }
.ccard .ci svg { width: 17px; height: 17px; }
.ccard .cl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8da3c4; }
.ccard .cv { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: #fff; margin-top: 2px; word-break: break-word; }
.ccard .arrow { margin-left: auto; color: #8da3c4; }
.ccard .arrow svg { width: 16px; height: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-tint); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer .brand img { height: 56px; }
.footer-about { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; margin-top: 16px; max-width: 320px; }
.footer-status { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-4); }
.footer-status .ld { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px rgba(16,185,129,.6); }
.fcol h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; margin-bottom: 14px; }
.fcol a { display: block; font-size: 13.5px; color: var(--ink-3); padding: 4px 0; transition: color .15s; }
.fcol a:hover { color: var(--ink); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-bottom .c { font-size: 12.5px; color: var(--ink-4); }
.footer-bottom .compliance { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); }

/* ============================================================
   MOBILE STICKY CTA
   ============================================================ */
.msticky { display: none; }
@media (max-width: 940px) {
  .msticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); display: flex; gap: 10px;
    transform: translateY(120%); transition: transform .3s ease;
  }
  .msticky.show { transform: translateY(0); }
  .msticky .btn { flex: 1; }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* below-the-fold paint optimization */
.cv { content-visibility: auto; contain-intrinsic-size: 1px 800px; }

/* ============================================================
   MOBILE RESPONSIVE REFINEMENTS
   Varios bloques (sobre todo los mocks del dashboard) declaran su
   layout en estilos INLINE: la cuadrícula de 12 columnas con
   grid-column:span N, y grid-template-columns inline en anti-fraude,
   KPIs y tarjetas. Un estilo inline le gana a un media query normal,
   así que aquí se colapsan con !important y selectores de atributo
   para que se acomoden bien en celular — sin tocar el HTML.
   ============================================================ */

/* show-grid (showcase + anti-fraude) debe apilarse aunque la sección
   traiga grid-template-columns inline (ej. anti-fraude: 1.1fr 0.9fr). */
@media (max-width: 940px) {
  .show-grid { grid-template-columns: 1fr !important; }
}

/* La cuadrícula de 12 columnas del dashboard → una sola columna en
   teléfonos; se anulan los span 4/5/7/8 puestos inline. */
@media (max-width: 640px) {
  .grid12 { grid-template-columns: 1fr !important; gap: 12px; }
  .grid12 > * { grid-column: auto !important; }
}

@media (max-width: 560px) {
  /* KPIs: forzar 2 columnas aunque el inline pida repeat(4,1fr). */
  .kpis { grid-template-columns: repeat(2, 1fr) !important; }

  /* Sub-grids inline sin clase, dentro de frames y tarjetas:
     3 columnas → 2, y los pares 1fr 1fr → apilados. */
  [style*="grid-template-columns:repeat(3,1fr)"]:not(.tanks) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Cilindros de tanque: 5 por fila es ilegible en móvil. */
  .tanks[style*="repeat(5,1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }

  /* Barras de concentración (anti-fraude): las columnas fijas de
     96px/86px no caben; se deja la etiqueta en auto. */
  .barrow[style*="96px"] { grid-template-columns: 64px 1fr auto !important; }
  .barrow .val .sev { white-space: nowrap; }
}

/* Barra de aviso: que el texto no quede debajo del botón de cerrar. */
@media (max-width: 640px) {
  .announce .row { padding-right: 42px; gap: 8px; font-size: 12px; line-height: 1.4; }
}

/* Hero: botones a ancho completo en pantallas muy chicas para mejor
   área de toque y para que no queden a medias. */
@media (max-width: 480px) {
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .msticky .btn { font-size: 14px; }
}

/* Footer: en teléfonos chicos el bloque de marca ocupa toda la fila
   y las columnas de enlaces quedan en 2. */
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
