/* NOOS Matrix — ICN compute leasing. Static mockup styles.
   Follows the noos-ecosystem-ui design system: dark HUD, neon-green accent,
   Orbitron/Rajdhani/Courier, sharp corners, no gradients/rounded corners. */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --green: #aaff00;
  --amber: #FBBF24;
  --blue: #60a5fa;
  --red: rgba(255, 70, 70, 0.9);
  --bg: #080808;
  --dim: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.08);
  --section-bg: rgba(255, 255, 255, 0.018);
  --tile-bg: rgba(0, 0, 0, 0.25);
  --t-title: 'Orbitron', sans-serif;
  --t-body: 'Rajdhani', sans-serif;
  --t-mono: 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--t-body);
  -webkit-font-smoothing: antialiased;
}

.t { font-family: var(--t-title); }
.m { font-family: var(--t-mono); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 0 48px; }

/* ── Top nav ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
}
.brand {
  font-family: var(--t-title);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
}
.brand span { color: var(--green); }
.navlinks { display: flex; gap: 22px; align-items: center; }
.navlink {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  line-height: 1;
}
.navlink:hover { color: rgba(255, 255, 255, 0.8); }
.navlink.active { color: var(--green); }
.navlink.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--green);
}

.wallet { display: flex; align-items: center; gap: 10px; }

/* ── Labels & badges ── */
.lbl {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.b-green { border-color: rgba(170, 255, 0, 0.5); color: var(--green); }
.b-amber { border-color: rgba(251, 191, 36, 0.6); color: var(--amber); }
.b-blue  { border-color: rgba(96, 165, 250, 0.6); color: var(--blue); }
.b-red   { border-color: rgba(255, 70, 70, 0.6); color: rgba(255, 90, 90, 0.95); }
.b-gray  { border-color: rgba(255, 255, 255, 0.2); color: var(--dim); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-sm { width: 6px; height: 6px; margin-right: 5px; }

/* ── Section shell ── */
.sec { border: 1px solid var(--border); margin: 0 24px 14px; }
.sec-h {
  padding: 10px 16px;
  background: var(--section-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sec-t {
  font-family: var(--t-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
}
.sec-b { padding: 16px; }

/* ── Buttons ── */
.btn-primary {
  font-family: var(--t-title);
  background: var(--green);
  color: var(--bg);
  border: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary.lg { font-size: 14px; padding: 13px 34px; }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--dim);
  font-family: var(--t-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 20px;
  cursor: pointer;
}
.btn-outline:hover { border-color: #fff; color: #fff; }

.sbtn {
  background: transparent;
  border: 1px solid rgba(170, 255, 0, 0.35);
  color: var(--green);
  font-family: var(--t-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  cursor: pointer;
}
.sbtn:hover { background: rgba(170, 255, 0, 0.08); }

/* ── Stat tiles ── */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.tile { border: 1px solid var(--border); background: var(--tile-bg); padding: 14px; }
.tile .num { font-family: var(--t-title); font-size: 22px; font-weight: 700; line-height: 1; color: #fff; }
.tile .num .u { font-size: 12px; color: var(--dim); }

/* ── Tables ── */
.tbl-h, .tbl-r { display: grid; align-items: center; }
.tbl-h { padding: 9px 16px; border-bottom: 1px solid var(--border); }
.tbl-r { padding: 10px 16px; }
.tbl-r:nth-child(even) { background: rgba(255, 255, 255, 0.01); }
.tbl-r:hover { background: rgba(255, 255, 255, 0.02); }
.tbl-r.mine { background: rgba(170, 255, 0, 0.06); outline: 1px solid rgba(170, 255, 0, 0.3); outline-offset: -1px; }

/* ── Toggle ── */
.tog { width: 42px; height: 22px; border: 1px solid; position: relative; cursor: pointer; flex-shrink: 0; }
.tog .knob { position: absolute; top: 2px; width: 16px; height: 16px; transition: all 0.15s; }
.tog.on { border-color: rgba(170, 255, 0, 0.5); background: rgba(170, 255, 0, 0.12); }
.tog.on .knob { right: 2px; background: var(--green); }
.tog.off { border-color: rgba(255, 255, 255, 0.15); background: transparent; }
.tog.off .knob { left: 2px; background: rgba(255, 255, 255, 0.3); }

/* ── Model chips ── */
.chip { padding: 3px 9px; border: 1px solid rgba(255, 255, 255, 0.12); font-size: 11px; color: rgba(255, 255, 255, 0.7); }
.chip.active { border-color: rgba(170, 255, 0, 0.25); color: var(--green); }

.row-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.row-line:last-child { border: none; }

a.tx { color: var(--blue); text-decoration: none; }
a.tx:hover { text-decoration: underline; }

/* ── Status color map (shared) ── */
.s-idle    { color: var(--green); }
.s-in_use  { color: var(--blue); }
.s-training{ color: var(--amber); }
.s-offline { color: var(--dim); }
.bg-idle    { background: var(--green); }
.bg-in_use  { background: var(--blue); }
.bg-training{ background: var(--amber); }
.bg-offline { background: rgba(255,255,255,0.18); }

/* ── Fleet heatmap ── */
.heat {
  display: grid;
  grid-template-columns: repeat(auto-fill, 16px);
  gap: 4px;
}
.cell {
  width: 16px; height: 16px;
  border: 1px solid transparent;
  cursor: pointer;
}
.cell.off { background: transparent !important; border-color: rgba(255,255,255,0.14); }
.cell:hover { outline: 1px solid #fff; outline-offset: 1px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.legend .li { display: flex; align-items: center; gap: 6px; }
.legend .sw { width: 11px; height: 11px; }

/* ── Filter bar ── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 24px; }
.fchips { display: flex; gap: 6px; }
.fchip {
  font-family: var(--t-body);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--dim);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; cursor: pointer;
}
.fchip:hover { color: #fff; }
.fchip.active { border-color: rgba(170,255,0,0.5); color: var(--green); background: rgba(170,255,0,0.06); }
.search {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--t-mono);
  font-size: 12px;
  padding: 7px 12px;
  width: 160px;
}
.search::placeholder { color: rgba(255,255,255,0.35); }
.search:focus { outline: none; border-color: rgba(170,255,0,0.5); }

/* ── Checkboxes ── */
.cb {
  width: 15px; height: 15px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cb.on { background: var(--green); border-color: var(--green); }
.cb.on::after { content: '✓'; color: var(--bg); font-size: 11px; font-weight: 700; }

/* ── Bulk action bar ── */
.bulkbar {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 24px 12px;
  padding: 10px 16px;
  border: 1px solid rgba(170,255,0,0.4);
  background: rgba(170,255,0,0.06);
}

/* ── Pagination ── */
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 12px 24px; }
.pbtn {
  background: transparent; border: 1px solid rgba(255,255,255,0.12); color: var(--dim);
  font-family: var(--t-mono); font-size: 12px; padding: 5px 11px; cursor: pointer; min-width: 32px;
}
.pbtn:hover:not(:disabled) { color: #fff; }
.pbtn.active { border-color: rgba(170,255,0,0.5); color: var(--green); }
.pbtn:disabled { opacity: 0.3; cursor: default; }

/* ── Drawer + modal overlay (real page, fixed allowed) ── */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px); z-index: 50; display: none;
}
.overlay.show { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 92vw;
  background: var(--bg); border-left: 1px solid var(--border); z-index: 60;
  transform: translateX(100%); transition: transform 0.2s; overflow-y: auto;
}
.drawer.show { transform: translateX(0); }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 460px; max-width: 92vw; max-height: 88vh; overflow-y: auto;
  background: var(--bg); border: 1px solid rgba(170,255,0,0.3); z-index: 60; display: none;
}
.modal.show { display: block; }
.dh {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--section-bg);
}
.xbtn { background: none; border: none; color: var(--dim); font-size: 20px; cursor: pointer; line-height: 1; }
.xbtn:hover { color: #fff; }

/* range slider, NOOS style */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: rgba(255,255,255,0.15); cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: var(--green); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; background: var(--green); border: none; cursor: pointer; }

/* ════════ Landing page (Network) — editorial, not boxed ════════ */

/* Hero with faint HUD grid backdrop + brand matrix motif */
.hero {
  position: relative;
  padding: 60px 24px 48px;
  border-bottom: 1px solid var(--border);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,0.022) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,0.022) 31px 32px);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: center; }
.h1 { font-family: var(--t-title); font-size: 42px; font-weight: 900; letter-spacing: 0.01em; color: #fff; line-height: 1.08; }
.h1 .g { color: var(--green); }
.matrix-viz { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.mcell { aspect-ratio: 1; background: rgba(255,255,255,0.05); }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } .matrix-viz { display: none; } }

/* Grand section bands — space + scale, no dividing frames */
.band { padding: 66px 24px; }
.band.alt { background: rgba(255,255,255,0.013); }
.gridbg {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,0.02) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,0.02) 31px 32px);
}
.kicker { font-family: var(--t-body); font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.htitle { font-family: var(--t-title); font-size: 30px; font-weight: 900; letter-spacing: 0.02em; color: #fff; line-height: 1.12; }
.htitle .dim { color: var(--dim); }

/* Big open metrics — units kept inline as a short suffix, never wrapping */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px 20px; align-items: start; }
.metric .mv { font-family: var(--t-title); font-size: 42px; font-weight: 900; line-height: 1; color: #fff; white-space: nowrap; }
.metric .mv .us { font-size: 17px; font-weight: 700; color: var(--dim); margin-left: 2px; }
.metric .ml { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-top: 12px; white-space: nowrap; }

/* How it works — giant outline numbers */
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 44px 36px; margin-top: 42px; }
.onum { font-family: var(--t-title); font-size: 80px; font-weight: 900; line-height: 0.85; color: transparent; -webkit-text-stroke: 1.5px rgba(170,255,0,0.45); margin-bottom: 20px; }
.steptitle { font-family: var(--t-title); font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }

/* Why — open feature columns */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 38px; margin-top: 42px; }
.feattag { font-family: var(--t-mono); color: var(--green); font-size: 13px; margin-bottom: 12px; }
.feattitle { font-family: var(--t-title); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }

/* Pricing — big open numbers */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 34px; margin-top: 38px; }
.price .pv { font-family: var(--t-title); font-size: 34px; font-weight: 800; color: var(--green); line-height: 1; }
.price .pv .u { font-size: 12px; color: var(--dim); }

/* Landing tables — airy, hairline rows only (no surrounding box) */
.ltbl { margin-top: 34px; }
.ltbl .lh, .ltbl .lr { display: grid; align-items: center; }
.ltbl .lh { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.ltbl .lr { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ltbl .lr:hover { background: rgba(255,255,255,0.015); }
