:root {
  color-scheme: dark;
  --bg: #010402;
  --surface: #020a04;
  --surface-solid: #020a04;
  --line: rgba(128, 255, 139, 0.22);
  --line-strong: rgba(128, 255, 139, 0.5);
  --text: #9dffa6;
  --muted: rgba(140, 255, 150, 0.52);
  --green: #b5ffbb;
  --green-dim: #75df7e;
  --amber: #a4ffa9;
  --font: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 42px 120px rgba(0, 0, 0, 0.82), 0 0 34px rgba(65, 255, 86, 0.08), inset 0 0 80px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html { min-width: 280px; background: var(--bg); }

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 25%, #07130a 0%, #020603 48%, #000 100%);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { color: #001703; background: var(--green); }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: var(--bg);
  background: var(--green);
  border-radius: 0.25rem;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.ambient,
.ambient span {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient { z-index: -1; overflow: hidden; }

.ambient__grid { display: none; }

.ambient__glow { display: none; }

.stage {
  width: min(100% - 2rem, 960px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1rem, 5vh, 4rem) 0 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.terminal {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 36%, rgba(19, 64, 26, 0.25), transparent 70%),
    var(--surface);
  border: clamp(6px, 1vw, 10px) solid #090d0a;
  outline: 1px solid rgba(130, 255, 142, 0.28);
  border-radius: 2.2rem / 1.35rem;
  box-shadow: var(--shadow);
  text-shadow: 0 0 5px rgba(128, 255, 139, 0.55);
}

.terminal::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  border-radius: 1.55rem / 0.8rem;
  box-shadow:
    inset 0 0 44px rgba(0, 0, 0, 0.88),
    inset 0 0 10px rgba(141, 255, 150, 0.12);
}

.terminal::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0, 0, 0, 0.42) 3px, rgba(0, 0, 0, 0.42) 4px);
  animation: scan-drift 11s linear infinite;
}

.terminal > * { position: relative; z-index: 2; }

.terminal__bar {
  height: 2.65rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: rgba(140, 255, 150, 0.58);
  background: rgba(0, 14, 3, 0.8);
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal__lights { display: flex; gap: 0.45rem; }

.terminal__lights i {
  width: 0.72rem;
  height: 0.28rem;
  display: block;
  border: 1px solid var(--green-dim);
  border-radius: 1px;
  background: transparent;
}

.terminal__lights i:first-child { background: var(--green); box-shadow: 0 0 7px var(--green); }
.terminal__lights i:nth-child(2) { opacity: 0.6; }
.terminal__lights i:last-child { opacity: 0.25; }

.terminal__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal__secure { justify-self: end; color: var(--green); text-transform: uppercase; }

.terminal__body {
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
  animation: phosphor-flicker 7s steps(1, end) infinite;
}

.boot {
  margin: 0 0 clamp(1.7rem, 4vw, 2.8rem);
  color: rgba(140, 255, 150, 0.65);
  font-size: 0.75rem;
}

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

.command + .command { margin-top: clamp(2rem, 5vw, 3.4rem); }

.prompt,
.live-prompt {
  margin: 0 0 0.7rem;
  color: rgba(140, 255, 150, 0.62);
  font-size: clamp(0.72rem, 2.2vw, 0.86rem);
  overflow-wrap: anywhere;
}

.prompt span,
.live-prompt span { color: var(--green-dim); }
.prompt b,
.live-prompt b { color: rgba(157, 255, 166, 0.74); font-weight: 400; }

.output { padding-left: clamp(0.75rem, 2.5vw, 1.5rem); border-left: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--amber);
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 8.6vw, 4.85rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.cursor {
  width: 0.11em;
  height: 0.8em;
  display: inline-block;
  margin-left: 0.13em;
  background: var(--green);
  vertical-align: 0.02em;
  animation: blink 1.05s steps(1, end) infinite;
}

.intro > p:last-child {
  max-width: 46rem;
  margin: 0.9rem 0 0;
  color: rgba(157, 255, 166, 0.76);
  font-size: clamp(0.95rem, 2.4vw, 1.08rem);
}

.status-list {
  max-width: 39rem;
  margin: 0;
  padding: 0.2rem 0;
}

.status-list div {
  min-height: 2.4rem;
  display: grid;
  grid-template-columns: minmax(9.5rem, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px dotted var(--line);
}

.status-list dt { color: rgba(157, 255, 166, 0.76); }
.status-list dd { margin: 0; color: var(--green); white-space: nowrap; }

.dot {
  width: 0.45rem;
  height: 0.45rem;
  display: inline-block;
  margin-right: 0.6rem;
  border-radius: 50%;
}

.dot--active { background: var(--green); box-shadow: 0 0 0.8rem rgba(128, 255, 139, 0.8); }
.dot--quiet { background: transparent; border: 1px solid var(--green); }

.note {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-link {
  width: fit-content;
  min-height: 3rem;
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--green);
  border-bottom: 1px solid rgba(128, 255, 139, 0.44);
  font-size: clamp(0.93rem, 3.7vw, 1.24rem);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, gap 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible { color: #d6ffda; border-color: var(--green); gap: 1.45rem; }

.contact-link:focus-visible,
.footer a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.live-prompt { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.live-prompt i { width: 0.55em; height: 1.1em; display: inline-block; background: var(--green); box-shadow: 0 0 7px var(--green); vertical-align: -0.15em; animation: blink 1.05s steps(1, end) infinite; }

.footer {
  margin-top: 0.85rem;
  padding: 0.85rem 0 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(140, 255, 150, 0.48);
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
}

.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.25rem; }
.footer a { text-underline-offset: 0.25rem; transition: color 180ms ease; }
.footer a:hover { color: var(--text); }
.footer a[aria-current="page"] { color: var(--green); text-decoration-thickness: 2px; }

.legal-page .stage { justify-content: flex-start; }
.legal-page .terminal__body { max-width: 49rem; }
.legal-page h1 { font-size: clamp(1.75rem, 7vw, 3rem); letter-spacing: -0.045em; }
.legal-page h2 { margin: 2.2rem 0 0.6rem; color: var(--green); font-size: 0.95rem; font-weight: 500; }
.legal-page h3 { margin: 1.8rem 0 0.5rem; color: var(--green); font-size: 0.9rem; font-weight: 600; }
.legal-page h4 { margin: 1.25rem 0 0.35rem; color: rgba(181, 255, 187, 0.82); font-size: 0.82rem; font-weight: 600; }
.legal-page p, .legal-page li { color: rgba(157, 255, 166, 0.7); font-size: 0.88rem; }
.legal-page address { color: rgba(157, 255, 166, 0.82); font-style: normal; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page li + li { margin-top: 0.55rem; }
.legal-page .legal-emphasis { padding-left: 1rem; color: rgba(181, 255, 187, 0.78); border-left: 2px solid var(--line-strong); }
.legal-page .back { display: inline-block; margin-bottom: 1.8rem; color: var(--green); text-underline-offset: 0.25rem; }

body.is-animated [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 440ms cubic-bezier(.2,.75,.25,1) forwards;
}

body.is-animated [data-reveal]:nth-child(1) { animation-delay: 80ms; }
body.is-animated [data-reveal]:nth-child(2) { animation-delay: 340ms; }
body.is-animated [data-reveal]:nth-child(3) { animation-delay: 700ms; }
body.is-animated [data-reveal]:nth-child(4) { animation-delay: 1020ms; }
body.is-animated [data-reveal]:nth-child(5) { animation-delay: 1320ms; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes phosphor-flicker {
  0%, 96%, 100% { opacity: 1; }
  96.5% { opacity: 0.88; }
  97% { opacity: 1; }
  98.2% { opacity: 0.94; }
}
@keyframes scan-drift { to { background-position: 0 16px; } }

@media (max-width: 620px) {
  .stage { width: min(100% - 1rem, 960px); padding-top: 0.5rem; justify-content: flex-start; }
  .terminal { border-width: 5px; border-radius: 1.35rem / 0.8rem; }
  .terminal__bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.45rem; padding: 0 0.6rem; font-size: 0.58rem; }
  .terminal__lights { gap: 0.25rem; }
  .terminal__lights i { width: 0.5rem; }
  .terminal__body { padding: 1.25rem 1rem 1.5rem; }
  .status-list div { grid-template-columns: 1fr; gap: 0; padding: 0.45rem 0; }
  .status-list dd { font-size: 0.82rem; }
  .footer { padding-inline: 0.2rem; flex-direction: column; align-items: flex-start; }
}

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

@media (prefers-contrast: more) {
  :root { --muted: rgba(181, 255, 187, 0.82); --line: rgba(181, 255, 187, 0.5); --line-strong: var(--green); }
}
