:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: #0d141c;
  --panel-2: #111b25;
  --line: #223241;
  --text: #f3f7fa;
  --muted: #91a2b1;
  --cyan: #67e8f9;
  --green: #52f28b;
  --yellow: #f8d866;
  --shadow: 0 30px 80px rgb(0 0 0 / 45%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgb(103 232 249 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(103 232 249 / 4%) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.grid::after {
  position: absolute;
  top: -22rem;
  left: 50%;
  width: 58rem;
  height: 58rem;
  border-radius: 50%;
  background: rgb(21 146 174 / 15%);
  filter: blur(90px);
  content: "";
  transform: translateX(-50%);
}

.nav,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--text);
  font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  color: var(--cyan);
  letter-spacing: -0.08em;
}

.source-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.source-link:hover {
  color: var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  min-height: 700px;
  padding-block: 72px;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--cyan);
  font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.15em;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

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

h1 {
  max-width: 790px;
  margin-bottom: 28px;
  font-size: clamp(52px, 7vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--muted);
}

.lede {
  max-width: 680px;
  margin-bottom: 36px;
  color: #b8c5cf;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #031015;
}

.button.primary:hover {
  background: #a5f3fc;
}

.button.secondary:hover {
  border-color: var(--cyan);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.facts span::before {
  margin-right: 8px;
  color: var(--green);
  content: "✓";
}

.install-card {
  padding: 18px;
  border: 1px solid #2a3c4d;
  border-radius: 18px;
  background: linear-gradient(155deg, rgb(17 27 37 / 96%), rgb(8 13 19 / 96%));
  box-shadow: var(--shadow);
}

.card-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
}

.online {
  color: var(--green);
}

.qr-frame {
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 12px;
  background: white;
}

.qr-frame img {
  display: block;
  width: 92%;
  height: 92%;
}

.install-card ol {
  margin: 20px 0 14px;
  padding-left: 25px;
  color: #c8d2da;
  font-size: 14px;
  line-height: 1.9;
}

.tiny {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.screens {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.screen-shell {
  padding: 24px;
  border: 1px solid #34495b;
  border-radius: 28px;
  background: linear-gradient(145deg, #1b2a36, #0b1218);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.screen {
  overflow: hidden;
  min-height: 236px;
  padding: 17px 18px;
  border: 4px solid #020406;
  border-radius: 7px;
  background: #020303;
  color: #f2f6f8;
  font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: inset 0 0 30px rgb(67 226 240 / 5%);
}

.hinge {
  height: 18px;
  margin-inline: 38px;
  border-inline: 1px solid #34495b;
  background: #0a1015;
}

.screen-title,
.cyan,
.label {
  color: var(--cyan);
}

.rule {
  height: 1px;
  margin: 7px 0 14px;
  background: #c8d2d8;
}

.connected {
  margin-bottom: 28px;
  color: var(--green);
}

.label {
  margin-bottom: 4px;
}

.screen p {
  margin-top: 30px;
  color: #bdc8cf;
}

.screen-row,
.controls {
  display: flex;
  justify-content: space-between;
}

.bottom-screen > div:not(.rule, .screen-row, .controls) {
  margin-bottom: 5px;
}

.selected {
  color: var(--green);
}

.controls {
  margin-top: 38px;
  padding-top: 9px;
  border-top: 1px dashed #82919b;
  color: var(--cyan);
}

.feature-copy h2,
.setup h2 {
  margin-bottom: 50px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

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

.feature-grid article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.number {
  color: var(--cyan);
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.feature-grid h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.feature-grid p,
.setup p {
  color: var(--muted);
  line-height: 1.7;
}

.setup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.setup h2 {
  margin-bottom: 18px;
}

pre {
  align-self: center;
  overflow-x: auto;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--cyan);
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.notice {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding: 18px 20px;
  border: 1px solid rgb(248 216 102 / 28%);
  border-radius: 10px;
  background: rgb(248 216 102 / 6%);
  color: #d9cb95 !important;
  font-size: 14px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero,
  .screens {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 80px;
  }

  .install-card {
    width: min(100%, 390px);
  }

  .screen-shell {
    width: min(100%, 410px);
    transform: none;
  }
}

@media (max-width: 640px) {
  .nav,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .source-link {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 90px;
  }

  h1 {
    font-size: 50px;
  }

  .screens {
    padding: 90px 0;
  }

  .feature-grid,
  .setup {
    grid-template-columns: 1fr;
  }

  .setup {
    gap: 28px;
    padding: 90px 0;
  }

  .notice {
    grid-column: auto;
  }

  footer {
    flex-direction: column;
  }
}

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

  .button {
    transition: none;
  }
}
