:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #eceef1;
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --surface-3: #eef0f2;
  --line: #d5d9de;
  --line-strong: #c4c9d0;
  --text: #1f2328;
  --muted: #666e79;
  --muted-2: #8a929c;
  --accent: #1f2328;
  --accent-text: #ffffff;
  --ok: #1c7a53;
  --ok-soft: #eef6f1;
  --danger: #b23838;
  --danger-soft: #fbefef;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 18px 50px rgba(16, 24, 40, 0.16);
  --radius: 9px;
  --radius-sm: 7px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1b1d21;
    --surface: #22252a;
    --surface-2: #272b31;
    --surface-3: #2d3239;
    --line: #343a42;
    --line-strong: #454c55;
    --text: #eef1f4;
    --muted: #9aa3ae;
    --muted-2: #737c87;
    --accent: #eef1f4;
    --accent-text: #1b1d21;
    --ok: #6cc79e;
    --ok-soft: #1d322a;
    --danger: #e58989;
    --danger-soft: #382224;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.shell {
  width: min(1120px, calc(100% - 56px));
  margin-inline: auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  flex: none;
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13.5px;
}

.topnav a {
  padding: 7px 9px;
  border-radius: var(--radius-sm);
}

.topnav a:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.button:hover {
  opacity: 0.9;
  text-decoration: none;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--text);
  opacity: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 56px;
  align-items: center;
  padding: 64px 0 60px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.text-link {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.activity-panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.panel-sub {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-live {
  color: var(--ok);
  border-color: transparent;
  background: var(--ok-soft);
}

.badge-ok {
  color: var(--ok);
  border-color: transparent;
  background: var(--ok-soft);
}

.badge-danger {
  color: var(--danger);
  border-color: transparent;
  background: var(--danger-soft);
}

.activity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-main {
  min-width: 0;
}

.activity-main strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-main span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-foot {
  padding: 11px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.band-grid > div {
  padding: 22px 26px;
}

.band-grid > div + div {
  border-left: 1px solid var(--line);
}

.band-grid strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 650;
}

.band-grid span {
  color: var(--muted);
  font-size: 12.5px;
}

.section {
  padding: 58px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 670;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head p,
.section-copy {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.deploy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.steps {
  display: grid;
  gap: 15px;
  margin: 22px 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 34px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.steps strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.steps span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12.5px;
}

.code-panel {
  overflow: hidden;
  border: 1px solid #343a42;
  border-radius: var(--radius);
  background: #1f2328;
  box-shadow: var(--shadow-lg);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 15px;
  border-bottom: 1px solid #343a42;
  color: #9aa3ae;
  font-family: var(--mono);
  font-size: 11px;
}

.code-head span:last-child {
  color: #c4c9d0;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  color: #eef1f4;
  font: 12px/1.7 var(--mono);
}

.code-key {
  color: #9cc7b2;
}

.code-value {
  color: #e2c58f;
}

.code-foot {
  padding: 11px 15px;
  border-top: 1px solid #343a42;
  color: #9aa3ae;
  font-size: 11.5px;
}

.console-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  overflow: hidden;
}

.console-copy {
  padding: 28px;
}

.console-copy h2 {
  font-size: clamp(24px, 2.8vw, 30px);
}

.plain-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.plain-list strong {
  color: var(--text);
  font-weight: 650;
}

.console-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: var(--surface-2);
}

.mini-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.mini-head,
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
}

.mini-head {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.mini-row {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.mini-row:last-child {
  border-bottom: 0;
}

.mini-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-links a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .topnav {
    display: none;
  }

  .hero,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    padding-top: 42px;
  }

  .activity-panel {
    max-width: 560px;
  }

  .cards,
  .band-grid {
    grid-template-columns: 1fr;
  }

  .band-grid > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .console-panel {
    grid-template-columns: 1fr;
  }

  .console-side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 32px);
  }

  .topbar-inner {
    min-height: 58px;
  }

  .topbar-inner > .button {
    padding-inline: 11px;
  }

  .hero {
    padding: 34px 0 44px;
  }

  .section {
    padding: 44px 0;
  }

  .console-copy,
  .console-side {
    padding: 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }
}

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

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