/* ==========================================================================
   INTER DATA — Stylesheet
   Archetype : « Datacenter status dashboard »
   Persistent status bar · metrics rail · service grid (spec tables) · ticker
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  /* palette — deep navy + steel blue + status green */
  --navy-950: #04070d;
  --navy-900: #070d17;
  --navy-800: #0b1626;
  --navy-700: #10203a;
  --steel-600: #1b3a5e;
  --steel-500: #24507f;
  --steel-400: #2f6aa8;
  --steel-300: #5d8fc4;
  --steel-200: #8fb2d8;
  --steel-100: #c3d5ea;
  --green-600: #12984a;
  --green-500: #21c560;
  --green-400: #2fe07a;
  --green-300: #52e995;
  --green-100: #d3f9e3;
  --amber-500: #f5a623;
  --amber-400: #ffb93b;
  --red-500: #e5484d;
  --text: #e6edf6;
  --text-muted: #9fb1c7;
  --text-dim: #6c82a0;
  --line: rgba(93, 143, 196, 0.16);
  --line-strong: rgba(93, 143, 196, 0.32);
  --panel: rgba(11, 22, 38, 0.78);
  --panel-solid: #0b1626;
  --radius: 10px;
  --radius-sm: 6px;
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --maxw: 1240px;
  --sb-h: 32px;             /* status bar height */
  --hd-h: 58px;             /* header height */
  --rack-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%233d7ec2' stroke-opacity='0.09'%3E%3Crect x='9' y='7' width='9' height='106' rx='4'/%3E%3Crect x='24' y='7' width='9' height='106' rx='4'/%3E%3Crect x='39' y='7' width='9' height='106' rx='4'/%3E%3Crect x='54' y='7' width='9' height='106' rx='4'/%3E%3Crect x='69' y='7' width='9' height='106' rx='4'/%3E%3Crect x='84' y='7' width='9' height='106' rx='4'/%3E%3Crect x='99' y='7' width='9' height='106' rx='4'/%3E%3C/g%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background-color: var(--navy-900);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1100px 560px at 84% -4%, rgba(47, 106, 168, 0.22), transparent 62%),
    radial-gradient(820px 460px at 2% 10%, rgba(33, 197, 96, 0.07), transparent 56%);
  background-attachment: fixed;
}

/* faint slot motif overlay (server-rack front) */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  opacity: 0.35;
  background-image:
    var(--rack-pattern),
    linear-gradient(rgba(93,143,196,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,143,196,0.04) 1px, transparent 1px);
  background-size: 120px 120px, 42px 42px, 42px 42px;
}

a { color: var(--green-400); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; color: #fff;
}
h1 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.08rem; }
h4 { font-size: 0.98rem; }

p { color: var(--text-muted); }
strong { color: var(--text); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

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

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* anchor offset under the two sticky bars */
section[id], .page-hero[id], main[id] { scroll-margin-top: calc(var(--sb-h) + var(--hd-h) + 16px); }

/* ==========================================================================
   1. PERSISTENT STATUS BAR
   ========================================================================== */

.statusbar {
  position: sticky; top: 0; z-index: 70; height: var(--sb-h);
  background: #05090f;
  border-bottom: 1px solid rgba(33, 197, 96, 0.28);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
}
.statusbar-inner { display: flex; align-items: center; justify-content: space-between; height: var(--sb-h); gap: 14px; }
.statusbar .sb-line { display: flex; align-items: center; gap: 14px; min-width: 0; }
.statusbar .sb-right { justify-content: flex-end; }
.sb-status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-300); text-transform: uppercase; white-space: nowrap; font-weight: 600;
}
.sb-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(33,197,96,.7); animation: pulse 1.8s ease-out infinite;
}
.sb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sb-k { color: var(--text-dim); text-transform: uppercase; font-size: 0.62rem; }
.sb-v { color: var(--steel-200); font-weight: 600; }
.sb-v.vgreen { color: var(--green-300); }
.sb-zone { display: inline-flex; align-items: center; gap: 6px; }
.flag { width: 21px; height: 14px; border-radius: 2px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(195,213,234,.18); }
.sb-clock { color: var(--steel-100); font-weight: 600; min-width: 70px; text-align: right; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(33,197,96,.7); }
  60%  { box-shadow: 0 0 0 7px rgba(33,197,96,0); }
  100% { box-shadow: 0 0 0 0 rgba(33,197,96,0); }
}
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   2. HEADER — compact dashboard toolbar
   ========================================================================== */

.site-header {
  position: sticky; top: var(--sb-h); z-index: 60;
  background: rgba(7, 13, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--hd-h); gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 0.92rem; letter-spacing: 0.1em; color: #fff; }
.brand-text small { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px; width: 40px; height: 40px;
  align-items: center; justify-content: center; background: var(--panel-solid);
  border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .18s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1px; }
.site-nav a {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--text-muted);
  padding: 7px 10px; border-radius: 6px; text-decoration: none; transition: .14s; white-space: nowrap; letter-spacing: 0.02em;
}
.site-nav a:hover { color: #fff; background: rgba(93,143,196,.12); text-decoration: none; }
.site-nav a.active { color: var(--green-300); background: rgba(33,197,96,.07); box-shadow: inset 0 -2px 0 var(--green-500); }
.nav-cta {
  margin-left: 8px; border: 1px solid var(--green-500); color: var(--green-300) !important;
  background: rgba(33,197,96,.08) !important; box-shadow: none;
}
.nav-cta:hover { background: rgba(33,197,96,.18) !important; }

/* Language switcher (EN | FR) */
.lang-switch {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  white-space: nowrap;
}
.lang-switch a { color: var(--text-dim); text-decoration: none; padding: 4px 6px; border-radius: 5px; transition: .14s; }
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch a.active { color: var(--green-300); background: rgba(33,197,96,.1); }
.lang-switch .lang-sep { color: var(--text-dim); opacity: .5; }

@media (max-width: 1120px) {
  .site-nav a { padding: 7px 7px; font-size: 0.68rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--hd-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 3px;
    background: rgba(5,9,15,.99); border-bottom: 1px solid var(--line-strong);
    padding: 12px 22px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; font-size: 0.85rem; border-radius: 7px; }
  .nav-cta { margin-left: 0; text-align: center; }
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  padding: 11px 18px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; transition: all .16s ease; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--green-400), var(--green-500));
  color: #041c0c; box-shadow: 0 6px 18px rgba(33,197,96,.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(33,197,96,.36); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-300); }
.btn-small { padding: 8px 13px; font-size: 0.8rem; }
.arrow { font-family: var(--font-mono); transition: transform .16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   4. HOME DASHBOARD
   ========================================================================== */

.dash { padding: 30px 0 10px; }
.dash-head { margin-bottom: 22px; }
.dash-head h1 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); letter-spacing: -0.01em; }
.dash-head h1 .accent { color: var(--green-300); }
.dash-head .lead { font-size: 0.98rem; max-width: 760px; margin-top: 10px; }
.dash-head .head-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); margin-top: 8px; letter-spacing: 0.05em; }

.dash-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }

/* ---- LEFT metrics rail ---- */
.metrics-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: sticky; top: calc(var(--sb-h) + var(--hd-h) + 16px);
}
.panel-title {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel-200); padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(93,143,196,.06);
}
.panel-title .live { color: var(--green-300); display: inline-flex; align-items: center; gap: 6px; }
.panel-title .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); animation: blink 1.2s steps(1) infinite; }

.metric-cell { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.metric-cell:last-child { border-bottom: 0; }
.mc-label { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.mc-val { display: block; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--green-300); line-height: 1.1; margin-top: 5px; font-variant-numeric: tabular-nums; }
.mc-meta { display: block; font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-dim); margin-top: 5px; }
.mc-bars { display: flex; gap: 3px; margin-top: 9px; height: 8px; align-items: flex-end; }
.mc-bars i { flex: 1; background: var(--green-600); border-radius: 2px; opacity: .85; animation: pulse 2.2s ease-in-out infinite; }
.mc-bars i:nth-child(2) { height: 60%; animation-delay: .3s; }
.mc-bars i:nth-child(3) { height: 80%; animation-delay: .5s; }
.mc-bars i:nth-child(4) { height: 46%; animation-delay: .7s; }
.mc-bars i:nth-child(5) { height: 72%; animation-delay: .9s; }
.mc-bars i:nth-child(6) { height: 56%; animation-delay: 1.1s; }
.mc-bars i:nth-child(7) { height: 88%; animation-delay: 1.3s; }
.mc-bars i:nth-child(8) { height: 62%; animation-delay: 1.5s; }

.metrics-cta { padding: 12px 14px; border-top: 1px solid var(--line); }
.metrics-cta .btn { width: 100%; justify-content: center; }

/* system log (compact terminal) */
.syslog { border-top: 1px solid var(--line); background: #05090f; padding: 10px 14px 12px; font-family: var(--font-mono); font-size: 0.66rem; line-height: 1.7; color: var(--text-dim); }
.syslog .sl-title { color: var(--steel-200); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.58rem; margin-bottom: 4px; }
.syslog .sl-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.syslog .ok { color: var(--green-400); }
.syslog .prompt { color: var(--green-400); }

/* ---- MAIN service panel ---- */
.service-panel { min-width: 0; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.panel-head h2 { font-size: 1.05rem; }
.panel-head .panel-count { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.service-tile {
  position: relative; display: flex; flex-direction: column; gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .18s, transform .18s, box-shadow .18s; color: var(--text);
}
.service-tile:hover { border-color: rgba(33,197,96,.5); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.4); text-decoration: none; }
.service-tile::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent); opacity: .5;
}
.service-tile .st-head { padding: 14px 14px 8px; }
.service-tile .st-head .st-code { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; }
.service-tile h3 { font-size: 1.02rem; }
.service-tile .st-desc { font-size: 0.82rem; color: var(--text-muted); padding: 0 14px 10px; }
.service-tile .spec-table { border-top: 1px solid var(--line); margin-top: auto; }
.service-tile .st-cta {
  display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--green-400); padding: 9px 14px; border-top: 1px solid var(--line); background: rgba(33,197,96,.04);
}

/* mini spec table inside a tile */
table.spec-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.spec-table th, .spec-table td { padding: 6px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); width: 34%; white-space: nowrap; background: rgba(93,143,196,.05);
}
.spec-table td { font-family: var(--font-mono); color: var(--steel-200); font-variant-numeric: tabular-nums; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   5. TICKER (infra events)
   ========================================================================== */

.ticker-wrap { padding: 18px 0 4px; }
.ticker {
  display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel-solid);
}
.ticker-label {
  flex: 0 0 auto; display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #041c0c; background: var(--green-500); padding: 0 14px; font-weight: 700;
}
.ticker-viewport { flex: 1 1 auto; overflow: hidden; }
.ticker-track { display: flex; list-style: none; width: max-content; animation: tick 40s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track li {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); white-space: nowrap;
  padding: 9px 26px; display: inline-flex; align-items: center; gap: 10px;
}
.ticker-track li a { color: var(--steel-200); }
.ticker-track li .tstamp { color: var(--green-300); font-weight: 600; }
.ticker-track li .tsep { color: var(--text-dim); }
@keyframes tick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================================================
   6. SECTIONS & CONTAINERS (shared with subpages)
   ========================================================================== */

.section { padding: 44px 0; }
.section.alt { background: rgba(11, 22, 38, 0.42); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green-300); margin-bottom: 10px; display: inline-block;
}
.section-head p { margin-top: 12px; font-size: 0.96rem; }

/* sub-page hero — compact "system" header instead of marketing hero */
.page-hero { padding: 30px 0 22px; border-bottom: 1px solid var(--line); background: rgba(11,22,38,.35); }
.page-hero .lead { font-size: 0.98rem; max-width: 680px; margin-top: 12px; }
.page-hero h1 { font-size: clamp(1.4rem, 3vw, 2.1rem); }

.breadcrumb { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-dim); margin-bottom: 12px; letter-spacing: 0.04em; }
.breadcrumb a { color: var(--steel-200); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-300);
  border: 1px solid rgba(33,197,96,.35); background: rgba(33,197,96,.08);
  padding: 6px 11px; border-radius: 6px; margin-bottom: 14px;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 10px var(--green-500); animation: blink 1.6s steps(1) infinite; }

/* ==========================================================================
   7. GRID & CARD (subpages)
   ========================================================================== */

.grid { display: grid; gap: 14px; }
.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 {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; transition: border-color .18s, transform .18s;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.card:hover { border-color: var(--line-strong); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent); opacity: 0; transition: opacity .18s;
}
.card:hover::before { opacity: 1; }
.card-icon { width: 34px; height: 34px; color: var(--green-400); }
.card h3 { color: #fff; }
.card p { font-size: 0.88rem; }
.card .card-link { margin-top: auto; font-family: var(--font-mono); font-size: 0.76rem; color: var(--green-400); display: inline-flex; align-items: center; gap: 6px; }
.card .tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.05em;
  color: var(--steel-200); border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: 5px;
}

/* ==========================================================================
   8. METRICS / STATS
   ========================================================================== */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: left;
}
.stat .val { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; color: var(--green-300); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.stat .sub { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-dim); margin-top: 4px; }

/* uptime bars */
.uptime-bar { margin-bottom: 15px; }
.uptime-bar:last-child { margin-bottom: 0; }
.uptime-bar .ub-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; margin-bottom: 6px; }
.uptime-bar .ub-head .k { color: var(--steel-200); }
.uptime-bar .ub-head .v { color: var(--green-300); }
.uptime-track { height: 7px; background: var(--navy-700); border-radius: 999px; overflow: hidden; }
.uptime-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-600), var(--green-400)); box-shadow: 0 0 10px rgba(33,197,96,.35); }

.status-dot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; }
.status-dot .d { width: 9px; height: 9px; border-radius: 50%; }
.status-dot .d.ok { background: var(--green-500); box-shadow: 0 0 10px var(--green-500); }
.status-dot .d.warn { background: var(--amber-500); box-shadow: 0 0 10px var(--amber-500); }
.status-dot .d.down { background: var(--red-500); box-shadow: 0 0 10px var(--red-500); }

/* ==========================================================================
   9. SERVER RACK COMPONENT (LED motif)
   ========================================================================== */

.rack { display: flex; flex-direction: column; gap: 5px; background: var(--rack-pattern), var(--panel-solid); background-size: 120px 120px; padding: 10px; border-radius: var(--radius); }
.rack-unit {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  background: rgba(7,13,23,.72); border: 1px solid var(--line); border-radius: 7px;
}
.rack-unit .led { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.rack-unit .led.on { background: var(--green-500); box-shadow: 0 0 8px var(--green-500); }
.rack-unit .led.blink { background: var(--amber-500); box-shadow: 0 0 8px var(--amber-500); animation: blink 1s steps(1) infinite; }
.rack-unit .led.off { background: #22314a; }
.rack-unit .ru-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); flex: 0 0 auto; }
.rack-unit .ru-name { font-size: 0.8rem; color: var(--text); flex: 1 1 auto; }
.rack-unit .ru-meta { font-family: var(--font-mono); font-size: 0.66rem; color: var(--steel-300); }
.rack-rails { display: flex; justify-content: space-between; padding: 0 4px 2px; font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.08em; }

/* ==========================================================================
   10. TERMINAL
   ========================================================================== */

.terminal {
  background: #05090f; border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden;
}
.term-head {
  display: flex; align-items: center; gap: 7px; padding: 11px 15px;
  background: rgba(93,143,196,.09); border-bottom: 1px solid var(--line);
}
.term-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.term-head .dot.r { background: #f36d66; }
.term-head .dot.y { background: #f5c04e; }
.term-head .dot.g { background: #3bbf6f; }
.term-title { margin-left: auto; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-dim); letter-spacing: 0.08em; }
.term-body { padding: 16px 16px; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7; overflow-x: auto; }
.term-body .ln { white-space: pre; }
.term-body .p { color: var(--green-400); }
.term-body .c { color: var(--text-dim); }
.term-body .o { color: var(--steel-200); }
.term-body .ok { color: var(--green-400); }
.term-body .cursor { display: inline-block; width: 7px; height: 13px; background: var(--green-400); vertical-align: middle; animation: blink 1.1s steps(1) infinite; }

/* ==========================================================================
   11. TABLES (subpages / legal)
   ========================================================================== */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-200); background: rgba(93,143,196,.08); }
td { color: var(--text-muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(93,143,196,.05); }
td strong { color: var(--text); }
td.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--steel-100);
}
.badge.green { color: var(--green-300); border-color: rgba(33,197,96,.4); background: rgba(33,197,96,.08); }
.badge.amber { color: var(--amber-400); border-color: rgba(245,166,35,.4); background: rgba(245,166,35,.08); }

blockquote { border-left: 3px solid var(--green-500); background: rgba(33,197,96,.05); }

/* ==========================================================================
   12. LISTS
   ========================================================================== */

.checklist { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.checklist li { position: relative; padding-left: 27px; color: var(--text-muted); font-size: 0.9rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  background: var(--green-500) center/11px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.checklist li strong { color: var(--text); }

/* ==========================================================================
   13. SPLIT / FEATURE ROWS
   ========================================================================== */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.split .media { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

/* ==========================================================================
   14. FORMS
   ========================================================================== */

.form-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--steel-100); }
.field label .req { color: var(--green-400); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  background: var(--navy-900); border: 1px solid var(--line-strong);
  border-radius: 7px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(33,197,96,.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: 0.72rem; color: var(--text-dim); }
.field input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green-500); }

.form-success {
  display: none; margin-top: 16px; padding: 15px 17px; border-radius: 8px;
  background: rgba(33,197,96,.1); border: 1px solid rgba(33,197,96,.4); color: var(--green-100);
}
.form-success.show { display: block; }

/* ==========================================================================
   15. BLOG / POST CARDS
   ========================================================================== */

.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); display: flex; gap: 10px; align-items: center; }
.post-card p { flex: 1 1 auto; }

/* ==========================================================================
   16. FOOTER — system footer w/ rack LED strip
   ========================================================================== */

.site-footer {
  margin-top: 30px; background: var(--navy-950);
  border-top: 1px solid var(--line-strong); padding: 0 0 0;
}
.site-footer::before {
  content: ""; display: block; height: 6px;
  background: repeating-linear-gradient(90deg, var(--green-500) 0 6px, #0a1a12 6px 14px);
  opacity: .65;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding: 36px 0 28px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 0.82rem; }
.footer-col h3 {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--steel-200); margin-bottom: 12px;
}
.footer-col a { display: block; color: var(--text-muted); font-size: 0.84rem; padding: 4px 0; }
.footer-col a:hover { color: var(--green-300); text-decoration: none; }
.footer-legal { border-top: 1px solid var(--line); padding: 18px 0 20px; }
.footer-legal p { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 4px; }
.footer-legal strong { color: var(--steel-100); }
.footer-legal .footer-muted { margin-top: 10px; }

/* ==========================================================================
   17. COOKIE CONSENT BANNER
   ========================================================================== */

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(5,9,15,.98); border-top: 1px solid var(--line-strong);
  padding: 16px 0; transform: translateY(120%); transition: transform .3s ease;
}
.consent.show { transform: translateY(0); }
.consent-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.consent-text { flex: 1 1 300px; font-size: 0.82rem; color: var(--text-muted); }
.consent-text a { color: var(--green-300); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-decline { background: transparent; border: 1px solid var(--line-strong); color: var(--text-muted); }
.btn-decline:hover { color: var(--text); border-color: var(--steel-300); }

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .dash-grid { grid-template-columns: 1fr; }
  .metrics-panel { position: static; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .lang-switch { margin-left: 6px; padding-left: 6px; font-size: 0.68rem; }
  .statusbar .sb-item:nth-child(1), .statusbar .sb-item:nth-child(2) { display: none; }
  .service-grid, .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
  .dash { padding: 20px 0 6px; }
  .split .media { order: 1; }
}

/* Motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .mc-bars i, .sb-dot, .kicker .dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
