:root {
  --ink: var(--fg);
  --soft: color-mix(in oklab, var(--fg), transparent 72%);
  --subtle: color-mix(in oklab, var(--fg), transparent 88%);
  --code-bg: color-mix(in oklab, var(--surface), var(--fg) 5%);
}

.starflash-page {
  gap: clamp(34px, 5vw, 68px);
}

.starflash-hero {
  align-items: end;
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  min-height: clamp(360px, 58svh, 620px);
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-copy h1 {
  font-size: clamp(58px, 11vw, 152px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.88;
}

.hero-copy p:last-child {
  color: var(--muted);
  font-size: clamp(20px, 2.4vw, 31px);
  line-height: 1.28;
  max-width: 38ch;
}

.terminal-mark {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  max-width: 480px;
  padding: 18px;
  width: 100%;
}

.terminal-lights {
  align-items: center;
  display: flex;
  gap: 7px;
  height: 10px;
}

.dot {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.red { background: #d95b52; }
.amber { background: #d6a846; }
.green { background: #4eaa71; }

pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  margin: 0;
  overflow-x: auto;
  padding: 16px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

p code {
  background: var(--code-bg);
  border-radius: 5px;
  padding: 2px 5px;
}

.download-panel {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(22px, 4vw, 42px) 0;
}

.download-panel div {
  display: grid;
  gap: 8px;
}

.download-panel h2,
.steps h2 {
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
}

.muted,
.steps p {
  color: var(--muted);
}

.download-button {
  align-items: center;
  background: var(--fg);
  border-radius: 999px;
  color: var(--bg);
  display: inline-flex;
  font-weight: 650;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  white-space: nowrap;
}

.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.8vw, 28px);
}

.danger-step {
  border-color: color-mix(in oklab, #d95b52, var(--line) 45%);
}

@media (max-width: 820px) {
  .starflash-hero,
  .download-panel,
  .steps {
    grid-template-columns: 1fr;
  }

  .starflash-hero {
    min-height: auto;
  }

  .download-button {
    justify-self: start;
  }
}
