/* TheMachine green color system */
:root {
  --bg: #fff8f0;
  --fg: #1e1e24;
  --muted: #746d68;
  --line: rgba(30, 30, 36, .15);
  --card: #fffdf9;
  --acid: #92140c;
  --soft: #f0e7de;
  --danger: #92140c;
  --shadow: 0 30px 90px rgba(30, 30, 36, .13);
}

html[data-theme="dark"] {
  --bg: #1e1e24;
  --fg: #fff8f0;
  --muted: #bdb3aa;
  --line: rgba(255, 248, 240, .15);
  --card: #29282f;
  --soft: #35333b;
  --acid: #92140c;
  --danger: #c84a41;
  --shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

html,
body {
  font-family: "Onest", sans-serif;
}

.wordmark,
.role-input-wrap input,
.ai-description textarea,
.explain-card h3,
.demo-footer p {
  font-family: "Onest", sans-serif;
}

h1,
h2,
h3 {
  letter-spacing: -.035em;
}

h1 em,
h2 em,
.security-intro h2 em {
  color: #92140c;
  font-family: "Onest", sans-serif;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -.035em;
}

.begin-button,
.demo-footer a,
.ask-input b {
  color: #fff8f0;
}

.orbit::after,
.description-head span i {
  box-shadow: 0 0 0 5px rgba(146, 20, 12, .14);
}

html[data-theme="dark"] .hero-eye-wrap {
  background-color: #24232a;
}

html[data-theme="dark"] .machine-rail {
  background: #17171c;
}

html:not([data-theme="dark"]) .eye {
  background: #1e1e24;
}

/* Match the CTA exactly to the left side of the 1.05 / .95 hero grid. */
.begin-button {
  width: 52.5%;
}

.intro-copy h1 {
  max-width: none;
  margin: 48px 0 34px;
  font-size: clamp(62px, 6.4vw, 104px);
  line-height: .98;
  text-wrap: initial;
}

.intro-copy h1 span,
.intro-copy h1 em {
  display: block;
  white-space: nowrap;
}

.intro-copy h1 em {
  margin: 0;
}

.intro-copy .kicker,
.intro-copy .intro-sub {
  margin-left: 0;
  margin-right: 0;
}

.intro-copy .intro-sub {
  margin-top: 0;
}

@media (max-width: 900px) {
  .begin-button {
    width: 100%;
  }
}

/* A restrained blink replaces the previous full-screen zoom transition. */
.transition-eye {
  width: 112px;
  height: 78px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.94);
  box-shadow: 0 24px 70px rgba(14, 26, 18, .22);
}

.transition-eye.open {
  animation: stage-eye-appear 1.55s cubic-bezier(.4, 0, .2, 1) both;
  box-shadow: 0 0 0 100vmax var(--bg);
}

.transition-eye.open > i {
  animation: stage-eye-blink 1.55s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes stage-eye-appear {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
  13%, 87% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
}

@keyframes stage-eye-blink {
  0%, 29%, 72%, 100% { height: 43%; }
  43%, 58% { height: 3%; }
}
