:root {
  --bg: #050807;
  --panel: rgba(10, 24, 19, .82);
  --line: rgba(76, 255, 194, .35);
  --line-strong: rgba(244, 198, 79, .72);
  --text: #f5f0df;
  --muted: #b9c9ba;
  --green: #35f2a5;
  --cyan: #35d8ff;
  --gold: #f4c64f;
  --purple: #a35cff;
  --shadow: #020403;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(53, 242, 165, .14), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(163, 92, 255, .14), transparent 32rem),
    linear-gradient(180deg, #07110d 0%, var(--bg) 55%, #020403 100%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  z-index: 1;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  z-index: 0;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero {
  min-height: calc(100svh - 58px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 48px 0 24px;
  position: relative;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.035) 0,
    rgba(255,255,255,.035) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: .35;
  mix-blend-mode: soft-light;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
  color: var(--green);
  border: 1px solid var(--line);
  background: rgba(0,0,0,.32);
  padding: 8px 12px;
  box-shadow: 0 0 18px rgba(53, 242, 165, .14);
  text-shadow: 0 0 10px rgba(53, 242, 165, .7);
  margin-bottom: 18px;
  font-size: clamp(.72rem, 1.5vw, .9rem);
}

.led {
  width: 9px;
  height: 9px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}

.terminal-status { color: var(--gold); }

.hero-logo {
  width: min(100%, 1040px);
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.72)) drop-shadow(0 0 22px rgba(53,242,165,.18));
  image-rendering: auto;
  margin: 0 auto 12px;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem .8rem;
  color: var(--text);
  font-size: clamp(.9rem, 1.8vw, 1.12rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(53,242,165,.22);
  padding: 10px 14px;
  margin: 0 0 22px;
  border-top: 1px solid rgba(53,242,165,.25);
  border-bottom: 1px solid rgba(53,242,165,.25);
  background: rgba(0,0,0,.22);
}

.topics i {
  width: 5px;
  height: 5px;
  align-self: center;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  transform: rotate(45deg);
}

.terminal {
  width: min(100%, 720px);
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .55);
  box-shadow: 0 0 34px rgba(53,242,165,.12);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  background: rgba(53, 242, 165, .08);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.terminal-bar span:nth-child(2) { background: var(--green); }
.terminal-bar span:nth-child(3) { background: var(--purple); }

.terminal-bar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: .85rem;
}

pre {
  margin: 0;
  padding: 16px;
  overflow: hidden;
  height: 260px;
  color: var(--green);
  line-height: 1.6;
  text-shadow: 0 0 10px rgba(53,242,165,.35);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .78rem;
  letter-spacing: .08em;
}

.github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
}

.github:hover { color: var(--green); }

.github svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.mini-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  color: #04110d;
  background: linear-gradient(135deg, var(--gold), var(--green));
  padding: 6px 9px;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0,0,0,.5);
}

.mini-player[aria-pressed="false"] {
  color: var(--green);
  background: rgba(0,0,0,.42);
  border-color: var(--line);
}

.eq {
  display: inline-flex;
  gap: 2px;
  height: 12px;
  align-items: end;
}

.eq b {
  width: 3px;
  background: currentColor;
  animation: eq .55s ease-in-out infinite alternate;
}

.eq b:nth-child(1) { height: 6px; }
.eq b:nth-child(2) { height: 11px; animation-delay: .1s; }
.eq b:nth-child(3) { height: 8px; animation-delay: .2s; }

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: .15; }
}

@keyframes eq {
  from { transform: scaleY(.45); }
  to { transform: scaleY(1); }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 20px, var(--max)); }
  .hero { padding-top: 24px; }
  .footer { flex-direction: column; padding-bottom: 20px; }
  .terminal { font-size: .78rem; }
}
