:root {
  --canvas: #edf3f4;
  --paper: #f8fbfb;
  --ink: #142c36;
  --muted: #5e7178;
  --line: #c8d4d7;
  --line-strong: #9eb0b5;
  --signal: #f05a3c;
  --signal-soft: #ffe2d9;
  --verified: #1f7659;
  --verified-soft: #dcefe7;
  --terminal: #102831;
  --terminal-muted: #93a8ae;
  --shadow: 0 26px 80px rgba(26, 55, 65, 0.14);
  --display: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(73, 103, 112, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 103, 112, 0.07) 1px, transparent 1px),
    var(--canvas);
  background-size: 42px 42px;
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(240, 90, 60, 0.48);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 25px;
  height: 32px;
  display: inline-block;
}

.balloon {
  position: absolute;
  top: 1px;
  left: 3px;
  width: 19px;
  height: 23px;
  background: var(--signal);
  border-radius: 54% 54% 48% 48%;
  transform: rotate(4deg);
}

.balloon::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 7px;
  border-right: 3px solid transparent;
  border-bottom: 5px solid var(--signal);
  border-left: 3px solid transparent;
}

.string {
  position: absolute;
  top: 24px;
  left: 13px;
  width: 7px;
  height: 9px;
  border-left: 1px solid var(--ink);
  transform: skewX(-20deg);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:not(.nav-action):hover {
  color: var(--signal);
}

.nav-action {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(248, 251, 251, 0.62);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  padding: 76px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(540px, 1.1fr);
  gap: 74px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--verified);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(31, 118, 89, 0.1);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 26px;
  font-size: clamp(48px, 5.3vw, 76px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h1 span {
  display: block;
  color: var(--signal);
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 32px;
  color: #455e67;
  font-size: 17px;
  line-height: 1.7;
}

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

.button {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--signal);
}

.button-primary:hover {
  box-shadow: 3px 3px 0 var(--signal);
}

.button-secondary {
  background: rgba(248, 251, 251, 0.7);
}

.hero-facts {
  margin: 48px 0 0;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding-right: 16px;
}

.hero-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.recorder-shell {
  position: relative;
  padding: 17px;
  background: rgba(248, 251, 251, 0.86);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.recorder-shell::before {
  content: "BT-DRIFT / 01";
  position: absolute;
  top: -25px;
  right: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.recorder-label {
  min-height: 36px;
  padding: 0 4px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.recorder-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.recorder-status i {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: var(--verified);
  border-radius: 50%;
}

.stage-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
}

.stage-button {
  min-height: 52px;
  padding: 8px 11px;
  color: var(--muted);
  background: #e8eff0;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.stage-button:last-child {
  border-right: 0;
}

.stage-button span {
  margin-right: 6px;
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 9px;
}

.stage-button.is-active {
  color: var(--ink);
  background: var(--paper);
}

.stage-button.is-active span {
  color: var(--signal);
}

.terminal {
  min-height: 395px;
  color: #eaf2f3;
  background: var(--terminal);
  border-radius: 0 0 7px 7px;
  overflow: hidden;
}

.terminal-topbar {
  height: 42px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--terminal-muted);
  background: #17343e;
  font-family: var(--mono);
  font-size: 9px;
}

.terminal-topbar > span:last-child {
  justify-self: end;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  background: #49636b;
  border-radius: 50%;
}

.window-dots i:first-child {
  background: var(--signal);
}

.terminal-body {
  padding: 22px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
}

.terminal-line {
  min-height: 18px;
  margin: 0;
  white-space: pre-wrap;
}

.terminal-line + .terminal-line {
  margin-top: 4px;
}

.terminal-command {
  color: white;
}

.terminal-command::before {
  content: "$ ";
  color: #78c7a9;
}

.terminal-heading {
  margin-top: 14px;
  color: #a9bbc0;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-success {
  color: #86d9ba;
}

.terminal-warning {
  color: #ffae92;
}

.terminal-evidence {
  padding-left: 18px;
  color: var(--terminal-muted);
}

.terminal-cursor::after {
  content: "";
  width: 6px;
  height: 13px;
  display: inline-block;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--signal);
  animation: blink 900ms steps(1) infinite;
}

.demo-hint {
  margin: 13px 2px 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.problem-strip {
  padding: 28px max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #dce9eb;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.problem-strip p {
  margin: 0;
}

.problem-strip span {
  color: #65808a;
}

.problem-strip .problem-answer {
  color: #ff9a7e;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 116px 0;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 58px;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.section-intro > p:last-child,
.attention-copy > p:last-child,
.install-section > div:first-child > p:last-child {
  max-width: 650px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.command-list {
  border-top: 1px solid var(--line-strong);
}

.command-row {
  min-height: 146px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 180px 1fr 150px;
  gap: 30px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.command-row > code {
  width: max-content;
  padding: 7px 9px;
  color: white;
  background: var(--ink);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
}

.command-row h3 {
  margin-bottom: 8px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.command-row p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.command-state {
  justify-self: end;
  padding: 6px 8px;
  color: var(--verified);
  background: var(--verified-soft);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
}

.command-state.signal {
  color: #a43923;
  background: var(--signal-soft);
}

.attention-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  align-items: center;
}

.attention-report {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: 12px 12px 0 #d8e2e4;
}

.report-header,
.report-footer {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.report-header {
  border-bottom: 1px solid var(--line);
}

.report-badge {
  padding: 5px 7px;
  color: #a43923;
  background: var(--signal-soft);
  border-radius: 3px;
}

.attention-report ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.attention-report li {
  padding: 25px 20px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.report-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--signal);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
}

.attention-report strong {
  font-size: 14px;
}

.attention-report li p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.attention-report code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
}

.report-footer {
  display: block;
  color: var(--muted);
  background: #e6eef0;
}

.report-footer strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 13px;
  text-transform: none;
}

.build-week-section {
  border-top: 1px solid var(--line);
}

.release-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}

.release-comparison article {
  min-height: 390px;
  padding: 34px;
  background: rgba(248, 251, 251, 0.64);
}

.release-comparison article + article {
  border-left: 1px solid var(--line-strong);
}

.release-comparison .release-new {
  color: #eaf2f3;
  background: var(--ink);
}

.release-label {
  margin-bottom: 46px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.release-new .release-label {
  color: #98abb1;
}

.release-comparison h3 {
  margin-bottom: 24px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.release-comparison ul {
  min-height: 142px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.release-comparison li {
  position: relative;
  margin: 10px 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}

.release-comparison li::before {
  content: "—";
  position: absolute;
  left: 0;
}

.release-new li {
  color: #becdd1;
}

.release-comparison a {
  font-size: 12px;
  font-weight: 800;
}

.release-new a {
  color: #ff9a7e;
}

.install-section {
  padding: 88px max(20px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: center;
  background: #dfe9eb;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.install-section h2 {
  font-size: clamp(34px, 3.5vw, 50px);
}

.install-command {
  background: var(--terminal);
  border-radius: 6px;
  box-shadow: 8px 8px 0 rgba(20, 44, 54, 0.14);
  overflow: hidden;
}

.install-command > div {
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--terminal-muted);
  background: #17343e;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.install-command button {
  padding: 4px 7px;
  color: #c6d4d7;
  background: transparent;
  border: 1px solid #45606a;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
}

.install-command > code {
  min-height: 92px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  color: #eaf2f3;
  font-family: var(--mono);
  font-size: 13px;
  overflow-x: auto;
}

footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

footer p {
  margin: 0;
  text-align: center;
}

footer > a {
  justify-self: end;
  font-weight: 700;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: 62px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .recorder-shell {
    width: min(100%, 720px);
  }

  .attention-section {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .attention-copy {
    max-width: 720px;
  }

  .install-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 70px;
  }

  nav a:not(.nav-action) {
    display: none;
  }

  .hero {
    width: min(100% - 28px, 1180px);
    padding: 52px 0 68px;
    gap: 58px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-facts {
    gap: 14px;
  }

  .recorder-shell {
    padding: 10px;
  }

  .recorder-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .stage-button {
    min-height: 60px;
  }

  .stage-button span {
    display: block;
    margin-bottom: 3px;
  }

  .terminal {
    min-height: 450px;
  }

  .terminal-topbar {
    grid-template-columns: 1fr auto;
  }

  .terminal-topbar > span:first-of-type {
    display: none;
  }

  .terminal-body {
    padding: 17px;
    font-size: 10px;
  }

  .problem-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .problem-strip span {
    transform: rotate(90deg);
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 84px 0;
  }

  .command-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .command-state {
    justify-self: start;
  }

  .attention-report li {
    padding: 22px 16px;
  }

  .release-comparison {
    grid-template-columns: 1fr;
  }

  .release-comparison article + article {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .install-section {
    padding: 72px 20px;
  }

  footer {
    padding: 34px 0;
    grid-template-columns: 1fr;
  }

  footer p {
    text-align: left;
  }

  footer > a {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
