:root {
  color-scheme: dark;
  --ink: #070505;
  --ink-soft: #111010;
  --panel: rgba(22, 15, 15, 0.86);
  --panel-strong: #1d1111;
  --paper: #fff4e8;
  --muted: rgba(255, 244, 232, 0.68);
  --faint: rgba(255, 244, 232, 0.13);
  --red: #ff243d;
  --red-deep: #a90018;
  --red-hot: #ff5b68;
  --green: #5dff9b;
  --amber: #ffc857;
  --font-display: "Avenir Next Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --font-body: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  --font-mono: "Berkeley Mono", "SF Mono", "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 36, 61, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 36, 61, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(255, 36, 61, 0.42), transparent 30rem),
    radial-gradient(circle at 90% 5%, rgba(255, 200, 87, 0.10), transparent 22rem),
    linear-gradient(180deg, #170607 0%, var(--ink) 42%, #0d0808 100%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
  color: var(--paper);
  font-family: var(--font-body);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(255, 36, 61, 0.22) 48% 49%, transparent 50%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 28rem);
  opacity: 0.9;
}

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

.scanline {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: overlay;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--faint);
  background: rgba(7, 5, 5, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  filter: drop-shadow(0 0 18px rgba(255, 36, 61, 0.5));
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--paper);
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 4.5rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.86fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(3rem, 7vw, 6rem) 0 4rem;
}

.hero-copy {
  max-width: 830px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.3rem;
  font-size: clamp(3rem, 6.1vw, 6.1rem);
  line-height: 0.94;
}

h2 {
  max-width: 16ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.15rem, 4.8vw, 4.9rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.hero-text {
  max-width: 41rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions,
.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--faint);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--red);
  background: linear-gradient(180deg, var(--red-hot), var(--red-deep));
  box-shadow: 0 0 32px rgba(255, 36, 61, 0.35);
  color: white;
}

.button.secondary {
  background: rgba(255, 244, 232, 0.06);
  color: var(--paper);
}

.console-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 35rem;
}

.logo-orbit {
  position: absolute;
  top: -2rem;
  right: 8%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(8rem, 15vw, 13rem);
  aspect-ratio: 1;
}

.logo-orbit img {
  width: 68%;
  border-radius: 24px;
  filter: drop-shadow(0 0 34px rgba(255, 36, 61, 0.72));
  animation: logo-float 4s ease-in-out infinite;
}

.logo-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 36, 61, 0.5);
  border-radius: 34% 66% 62% 38%;
  animation: orbit 10s linear infinite;
}

.console {
  position: relative;
  z-index: 1;
  margin-top: 8rem;
  margin-left: auto;
  width: min(100%, 36rem);
  overflow: hidden;
  border: 1px solid rgba(255, 36, 61, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 36, 61, 0.14), transparent 38%),
    var(--panel);
  box-shadow:
    0 24px 90px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(255, 36, 61, 0.18);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--faint);
  background: rgba(255, 244, 232, 0.05);
}

.console-top span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--red);
}

.console-top span:nth-child(2) {
  background: var(--amber);
}

.console-top span:nth-child(3) {
  background: var(--green);
}

.console-top strong {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.console-body {
  min-height: 17rem;
  padding: 1.15rem;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.7vw, 0.95rem);
  line-height: 1.7;
}

.console-body p {
  margin-bottom: 0.45rem;
  white-space: nowrap;
  animation: type-in 800ms steps(24, end) both;
}

.console-body p:nth-child(2) {
  animation-delay: 350ms;
}

.console-body p:nth-child(3) {
  animation-delay: 700ms;
}

.console-body p:nth-child(4) {
  animation-delay: 1050ms;
}

.console-body p:nth-child(5) {
  animation-delay: 1400ms;
}

.console-body p:nth-child(6) {
  animation-delay: 1750ms;
}

.console-body span,
.hot {
  color: var(--red-hot);
}

.dim {
  color: var(--muted);
}

.ok {
  color: var(--green);
}

.console-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--faint);
  background: var(--faint);
}

.console-footer a {
  min-height: 5.6rem;
  padding: 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 36, 61, 0.14), rgba(255, 244, 232, 0.035)),
    rgba(9, 5, 5, 0.92);
  transition:
    background 160ms ease,
    color 160ms ease;
}

.console-footer a:hover {
  background:
    linear-gradient(180deg, rgba(255, 36, 61, 0.25), rgba(255, 200, 87, 0.08)),
    rgba(9, 5, 5, 0.96);
}

.console-footer span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.console-footer strong {
  display: block;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.2vw, 0.78rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(5rem, 10vw, 10rem);
  overflow: hidden;
  border: 1px solid var(--faint);
  border-radius: 8px;
  background: var(--faint);
}

.signal-strip article,
.feature-grid article,
.detail-grid article,
.steps li,
.repo-card {
  opacity: 0;
  transform: translateY(18px);
}

.signal-strip article.is-visible,
.feature-grid article.is-visible,
.detail-grid article.is-visible,
.steps li.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.signal-strip article {
  min-height: 9.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: rgba(9, 5, 5, 0.88);
}

.signal-strip strong {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--red-hot);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.8;
}

.signal-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.control-room,
.detail-section,
.workflow,
.contribute {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 0.72fr);
  gap: clamp(1.4rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.section-head p,
.workflow > div > p,
.download p {
  color: var(--muted);
  line-height: 1.62;
}

.feature-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

.feature-grid article,
.detail-grid article {
  min-height: 17rem;
  padding: 1.1rem;
  border: 1px solid var(--faint);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 36, 61, 0.11), transparent 44%),
    rgba(255, 244, 232, 0.045);
}

.feature-index {
  display: inline-flex;
  margin-bottom: clamp(2.3rem, 5vw, 4rem);
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-grid p,
.detail-grid p,
.steps p,
.download h2,
footer {
  color: var(--muted);
  line-height: 1.55;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(22rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.steps {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--faint);
  border-radius: 8px;
  background: rgba(255, 244, 232, 0.045);
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(255, 36, 61, 0.42);
  border-radius: 50%;
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-weight: 900;
}

.download {
  justify-content: space-between;
  margin: 4rem 0 5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(255, 36, 61, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(255, 36, 61, 0.24), rgba(255, 244, 232, 0.04)),
    var(--panel-strong);
}

.download h2 {
  max-width: 20ch;
  margin-bottom: 0.7rem;
}

.contribute {
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.repo-panel {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(0, 1.35fr);
  gap: 1rem;
}

.repo-card {
  min-height: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(255, 36, 61, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 36, 61, 0.18), rgba(93, 255, 155, 0.045) 48%, rgba(255, 200, 87, 0.07)),
    var(--panel-strong);
}

.repo-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.repo-card h3 {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.repo-card p {
  color: var(--muted);
  line-height: 1.6;
}

.repo-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

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

.detail-grid.compact article {
  min-height: 11rem;
}

code {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 4.5rem) 2rem;
  border-top: 1px solid var(--faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes logo-float {
  50% {
    transform: translateY(-10px) scale(1.03);
  }
}

@keyframes type-in {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 100%;
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero,
  .workflow,
  .section-head,
  .repo-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 11ch;
  }

  .console-wrap {
    min-height: 27rem;
  }

  .console {
    width: 100%;
  }

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

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.68rem;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.7rem, 13.2vw, 4.1rem);
    line-height: 0.94;
  }

  h2 {
    font-size: clamp(2rem, 10.5vw, 3.35rem);
  }

  .signal-strip,
  .feature-grid,
  .detail-grid,
  .detail-grid.compact,
  .console-footer {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .detail-grid article {
    min-height: 14rem;
  }

  .feature-index {
    margin-bottom: 3rem;
  }

  .steps li {
    grid-template-columns: 3.5rem 1fr;
  }

  .console-body {
    overflow: hidden;
  }

  .console-body p {
    white-space: normal;
  }

  footer {
    flex-direction: column;
  }
}

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