/* ==========================================================================
   PRISMA — Official Software Brand Design System
   Deep obsidian-navy surfaces, restrained electric blue & royal purple accents
   ========================================================================== */

:root {
  --bg-void: #060913;
  --bg-base: #090e1c;
  --bg-surface: #0e1528;
  --bg-elevated: #131c34;
  --bg-hover: #182340;

  --border-subtle: rgba(148, 175, 225, 0.11);
  --border-strong: rgba(148, 175, 225, 0.22);
  --border-accent: rgba(56, 189, 248, 0.42);

  --text-primary: #f1f5fe;
  --text-secondary: #98a8c7;
  --text-muted: #667799;

  --accent-cyan: #22d3ee;
  --accent-blue: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-purple: #9333ea;
  --accent-violet: #a855f7;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;

  --grad-brand: linear-gradient(135deg, #22d3ee 0%, #5b6cf9 52%, #a855f7 100%);
  --grad-brand-hover: linear-gradient(135deg, #4be3fa 0%, #7483ff 52%, #be74ff 100%);
  --grad-surface: linear-gradient(180deg, rgba(18, 26, 48, 0.92) 0%, rgba(11, 16, 32, 0.96) 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-card: 0 12px 32px rgba(2, 5, 14, 0.45);
  --shadow-frame: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(148, 175, 225, 0.12);
  --shadow-cta: 0 10px 28px rgba(56, 130, 246, 0.28);

  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --container: 1160px;
  --nav-height: 70px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 480px at 50% -120px, rgba(46, 114, 245, 0.13), transparent 72%),
    radial-gradient(640px 420px at 85% 180px, rgba(139, 92, 246, 0.08), transparent 70%),
    var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ==========================================================================
   Navigation Bar (Sticky Glass)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(6, 9, 19, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.09em;
  color: var(--text-primary);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

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

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 160ms ease, background-color 160ms ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(148, 175, 225, 0.07);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.1);
}

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

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 99;
  background: #070b17;
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.85);
  padding: 18px 24px 24px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.mobile-nav-list .nav-link {
  padding: 11px 14px;
  font-size: 0.98rem;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 160ms ease;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 0.97rem;
  border-radius: 11px;
}

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--grad-brand-hover);
  box-shadow: 0 12px 34px rgba(56, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(18, 27, 49, 0.88);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-accent);
}

.btn-ghost {
  background: rgba(148, 175, 225, 0.06);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(148, 175, 225, 0.11);
}

.btn.is-copied {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
}

.btn-discord {
  background: rgba(88, 101, 242, 0.14);
  border-color: rgba(88, 101, 242, 0.36);
  color: #d6dcff;
}

.btn-discord:hover {
  background: rgba(88, 101, 242, 0.24);
  border-color: rgba(120, 132, 255, 0.6);
  color: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-subtle);
  background: rgba(14, 21, 40, 0.85);
  color: var(--text-secondary);
}

.badge-available {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.32);
  color: #6ee7b7;
}

.badge-soon {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.28);
  color: #c4b5fd;
}

.badge-info {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
}

.badge-warn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.32);
  color: #fde68a;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ==========================================================================
   Hero & Section Architecture
   ========================================================================== */

.hero {
  position: relative;
  padding: 78px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 175, 225, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 175, 225, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 10%, transparent 80%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.hero-eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 4.8vw, 3.65rem);
  font-weight: 750;
  line-height: 1.09;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(110deg, #e2f5ff 0%, #60d5ff 45%, #b48cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto 30px;
  max-width: 600px;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-meta {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-showcase {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: -24px 6% auto 6%;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(45, 168, 255, 0.22) 0%, rgba(139, 92, 246, 0.14) 45%, transparent 75%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}

.showcase-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: linear-gradient(180deg, rgba(148, 175, 225, 0.14), rgba(148, 175, 225, 0.04));
  box-shadow: var(--shadow-frame);
}

.showcase-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 13px;
  background: #080c17;
}

.showcase-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Standard Sections */

section[id] {
  scroll-margin-top: 84px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1), transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 21, 40, 0.92);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease, border-color 160ms ease, background-color 160ms ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--border-accent);
  background: var(--bg-hover);
}

.footer-link-btn {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 150ms ease;
  text-align: left;
}

.footer-link-btn:hover {
  color: var(--text-primary);
}

.release-entry-head h3 {
  margin: 0;
  font-size: 1.45rem;
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-divider {
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 660px;
  margin-bottom: 44px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.section-header h2,
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section-header p,
.page-hero p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.page-hero {
  padding: 64px 0 42px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero-inner {
  max-width: 720px;
}

.page-hero h1 {
  font-size: clamp(2.05rem, 3.8vw, 2.95rem);
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */

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

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

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

.card {
  background: var(--grad-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, transform 180ms ease;
}

.card-interactive:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card.is-featured {
  border-color: rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(380px 180px at 100% 0%, rgba(56, 189, 248, 0.08), transparent 70%),
    var(--grad-surface);
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 44, 0.9);
  color: var(--accent-blue);
  flex-shrink: 0;
}

.icon-box.purple {
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.28);
  background: rgba(139, 92, 246, 0.09);
}

.icon-box.indigo {
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.28);
  background: rgba(99, 102, 241, 0.09);
}

.icon-box.blue {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.product-card p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  flex: 1 0 auto;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Principle / Feature Cards */

.principle-card {
  padding: 22px;
}

.principle-card .icon-box {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
}

.principle-card h3 {
  margin: 0 0 7px;
  font-size: 1.02rem;
  font-weight: 650;
}

.principle-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Community Banner */

.community-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(120, 140, 255, 0.24);
  background:
    radial-gradient(500px 260px at 90% 20%, rgba(88, 101, 242, 0.18), transparent 72%),
    radial-gradient(420px 220px at 10% 80%, rgba(34, 211, 238, 0.1), transparent 70%),
    var(--bg-surface);
  padding: 46px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.community-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  letter-spacing: -0.02em;
}

.community-banner p {
  margin: 0;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ==========================================================================
   Prisma Colour Product Page (Gallery, Compare Switcher, Download Panel)
   ========================================================================== */

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 40px;
  align-items: center;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.gallery-tab {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(14, 21, 40, 0.8);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.gallery-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.gallery-tab.active {
  background: rgba(56, 189, 248, 0.13);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f6ff;
}

/* Interactive Real Screenshot Compare Switcher */

.compare-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.segmented-control {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
}

.segmented-btn {
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.segmented-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

/* Download Card */

.download-panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(500px 240px at 95% 0%, rgba(56, 189, 248, 0.11), transparent 70%),
    radial-gradient(420px 240px at 5% 100%, rgba(139, 92, 246, 0.1), transparent 70%),
    var(--bg-surface);
  padding: 34px;
  box-shadow: var(--shadow-card);
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.spec-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(6, 9, 19, 0.65);
  border: 1px solid var(--border-subtle);
}

.spec-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.spec-value {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}

.checksum-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(6, 9, 19, 0.82);
  border: 1px solid var(--border-subtle);
}

.checksum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.checksum-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.checksum-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #a5d8ff;
  word-break: break-all;
  line-height: 1.5;
}

.notice-box {
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.06);
  font-size: 0.88rem;
  color: #e9d9a4;
  line-height: 1.55;
}

.notice-box strong {
  color: #fde68a;
}

.notice-box.info {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.06);
  color: #bae6fd;
}

.notice-box.info strong {
  color: #e0f2fe;
}

/* Tables & Structured Lists */

.req-table {
  width: 100%;
  border-collapse: collapse;
}

.req-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.req-table tr:last-child {
  border-bottom: none;
}

.req-table th,
.req-table td {
  padding: 13px 10px;
  text-align: left;
  font-size: 0.92rem;
  vertical-align: top;
}

.req-table th {
  width: 210px;
  color: var(--text-muted);
  font-weight: 600;
}

.req-table td {
  color: var(--text-primary);
}

.clean-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.clean-list li {
  margin-bottom: 10px;
}

.clean-list li:last-child {
  margin-bottom: 0;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: var(--accent-blue);
  margin-top: 1px;
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-trigger:hover {
  background: rgba(148, 175, 225, 0.04);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 180ms ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-blue);
}

.faq-body {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

.faq-item.open .faq-body {
  display: block;
}

/* ==========================================================================
   Changelog & Prose Pages
   ========================================================================== */

.release-entry {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--grad-surface);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.release-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.release-entry-head h2 {
  margin: 0;
  font-size: 1.55rem;
}

.release-date {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.release-group {
  margin-bottom: 22px;
}

.release-group:last-child {
  margin-bottom: 0;
}

.release-group h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--accent-blue);
  letter-spacing: 0.02em;
}

.prose {
  max-width: 780px;
}

.prose h2 {
  margin: 34px 0 12px;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

.prose p,
.prose li {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.code-block {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(6, 9, 19, 0.85);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 8, 16, 0.9);
  padding: 58px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 300px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 150ms ease;
}

.footer-col a:hover {
  color: var(--text-primary);
}

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

/* ==========================================================================
   Modal (Transparent Placeholder Notice for Unconfigured External Links)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 14, 0.78);
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  padding: 26px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.72);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.12rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.modal-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.6;
}

.modal-body code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(6, 9, 19, 0.85);
  color: #7dd3fc;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-hero-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 860px) {
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .community-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
  .hero {
    padding: 52px 0 64px;
  }
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 540px) {
  .grid-5,
  .spec-list {
    grid-template-columns: 1fr;
  }
  .download-panel,
  .release-entry {
    padding: 22px 18px;
  }
  .req-table th {
    display: block;
    width: auto;
    padding-bottom: 2px;
  }
  .req-table td {
    display: block;
    padding-top: 2px;
  }
}

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