@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --yellow: #f5ad00;
  --yellow-hot: #ffc21c;
  --black: #11100d;
  --paper: #f4ead0;
  --silver: #ddd5c3;
  --line: rgba(17, 16, 13, 0.34);
  --acid: #d7ff00;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--yellow);
  font-family: "IBM Plex Mono", monospace;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(17,16,13,.13) .7px, transparent .7px);
  background-size: 5px 5px;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.system-rail { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: .42rem 2.2vw; border-bottom: 1px solid var(--black); background: var(--acid); font-size: .62rem; font-weight: 600; letter-spacing: .08em; }
.system-rail span:nth-child(2) { text-align: center; }
.system-rail span:last-child { text-align: right; }

.ticker {
  overflow: hidden;
  background: var(--black);
  color: var(--yellow-hot);
  border-bottom: 1px solid var(--black);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  white-space: nowrap;
}
.ticker__track { display: flex; width: max-content; padding: .62rem 0; animation: ticker 24s linear infinite; }
.ticker span { margin: 0 1.4rem; }
.ticker i { font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.site-header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.2vw;
  border-bottom: 1px solid var(--black);
}
.brand { display: flex; align-items: center; gap: .7rem; font-family: "Archivo Black", sans-serif; font-size: .76rem; line-height: .95; letter-spacing: -.03em; }
.brand__mark { display: grid; place-items: center; width: 2.45rem; aspect-ratio: 1; border: 2px solid currentColor; border-radius: 50%; font-size: 1.35rem; }
nav { display: flex; align-items: center; gap: 1.8rem; font-size: .78rem; font-weight: 600; }
nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { padding: .8rem 1rem; background: var(--black); color: var(--yellow-hot); }

.hero {
  min-height: 745px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  border-bottom: 1px solid var(--black);
}
.hero__copy { padding: clamp(3rem, 7vw, 7rem) 2.2vw 3rem; display: flex; flex-direction: column; justify-content: center; }
.eyebrow, .section-number { font-size: .72rem; font-weight: 600; letter-spacing: .1em; }
.ai-pulse { display: inline-block; width: .65rem; height: .65rem; background: var(--acid); border: 1px solid var(--black); box-shadow: 3px 0 0 var(--black); animation: aiPulse .7s steps(2) infinite; }
@keyframes aiPulse { 50% { background: var(--black); } }
h1, h2 { margin: 0; font-family: "Archivo Black", sans-serif; font-weight: 400; line-height: .82; letter-spacing: -.075em; text-transform: uppercase; }
h1 { margin: 1.3rem 0 1.8rem; font-size: clamp(4rem, 8.4vw, 9rem); }
h1 span { -webkit-text-stroke: 2px var(--black); color: transparent; }
.lede { max-width: 590px; margin: 0; font-size: clamp(1.15rem, 1.55vw, 1.55rem); line-height: 1.42; }
.prompt-line { max-width: 590px; margin-top: 1.35rem; padding: .65rem .75rem; border: 1px solid var(--black); background: rgba(255,255,255,.15); font-size: .68rem; letter-spacing: .04em; }
.prompt-line span { font-weight: 600; }
.prompt-line b { float: right; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.button { padding: 1rem 1.15rem; border: 1px solid var(--black); font-family: "Archivo Black", sans-serif; font-size: .82rem; }
.button--dark { background: var(--black); color: var(--yellow-hot); }
.button--light { background: transparent; }
.button:hover, .nav-cta:hover { background: var(--paper); color: var(--black); }

.coin-stage { position: relative; display: flex; flex-direction: column; justify-content: center; margin: 0; border-left: 1px solid var(--black); background: #ebb013; overflow: hidden; }
.coin-stage::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(var(--black) 1px, transparent 1px), linear-gradient(90deg, var(--black) 1px, transparent 1px); background-size: 48px 48px; }
.coin-stage img { position: relative; width: min(98%, 760px); align-self: center; }
.coin-stage__label { position: absolute; z-index: 2; top: 1.2rem; left: 1.2rem; padding: .55rem .7rem; background: var(--black); color: var(--yellow); font-size: .68rem; letter-spacing: .08em; }
.scan-status { position: absolute; z-index: 2; top: 1.2rem; right: 1.2rem; padding: .55rem .7rem; border: 1px solid var(--black); background: var(--acid); font-size: .68rem; font-weight: 600; }
.target { position: absolute; z-index: 2; width: 54px; height: 54px; border-top: 2px solid var(--acid); border-left: 2px solid var(--acid); pointer-events: none; }
.target--one { left: 15%; top: 30%; }
.target--two { right: 12%; bottom: 21%; transform: rotate(180deg); }
.coin-stage figcaption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: .85rem 1.2rem; border-top: 1px solid var(--black); background: rgba(245,173,0,.88); font-size: .7rem; font-weight: 600; }

.confession { display: grid; grid-template-columns: .32fr 1.05fr .82fr; gap: 4vw; padding: clamp(4rem, 7vw, 7rem) 2.2vw; background: var(--paper); border-bottom: 1px solid var(--black); }
h2 { font-size: clamp(3.5rem, 6vw, 7rem); }
.confession__copy p { max-width: 690px; font-size: 1rem; line-height: 1.7; }
.machine-note { align-self: end; padding: 1.1rem; background: var(--black); color: #ffbd0a; box-shadow: 10px 10px 0 var(--yellow); font-size: .82rem; }
.machine-note__top { display: flex; justify-content: space-between; margin: -1.1rem -1.1rem 1.3rem; padding: .8rem 1rem; border-bottom: 1px solid #ffbd0a; }
.status-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .45rem; background: #42ff38; border-radius: 50%; }
.cursor-line { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.generation-log { border-bottom: 1px solid var(--black); background: var(--black); color: var(--acid); }
.generation-log__head { display: flex; justify-content: space-between; padding: .8rem 2.2vw; border-bottom: 1px solid var(--acid); font-size: .7rem; font-weight: 600; letter-spacing: .08em; }
.generation-log__body { padding: 1.5rem 2.2vw 1.8rem; background-image: linear-gradient(rgba(215,255,0,.08) 1px, transparent 1px); background-size: 100% 24px; }
.generation-log__body p { margin: .45rem 0; font-size: clamp(.69rem, 1vw, .82rem); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.generation-log__body span { color: var(--paper); margin-right: 1rem; }

.specs { background: var(--silver); border-bottom: 1px solid var(--black); }
.specs > .section-number { padding: 1rem 2.2vw; border-bottom: 1px solid var(--black); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec-grid article { min-height: 260px; display: flex; flex-direction: column; padding: 1.4rem; border-right: 1px solid var(--black); }
.spec-grid article:last-child { border-right: 0; }
.spec-grid span { font-size: .76rem; font-weight: 600; }
.spec-grid strong { margin: auto 0 0; font-family: "Archivo Black", sans-serif; font-size: clamp(4rem, 7vw, 7.5rem); line-height: .8; letter-spacing: -.08em; }
.spec-grid small { margin-top: .7rem; font-size: .72rem; text-transform: uppercase; }

.utility-test, .contract { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; border-bottom: 1px solid var(--black); }
.utility-test > div:first-child, .contract > div:first-child { display: flex; flex-direction: column; justify-content: space-between; padding: 2rem 2.2vw 3rem; }
.utility-test > div:first-child p { max-width: 390px; line-height: 1.6; }
.test-console { display: flex; flex-direction: column; justify-content: center; padding: 4vw; border-left: 1px solid var(--black); background: var(--black); color: var(--yellow-hot); }
.test-console__readout { min-height: 285px; display: flex; flex-direction: column; padding: 1.2rem; border: 1px solid var(--yellow); }
.test-console__readout span, .test-console__readout small { font-size: .72rem; letter-spacing: .08em; }
.test-console__readout strong { margin: auto 0; font-family: "Archivo Black", sans-serif; font-size: clamp(4rem, 7vw, 7rem); letter-spacing: -.07em; }
.test-console button { width: 100%; padding: 1.15rem; border: 1px solid var(--yellow); border-top: 0; border-radius: 0; background: var(--yellow); color: var(--black); font-family: "Archivo Black", sans-serif; cursor: pointer; }
.test-console button:hover { background: var(--paper); }
.test-console.is-testing strong { animation: jitter .12s linear infinite; }
@keyframes jitter { 50% { transform: translateX(7px); } }

.contract { background: var(--paper); }
.contract__panel { display: flex; flex-direction: column; justify-content: center; padding: 4vw; border-left: 1px solid var(--black); }
.contract__panel > span { margin-bottom: .65rem; font-size: .72rem; font-weight: 600; }
.contract__copy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.25rem; border: 1px solid var(--black); border-radius: 0; background: transparent; cursor: pointer; }
.contract__copy code { overflow: hidden; text-overflow: ellipsis; font-family: inherit; white-space: nowrap; }
.contract__copy b { font-family: "Archivo Black", sans-serif; }
.contract__copy:hover { background: var(--yellow); }
.contract__links { display: grid; grid-template-columns: repeat(3, 1fr); }
.contract__links a { padding: 1rem; border: 1px solid var(--black); border-top: 0; border-right: 0; text-align: center; font-family: "Archivo Black", sans-serif; font-size: .8rem; }
.contract__links a:first-child { border-left: 1px solid var(--black); }
.contract__links a:hover { background: var(--black); color: var(--yellow); }

footer { align-items: flex-end; border-bottom: 0; background: var(--black); color: var(--paper); font-size: .7rem; line-height: 1.5; }
footer p { margin: 0; text-align: center; }

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__copy { min-height: 650px; }
  .coin-stage { min-height: 620px; border-left: 0; border-top: 1px solid var(--black); }
  .confession { grid-template-columns: 1fr; }
  .machine-note { max-width: 620px; width: 100%; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid article:nth-child(2) { border-right: 0; }
  .spec-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--black); }
}

@media (max-width: 620px) {
  .system-rail { grid-template-columns: 1fr auto; padding: .38rem 1rem; }
  .system-rail span:nth-child(2) { display: none; }
  .site-header { padding: .85rem 1rem; }
  .nav-cta { padding: .7rem .75rem; font-size: .7rem; }
  .brand { font-size: .66rem; }
  .brand__mark { width: 2rem; }
  .hero__copy { min-height: 590px; padding: 3.5rem 1rem 2rem; }
  h1 { font-size: clamp(3.25rem, 15.5vw, 4.7rem); }
  h1 span { -webkit-text-stroke-width: 1.2px; }
  .coin-stage { min-height: 420px; }
  .scan-status { top: auto; right: 1rem; bottom: 3.2rem; }
  .confession, .specs > .section-number { padding-left: 1rem; padding-right: 1rem; }
  h2 { font-size: clamp(3rem, 15vw, 5rem); }
  .spec-grid article { min-height: 190px; padding: 1rem; }
  .utility-test, .contract { grid-template-columns: 1fr; }
  .utility-test > div:first-child, .contract > div:first-child { min-height: 410px; padding: 1.5rem 1rem 2.5rem; }
  .test-console, .contract__panel { padding: 1rem; border-left: 0; border-top: 1px solid var(--black); }
  .test-console__readout { min-height: 235px; }
  footer { align-items: flex-start; flex-direction: column; gap: 1.5rem; padding: 1.5rem 1rem; }
  footer p { text-align: left; }
  .generation-log__head span { display: none; }
  .generation-log__body { padding-left: 1rem; padding-right: 1rem; }
  .generation-log__body p { font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .cursor-line, .test-console.is-testing strong { animation: none; }
  .ai-pulse { animation: none; }
}
