:root {
  --paper: #fafaf7;
  --paper-2: #f1f0ea;
  --ink: #181a17;
  --ink-soft: #54544c;
  --accent: #ff5a1f;
  --accent-ink: #7a2a0c;
  --line: #d8d6cc;
  --ok: #2e7d4f;
  --error: #b9482f;
  --radius: 7px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      1200px 600px at 85% -10%,
      rgba(255, 90, 31, 0.09),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at -10% 30%,
      rgba(24, 26, 23, 0.04),
      transparent 50%
    ),
    var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--accent-ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

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

.brand__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand__name {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #e84f18;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink-soft);
}

.btn--block {
  width: 100%;
}

.hero {
  padding: 56px 0 40px;
  min-height: min(78vh, 720px);
  display: grid;
  align-content: center;
  gap: 28px;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero__mark {
  width: 64px;
  height: 64px;
}

.hero__wordmark {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: clamp(36px, 7vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__headline {
  margin: 0;
  max-width: 18ch;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero__lead {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.perf {
  border: none;
  border-top: 2px dashed var(--line);
  margin: 8px 0 40px;
}

.section {
  padding: 8px 0 56px;
}

.section__title {
  margin: 0 0 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 13px;
  text-transform: lowercase;
  color: var(--ink-soft);
}

.section__title::before {
  content: "// ";
  color: var(--accent);
}

.section__text {
  margin: 0 0 24px;
  max-width: 52ch;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
  padding: 20px;
}

.step__n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.step__title {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 16px;
  font-weight: 600;
}

.step__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.download-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  padding: 28px;
}

.download-card__title {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 22px;
  font-weight: 600;
}

.download-card__text {
  margin: 0;
  color: var(--ink-soft);
}

.download-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer {
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 13px;
}

.panel {
  width: min(460px, 100%);
  margin: 32px auto 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  padding: 28px;
}

.panel__eyebrow {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: lowercase;
}

.panel__title {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel__lead {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.field input:focus {
  outline: 2px solid rgba(255, 90, 31, 0.35);
  border-color: var(--accent);
}

.field input[readonly] {
  background: var(--paper-2);
  color: var(--ink-soft);
}

.field__error {
  min-height: 1.1em;
  font-size: 12px;
  color: var(--error);
}

.form-error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(185, 72, 47, 0.08);
  color: var(--error);
  font-size: 14px;
}

.form-error.is-visible {
  display: block;
}

.success {
  display: none;
  text-align: left;
}

.success.is-visible {
  display: block;
}

.success__check {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(46, 125, 79, 0.12);
  color: var(--ok);
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  margin-bottom: 14px;
}

.form.is-hidden,
.invite-banner.is-hidden {
  display: none;
}

.invite-banner {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 14px;
  color: var(--ink-soft);
}

.invite-banner strong {
  color: var(--ink);
}

@media (max-width: 800px) {
  .steps,
  .download-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero__wordmark {
    font-size: 40px;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero > * {
  animation: rise-in 0.55s ease both;
}

.hero > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero > *:nth-child(4) {
  animation-delay: 0.24s;
}
