/* Tokens mirror www.argonrobotics.ai so the two pages read as one brand. */
:root {
  --bg: #0a0a0b;
  --bg-input: #0e0e10;
  --fg: #f2f1ee;
  --fg-72: #f2f1eeb8;
  --fg-60: #f2f1ee99;
  --fg-45: #f2f1ee73;
  --line: #f2f1ee14;
  --line-strong: #f2f1ee29;
  --line-rule: #f2f1ee33;
  --accent: #c8f542;
  --accent-ink: #0a0a0b;
  --accent-soft: #c8f54226;
  --accent-glow: #c8f54212;
  --danger: #ff8a7a;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4.4vw, 64px);
  --radius: 4px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 78% 30%, var(--accent-glow), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* Keep `hidden` authoritative over component display rules (e.g. .done is flex). */
[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.brand__word {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  transform: translateY(2px);
}

.nav__link {
  color: var(--fg-60);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--fg);
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) var(--gutter);
}

.hero__title {
  margin: 0;
  font-size: clamp(50px, 7.4vw, 108px);
  font-weight: 560;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero__lede {
  max-width: 34ch;
  margin: 32px 0 0;
  color: var(--fg-72);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
}

/* ---------- Email form ---------- */

.join {
  max-width: 520px;
  margin-top: 40px;
}

.join__form {
  display: flex;
  gap: 10px;
}

.join__form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.join__form input::placeholder {
  color: var(--fg-45);
}

.join__form input:hover {
  border-color: var(--line-rule);
}

.join__form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.join__form input[aria-invalid="true"] {
  border-color: var(--danger);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.15s var(--ease-out);
}

.submit svg {
  transition: transform 0.2s var(--ease-out);
}

.submit:hover {
  filter: brightness(1.06);
}

.submit:hover svg {
  transform: translateX(3px);
}

.submit:active {
  transform: translateY(1px);
}

.submit:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.submit[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.join__status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--fg-60);
  font-size: 12px;
}

.join__status.is-error {
  color: var(--danger);
}

.done {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-input);
}

.done__mark {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.done__text {
  margin: 3px 0 0;
  color: var(--fg-72);
}

.done__title {
  color: var(--fg);
  font-weight: 600;
}

.done__email {
  color: var(--fg);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ---------- Example log ---------- */

.log {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0d0d0f;
  box-shadow: 0 40px 120px -40px #000;
  overflow: hidden;
}

.log__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-45);
  font-size: 12px;
}

.log__dots {
  display: inline-flex;
  gap: 6px;
}

.log__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.log__lines {
  margin: 0;
  padding: 16px 16px 10px;
  list-style: none;
  font-size: 13px;
}

.log__lines li {
  display: grid;
  grid-template-columns: 20px 112px minmax(0, 1fr);
  align-items: baseline;
  padding: 6px 0;
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.log__lines .ok {
  color: var(--accent);
}

.log__lines .k {
  color: var(--fg);
}

.log__lines .v {
  overflow: hidden;
  color: var(--fg-45);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.log__ready .k {
  color: var(--accent);
}

.log__caption {
  padding: 0 16px 14px;
  color: var(--fg-45);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* JS adds .is-playing, then reveals each line with .is-on. */
.log.is-playing .log__lines li {
  opacity: 0;
  transform: translateY(4px);
}

.log.is-playing .log__lines li.is-on {
  opacity: 1;
  transform: none;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  color: var(--fg-45);
  font-size: 12px;
}

.footer__link {
  text-decoration: none;
}

.footer__link:hover {
  color: var(--fg);
}

/* ---------- Motion ---------- */

.rise {
  animation: rise 0.8s var(--ease-out) both;
}

.rise-1 {
  animation-delay: 0.05s;
}

.rise-2 {
  animation-delay: 0.18s;
}

.rise-3 {
  animation-delay: 0.3s;
}

.rise-4 {
  animation-delay: 0.42s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .hero__lede {
    max-width: 40ch;
  }
}

@media (max-width: 560px) {
  .join__form {
    flex-direction: column;
  }

  /* In a column, flex: 1 would size the input by flex-basis and collapse its height. */
  .join__form input[type="email"] {
    flex: none;
  }

  .log__lines li {
    grid-template-columns: 18px 92px minmax(0, 1fr);
    font-size: 12px;
  }

  .nav__link {
    font-size: 12px;
  }
}
