:root {
  --bg: #07070A;
  --bg-elev: #121218;
  --text: #F7F4EF;
  --muted: #9A9286;
  --gold: #E8C47C;
  --gold-deep: #B8914A;
  --panel: rgba(18, 18, 26, 0.78);
  --line: rgba(72, 66, 56, 0.55);
  --ok: #7DCF9A;
  --warn: #E0B35A;
  --bad: #E07A7A;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #f3d9a2; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #120E0A;
  padding: 10px 14px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(7, 7, 10, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--gold); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.nav a {
  color: rgba(247, 244, 239, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  min-height: 40px;
  padding: 0 12px;
  font-weight: 700;
}

.hero {
  min-height: min(100svh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 7vw, 88px) clamp(16px, 4vw, 40px) clamp(40px, 8vw, 96px);
  max-width: 960px;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 11vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.lede {
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  line-height: 1.45;
  color: rgba(247, 244, 239, 0.88);
  margin: 0 0 28px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.cta:hover { transform: translateY(-1px); }
.cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cta-primary { background: var(--gold); color: #120E0A; }
.cta-primary:hover { background: #f0d19a; color: #120E0A; }
.cta-ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}

.section {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 40px);
  max-width: var(--max);
  margin: 0 auto;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section .sub {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 28px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.tile {
  padding: 18px 18px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.tile h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--gold);
}
.tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.platforms {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.chip {
  border: 1px solid var(--line);
  background: rgba(22, 22, 31, 0.7);
  border-radius: 999px;
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(232, 196, 124, 0.16);
  color: var(--gold);
  font-weight: 800;
}
.step h3 { margin: 0 0 4px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.panel-page {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 40px) 80px;
}
.panel-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 12px;
}
.panel-page p, .panel-page li { color: rgba(247, 244, 239, 0.86); }
.panel-page .meta { color: var(--muted); margin-bottom: 24px; }

.status-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  margin: 18px 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(125, 207, 154, 0.12);
  color: var(--ok);
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.down { background: rgba(224, 122, 122, 0.12); color: var(--bad); }
.status-pill.degraded { background: rgba(224, 179, 90, 0.14); color: var(--warn); }
.kv { display: grid; gap: 8px; margin-top: 14px; }
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 0.92rem;
}
.kv span { color: var(--muted); }

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 4vw, 40px) 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 4px;
  }
  .site-header { flex-wrap: wrap; }
  .site-header.is-open .nav { display: flex; }
  .hero { justify-content: center; min-height: 100svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}
