:root {
  --bg: #03050a;
  --panel: rgba(10, 8, 18, 0.82);
  --panel-2: rgba(14, 16, 24, 0.92);
  --cyan: #37e7ff;
  --green: #a7ff4f;
  --pink: #ff4df6;
  --purple: #9b5cff;
  --muted: #8da3aa;
  --border: rgba(55, 231, 255, 0.28);
  --text: #dffcff;
  --warning: #ffb86b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--cyan);
  font-family: "Courier New", "Berkeley Mono", "JetBrains Mono", monospace;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, 0.08), rgba(3, 5, 10, 0.72) 43%, rgba(3, 5, 10, 0.42)),
    linear-gradient(180deg, rgba(3, 5, 10, 0.18), rgba(3, 5, 10, 0.8)),
    url("assets/bg.png") center center / cover fixed no-repeat,
    radial-gradient(circle at 15% 20%, rgba(255, 77, 246, 0.22), transparent 28%),
    radial-gradient(circle at 72% 18%, rgba(55, 231, 255, 0.18), transparent 26%),
    radial-gradient(circle at 88% 75%, rgba(167, 255, 79, 0.12), transparent 25%),
    linear-gradient(180deg, #020308 0%, #040817 55%, #020308 100%);
}

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

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 8px, 42px 100%;
  mix-blend-mode: screen;
  opacity: 0.55;
}

body::after {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.18;
}

#void-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.55;
  filter: saturate(1.55) contrast(1.18);
  mix-blend-mode: screen;
}

.orb {
  position: fixed;
  z-index: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.55;
  animation: float 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.orb:nth-child(1) {
  top: 14%;
  left: 16%;
  background: var(--pink);
}

.orb:nth-child(2) {
  top: 23%;
  right: 21%;
  background: var(--cyan);
  animation-delay: 1s;
}

.orb:nth-child(3) {
  bottom: 13%;
  left: 12%;
  background: var(--green);
  animation-delay: 2s;
}

.orb:nth-child(4) {
  right: 10%;
  bottom: 20%;
  background: var(--purple);
  animation-delay: 0.5s;
}

.site-header {
  position: relative;
  z-index: 3;
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 77, 246, 0.16);
  background: rgba(2, 3, 8, 0.62);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.logo {
  color: var(--purple);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 0 12px rgba(155, 92, 255, 0.9);
}

.logo span {
  color: var(--green);
}

.version {
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.2rem);
  color: var(--green);
  font-weight: 900;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--acid, #e6ff5d);
  text-decoration: underline;
  text-underline-offset: 0.55rem;
}

.shell {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 74px);
  padding: 2rem clamp(1rem, 2.5vw, 2.4rem) 3rem;
}

.hero-copy {
  text-align: center;
  margin: 0 auto 1.8rem;
}

.eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 900;
}

h1 {
  margin: 0.75rem 0 0.55rem;
  color: var(--green);
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-shadow: 0 0 20px rgba(167, 255, 79, 0.65);
}

.tagline,
.subtagline {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
}

.tagline {
  color: var(--cyan);
}

.subtagline {
  margin-top: 0.65rem;
  color: var(--purple);
  text-shadow: 0 0 20px rgba(155, 92, 255, 0.6);
}

.app-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.terminal-wrap {
  width: 100%;
}

.status-card,
.terminal-wrap,
.dream-panel,
.archive-pill {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow:
    0 0 35px rgba(55, 231, 255, 0.12),
    inset 0 0 80px rgba(155, 92, 255, 0.06);
}

.status-card {
  border-color: rgba(255, 77, 246, 0.45);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(12, 7, 20, 0.75);
}

.terminal-status {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) repeat(5, max-content);
  align-items: center;
  gap: 0.7rem 1.15rem;
  border-width: 0 0 1px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(12, 7, 20, 0.48);
}

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

.status-card h2 {
  margin: 0;
  color: var(--pink);
  font-size: 0.92rem;
}

.status-card p {
  margin: 0;
  color: #b8ccd0;
  white-space: nowrap;
}

.status-card strong {
  color: var(--green);
}

.status-eye {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--pink);
  background: radial-gradient(circle, var(--green) 0 18%, var(--purple) 20% 55%, transparent 57%);
  box-shadow: 0 0 12px rgba(255, 77, 246, 0.8);
}

.terminal-wrap {
  height: min(630px, calc(100vh - 245px));
  min-height: 560px;
  display: grid;
  grid-template-rows: 44px auto auto minmax(0, 1fr) auto;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(rgba(55, 231, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 77, 246, 0.035) 1px, transparent 1px),
    var(--panel);
  background-size: 100% 22px, 34px 100%;
}

.chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 4, 8, 0.82);
}

.dots {
  display: flex;
  gap: 0.5rem;
}

.dots span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 1px solid rgba(167, 255, 79, 0.8);
  background: rgba(167, 255, 79, 0.45);
}

.chrome strong {
  color: var(--green);
  font-weight: 900;
  text-shadow: 0 0 12px rgba(167, 255, 79, 0.6);
}

button {
  border: 1px solid rgba(80, 255, 183, 0.5);
  border-radius: 8px;
  background: rgba(14, 46, 38, 0.8);
  color: #8cffbf;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.chrome button {
  justify-self: end;
  padding: 0.45rem 0.75rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-grid div {
  min-width: 0;
  min-height: 58px;
  padding: 0.75rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 5, 12, 0.42);
}

.status-grid div:last-child {
  border-right: 0;
}

.status-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.status-grid strong {
  display: block;
  margin-top: 0.3rem;
  overflow: hidden;
  color: var(--cyan);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal {
  overflow: auto;
  padding: 1.35rem;
  color: var(--text);
  line-height: 1.48;
  text-shadow: 0 0 14px rgba(55, 231, 255, 0.2);
}

.line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.line + .line {
  margin-top: 0.45rem;
}

.cmd {
  color: var(--pink);
}

.goblin {
  color: var(--cyan);
}

.system {
  color: var(--cyan);
}

.error {
  color: var(--warning);
}

.prompt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 0.9rem;
  padding: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 3, 8, 0.9);
}

#prompt-input {
  width: 100%;
  border: 1px solid rgba(155, 92, 255, 0.55);
  border-radius: 7px;
  outline: 0;
  background: rgba(12, 7, 20, 0.85);
  color: var(--cyan);
  padding: 0.9rem;
  font: inherit;
}

#prompt-input::placeholder {
  color: rgba(196, 140, 255, 0.75);
}

.site-footer {
  width: min(1460px, 100%);
  margin: 1.6rem auto 0;
  color: rgba(184, 204, 208, 0.72);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer p {
  margin: 0.35rem 0;
}

.archive-pill {
  position: fixed;
  right: 1.8rem;
  bottom: 1.4rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-color: rgba(255, 77, 246, 0.45);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: var(--purple);
  background: rgba(12, 7, 20, 0.82);
}

.archive-pill button {
  padding: 0.35rem 0.75rem;
}

.dream-panel {
  position: fixed;
  top: 6rem;
  right: clamp(0.8rem, 2vw, 2rem);
  z-index: 5;
  width: min(440px, calc(100vw - 1.6rem));
  max-height: calc(100vh - 7rem);
  display: none;
  grid-template-rows: auto minmax(0, 1fr);
  border-color: rgba(255, 77, 246, 0.45);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(9, 5, 17, 0.96);
}

.dream-panel.is-open {
  display: grid;
}

.dream-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 77, 246, 0.22);
}

.dream-panel h1 {
  margin: 0;
  color: var(--pink);
  font-size: 1rem;
}

.dream-list {
  overflow: auto;
  padding: 0.8rem;
}

.dream-card {
  padding: 0.8rem;
  border: 1px solid rgba(140, 255, 184, 0.18);
  border-radius: 6px;
  background: rgba(140, 255, 184, 0.045);
}

.dream-card + .dream-card {
  margin-top: 0.65rem;
}

.dream-card time {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.dream-card strong {
  color: var(--green);
}

.dream-card pre {
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
  color: var(--cyan);
  font: inherit;
  font-size: 0.82rem;
}

@keyframes float {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-34px) scale(1.25);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .terminal-status {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .terminal-wrap {
    height: 620px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .shell {
    padding-inline: 0.8rem;
  }

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

  .prompt-row {
    grid-template-columns: 1fr;
  }

  .archive-pill {
    left: 0.8rem;
    right: 0.8rem;
    justify-content: space-between;
  }
}
