:root {
  --bg: #0b0a0e;
  --bg-surface: #121016;
  --bg-card: #131118;
  --bg-card-hover: #191620;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);

  --text: #f4f4f6;
  --text-soft: #9693a0;
  --text-muted: #64616e;

  --rose: #bf445e;
  --rose-hover: #d3506b;
  --rose-text: #df526e;
  --rose-dim: rgba(191, 68, 94, 0.14);
  --rose-border: rgba(191, 68, 94, 0.34);

  --green: #4ade80;
  --danger: #ef4444;
  --info: #38bdf8;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Oswald', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.mono { font-family: var(--font-mono); }
.display-font { font-family: var(--font-display); }

/* Header - Clean HRIZ-RP bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--rose-dim);
  border: 1px solid var(--rose-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img { width: 18px; height: 18px; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; color: #fff; }
.brand-sub { font-size: 8.5px; letter-spacing: 0.24em; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: #fff; background: #1b1922; }
.nav-link.admin-link { color: #fda4af; border: 1px solid var(--rose-border); background: var(--rose-dim); }
.nav-link.admin-link:hover { color: #fff; background: rgba(191, 68, 94, 0.24); }
.nav-icon { width: 14px; height: 14px; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.mobile-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}

main.page-main { flex: 1; }

/* HRIZ-RP Hero Section */
.hero-hriz {
  position: relative;
  min-height: 510px;
  padding: 86px 0 68px;
  overflow: hidden;
  background: var(--bg);
}

.hero-hriz-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 66%;
  background-size: cover;
  background-position: center;
  filter: saturate(0.75) contrast(1.08) brightness(0.68);
  z-index: 0;
}

.hero-hriz-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0b0a0e 0%, rgba(11, 10, 14, 0.92) 22%, rgba(11, 10, 14, 0.36) 65%, rgba(11, 10, 14, 0.72) 100%),
    linear-gradient(180deg, rgba(11, 10, 14, 0.65) 0%, transparent 25%, transparent 72%, #0b0a0e 100%),
    radial-gradient(circle at 75% 42%, rgba(191, 68, 94, 0.34), transparent 58%);
}

.hero-hriz-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero-kicker {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.hero-highlight {
  display: block;
  margin-top: 4px;
  color: var(--rose-text);
}

.hero-subtitle {
  margin: 18px 0 26px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 420px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted);
}

.dot-live {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  vertical-align: middle;
}

/* 3-Item Feature Row under Hero */
.hero-strip {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.hero-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 28px 0 32px;
}

.hero-strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.strip-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.8;
}

.strip-icon img { width: 18px; height: 18px; }

/* Sections */
.section { padding: 54px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-kicker {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rose-text);
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
}

.section-desc {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 13.5px;
}

.tac-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.telemetry-rows { display: flex; flex-direction: column; gap: 11px; }
.telemetry-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; }
.telemetry-row span:first-child { color: var(--text-muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* HRIZ Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 46px 0 28px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.footer-col-title {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--text-soft);
}

.footer-col-links a:hover { color: #fff; }

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 920px) {
  .hero-hriz-media { width: 100%; opacity: 0.3; }
  .hero-strip-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .mobile-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #100f15;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px;
  }
  .nav-links.open { display: flex; }
  .grid-2, .grid-3, .grid-4, .footer-top { grid-template-columns: 1fr; }
}

/* Light visual refresh: same RTD palette, cleaner depth and stronger hierarchy. */
body {
  background:
    radial-gradient(circle at 80% 0%, rgba(191, 68, 94, .08), transparent 30rem),
    var(--bg);
}

.site-header {
  background: rgba(11, 10, 14, .76);
  border-bottom-color: rgba(255, 255, 255, .1);
}

.brand-mark {
  box-shadow: 0 0 24px rgba(191, 68, 94, .16);
}

.nav-link {
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link.active {
  box-shadow: inset 0 -2px 0 var(--rose);
}

.hero-hriz {
  background:
    linear-gradient(135deg, rgba(191, 68, 94, .06), transparent 40%),
    var(--bg);
}

.hero-title {
  text-shadow: 0 8px 34px rgba(0, 0, 0, .38);
}

.hero-cta .btn,
.btn-primary {
  box-shadow: 0 8px 24px rgba(191, 68, 94, .18);
}

.btn {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.news-card,
.shot-card,
.feature-card,
.article-content,
.server-card {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .13);
}

.news-card:hover,
.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
}

.input:focus,
.select:focus,
.textarea:focus {
  box-shadow: 0 0 0 3px rgba(191, 68, 94, .13);
}

@media (max-width: 760px) {
  .nav-links {
    box-shadow: 0 18px 30px rgba(0, 0, 0, .28);
  }
  .nav-actions {
    gap: 5px;
  }
}
