:root {
  --ink: #172119;
  --paper: #f3eddd;
  --paper-deep: #ded5bf;
  --acid: #d9ff43;
  --amber: #ff8a25;
  --screen: #172419;
  --screen-text: #e3f5bd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

main {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  height: 74px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(23, 33, 25, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(243, 237, 221, 0.94);
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 27px;
  height: 27px;
  margin-right: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  transform: skew(-8deg);
}

.brand-mark i {
  display: block;
  background: var(--ink);
}

.brand-mark i:nth-child(2) {
  height: 72%;
  align-self: end;
}

.brand-mark i:nth-child(3) {
  height: 43%;
  align-self: end;
  background: var(--amber);
}

.brand-name {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
}

.brand-domain {
  font-size: 0.72rem;
  margin-left: 4px;
  font-weight: 800;
  color: #697368;
}

.system-status {
  font: 700 0.68rem/1 "Courier New", monospace;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56be50;
  box-shadow: 0 0 0 4px rgba(86, 190, 80, 0.16);
}

.hero {
  padding: 34px 4vw 88px;
  position: relative;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 138, 37, 0.13), transparent 27%),
    linear-gradient(rgba(23, 33, 25, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 25, 0.06) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(23, 33, 25, 0.12);
  border-radius: 50%;
  top: 150px;
  right: -230px;
  box-shadow:
    0 0 0 42px rgba(23, 33, 25, 0.025),
    0 0 0 84px rgba(23, 33, 25, 0.02);
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  font: 700 0.63rem/1 "Courier New", monospace;
  letter-spacing: 0.12em;
  opacity: 0.72;
  margin-bottom: 70px;
}

.hero-copy {
  max-width: 1080px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  font: 800 0.68rem/1 "Courier New", monospace;
  letter-spacing: 0.15em;
  color: #626d63;
}

h1 {
  margin: 0;
  max-width: 970px;
  font-size: clamp(3.7rem, 10vw, 9.2rem);
  line-height: 0.79;
  letter-spacing: -0.095em;
  font-weight: 950;
}

h1 .ask-line,
h1 .brand-question,
h1 .tagline {
  display: block;
}

h1 .ask-line {
  font-size: 0.43em;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

h1 .brand-question {
  font-size: clamp(2.35rem, 8.2vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: -0.085em;
  white-space: nowrap;
}

h1 .tagline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.intro {
  max-width: 590px;
  margin: 38px 0 60px;
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.5;
  font-weight: 520;
}

.oracle-shell {
  width: min(1050px, 92vw);
  margin: 0 auto;
  background: #302f2a;
  border: 1px solid #11140f;
  box-shadow:
    0 28px 60px rgba(23, 33, 25, 0.22),
    12px 12px 0 rgba(255, 138, 37, 0.55);
  position: relative;
  z-index: 2;
}

.machine-header,
.machine-footer {
  color: #f0eadc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Courier New", monospace;
}

.machine-header {
  min-height: 84px;
  padding: 18px 24px;
  border-bottom: 1px solid #55534b;
}

.machine-label {
  display: block;
  color: #b5b3a8;
  letter-spacing: 0.13em;
  font-size: 0.59rem;
  margin-bottom: 6px;
}

.machine-header strong {
  font-size: 1.18rem;
  letter-spacing: 0.06em;
}

.machine-meta {
  text-align: right;
  display: grid;
  gap: 5px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #b5b3a8;
}

.terminal-screen {
  min-height: 330px;
  margin: 24px;
  padding: clamp(24px, 4vw, 52px);
  background:
    radial-gradient(circle at 45% 35%, rgba(85, 137, 79, 0.15), transparent 55%),
    var(--screen);
  border: 10px solid #1d1e1a;
  outline: 1px solid #55534b;
  color: var(--screen-text);
  font-family: "Courier New", monospace;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 45px #071008;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    #000 4px
  );
}

.terminal-welcome {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.prompt-code {
  color: #8fa77d;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.terminal-welcome p {
  margin: 18px 0;
  max-width: 700px;
  font-size: clamp(1.25rem, 3vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(227, 245, 189, 0.22);
}

.cursor {
  width: 13px;
  height: 22px;
  display: block;
  background: var(--screen-text);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.decree {
  position: relative;
}

.question-line {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px dashed #596b52;
}

.question-line span {
  color: #8fa77d;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
}

.question-line p {
  margin: 8px 0 0;
  color: #b7c9a1;
}

.decree h2 {
  max-width: 720px;
  margin: 12px 0;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.decree > p {
  max-width: 760px;
  margin: 0 0 30px;
  line-height: 1.55;
  color: #bed2a5;
}

.confidence {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.confidence > div {
  height: 8px;
  background: #344434;
}

.confidence i {
  height: 100%;
  display: block;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(217, 255, 67, 0.45);
  transition: width 0.6s ease-out;
}

.confidence strong {
  color: var(--acid);
}

.thinking {
  min-height: 155px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.thinking i {
  width: 7px;
  height: 7px;
  display: block;
  background: var(--acid);
  animation: pulse 0.8s infinite alternate;
}

.thinking i:nth-child(3) {
  animation-delay: 0.2s;
}

.thinking i:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  to {
    opacity: 0.2;
  }
}

.question-form {
  margin: 0 24px 24px;
}

.question-form label {
  display: block;
  color: #b5b3a8;
  font: 700 0.6rem/1 "Courier New", monospace;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: #ebe5d6;
  border: 3px solid #151713;
}

.input-row > span {
  padding-left: 18px;
  font: 800 1.1rem/1 "Courier New", monospace;
}

.input-row input {
  width: 100%;
  min-width: 0;
  padding: 20px 14px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 700 0.92rem/1.2 "Courier New", monospace;
}

.input-row input::placeholder {
  color: #7f8278;
}

.input-row:focus-within {
  outline: 3px solid var(--acid);
  outline-offset: 2px;
}

.input-row button {
  align-self: stretch;
  border: 0;
  border-left: 3px solid #151713;
  padding: 0 22px;
  background: var(--acid);
  color: var(--ink);
  font: 900 0.72rem/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.input-row button span {
  margin-left: 7px;
}

.input-row button:hover:not(:disabled) {
  background: var(--amber);
}

.input-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.machine-footer {
  min-height: 45px;
  padding: 0 24px;
  border-top: 1px solid #55534b;
  color: #939188;
  font-size: 0.54rem;
  letter-spacing: 0.1em;
}

.manifesto {
  padding: 100px 4vw;
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr;
  gap: 4vw;
  align-items: start;
  background: var(--ink);
  color: var(--paper);
}

.manifesto-number {
  width: 44px;
  height: 44px;
  border: 1px solid #687069;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 0.64rem/1 "Courier New", monospace;
}

.manifesto .eyebrow {
  color: var(--acid);
}

.manifesto h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.manifesto-copy {
  margin: 36px 0 0;
  color: #bcc3bc;
  line-height: 1.65;
  max-width: 440px;
}

footer {
  min-height: 100px;
  padding: 30px 4vw;
  border-top: 1px solid #4b534c;
  background: var(--ink);
  color: #9ba29b;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  font: 700 0.56rem/1.4 "Courier New", monospace;
  letter-spacing: 0.08em;
}

footer span:nth-child(2) {
  text-align: center;
}

footer a {
  text-align: right;
  color: var(--paper);
  text-decoration: none;
}

@media (max-width: 720px) {
  .topbar {
    height: 64px;
  }

  .system-status {
    font-size: 0;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 60px;
  }

  .hero-kicker {
    margin-bottom: 54px;
  }

  .hero-kicker span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.5rem);
  }

  h1 .brand-question {
    font-size: clamp(2.05rem, 10.8vw, 4.35rem);
    letter-spacing: -0.09em;
  }

  h1 .tagline {
    -webkit-text-stroke-width: 1.4px;
  }

  .intro {
    margin-bottom: 42px;
  }

  .oracle-shell {
    width: 100%;
    box-shadow: 7px 7px 0 rgba(255, 138, 37, 0.6);
  }

  .machine-header {
    min-height: 72px;
    padding: 14px;
  }

  .terminal-screen {
    margin: 14px;
    min-height: 360px;
    border-width: 6px;
  }

  .question-form {
    margin: 0 14px 14px;
  }

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

  .input-row button {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 3px solid #151713;
    padding: 18px;
  }

  .machine-footer {
    padding: 0 14px;
  }

  .machine-footer span:last-child {
    display: none;
  }

  .confidence {
    grid-template-columns: 1fr auto;
  }

  .confidence > span {
    grid-column: 1 / -1;
  }

  .manifesto {
    padding: 76px 6vw;
    grid-template-columns: 1fr;
  }

  .manifesto-number {
    margin-bottom: 18px;
  }

  .manifesto-copy {
    margin-top: 12px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer span:nth-child(2),
  footer a {
    text-align: left;
  }
}

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