@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Roboto:wght@400;500;700;900&display=swap');

:root {
  --page: #f8f9fa;
  --ink: #343a40;
  --muted: #68727c;
  --green: #00cc00;
  --green-dark: #008f00;
  --line: #dce2e6;
  --terminal: #20262b;
  --mono: 'DM Mono', 'Courier New', monospace;
  --sans: 'Roboto', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 0 clamp(20px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 46%, rgba(0, 204, 0, .07), transparent 28rem),
    var(--page);
  font-family: var(--sans);
}

a { color: inherit; }

.site-header, .site-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border: 1px solid var(--green);
  border-radius: 5px;
  color: var(--green-dark);
  font: 500 1rem var(--mono);
  box-shadow: 3px 3px 0 rgba(0, 204, 0, .17);
}

.brand-dot { color: var(--green-dark); }

.status, .eyebrow, .terminal, .footnote, .float-tag, .visual-caption, .site-footer {
  font-family: var(--mono);
}

.status {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .09em;
}

.status-light {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 204, 0, .12);
}

.error-layout {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
  padding: 54px 0 64px;
}

.error-copy { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .11em;
}

.eyebrow span {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 6.7vw, 6.5rem);
  line-height: .94;
  letter-spacing: -.075em;
  font-weight: 900;
}

.highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.highlight::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 2px;
  right: -7px;
  bottom: 5px;
  height: 18px;
  background: var(--green);
  opacity: .78;
  transform: rotate(-1.8deg);
}

.intro {
  max-width: 465px;
  margin: 26px 0 25px;
  color: #59636c;
  font-size: 1.04rem;
  line-height: 1.75;
}

code { font-family: var(--mono); font-size: .9em; }

.terminal {
  max-width: 510px;
  overflow: hidden;
  border: 1px solid #11171b;
  border-radius: 8px;
  background: var(--terminal);
  color: #dce5e8;
  box-shadow: 8px 8px 0 rgba(52, 58, 64, .08);
  font-size: .77rem;
}

.terminal-bar {
  height: 38px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca7ad;
  background: #2b3339;
  border-bottom: 1px solid #3b444a;
  font-size: .68rem;
}

.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #69747b; }
.window-dots i:first-child { background: #ff6b6b; }
.window-dots i:nth-child(2) { background: #ffd166; }
.window-dots i:nth-child(3) { background: var(--green); }
.terminal-live { margin-left: auto; color: #8be28b; font-size: .61rem; }

.terminal-body { padding: 15px 17px 13px; line-height: 1.55; }
.terminal-body p { margin: 0 0 9px; }
.terminal-body p:last-child { margin-bottom: 0; }
.prompt { color: #8be28b; }
.muted { color: #9ca7ad; }
.terminal-error { color: #ff9696; }
.terminal-error span { margin-right: 5px; }
.loading { display: inline-block; width: 18px; overflow: hidden; vertical-align: bottom; animation: dots 1.1s steps(4, end) infinite; }
.cursor { display: inline-block; width: 7px; height: 13px; vertical-align: -2px; background: var(--green); animation: blink 1s steps(2, start) infinite; }

.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 27px; }

.button {
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.button:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 4px; }
.button-primary { border-color: var(--green); background: var(--green); color: #142014; }
.button-primary:hover { background: #20e320; box-shadow: 4px 4px 0 #087b08; }
.button-secondary { background: transparent; }

.footnote { margin: 22px 0 0; color: #818b93; font-size: .67rem; line-height: 1.6; }

/* The illustration is made entirely from CSS shapes—no image assets needed. */
.visual {
  position: relative;
  width: 100%;
  max-width: 510px;
  aspect-ratio: 1 / 1;
  justify-self: center;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.visual::before {
  content: "";
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 204, 0, .13), rgba(0, 204, 0, .035) 56%, transparent 70%);
}

.orbit {
  position: absolute;
  width: 84%;
  height: 35%;
  border: 1px solid rgba(52, 58, 64, .22);
  border-radius: 50%;
  transform: rotate(-34deg);
}

.orbit-one { width: 93%; height: 40%; }
.orbit-two { width: 82%; height: 57%; transform: rotate(48deg); border-style: dashed; border-color: rgba(0, 143, 0, .4); }
.orbit-three { width: 67%; height: 80%; transform: rotate(65deg); border-color: rgba(52, 58, 64, .13); }

.planet {
  position: absolute;
  width: 43%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #9ce69c;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0ffdf, #a6f5a2 55%, #5edc5e);
  box-shadow: inset -15px -17px 0 rgba(0, 143, 0, .08), 0 20px 55px rgba(0, 143, 0, .12);
}

.planet-shine {
  position: absolute;
  width: 24%;
  height: 9%;
  top: 22%;
  left: 22%;
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  transform: rotate(-40deg);
}

.planet-code {
  color: #167916;
  font: 500 clamp(1.8rem, 4vw, 3.2rem) var(--mono);
  letter-spacing: -.12em;
  transform: rotate(-12deg);
}

.lost-file {
  position: absolute;
  width: 27%;
  height: 34%;
  top: 18%;
  right: 10%;
  z-index: 2;
  border: 2px solid var(--ink);
  border-radius: 8px 8px 18px 8px;
  background: #fff;
  box-shadow: 7px 8px 0 rgba(52, 58, 64, .12);
  transform: rotate(12deg);
  animation: float 5s ease-in-out infinite;
}

.file-fold {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 27%;
  height: 22%;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 0 5px 0 7px;
  background: #d8ffd5;
}

.file-face {
  position: absolute;
  top: 31%;
  left: 0;
  right: 0;
  display: grid;
  justify-items: center;
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
}

.file-eyes { font-size: clamp(.9rem, 1.8vw, 1.4rem); }
.file-mouth { margin-top: 3px; font-size: 1.25rem; }
.file-lines { position: absolute; left: 20%; right: 20%; bottom: 15%; display: grid; gap: 5px; }
.file-lines i { height: 4px; border-radius: 4px; background: #dce2e6; }
.file-lines i:last-child { width: 60%; }
.file-question { position: absolute; right: -13px; bottom: -15px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--ink); border-radius: 50%; background: var(--green); font: 700 1rem var(--mono); }

.float-tag {
  position: absolute;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(248, 249, 250, .92);
  color: var(--muted);
  font-size: .65rem;
  box-shadow: 3px 3px 0 rgba(52, 58, 64, .05);
}
.tag-top { top: 17%; left: 7%; transform: rotate(-8deg); }
.tag-side { right: 0; bottom: 22%; transform: rotate(5deg); color: var(--green-dark); border-color: #b5e8b5; }

.star { position: absolute; color: var(--green-dark); }
.star-a { top: 26%; left: 18%; font-size: 1.8rem; }
.star-b { right: 18%; bottom: 28%; font-size: 2rem; }
.star-c { left: 23%; bottom: 23%; font-size: 2.3rem; }
.star-d { top: 40%; right: 5%; font: 1.7rem var(--mono); }

.visual-caption {
  position: absolute;
  bottom: 5%;
  left: 50%;
  width: max-content;
  max-width: 100%;
  transform: translateX(-50%);
  color: var(--ink);
  font-size: .65rem;
  letter-spacing: .12em;
}
.visual-caption span { color: var(--muted); }

.site-footer {
  min-height: 65px;
  gap: 15px;
  border-top: 1px solid var(--line);
  color: #7c868e;
  font-size: .61rem;
  letter-spacing: .045em;
}
.footer-heart { color: var(--green-dark); }
.footer-right strong { color: var(--ink); }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(12deg); } 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes dots { 0% { width: 0; } 100% { width: 18px; } }

@media (min-width: 1450px) {
  .error-layout { min-height: 720px; }
}

@media (max-width: 900px) {
  .error-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 28px; }
  h1 { font-size: clamp(3.5rem, 7.5vw, 5.2rem); }
  .visual { width: 110%; }
  .terminal { font-size: .7rem; }
}

@media (max-width: 680px) {
  body { padding: 0 22px; }
  .site-header { min-height: 72px; }
  .status { font-size: .58rem; }
  .error-layout { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 45px 0 36px; }
  .error-copy { order: 1; }
  .visual { order: 0; width: min(100%, 340px); margin: 0 auto 12px; }
  .visual-caption { bottom: 1%; font-size: .55rem; }
  .eyebrow { margin-bottom: 16px; font-size: .68rem; }
  h1 { font-size: clamp(3.6rem, 15vw, 5.4rem); }
  .intro { margin-top: 20px; font-size: .97rem; }
  .terminal { font-size: .68rem; }
  .actions { gap: 10px; }
  .button { min-height: 44px; padding: 0 12px; font-size: .82rem; }
  .footnote { font-size: .61rem; }
  .site-footer { min-height: 66px; flex-wrap: wrap; justify-content: space-between; padding: 13px 0; font-size: .52rem; line-height: 1.7; }
}

@media (max-width: 380px) {
  body { padding: 0 16px; }
  .status { letter-spacing: .02em; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 3px; }
}

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