:root {
  color-scheme: dark;
  --bg: #090b0a;
  --surface: #111411;
  --surface-raised: #171b18;
  --line: #303630;
  --line-bright: #586259;
  --text: #f3f5ef;
  --muted: #9da69d;
  --signal: #78f5a6;
  --warm: #ff8f70;
  --yellow: #e8d978;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.signal-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.signal-field span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #171b18;
}

.signal-field span:nth-child(1) { left: 8%; }
.signal-field span:nth-child(2) { left: 29%; }
.signal-field span:nth-child(3) { left: 50%; background: #20251f; }
.signal-field span:nth-child(4) { left: 71%; }
.signal-field span:nth-child(5) { left: 92%; }

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  width: min(calc(100% - 48px), var(--content));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.brand img {
  width: 88px;
  height: auto;
  filter: invert(1) brightness(1.5);
}

.brand span {
  padding-left: 12px;
  border-left: 1px solid var(--line-bright);
}

.release-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 16px rgba(232, 217, 120, 0.65);
}

.release-state.ready .status-light {
  background: var(--signal);
  box-shadow: 0 0 16px rgba(120, 245, 166, 0.72);
}

.release-state.error .status-light {
  background: var(--warm);
  box-shadow: 0 0 16px rgba(255, 143, 112, 0.7);
}

.intro {
  width: min(calc(100% - 48px), var(--content));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 84px 0 70px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 650;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: 68px;
  font-weight: 570;
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 650px;
  margin: 28px 0 42px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.prompt-tool {
  max-width: 860px;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 18px 18px 0 #050606;
}

.prompt-heading,
.prompt-actions {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
}

.prompt-heading {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.platform {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

pre {
  min-height: 138px;
  margin: 0;
  padding: 24px 22px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #dce3dc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 1.65;
}

.prompt-actions {
  border-top: 1px solid var(--line);
}

button,
.prompt-actions a {
  min-height: 38px;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

button {
  border: 1px solid var(--signal);
  padding: 0 17px;
  background: var(--signal);
  color: #071109;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: #a0ffc0;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

.prompt-actions a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

.prompt-actions a:hover {
  color: var(--text);
}

.flow-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

.flow-band ol {
  display: grid;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.flow-band li {
  min-height: 150px;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.flow-band li:first-child {
  border-left: 1px solid var(--line);
}

.flow-band li span,
.flow-band li strong,
.flow-band li small {
  display: block;
}

.flow-band li span {
  margin-bottom: 28px;
  color: var(--warm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.flow-band li strong {
  margin-bottom: 7px;
  font-size: 15px;
}

.flow-band li small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

footer {
  display: flex;
  width: min(calc(100% - 48px), var(--content));
  min-height: 88px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

footer a {
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .site-header,
  .intro,
  footer {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header {
    min-height: 66px;
  }

  .brand img {
    width: 76px;
  }

  .release-state {
    max-width: 140px;
    justify-content: flex-end;
    text-align: right;
  }

  .intro {
    min-height: calc(100vh - 66px);
    padding: 58px 0 52px;
  }

  h1 {
    font-size: 44px;
  }

  .intro-copy {
    font-size: 16px;
  }

  .prompt-tool {
    box-shadow: 8px 8px 0 #050606;
  }

  .prompt-heading,
  .prompt-actions {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  pre {
    min-height: 184px;
    padding: 18px 16px;
    font-size: 13px;
  }

  .prompt-actions button,
  .prompt-actions a {
    width: 100%;
    justify-content: center;
  }

  .flow-band ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-band li,
  .flow-band li:first-child {
    min-height: 132px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-band li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  footer {
    min-height: 76px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .status-light {
    animation: status-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
