@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #17121d;
  --panel: rgba(36, 28, 44, 0.86);
  --line: rgba(255, 220, 150, 0.22);
  --ink: #f4ecdc;
  --ink-soft: #c8bca8;
  --gold: #ffd27a;
  --gold-deep: #b0701e;
  --ok: #7cff8a;
  --bad: #ff7a6a;
  --title-font: "Cinzel", "Trajan Pro", "Palatino Linotype", "URW Palladio L", Georgia, serif;
  --font: "Nunito", "Segoe UI", "Noto Sans", "DejaVu Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); overflow-x: hidden; }
a { color: var(--gold); }
img { max-width: 100%; display: block; }

.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.hero-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: saturate(1.05); animation: drift 40s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(23, 18, 29, 0.25), rgba(23, 18, 29, 0.85) 70%), linear-gradient(transparent 60%, var(--bg)); }
@keyframes drift { from { transform: scale(1.04) translateX(-10px); } to { transform: scale(1.1) translateX(10px); } }

nav.top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(16px, 4vw, 48px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 18px var(--title-font); letter-spacing: 1px; text-shadow: 0 2px 4px #000; }
.links { display: flex; gap: clamp(12px, 3vw, 28px); }
.links a { color: var(--ink); text-decoration: none; font-weight: 600; text-shadow: 0 1px 3px #000; }
.links a:hover { color: var(--gold); }

.hero-content { position: relative; z-index: 2; margin: auto; padding: 24px 16px 64px; text-align: center; max-width: 760px; }
.crest { margin: 0 auto 6px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
h1 { position: relative; margin: 0; font: 900 clamp(56px, 13vw, 128px)/1 var(--title-font); letter-spacing: 0.06em; background: linear-gradient(#fff6d0, #f4c860 45%, #a8601a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #3a2008) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)); }
.cta-dl { position: relative; }
.cat { position: absolute; right: 14px; bottom: calc(100% - 6px); width: 72px; aspect-ratio: 36 / 30; background: url('img/cat.png') 0 0 / 200% 100% no-repeat; image-rendering: pixelated; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.45)); animation: tail 1.4s steps(1) infinite; pointer-events: none; }
@keyframes tail { 50% { background-position: 100% 0; } }
.sub { margin: 4px 0 18px; font: 700 clamp(13px, 2.4vw, 18px) var(--title-font); color: var(--ink); letter-spacing: 0.5em; text-shadow: 0 2px 4px #000; }
.tagline { margin: 0 auto 52px; max-width: 560px; font-size: clamp(16px, 2.2vw, 19px); color: var(--ink); text-shadow: 0 1px 4px #000; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; }

.btn { display: inline-block; padding: 11px 22px; border: 1px solid #2f4478; border-radius: 8px; background: linear-gradient(#8aa6e4, #4a68b0); color: #fff; font-weight: 800; text-decoration: none; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); transition: filter 0.15s, transform 0.15s; }
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.gold { border-color: #6a3a0a; background: linear-gradient(#f4c860, var(--gold-deep)); font-size: 18px; padding: 13px 28px; }
.btn[aria-disabled="true"] { pointer-events: none; background: rgba(255, 255, 255, 0.08); border-color: var(--line); color: var(--ink-soft); box-shadow: none; }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.45); font-size: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #888; }
.status.up .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status.down .dot { background: var(--bad); box-shadow: 0 0 8px var(--bad); }

main { position: relative; z-index: 1; padding: 0 clamp(16px, 4vw, 48px) 48px; margin-top: -40px; }
.panel { max-width: 1100px; margin: 0 auto 36px; padding: clamp(22px, 4vw, 40px); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
h2 { margin: 0 0 6px; font: 800 clamp(26px, 4vw, 34px) var(--title-font); color: var(--gold); letter-spacing: 1px; }
.lead { margin: 0 0 22px; color: var(--ink-soft); }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dl { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.dl-icon { font-size: 40px; line-height: 1; margin-bottom: 6px; }
.dl h3 { margin: 0; font: 700 22px var(--title-font); }
.dl-info { margin: 6px 0 16px; font-size: 14px; color: var(--ink-soft); flex: 1; }
.dl-meta { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-soft); }
.server-note { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); text-align: center; }
code { padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); color: var(--gold); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.feature { padding: 14px 16px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, 0.04); border-radius: 0 10px 10px 0; }
.feature b { display: block; margin-bottom: 4px; font-size: 17px; }
.feature span { color: var(--ink-soft); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.4s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 8px 12px; font-size: 14px; color: var(--ink-soft); background: rgba(36, 28, 44, 0.95); }

.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 22px; margin-top: 18px; }
.keys div { display: flex; align-items: center; gap: 14px; }
kbd { min-width: 150px; padding: 5px 10px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); font: 700 14px var(--font); text-align: center; white-space: nowrap; }
.keys span { color: var(--ink-soft); font-size: 15px; }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 28px; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 560px) {
  .links { display: none; }
  kbd { min-width: 110px; }
  .keys { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .crest, .cat { animation: none; }
}
