:root {
  --bg: #080a0f;
  --surface: rgba(18, 22, 31, 0.78);
  --surface-solid: #12161f;
  --border: rgba(255, 255, 255, 0.085);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text: #eef1f7;
  --muted: #98a3b8;
  --crimson: #e63946;
  --crimson-glow: rgba(230, 57, 70, 0.28);
  --cyan: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.22);
  --gold: #facc15;
  --radius: 14px;
  --font: system-ui, -apple-system, Roboto, "Liberation Sans", "Noto Sans", sans-serif;
  --mono: ui-monospace, "Liberation Mono", "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

/* NAVBAR */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 10, 15, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.badge-beta {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 0.86rem; }
.btn-lg { padding: 13px 22px; font-size: 0.98rem; }
.btn-full { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, #e63946 0%, #c81e30 100%);
  color: #fff;
  box-shadow: 0 6px 24px var(--crimson-glow);
}
.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.45);
}
.btn-secondary {
  background: rgba(56, 189, 248, 0.14);
  color: #e0f4ff;
  border-color: rgba(56, 189, 248, 0.35);
}
.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.55);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--border-hi);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* HERO */
.hero {
  position: relative;
  padding: 88px 0 68px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 18%, rgba(230, 57, 70, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 45% at 78% 82%, rgba(56, 189, 248, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.55) 0%, rgba(8, 10, 15, 0.92) 72%, #080a0f 100%),
    url("assets/nfua-crimson-chevron.webp") center/cover no-repeat;
  z-index: -1;
}
.hero-inner {
  text-align: center;
  max-width: 860px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 22, 31, 0.85);
  border: 1px solid var(--border-hi);
  color: #cbd5e1;
  font-size: 0.84rem;
  margin-bottom: 24px;
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.grad {
  background: linear-gradient(90deg, #ffffff 0%, #7dd3fc 52%, #ff6b78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.12rem;
  color: #b4bfd2;
  max-width: 680px;
  margin: 0 auto 32px;
}
.hero-sub strong { color: #fff; }
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  backdrop-filter: blur(8px);
}
.stat-val {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat-lbl {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

/* SECTIONS */
.section { padding: 72px 0; }
.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 38px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 1rem; }

/* NOTICE */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.26);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 24px;
}
.notice-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(250, 204, 21, 0.18);
  color: var(--gold);
}

/* DOWNLOAD CARDS */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.dl-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dl-card-featured {
  border-color: rgba(230, 57, 70, 0.42);
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.14), 0 18px 46px rgba(0, 0, 0, 0.45);
}
.dl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.chip {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.chip-crimson {
  background: rgba(230, 57, 70, 0.16);
  color: #ff808b;
  border: 1px solid rgba(230, 57, 70, 0.35);
}
.chip-cyan {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.32);
}
.iso-size {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--muted);
}
.dl-card h3 { font-size: 1.45rem; font-weight: 800; }
.dl-desc { color: #b6c0d3; font-size: 0.94rem; }
.dl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 8px;
  color: #d6deec;
  font-size: 0.9rem;
}
.dl-bullets li::before {
  content: "✓ ";
  color: #38bdf8;
  font-weight: 800;
}
.dl-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.dl-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.dl-meta a { color: var(--cyan); text-decoration: none; }
.dl-meta a:hover { text-decoration: underline; }

/* BENTO FEATURES */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s ease;
}
.feat:hover { border-color: var(--border-hi); }
.feat-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  line-height: 1;
}
.feat-icon-img { margin-bottom: 10px; }
.feat h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.feat p { font-size: 0.91rem; color: var(--muted); }

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gal-item {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gal-wide { grid-column: span 2; }
.gal-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.gal-avatar .avatar-stage {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1a2130 0%, #0b0e14 100%);
}
.gal-avatar .avatar-stage img {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  border: 2px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.gal-item figcaption {
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--cyan);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 0.91rem; color: var(--muted); }

/* VERIFY & LEGAL */
.verify-box {
  background: #0d1118;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.verify-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
}
.btn-copy {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-copy:hover { background: rgba(255, 255, 255, 0.13); }
.verify-box pre {
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.65;
}
.hashes {
  border-top: 1px solid var(--border);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.83rem;
}
.hash-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hash-label { color: var(--muted); min-width: 155px; font-weight: 600; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 5px;
  color: #bae6fd;
}
pre code { background: none; padding: 0; color: inherit; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.legal-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.legal-card h4 { font-size: 0.98rem; margin-bottom: 8px; }
.legal-card p { font-size: 0.86rem; color: var(--muted); }
.legal-card a { color: var(--cyan); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .stats-grid, .cards-2, .bento, .gallery-grid, .steps, .legal-grid {
    grid-template-columns: 1fr;
  }
  .gal-wide { grid-column: span 1; }
  .nav-links { display: none; }
}
