/* ============================================================
   STEAMY — design system
   Pitch-black workspace · electric blue · glass · aurora
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces */
  --bg: #05070c;
  --bg-2: #0a0e16;
  --surface: #10151f;
  --surface-2: #161d2b;
  --glass: rgba(16, 21, 31, 0.62);
  --glass-strong: rgba(13, 17, 26, 0.86);
  --line: rgba(139, 157, 255, 0.14);
  --line-strong: rgba(139, 157, 255, 0.28);
  --scrim: rgba(3, 5, 9, 0.78);

  /* text */
  --text: #e8ecf6;
  --muted: #97a1b8;
  --faint: #5d6780;

  /* brand + accents */
  --primary: #3b82f6;
  --primary-soft: #60a5fa;
  --steam: #66c0f4;
  --peri: #8b9dff;
  --violet: #a78bfa;
  --magenta: #e879f9;
  --teal: #2dd4bf;
  --acid: #a3e635;
  --amber: #fbbf24;
  --red: #f87171;

  --grad-brand: linear-gradient(120deg, #3b82f6 0%, #66c0f4 45%, #8b9dff 100%);
  --grad-aurora: radial-gradient(60% 80% at 15% 10%, rgba(59, 130, 246, 0.28) 0%, transparent 60%),
    radial-gradient(50% 70% at 85% 15%, rgba(139, 157, 255, 0.22) 0%, transparent 60%),
    radial-gradient(55% 75% at 70% 90%, rgba(45, 212, 191, 0.14) 0%, transparent 60%),
    radial-gradient(40% 60% at 30% 85%, rgba(232, 121, 249, 0.12) 0%, transparent 60%);

  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --nav-h: 68px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(96, 165, 250, 0.22), 0 12px 44px -8px rgba(59, 130, 246, 0.35);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 18px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--steam); text-decoration: none; }
a:hover { color: var(--primary-soft); }
button { font-family: inherit; }
::selection { background: rgba(59, 130, 246, 0.4); color: #fff; }

/* custom scrollbars */
* { scrollbar-width: thin; scrollbar-color: #2a3550 var(--bg-2); }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: var(--bg-2); }
*::-webkit-scrollbar-thumb { background: #2a3550; border-radius: 8px; border: 2px solid var(--bg-2); }
*::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- ambient background ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: var(--bg);
}
.ambient::before {
  content: ''; position: absolute; inset: -20%;
  background: var(--grad-aurora);
  animation: aurora-drift 26s var(--ease) infinite alternate;
}
.ambient::after {
  content: ''; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}
@keyframes aurora-drift {
  0% { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(2%, 2%, 0) rotate(3deg) scale(1.06); }
}

/* ---------- layout ---------- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
section { position: relative; padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--steam);
  padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(59, 130, 246, 0.08); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 62ch; }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(5, 7, 12, 0.55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { background: rgba(5, 7, 12, 0.82); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; width: min(1320px, 94vw); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; color: var(--text); letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 18px rgba(59, 130, 246, 0.45); }
.brand:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a:not(.btn) {
  position: relative; color: var(--muted); font-size: 0.92rem; font-weight: 500;
  padding: 8px 13px; border-radius: 9px; transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(139, 157, 255, 0.08); }
.nav-links a:not(.btn).active { color: var(--steam); }
.nav-links a:not(.btn).active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); width: 42px; height: 42px; cursor: pointer; font-size: 1.2rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.25s, background 0.2s, border-color 0.2s; white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary,
.nav-links a.btn-primary {
  background: var(--grad-brand) !important;
  color: #030a16 !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 26px -8px rgba(59, 130, 246, 0.7);
}
.btn-primary svg,
.nav-links a.btn-primary svg {
  stroke: #030a16 !important;
}
.btn-primary:hover,
.nav-links a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(59, 130, 246, 0.85);
  color: #030a16 !important;
}
.btn-ghost { background: rgba(139, 157, 255, 0.07); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(139, 157, 255, 0.14); border-color: var(--peri); transform: translateY(-2px); color: #fff; }
.btn-sm { padding: 8px 15px; font-size: 0.85rem; border-radius: 10px; }
.btn-danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: var(--red); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.22); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- glass / cards ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.card { padding: 26px; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-glow); }

/* ---------- hero ---------- */
.hero { padding: calc(var(--nav-h) + 72px) 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 0.82rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px; margin-bottom: 22px; background: rgba(16, 21, 31, 0.6);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--faint); font-size: 0.85rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--steam); }

.shot-frame {
  position: relative; border-radius: var(--radius-lg); padding: 10px;
  background: linear-gradient(160deg, rgba(139, 157, 255, 0.18), rgba(16, 21, 31, 0.4));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 80px -20px rgba(59, 130, 246, 0.4);
  transform-style: preserve-3d; transition: transform 0.4s var(--ease);
}
.shot-frame .bar { display: flex; gap: 7px; padding: 4px 6px 10px; }
.shot-frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.shot-frame .bar i:nth-child(1) { background: var(--red); }
.shot-frame .bar i:nth-child(2) { background: var(--amber); }
.shot-frame .bar i:nth-child(3) { background: var(--acid); }
.shot-frame img { border-radius: 14px; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--surface); display: block; }
.shot-frame .glow { position: absolute; inset: auto -10% -30% -10%; height: 60%; background: radial-gradient(50% 60% at 50% 50%, rgba(59, 130, 246, 0.3), transparent 70%); filter: blur(30px); z-index: -1; }
.hero-shot { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- stats ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.stat { text-align: center; padding: 26px 16px; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* ---------- spotlight ---------- */
.spotlight-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 20px; overflow-x: auto; padding: 6px 2px 22px; scroll-snap-type: x mandatory; }
.spot-card { scroll-snap-align: start; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.spot-card .art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.spot-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.spot-card:hover .art img { transform: scale(1.06); }
.spot-card .art .tag { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(5, 7, 12, 0.72); backdrop-filter: blur(6px); color: var(--steam); border: 1px solid var(--line-strong); }
.spot-card .art .tag.soon { color: var(--amber); }
.spot-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spot-card h3 { font-size: 1.08rem; margin: 0; }
.spot-card .genres { color: var(--peri); font-size: 0.8rem; font-weight: 600; }
.spot-card p { color: var(--muted); font-size: 0.88rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; color: var(--faint); font-size: 0.8rem; }

/* ---------- feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip .feature-media { order: 2; }
.feature-copy .kicker { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--peri); margin-bottom: 12px; }
.feature-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.feature-copy p { color: var(--muted); margin: 0 0 18px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text); font-size: 0.94rem; }
.feature-list svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; color: var(--acid); }
.feature-media .shot-frame img { aspect-ratio: 16 / 10; }

/* ---------- tools grid ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; }
.tool-card .top { display: flex; align-items: center; gap: 13px; }
.tool-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line-strong); }
.tool-icon svg { width: 24px; height: 24px; }
.tool-card h3 { font-size: 1.05rem; margin: 0; }
.tool-card .cat { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.tool-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.tool-card .bundled { margin-top: auto; padding-top: 8px; font-size: 0.78rem; color: var(--acid); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; padding: 0; background: var(--surface); transition: transform 0.3s var(--ease), border-color 0.3s; }
.gallery-item:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.gallery-item img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 30px 16px 13px; background: linear-gradient(transparent, rgba(3, 5, 9, 0.9)); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: var(--scrim); backdrop-filter: blur(10px); padding: 4vh 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.lightbox .lb-cap { text-align: center; margin-top: 16px; font-family: var(--font-display); font-weight: 600; }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--glass-strong); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--glass-strong); color: var(--text); font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-prev { left: 22px; } .lightbox .lb-next { right: 22px; }

/* ---------- download ---------- */
.download-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 44px; align-items: center; }
.dl-version { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--steam); margin-bottom: 14px; }
.dl-version .pill { font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; background: rgba(163, 230, 53, 0.14); color: var(--acid); border: 1px solid rgba(163, 230, 53, 0.35); }
.dl-assets { display: grid; gap: 14px; }
.dl-asset { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.dl-asset .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(59, 130, 246, 0.12); border: 1px solid var(--line-strong); color: var(--steam); flex-shrink: 0; }
.dl-asset .ic svg { width: 22px; height: 22px; }
.dl-asset .info { flex: 1; min-width: 0; }
.dl-asset .info .nm { font-weight: 600; font-size: 0.95rem; word-break: break-all; }
.dl-asset .info .sub { color: var(--faint); font-size: 0.8rem; }
.dl-note { color: var(--faint); font-size: 0.82rem; margin-top: 18px; }
.dl-req { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; color: var(--muted); font-size: 0.9rem; }
.dl-req li { display: flex; gap: 10px; align-items: center; }
.dl-req svg { width: 16px; height: 16px; color: var(--steam); }

/* ---------- community ---------- */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.comm-card { display: flex; gap: 18px; align-items: flex-start; padding: 30px; }
.comm-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.comm-card .ic svg { width: 28px; height: 28px; }
.comm-card h3 { margin-bottom: 6px; }
.comm-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }

/* ---------- feedback ---------- */
.feedback-panel { margin-top: 20px; padding: 34px; position: relative; overflow: hidden; }
.feedback-panel::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--violet), var(--magenta)); opacity: .8; }
.fb-head { margin-bottom: 24px; max-width: 640px; }
.fb-head h3 { font-size: 1.5rem; margin: 10px 0 8px; }
.fb-head p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.fb-row .field { margin-bottom: 16px; }
.fb-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.fb-status { font-size: 0.9rem; color: var(--muted); }
.fb-status.ok { color: var(--acid); }
.fb-status.err { color: var(--red); }
@media (max-width: 760px) { .fb-row { grid-template-columns: 1fr; } .feedback-panel { padding: 26px 22px; } }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--steam); font-size: 1.3rem; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); font-size: 0.94rem; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 34px; background: rgba(5, 7, 12, 0.6); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.foot-grid h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); font-size: 0.9rem; }
.foot-grid a:hover { color: var(--steam); }
.foot-brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; } .reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; } .reveal[data-d="4"] { transition-delay: 0.32s; }

/* ---------- legal prose ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal .updated { color: var(--faint); font-size: 0.88rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin-top: 44px; }
.legal h3 { font-size: 1.08rem; margin-top: 26px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal strong { color: var(--text); }
.legal .callout { border-left: 3px solid var(--primary); background: rgba(59, 130, 246, 0.07); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; }
.legal .callout p { margin: 0; }

/* ---------- admin ---------- */
.admin-shell { min-height: 100vh; padding-top: var(--nav-h); }
.login-wrap { display: grid; place-items: center; min-height: calc(100vh - var(--nav-h)); padding: 40px 0; }
.login-card { width: min(420px, 92vw); padding: 40px; text-align: center; }
.login-card img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px; box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }
.login-card h1 { font-size: 1.6rem; }
.login-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; }
.field { text-align: left; margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.input, textarea.input, select.input {
  width: 100%; padding: 12px 15px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: rgba(5, 7, 12, 0.6); color: var(--text); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
textarea.input { resize: vertical; min-height: 90px; }
.form-error { color: var(--red); font-size: 0.85rem; min-height: 20px; margin: 6px 0 12px; }

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.admin-head h1 { font-size: 1.8rem; margin: 0; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.admin-tabs button { background: none; border: 1px solid transparent; color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; padding: 9px 16px; border-radius: 10px; cursor: pointer; transition: all 0.2s; }
.admin-tabs button:hover { color: var(--text); background: rgba(139, 157, 255, 0.08); }
.admin-tabs button.active { color: var(--steam); background: rgba(59, 130, 246, 0.12); border-color: var(--line-strong); }
.admin-panel { display: none; } .admin-panel.active { display: block; animation: fade-in 0.4s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.kpi { padding: 24px; }
.kpi .k-lbl { color: var(--muted); font-size: 0.82rem; display: flex; align-items: center; gap: 8px; }
.kpi .k-lbl svg { width: 16px; height: 16px; }
.kpi .k-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin-top: 8px; }
.kpi .k-sub { color: var(--faint); font-size: 0.78rem; margin-top: 2px; }
.chart-card { padding: 28px; margin-bottom: 24px; }
.chart-card h3 { display: flex; align-items: center; justify-content: space-between; }
.chart-legend { display: flex; gap: 18px; font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.chart-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; }
.chart-svg { width: 100%; height: auto; display: block; }

.spot-editor { display: grid; gap: 16px; }
.spot-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; padding: 18px; align-items: start; }
.spot-row .thumb { width: 90px; height: 51px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.spot-row .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spot-row .fields .full { grid-column: 1 / -1; }
.spot-row .row-actions { display: flex; flex-direction: column; gap: 8px; }
.spot-row .mini { font-size: 0.72rem; color: var(--faint); }
.editor-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.editor-toolbar .status { margin-left: auto; font-size: 0.85rem; color: var(--muted); }

.fb-list { display: grid; gap: 14px; }
.fb-item { padding: 20px 22px; }
.fb-item .fb-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.fb-item .fb-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 999px; }
.fb-cat.bug { background: rgba(248, 113, 113, 0.14); color: var(--red); }
.fb-cat.feature { background: rgba(163, 230, 53, 0.14); color: var(--acid); }
.fb-cat.feedback { background: rgba(102, 192, 244, 0.14); color: var(--steam); }
.fb-cat.other { background: rgba(139, 157, 255, 0.14); color: var(--peri); }
.fb-item .fb-meta { color: var(--faint); font-size: 0.8rem; }
.fb-item .fb-msg { color: var(--muted); font-size: 0.92rem; white-space: pre-wrap; }
.fb-item.read { opacity: 0.62; }
.fb-item .fb-new { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 300; padding: 13px 22px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); font-size: 0.9rem; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(163, 230, 53, 0.5); color: var(--acid); }
.toast.err { border-color: rgba(248, 113, 113, 0.5); color: var(--red); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--faint); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: 0.5; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .feature-row, .download-panel, .community-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.flip .feature-media { order: 0; }
  .tools-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 5vw 22px; background: var(--glass-strong); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform 0.35s var(--ease); margin: 0; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: grid; place-items: center; }
  section { padding: 68px 0; }
}
@media (max-width: 620px) {
  .tools-grid, .gallery-grid, .stats-bar, .kpi-grid, .foot-grid { grid-template-columns: 1fr; }
  .spot-row { grid-template-columns: 1fr; }
  .spot-row .fields { grid-template-columns: 1fr; }
  .download-panel { padding: 28px; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
}

/* ---------- subpages & extra components ---------- */
.subpage-hero {
  padding: calc(var(--nav-h) + 54px) 0 44px;
  text-align: center;
}
.subpage-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.subpage-hero .lede {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px 0 40px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-strong);
}
.filter-btn.active {
  background: rgba(59, 130, 246, 0.16);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

.discord-notice-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.32);
  border-radius: var(--radius);
  margin-bottom: 32px;
  text-align: left;
}
.discord-notice-card .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(88, 101, 242, 0.22);
  color: #8b9dff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.3);
}
.discord-notice-card .ic svg { width: 28px; height: 28px; }
.discord-notice-card h4 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: #fff;
}
.discord-notice-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}

.dl-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 36px 0;
}
.dl-choice-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--radius);
}
.dl-choice-card.featured {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.15);
}
.dl-choice-card .top-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--steam);
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.dl-choice-card h3 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.dl-choice-card .desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}
.dl-choice-card ul.features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-choice-card ul.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}
.dl-choice-card ul.features li svg {
  width: 16px;
  height: 16px;
  color: var(--steam);
  flex-shrink: 0;
}
.dl-choice-card .cta-wrap {
  margin-top: auto;
}

.checksum-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 14px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  word-break: break-all;
}

@media (max-width: 600px) {
  .discord-notice-card { flex-direction: column; }
  .dl-card-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}