:root {
  color-scheme: dark;
  --bg: #0f0f10;
  --card: #1a1a1c;
  --card-2: #222225;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, .09);
  --orange: #ff5a1f;
  --amber: #ffb347;
  --green: #3ddc84;
  --red: #ff453a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 40px rgba(0, 0, 0, .35);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 15% -10%, rgba(255, 90, 31, .16), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(255, 179, 71, .08), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
code { font: 600 .92em "IBM Plex Mono", ui-monospace, monospace; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.top, main > section, footer {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 15px; font-weight: 500; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }

/* hero */
.hero { padding-top: clamp(48px, 9vw, 112px); padding-bottom: clamp(48px, 7vw, 88px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
.dot.off { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 69, 58, .16); }
h1 { font-size: clamp(46px, 8vw, 96px); line-height: 1.0; font-weight: 800; }
h1 span {
  background: linear-gradient(90deg, var(--orange), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: .62em; display: inline-block; margin-top: .2em;
}
.lead { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }

.ip {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 14px; max-width: 100%;
  padding: 10px 10px 10px 18px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--card); color: var(--text); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  font: inherit; transition: transform .15s ease, box-shadow .15s ease;
}
.ip:hover { transform: translateY(-1px); box-shadow: var(--shadow), inset 0 0 0 1px var(--orange); }
.ip-label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.ip code { font-size: clamp(18px, 3.4vw, 24px); overflow-wrap: anywhere; }
.ip-action {
  padding: 10px 16px; border-radius: 12px; background: var(--orange); color: #fff;
  font-weight: 700; font-size: 15px; min-width: 88px; text-align: center;
}
.meta { margin-top: 16px; color: var(--muted); font-size: 15px; }
.meta b { color: var(--text); }

/* features */
.features { padding-bottom: 96px; }
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px;
}
.grid li {
  padding: 26px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.ic {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px;
  border-radius: 13px; background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #fff; font-size: 21px; font-weight: 800;
}
.grid h2 { font-size: 22px; font-weight: 800; }
.grid p { color: var(--muted); font-size: 16px; }
.grid code, .steps code { color: var(--amber); }

/* steps, rules */
.steps, .rules, .commands { padding-bottom: 96px; }
.steps h2, .rules h2, .commands h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.steps ol, .rules ol {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px;
  counter-reset: n;
}
.steps li, .rules li {
  counter-increment: n; padding: 26px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.steps li::before, .rules li::before {
  content: counter(n); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px;
  border-radius: 10px; background: var(--orange); color: #fff; font-weight: 700;
}
.steps b, .rules b { font-size: 19px; }
.steps span, .rules span { color: var(--muted); font-size: 15px; }

/* commands */
.table { margin-top: 28px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.table dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.table dl > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.table dt { font: 600 15px "IBM Plex Mono", ui-monospace, monospace; color: var(--amber); white-space: nowrap; }
.table dd { margin: 0; color: var(--muted); font-size: 15px; text-align: right; }

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
footer a:hover { color: var(--orange); }

@media (max-width: 820px) {
  nav a:not(:last-child) { display: none; }
}
@media (max-width: 520px) {
  .table dl > div { flex-direction: column; gap: 2px; }
  .table dd { text-align: left; }
  .ip { gap: 10px; padding-left: 14px; }
  .ip-action { min-width: 0; padding: 10px 12px; }
}
