:root {
  color-scheme: light;
  --ink: #0c0b0d;
  --muted: #66656b;
  --soft: #f6f7f8;
  --line: #e7e7ea;
  --white: #ffffff;
  --blue: #405dff;
  --blue-strong: #2945e8;
  --blue-soft: #eef1ff;
  --aqua: #12bbb7;
  --green: #16865d;
  --green-soft: #eaf8f2;
  --red: #c53b46;
  --red-soft: #fff0f1;
  font-family: Inter, "InterVariable", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #f7f8fa;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 4px 18px;
  border-bottom: 1px solid rgba(12, 11, 13, 0.08);
}

.brand-logo {
  display: block;
  width: 104px;
  height: auto;
}

.utility-label {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4d4c52;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(44px, 7vw, 88px);
  align-items: center;
  min-height: 430px;
  padding: 64px 28px 54px;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.5vw, 5.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 590px;
  margin-bottom: 0;
  color: #434248;
  font-size: clamp(1.05rem, 1.8vw, 1.23rem);
  line-height: 1.6;
}

.product-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #e9eaed;
  border-radius: 28px;
  background: #f0f2f4;
}

.dot-device {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 204px;
  aspect-ratio: 1;
  border: 1px solid #afb3bb;
  border-radius: 50%;
  background:
    linear-gradient(145deg, #f7f8fa 5%, #aeb2ba 45%, #f6f7f9 72%, #878c95 100%);
  box-shadow:
    0 24px 34px rgba(43, 48, 60, 0.16),
    inset 0 0 0 2px rgba(255, 255, 255, 0.75);
  transform: rotate(-5deg);
}

.dot-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 85%;
  aspect-ratio: 1;
  border: 1px solid rgba(93, 97, 106, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #ffffff 0%, #e5e7eb 32%, #c8ccd2 72%, #f6f7f8 100%);
  box-shadow:
    inset 10px 12px 22px rgba(255, 255, 255, 0.7),
    inset -8px -10px 18px rgba(91, 97, 108, 0.16);
}

.dot-logo {
  color: rgba(56, 59, 66, 0.72);
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.06em;
}

.dot-led {
  position: absolute;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 14px rgba(18, 187, 183, 0.9);
}

.dot-button {
  position: absolute;
  bottom: 20px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(71, 74, 82, 0.35);
  border-radius: 50%;
  background: linear-gradient(145deg, #f9fafb, #b8bcc3);
  box-shadow: 0 5px 8px rgba(65, 69, 77, 0.18);
}

.product-stage > p {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  margin: 0;
  color: #65646a;
  font-size: 0.82rem;
  font-weight: 600;
}

.browser-alert {
  margin: 0 28px 18px;
  padding: 15px 18px;
  border: 1px solid #f1bbc0;
  border-radius: 18px;
  color: #9a2631;
  background: var(--red-soft);
  font-weight: 600;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.action-panel {
  width: min(760px, calc(100% - 56px));
  margin: 0 auto 84px;
  padding: 12px;
  border: 1px solid rgba(12, 11, 13, 0.09);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 60px rgba(36, 43, 78, 0.1);
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--soft);
  transition: background 160ms ease;
}

.status-card[data-state="working"] {
  background: var(--blue-soft);
}

.status-card[data-state="success"] {
  background: var(--green-soft);
}

.status-card[data-state="error"] {
  background: var(--red-soft);
}

.status-copy {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}

.status-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.status-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #9a9aa0;
  box-shadow: 0 0 0 5px rgba(95, 95, 100, 0.08);
}

[data-state="working"] .status-dot {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(64, 93, 255, 0.12);
}

[data-state="success"] .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 134, 93, 0.12);
}

[data-state="error"] .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(197, 59, 70, 0.12);
}

.device-row {
  flex: 0 0 auto;
  margin: 0;
  text-align: right;
}

.device-row span {
  display: block;
  margin-bottom: 5px;
  color: #89888e;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-row strong {
  display: block;
  max-width: 200px;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 68px;
  margin-top: 12px;
  padding: 0 19px 0 26px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(64, 93, 255, 0.24);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 650;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}

.action-button:hover:enabled {
  background: var(--blue-strong);
  transform: translateY(-2px);
}

.action-button:active:enabled {
  transform: translateY(0);
}

.action-button:focus-visible {
  outline: 3px solid rgba(18, 187, 183, 0.5);
  outline-offset: 4px;
}

.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.button-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--white);
  font-size: 1.3rem;
}

.caution {
  margin: 14px 18px 8px;
  color: #747278;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.instructions {
  padding: 0 28px 74px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--aqua);
  font-size: 0.94rem;
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-grid li {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(12, 11, 13, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
}

.step-number {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.step-grid strong {
  display: block;
  margin-bottom: 9px;
  font-size: 1.18rem;
}

.step-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 22px 20px 0;
  border-top: 1px solid rgba(12, 11, 13, 0.08);
  color: #77767c;
  font-size: 0.76rem;
}

@media (max-width: 880px) {
  .page-shell {
    width: min(100% - 30px, 720px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 52px 10px 36px;
  }

  .product-stage {
    min-height: 310px;
  }

  .dot-device {
    width: 190px;
  }

  .action-panel {
    width: 100%;
  }

  .instructions {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 720px);
    padding-top: 12px;
  }

  .topbar {
    padding: 0 2px 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .lead {
    font-size: 1.02rem;
  }

  .product-stage {
    min-height: 280px;
    border-radius: 24px;
  }

  .dot-device {
    width: 176px;
  }

  .dot-led {
    top: 17px;
  }

  .dot-button {
    bottom: 15px;
    width: 30px;
    height: 30px;
  }

  .action-panel {
    margin-bottom: 66px;
    border-radius: 24px;
  }

  .status-card {
    display: grid;
    gap: 18px;
    padding: 18px;
  }

  .device-row {
    padding-top: 14px;
    border-top: 1px solid rgba(12, 11, 13, 0.08);
    text-align: left;
  }

  .device-row strong {
    max-width: none;
  }

  .action-button {
    min-height: 62px;
    padding-left: 20px;
  }

  .button-arrow {
    width: 38px;
    height: 38px;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .step-grid li {
    min-height: 170px;
  }

  .step-number {
    margin-bottom: 26px;
  }

  footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
