/* ==========================================================================
   dayz.fyi — Enterprise Sector design system
   Hand-rolled token stylesheet (replaces Bootstrap). Premium cybersecurity
   register: deep-space canvas, gradient surfaces, electric-blue signature,
   crimson reserved for danger/malicious signals. Geist headings / Inter body.
   ========================================================================== */

:root {
  /* surfaces */
  --bg:#07080A;
  --surface-top:#12151c;
  --surface-bot:#0e1015;
  --surface-2:#0d0f14;
  --surface-inset:#07080a;

  /* text */
  --text:#c8ccd4;
  --heading:#f4f6f9;
  --muted:#828995;
  --faint:#5b626d;

  /* accent (signature) */
  --accent:#3B82F6;
  --accent-press:#2f6fe0;
  --on-accent:#ffffff;
  --accent-wash:#3B82F61c;
  --accent-line:#3B82F644;

  /* semantic */
  --danger:#EF4444; --danger-wash:#EF44441a; --danger-line:#EF444433;
  --good:#22C55E;   --good-wash:#22C55E1a;
  --warn:#f59e0b;   --warn-wash:#f59e0b1a;

  /* lines */
  --border:#1b1f27;
  --border-strong:#2a303b;
  --hairline:#ffffff0d;

  --radius:4px;
  --radius-lg:6px;
  --radius-pill:100px;

  --shadow-card:0 12px 32px -20px #000c, inset 0 1px 0 0 #ffffff10;

  --font-display:'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-body:'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
/* atmosphere: dual glow + faint grid */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 480px at 84% -12%, #3B82F614, transparent 60%),
    radial-gradient(760px 420px at -8% 8%, #EF44440a, transparent 62%),
    linear-gradient(#ffffff03 1px, transparent 1px),
    linear-gradient(90deg, #ffffff03 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); color: var(--heading); letter-spacing: -.02em; font-weight: 700; margin: 0 0 .5em; }
code, .mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ---------- layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
main.wrap { padding-top: 8px; padding-bottom: 80px; }
.stack > * + * { margin-top: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt-2{margin-top:8px}.mt-3{margin-top:16px}.mt-4{margin-top:24px}.mb-3{margin-bottom:16px}.mb-4{margin-bottom:24px}

/* ---------- topbar / nav ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: #07080acc; backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 26px; padding: 14px 0; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--heading); letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 22px; height: 22px; border-radius: 5px; background: linear-gradient(150deg,#3B82F6,#2563eb); position: relative; box-shadow: 0 0 0 1px #3B82F655, 0 6px 16px -6px #3B82F6aa; flex: none; }
.brand .mark::after { content: ""; position: absolute; inset: 6px; border: 2px solid #fff; border-radius: 50%; opacity: .92; clip-path: polygon(0 0,100% 0,100% 50%,0 50%); }
.brand .dot { color: var(--accent); }
.nav .links { display: flex; gap: 20px; }
.nav .links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav .links a:hover { color: var(--heading); text-decoration: none; }
.nav .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none; font-family: var(--font-body); font-weight: 600; font-size: 14.5px; padding: 11px 18px; border-radius: var(--radius); transition: transform .1s, filter .15s, box-shadow .15s, border-color .15s, background .15s; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg,#4188f7,#3B82F6); color: var(--on-accent); box-shadow: 0 1px 0 0 #ffffff30 inset, 0 10px 24px -12px #3B82F6cc; }
.btn-outline { background: #ffffff06; color: var(--text); border: 1px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--accent-line); color: var(--heading); background: var(--accent-wash); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger-line); }
.btn-danger:hover { background: var(--danger-wash); color: #ffb4b4; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-link { background: none; color: var(--muted); padding: 11px 6px; }
.btn-link:hover { color: var(--heading); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-locked { background: transparent; color: var(--faint); border: 1px dashed var(--border-strong); cursor: not-allowed; font-weight: 500; }

/* ---------- cards / panels ---------- */
.card { background: linear-gradient(180deg,var(--surface-top),var(--surface-bot)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card); position: relative; }
.card.hoverable { transition: transform .15s, border-color .15s; }
.card.hoverable:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.card h2, .card h3 { letter-spacing: -.015em; }
.card-title { font-size: 18px; margin-bottom: 14px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 48px; max-width: 740px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: var(--accent-wash); border: 1px solid var(--accent-line); padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 22px; }
.eyebrow .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px 1px var(--accent); }
.hero h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.03; letter-spacing: -.035em; margin: 0 0 18px; }
.hero h1 .grad { background: linear-gradient(180deg,#fff,#9fb8e6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 560px; line-height: 1.6; }
.hero .lead b { color: var(--text); font-weight: 600; }
.cta-row { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; }
.steam-link { font-size: 13.5px; color: var(--muted); border-bottom: 1px dotted var(--border-strong); }
.steam-link:hover { color: var(--text); text-decoration: none; }

/* ---------- section heads ---------- */
.section { padding: 30px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.section-head h2 { font-size: 22px; margin: 0; }
.section-head .sub { color: var(--faint); font-size: 13px; font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- server cards / directory ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.srv h3 { font-size: 16.5px; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { font-size: 10.5px; font-family: var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: #ffffff08; border: 1px solid var(--border); padding: 3px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.popline { display: flex; align-items: baseline; gap: 8px; }
.popline .n { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--heading); }
.popline .u { font-size: 13px; color: var(--muted); }
.livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; animation: pulse 2.2s infinite; }
.livedot.cold { background: var(--faint); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #22C55E80; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- stat grid (server detail) ---------- */
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface-bot); padding: 14px 16px; }
.stat .k { font-size: 10.5px; font-family: var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.stat .v { font-family: var(--font-display); font-weight: 700; color: var(--heading); font-size: 22px; letter-spacing: -.02em; }
.stat .v.dim { color: var(--muted); font-weight: 600; font-size: 15px; }
.stat .v code { font-size: 13px; color: var(--muted); }

/* ---------- badges ---------- */
.badge { font-size: 11px; font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-good { background: var(--good-wash); color: var(--good); }
.badge-muted { background: #ffffff08; color: var(--muted); border: 1px solid var(--border); }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; max-width: 560px; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.input, .select { width: 100%; padding: 11px 13px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface-inset); color: var(--heading); font-family: var(--font-body); font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
.input.mono { font-family: var(--font-mono); font-size: 13.5px; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.input:disabled, .select:disabled { opacity: .55; cursor: not-allowed; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.check { display: flex; align-items: center; gap: 9px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.input-group { display: flex; gap: 0; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ---------- alerts / flash ---------- */
.alert { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; border-radius: var(--radius); padding: 11px 14px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); }
.alert .ico { font-family: var(--font-mono); font-weight: 700; flex: none; }
.alert-info { border-color: var(--accent-line); background: var(--accent-wash); color: #cfe0ff; }
.alert-danger { border-color: var(--danger-line); border-left: 2px solid var(--danger); background: var(--danger-wash); color: #ffc9c9; }
.alert-danger b { color: #ffb4b4; }
.alert-warning { border-color: #f59e0b44; background: var(--warn-wash); color: #ffe2ab; }
.alert-success { border-color: #22C55E44; background: var(--good-wash); color: #b6f0c8; }

/* ---------- breadcrumb ---------- */
.crumb { display: flex; gap: 8px; align-items: center; list-style: none; padding: 0; margin: 4px 0 20px; font-size: 13px; color: var(--faint); font-family: var(--font-mono); }
.crumb li::after { content: "/"; margin-left: 8px; color: var(--border-strong); }
.crumb li:last-child::after { content: ""; }
.crumb a { color: var(--muted); }
.crumb .active { color: var(--text); }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: #ffffff03; }
.empty .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-wash); border: 1px solid var(--accent-line); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 22px; }
.empty h4 { margin: 0 0 6px; font-size: 17px; }
.empty p { color: var(--muted); font-size: 14px; margin: 0 auto 18px; max-width: 380px; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--hairline); }
.table tr:last-child td { border-bottom: none; }
.table .text-end { text-align: right; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #ffffff04; }
.table a { color: var(--heading); font-weight: 600; }

/* ---------- docs layout ---------- */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.docs-nav { position: sticky; top: 78px; }
.docs-nav .group { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 18px 0 8px; }
.docs-nav .group:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: var(--radius); color: var(--muted); font-size: 14px; }
.docs-nav a:hover { color: var(--heading); background: #ffffff05; text-decoration: none; }
.docs-nav a.active { color: var(--heading); background: var(--accent-wash); border-left: 2px solid var(--accent); }
.prose { max-width: 720px; }
.prose h1 { font-size: 30px; letter-spacing: -.03em; margin-bottom: 8px; }
.prose .doc-lead { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.prose h2 { font-size: 21px; margin: 34px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 16px; margin: 24px 0 8px; color: var(--heading); }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px; padding: 1px 6px; font-size: 13px; color: #cfe0ff; }
.prose pre { background: var(--surface-inset); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; color: var(--text); line-height: 1.5; }
.prose pre code { background: none; border: none; padding: 0; color: inherit; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); margin: 18px 0; font-size: 14px; }
.callout.info { background: var(--accent-wash); border: 1px solid var(--accent-line); color: #cfe0ff; }
.callout.warn { background: var(--warn-wash); border: 1px solid #f59e0b44; color: #ffe2ab; }
.callout .ic { flex: none; font-family: var(--font-mono); font-weight: 700; }
.step { counter-increment: step; position: relative; padding-left: 44px; margin: 22px 0; }
.step::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-wash); border: 1px solid var(--accent-line); color: var(--accent); font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps { counter-reset: step; }
.step h3 { margin-top: 2px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); margin-top: 48px; padding: 26px 0 60px; color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot a { color: var(--muted); }
.foot .links { display: flex; gap: 18px; }

/* ---------- page-load stagger ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: rise .55s cubic-bezier(.2,.7,.2,1) forwards; }
.d1{animation-delay:.04s}.d2{animation-delay:.10s}.d3{animation-delay:.16s}.d4{animation-delay:.24s}
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; } .livedot { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 20px; }
  .nav .links { display: none; }
}
