:root {
  --bg-0: #081018;
  --bg-1: #0d151f;
  --bg-2: #111d2a;
  --bg-3: rgba(17, 29, 42, 0.82);
  --panel: rgba(9, 16, 24, 0.92);
  --panel-strong: rgba(12, 22, 32, 0.98);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 176, 90, 0.14);
  --line-strong: rgba(255, 171, 86, 0.34);
  --text-0: #f5f8fc;
  --text-1: #d1d9e6;
  --text-2: #98a8bd;
  --ember: #ff8a1d;
  --ember-2: #ffb259;
  --ember-3: #ffd29a;
  --cyan: #73d4ff;
  --mint: #67d6a8;
  --rose: #ff8d99;
  --warn: #ffd36f;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --site-width: 1180px;
  --sidebar-width: 286px;
  --topbar-height: 74px;
  --scanline: rgba(255, 176, 90, 0.024);
  --circuit: rgba(255, 165, 76, 0.065);
  --circuit-strong: rgba(255, 186, 112, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-1);
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 138, 29, 0.14), transparent 26%),
    radial-gradient(circle at 84% 14%, rgba(115, 212, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #071018 0%, #0a131d 38%, #081018 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  display: none;
}

body::after {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 138, 29, 0.13), transparent 0 18%),
    radial-gradient(circle at 80% 80%, rgba(255, 138, 29, 0.08), transparent 0 16%),
    radial-gradient(circle at 72% 8%, rgba(115, 212, 255, 0.06), transparent 0 14%);
  filter: blur(40px);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

main {
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-0);
  line-height: 1.1;
  font-family: "Sora", sans-serif;
}

p,
li {
  line-height: 1.7;
}

code,
pre,
.mono {
  font-family: "IBM Plex Mono", monospace;
}

.shell {
  max-width: var(--site-width);
  margin: 0 auto;
}

.page {
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 171, 86, 0.28);
  background: rgba(255, 171, 86, 0.08);
  color: var(--ember-2);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ember), var(--ember-2));
  box-shadow: 0 0 14px rgba(255, 138, 29, 0.65);
}

.hero-card,
.panel,
.card,
.callout,
.code-block,
.table-card,
.stage-detail,
.feed-card,
.metric-card,
.download-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(255, 176, 90, 0.03), transparent 40%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-grid,
.grid-2,
.grid-3,
.stats-grid,
.card-grid,
.metric-grid,
.download-grid,
.link-grid,
.command-grid,
.mode-grid {
  display: grid;
  gap: 1.15rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
}

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

.grid-3,
.card-grid,
.metric-grid,
.download-grid,
.link-grid,
.command-grid,
.mode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-block {
  margin-top: 2rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.section-kicker {
  color: var(--text-2);
  font-size: 0.95rem;
}

.hero-card {
  padding: 2rem;
}

.hero-title {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  letter-spacing: -0.05em;
  text-shadow: 0 0 30px rgba(255, 138, 29, 0.12);
}

.hero-title-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.92em;
  height: 0.92em;
  margin-left: 0.22em;
  vertical-align: 0.02em;
  border-radius: 16px;
  box-shadow: 0 0 18px rgba(255, 138, 29, 0.18);
}

.hero-title-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-subtitle {
  margin-top: 0.75rem;
  color: var(--text-0);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-copy {
  margin-top: 1rem;
  max-width: 64ch;
  color: var(--text-1);
}

.hero-logo-card {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 100%;
}

.hero-logo-frame {
  display: grid;
  place-items: center;
  padding: 1.1rem;
  min-height: 250px;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  border: 1px solid rgba(255, 171, 86, 0.18);
  background: radial-gradient(circle at center, rgba(255, 138, 29, 0.2), transparent 58%), rgba(255, 255, 255, 0.02);
}

.hero-logo-frame img,
#topbar-brand img {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), filter 240ms ease;
}

.hero-logo-frame img {
  cursor: pointer;
  width: min(230px, 72%);
  max-width: 100%;
  height: auto;
  transform-origin: center;
}

.hero-logo-frame img.egg-hero-spin {
  animation: egg-hero-spin 560ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}

.hero-logo-frame img.egg-hero-hidden {
  opacity: 0;
}

.egg-ninja-star-shell {
  position: fixed;
  z-index: 97;
  pointer-events: none;
  will-change: left, top;
}

.egg-ninja-star {
  width: 100%;
  height: 100%;
  transform-origin: center;
  will-change: transform, filter;
  filter: drop-shadow(0 0 18px rgba(255, 138, 29, 0.32));
}

.egg-ninja-star.egg-ninja-charge {
  animation: egg-ninja-charge 280ms linear infinite;
}

.egg-logo-pulse {
  animation: egg-logo-pulse 680ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}

@keyframes egg-hero-spin {
  0% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 0 rgba(255, 138, 29, 0)); }
  45% { transform: rotate(210deg) scale(1.03); filter: drop-shadow(0 0 10px rgba(255, 138, 29, 0.28)); }
  100% { transform: rotate(360deg) scale(1); filter: drop-shadow(0 0 0 rgba(255, 138, 29, 0)); }
}

@keyframes egg-ninja-charge {
  from { transform: rotate(0deg) scale(1.01); filter: drop-shadow(0 0 10px rgba(255, 138, 29, 0.26)); }
  to { transform: rotate(720deg) scale(1.05); filter: drop-shadow(0 0 18px rgba(255, 138, 29, 0.4)); }
}

@keyframes egg-logo-pulse {
  0% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(255, 138, 29, 0)); }
  40% { transform: scale(1.03) rotate(3deg); filter: drop-shadow(0 0 10px rgba(255, 138, 29, 0.32)); }
  100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(255, 138, 29, 0)); }
}

.hero-logo-note {
  color: var(--text-2);
  font-size: 0.92rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.badge {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 176, 90, 0.12);
  color: var(--text-0);
  font-size: 0.85rem;
}

.badge.is-accent {
  background: rgba(255, 138, 29, 0.12);
  border-color: rgba(255, 171, 86, 0.24);
  color: var(--ember-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 171, 86, 0.38);
}

.btn-primary {
  color: #120a04;
  background: linear-gradient(135deg, var(--ember), var(--ember-2));
  border-color: rgba(255, 171, 86, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
  background: transparent;
}

.panel,
.card,
.callout,
.feed-card,
.metric-card,
.download-card,
.table-card {
  padding: 1.35rem;
}

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

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: rgba(255, 138, 29, 0.12);
  filter: blur(28px);
}

.metric-value {
  font-size: 2rem;
  color: var(--text-0);
  font-weight: 700;
}

.metric-label {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-2);
  font-size: 0.92rem;
}

.card-title,
.panel-title,
.callout-title {
  color: var(--text-0);
  font-size: 1.05rem;
  font-weight: 700;
}

.card-copy,
.panel-copy {
  margin-top: 0.65rem;
}

.card-copy p:first-child,
.panel-copy p:first-child {
  margin-top: 0;
}

.panel-copy p:last-child,
.card-copy p:last-child {
  margin-bottom: 0;
}

.callout {
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ember), var(--cyan));
}

.callout-info {
  background: linear-gradient(180deg, rgba(115, 212, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.callout-warn {
  background: linear-gradient(180deg, rgba(255, 138, 29, 0.09), rgba(255, 255, 255, 0.02));
}

.callout-danger {
  background: linear-gradient(180deg, rgba(255, 141, 153, 0.08), rgba(255, 255, 255, 0.02));
}

.mini-list,
.timeline-list,
.stack-list,
.signal-list,
.simple-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.mini-list li,
.timeline-list li,
.stack-list li,
.signal-list li,
.simple-list li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 176, 90, 0.08);
}

.list-label {
  display: block;
  color: var(--text-0);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-card thead th {
  text-align: left;
  color: var(--text-0);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0 0.9rem;
}

.table-card tbody td {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 176, 90, 0.08);
  vertical-align: top;
}

.code-block {
  overflow: hidden;
  padding: 0;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 176, 90, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.code-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.code-dot:nth-child(1) {
  background: #ff6f7d;
}

.code-dot:nth-child(2) {
  background: #ffd36f;
}

.code-dot:nth-child(3) {
  background: #67d6a8;
}

.code-lang {
  margin-left: auto;
  color: var(--text-2);
  font-size: 0.82rem;
}

.code-body {
  margin: 0;
  padding: 1rem 1.2rem 1.2rem;
  overflow-x: auto;
  color: #d9e3ef;
}

.code-body .cmd {
  color: var(--ember-2);
}

.code-body .arg {
  color: var(--cyan);
}

.code-body .muted {
  color: var(--text-2);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pill {
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(115, 212, 255, 0.18);
  background: rgba(115, 212, 255, 0.07);
  color: #cbefff;
  font-size: 0.82rem;
}

.split-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.muted {
  color: var(--text-2);
}

.tiny {
  font-size: 0.85rem;
}

.status-positive {
  color: var(--mint);
}

.status-warn {
  color: var(--warn);
}

.status-danger {
  color: var(--rose);
}

.footer {
  color: var(--text-2);
}

.footer.shell {
  max-width: none;
  margin-left: var(--sidebar-width);
  padding: 1.5rem 2.2rem 3rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  max-width: min(var(--site-width), calc(100vw - var(--sidebar-width) - 4.4rem));
  margin: 0 auto;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}

.footer-title {
  color: var(--text-0);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.footer-link {
  display: block;
  margin-top: 0.45rem;
}

.empty-state {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 176, 90, 0.16);
  color: var(--text-2);
}

.egg-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(88vw, 420px);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 176, 90, 0.22);
  background: rgba(9, 16, 24, 0.96);
  color: var(--text-0);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.egg-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.egg-toast-title {
  display: block;
  color: var(--ember-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.egg-toast-copy {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-1);
}

.egg-ribbon-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 95;
}

.egg-ribbon {
  position: absolute;
  top: -12vh;
  width: 12px;
  height: 60px;
  border-radius: 999px;
  opacity: 0.96;
  animation: egg-ribbon-fall linear forwards;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

@keyframes egg-ribbon-fall {
  to {
    transform: translate3d(var(--egg-drift, 0px), 120vh, 0) rotate(520deg);
    opacity: 0;
  }
}

body.egg-blueprint {
  --ember: #ffb259;
  --ember-2: #ffd29a;
  --line: rgba(255, 210, 154, 0.18);
}

body.egg-blueprint::before {
  display: none;
}

body.egg-overdrive::after {
  filter: blur(18px);
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 138, 29, 0.22), transparent 0 18%),
    radial-gradient(circle at 80% 70%, rgba(255, 138, 29, 0.22), transparent 0 20%);
}

body.egg-overdrive #topbar,
body.egg-overdrive #sidebar {
  border-color: rgba(255, 176, 90, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 176, 90, 0.08), var(--shadow);
}

body.egg-clean-screen::before {
  opacity: 0.16;
}
