:root {
  color-scheme: dark;
  --bg: #101418;
  --panel: #171d22;
  --line: #2a333a;
  --text: #f4f7f8;
  --muted: #9eabb4;
  --accent: #49d6a5;
  --accent-dark: #113d32;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.hero {
  min-height: calc(100dvh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 42px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.94;
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  border-color: var(--accent);
  color: #06241c;
  background: var(--accent);
}

.button.primary[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--muted);
  background: #222a30;
  pointer-events: none;
}

.status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
}

.device-card {
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 12%, rgba(73, 214, 165, 0.22), transparent 30%),
    linear-gradient(145deg, #151b20, #0c1013);
  overflow: hidden;
}

.phone {
  width: min(250px, 70vw);
  aspect-ratio: 0.5;
  padding: 18px;
  border: 1px solid #364149;
  border-radius: 34px;
  background: #090c0e;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.phone-top {
  width: 76px;
  height: 6px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #303940;
}

.app-screen {
  height: calc(100% - 24px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, #192229, #11171c);
}

.speaker-dot {
  width: 82px;
  height: 82px;
  border: 14px solid #2f3b43;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 14px var(--accent-dark);
}

.screen-title,
.screen-state {
  margin: 0;
}

.screen-title {
  font-size: 1.1rem;
  font-weight: 900;
}

.screen-state {
  color: var(--accent);
  font-weight: 700;
}

.meter {
  width: 132px;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: #2a333a;
  overflow: hidden;
}

.meter span {
  display: block;
  width: 68%;
  height: 100%;
  background: var(--accent);
}

.mini-grid {
  display: grid;
  width: 132px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-grid span {
  height: 36px;
  border-radius: 12px;
  background: #242d34;
}

.speaker {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 120px;
  height: 154px;
  border: 1px solid #334049;
  border-radius: 26px;
  background: #13191e;
}

.speaker span {
  position: absolute;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translateX(-50%);
  border: 9px solid #303a42;
  border-radius: 50%;
}

.speaker span:first-child {
  top: 22px;
}

.speaker span:last-child {
  bottom: 22px;
}

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

.steps article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.steps span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #06241c;
  background: var(--accent);
  font-weight: 900;
}

.steps h2 {
  margin: 16px 0 8px;
  font-size: 1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

code {
  color: var(--text);
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 24px, 560px);
    padding: 18px 0;
  }

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

  .hero {
    min-height: auto;
    gap: 22px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4.3rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .actions,
  .button {
    width: 100%;
  }

  .device-card {
    min-height: 420px;
  }

  .speaker {
    width: 88px;
    height: 112px;
    right: 18px;
    bottom: 18px;
    border-radius: 20px;
  }

  .speaker span {
    width: 42px;
    height: 42px;
  }
}
