:root {
  --bg: #111315;
  --bg-soft: #171a1d;
  --panel: rgba(25, 28, 32, 0.88);
  --panel-strong: rgba(30, 33, 38, 0.96);
  --panel-border: rgba(255, 145, 41, 0.22);
  --text: #f5efe6;
  --muted: #b9b2a8;
  --accent: #ff8b2d;
  --accent-strong: #ffb15f;
  --accent-cool: #57b6ff;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  --radius: 26px;
  --radius-sm: 18px;
  --content-width: min(1180px, calc(100vw - 2rem));
  --font-body: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-head: "Copperplate", "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 139, 45, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(87, 182, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #111315 0%, #15181b 35%, #111315 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 92%);
}

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

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

code,
pre {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

code:not(pre code) {
  padding: 0.16rem 0.42rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f7d8b4;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: 0 auto;
  padding: 1.1rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 0.8rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(17, 19, 21, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 28px rgba(255, 139, 45, 0.28);
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong,
.brand-copy small,
.nav-link,
.eyebrow,
.button,
.filter-chip,
.chip,
.stat-card span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-family: var(--font-head);
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.68rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 139, 45, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 139, 45, 0.15);
}

.nav-toggle {
  display: none;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.page-main {
  display: grid;
  gap: 2rem;
}

.section {
  display: grid;
  gap: 1.25rem;
}

.tool-section {
  display: grid;
  gap: 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--panel-border);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 139, 45, 0.08), rgba(17, 19, 21, 0) 40%),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 139, 45, 0.24), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-home {
  grid-template-columns: 1.3fr 0.9fr;
}

.hero-home h1,
.hero-subpage:not(.hero-plugin) h1 {
  font-size: clamp(1.95rem, 3.6vw, 3.45rem);
}

.hero-subpage,
.hero-plugin {
  grid-template-columns: 1.25fr 0.75fr;
}

.hero-copy,
.hero-art,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-strong);
  font-size: 0.74rem;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.05;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
}

h2 {
  max-width: 20ch;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.15rem;
}

p,
li,
small,
span {
  line-height: 1.6;
}

p {
  margin: 0;
  color: var(--muted);
}

.action-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #15120f;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(255, 139, 45, 0.22);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.orbital-frame {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.5), rgba(28, 31, 36, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 28px 64px rgba(0, 0, 0, 0.34);
}

.orbital-frame::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 139, 45, 0.28);
  border-radius: 28px;
  animation: pulse-ring 4s ease-in-out infinite;
}

.orbital-frame img {
  width: min(100%, 360px);
  animation: float-logo 6s ease-in-out infinite;
}

.cerberus-badge {
  width: min(100%, 220px);
  margin-bottom: 0.9rem;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.hero-stats,
.runtime-grid {
  display: grid;
  gap: 0.9rem;
}

.hero-stats {
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.panel,
.feature-card,
.platform-card,
.timeline-card,
.tool-card,
.plugin-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.stat-card {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  border-radius: 20px;
  text-align: left;
}

.stat-card strong {
  color: var(--accent-strong);
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.66rem;
}

.stat-card-wide {
  min-height: 120px;
}

.section-head {
  display: grid;
  gap: 0.55rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.feature-card,
.platform-card,
.timeline-card,
.tool-card,
.plugin-card {
  padding: 1.2rem;
  border-radius: var(--radius);
}

.platform-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.panel-tight {
  min-height: 100%;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 139, 45, 0.12);
  color: var(--accent-strong);
  font-size: 0.68rem;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(87, 182, 255, 0.1);
  color: #bfe1ff;
  font-size: 0.74rem;
}

.timeline,
.runtime-grid,
.plugin-grid,
.detail-grid,
.showcase-grid {
  display: grid;
  gap: 1rem;
}

.timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.runtime-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-grid {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
}

.screenshot-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 6px);
  background: #0a0c10;
  box-shadow: var(--shadow);
}

.screenshot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(255, 139, 45, 0.18);
  background: linear-gradient(180deg, rgba(255, 139, 45, 0.05), transparent 24%);
  pointer-events: none;
}

.plugin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plugin-card {
  display: grid;
  gap: 1rem;
  align-content: space-between;
}

.plugin-meta {
  display: grid;
  gap: 0.8rem;
}

.plugin-links {
  display: flex;
}

.tool-card {
  display: grid;
  gap: 0.85rem;
}

.code-block {
  overflow-x: auto;
  margin: 0;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(8, 10, 12, 0.92);
  color: #f2d9be;
  border: 1px solid rgba(255, 139, 45, 0.14);
}

.plugins-toolbar {
  display: grid;
  gap: 1rem;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
}

.search-input::placeholder {
  color: #8a837b;
}

.filter-row {
  gap: 0.6rem;
}

.filter-chip {
  min-height: 36px;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.filter-chip.is-active {
  background: rgba(255, 139, 45, 0.18);
  color: var(--accent-strong);
}

.results-copy {
  font-size: 0.84rem;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.argument-list,
.stack-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.1rem;
}

.argument-list li,
.stack-list li {
  color: var(--muted);
}

.argument-list strong {
  display: block;
  color: var(--text);
}

.argument-list span,
.argument-list small {
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.platform-row {
  margin-top: auto;
}

.empty-state {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.page-footer {
  margin-top: 1rem;
  padding: 1rem 0 0;
}

.page-footer p {
  color: #8e857b;
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@media (max-width: 1100px) {
  .grid-4,
  .grid-3,
  .timeline,
  .plugin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-home,
  .hero-subpage,
  .hero-plugin,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100vw - 1rem, 100%);
    padding: 0.5rem 0 3rem;
  }

  .site-header {
    top: 0.45rem;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 0.4rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-link {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }

  .hero-stats,
  .runtime-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .timeline,
  .plugin-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}
