/* necro144.com - shared design system (2026). Used by the home page, hub, photography and servers pages. */

:root {
  --bg: #0a0e13;
  --bg-2: #0f151c;
  --surface: #131b23;
  --surface-2: #18222c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eef3;
  --text-2: #b3c0cb;
  --muted: #7d8b97;
  --accent: #2ee6d0;
  --accent-ink: #032621;
  --accent-soft: rgba(46, 230, 208, 0.12);
  --amber: #ffb703;
  --amber-soft: rgba(255, 183, 3, 0.12);
  --rose: #ff5c8a;
  --ok: #3ddc84;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1120px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f7f9fb;
  --bg-2: #eef2f5;
  --surface: #ffffff;
  --surface-2: #f2f5f8;
  --border: rgba(10, 30, 50, 0.1);
  --border-strong: rgba(10, 30, 50, 0.2);
  --text: #0f1a24;
  --text-2: #3b4a57;
  --muted: #64737f;
  --accent: #0b9e8d;
  --accent-ink: #ffffff;
  --accent-soft: rgba(11, 158, 141, 0.1);
  --amber: #b77900;
  --amber-soft: rgba(183, 121, 0, 0.1);
  --shadow: 0 1px 2px rgba(15, 30, 45, 0.06), 0 10px 28px rgba(15, 30, 45, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f9fb; --bg-2: #eef2f5; --surface: #ffffff; --surface-2: #f2f5f8;
    --border: rgba(10, 30, 50, 0.1); --border-strong: rgba(10, 30, 50, 0.2);
    --text: #0f1a24; --text-2: #3b4a57; --muted: #64737f;
    --accent: #0b9e8d; --accent-ink: #ffffff; --accent-soft: rgba(11, 158, 141, 0.1);
    --amber: #b77900; --amber-soft: rgba(183, 121, 0, 0.1);
    --shadow: 0 1px 2px rgba(15, 30, 45, 0.06), 0 10px 28px rgba(15, 30, 45, 0.08);
    color-scheme: light;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 62ch; }
[dir="rtl"], .ar { font-family: "Noto Sans Arabic", var(--sans); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font: 800 16px/1 var(--mono);
}
.brand small { display: block; font: 500 11px/1.2 var(--mono); color: var(--muted); letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); text-decoration: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 18px;
}
.icon-btn:hover { border-color: var(--border-strong); }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; margin-left: auto; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 16px 18px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: 0.18s ease;
  }
  .nav-links a { padding: 12px 14px; font-size: 1.02rem; }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 11px; font: 600 0.98rem/1 var(--sans);
  border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-amber { background: var(--amber); color: #1d1300; }
.btn-sm { padding: 8px 13px; font-size: 0.88rem; border-radius: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.eyebrow.amber { color: var(--amber); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 48px; align-items: center; position: relative; }
.hero h1 span { color: var(--accent); }
.hero .lead { margin-bottom: 28px; }
.handle { font: 500 0.95rem/1.4 var(--mono); color: var(--muted); margin-bottom: 14px; }
.portrait { position: relative; justify-self: end; width: min(100%, 320px); }
.portrait img { border-radius: 24px; border: 1px solid var(--border-strong); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.portrait .badge-float {
  position: absolute; left: -14px; bottom: 18px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 0.85rem; line-height: 1.35;
}
.badge-float b { display: block; color: var(--text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.15); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; width: 200px; order: -1; }
  .portrait .badge-float { left: auto; right: -150px; bottom: 10px; }
}

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card { color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--text-2); font-size: 0.96rem; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.92rem; color: var(--accent); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: var(--accent-soft); color: var(--accent);
}
.card-icon.amber { background: var(--amber-soft); color: var(--amber); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font: 600 12px/1.6 var(--sans); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.tag.live { color: var(--ok); border-color: rgba(61, 220, 132, 0.35); background: rgba(61, 220, 132, 0.08); }
.tag.test { color: var(--amber); border-color: rgba(255, 183, 3, 0.35); background: var(--amber-soft); }
.tag.offer { color: var(--rose); border-color: rgba(255, 92, 138, 0.4); background: rgba(255, 92, 138, 0.08); }

/* ---------- server box ---------- */
.server-box {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow);
}
.server-box h3 { margin-bottom: 4px; }
.ip { font: 600 clamp(1.05rem, 2.4vw, 1.35rem)/1.2 var(--mono); color: var(--text); letter-spacing: -0.01em; word-break: break-all; }
@media (max-width: 640px) { .server-box { grid-template-columns: 1fr; } }

/* ---------- server lists (servers/sv, servers/modriotgaming) ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.on { color: var(--ok); }
.status.on::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.15); }
.srv-list { display: grid; gap: 10px; }
.srv {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px;
}
.srv h3 { margin: 0; font-size: 1rem; }
.srv .ip { font-size: 0.92rem; color: var(--text-2); }
.srv.off { opacity: 0.62; }
.srv.off .ip { text-decoration: line-through; text-decoration-color: var(--border-strong); }
@media (max-width: 640px) { .srv { grid-template-columns: 1fr; gap: 8px; } }
.srv-card { padding: 0; overflow: hidden; }
.srv-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--border); filter: grayscale(0.6) brightness(0.8); }
.srv-card .body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.srv-card h3 { font-size: 1rem; }
.srv-card .ip { font-size: 0.88rem; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 3 / 2; height: 100%; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- lists, prices, steps ---------- */
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--border-strong); }
.price-list li:last-child { border-bottom: 0; }
.price-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 15px/1 var(--mono);
}
.steps b { display: block; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { padding-left: 26px; position: relative; color: var(--text-2); }
.checklist li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }

/* ---------- link hub ---------- */
.profile { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.profile img { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.link-group { margin-bottom: 26px; }
.link-group h2 { font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.link-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 640px) { .link-list { grid-template-columns: 1fr; } }
.link {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); font-weight: 500;
}
.link:hover { text-decoration: none; border-color: var(--accent); }
.link .ico { width: 30px; text-align: center; font-size: 18px; flex: none; }
.link .sub { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.link .arrow { margin-left: auto; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 34px; background: var(--bg-2); color: var(--text-2); font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.86rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- toast + reveal ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 90;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  transition: 0.2s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; }
}
@media print { .site-header, .site-footer, .nav-toggle, .toast { display: none !important; } body { background: #fff; color: #000; } }
