:root {
  --ink: #201d1d;
  --canvas: #fdfcfc;
  --soft: #f4f2f2;
  --muted: #9a9898;
  --hairline: rgba(15, 0, 0, 0.12);
  --yellow: #ffc108;
  --yellow-soft: #fff8e1;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, var(--yellow-soft) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at -10% 40%, rgba(32, 29, 29, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--canvas) 0%, var(--soft) 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span {
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 0.1em;
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-content: center;
  padding: 2rem 0 4rem;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
  }
}

.hero-copy {
  max-width: 34rem;
}

.hero-brand {
  font-size: clamp(1.85rem, 5.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
  padding-bottom: 0.35em;
  border-bottom: 3px solid var(--yellow);
  opacity: 0;
  animation: rise 700ms ease-out forwards;
}

.hero .lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 38ch;
  opacity: 0;
  animation: rise 700ms ease-out 120ms forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 700ms ease-out 220ms forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--canvas);
}

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

.hero-visual {
  opacity: 0;
  animation: rise 800ms ease-out 280ms forwards;
}

.terminal {
  border: 1px solid var(--hairline);
  background: rgba(253, 252, 252, 0.82);
  backdrop-filter: blur(6px);
  padding: 1rem 1.1rem 1.15rem;
  position: relative;
  overflow: hidden;
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: top;
  animation: bar 900ms ease-out 500ms forwards;
}

.terminal-chrome {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.terminal-chrome i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--hairline);
  display: block;
}

.terminal pre {
  margin: 0;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
}

.terminal .dim {
  color: var(--muted);
}

.terminal .hl {
  color: var(--ink);
  background: linear-gradient(transparent 60%, var(--yellow-soft) 60%);
}

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

@keyframes bar {
  to {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
    transition: none !important;
  }

  .hero-brand,
  .hero .lede,
  .cta-row,
  .hero-visual {
    opacity: 1;
  }

  .terminal::before {
    transform: scaleY(1);
  }
}
