:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #08090b;
  --panel: #101216;
  --panel-2: #15181d;
  --line: #272b31;
  --line-soft: #1c2026;
  --text: #f7f8fa;
  --muted: #9ba3ae;
  --green: #72f5a5;
  --green-deep: #1d9d55;
  --amber: #ffd166;
  --danger: #ff7c7c;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --esp-tools-button-color: #f7f8fa;
  --esp-tools-button-text-color: #0a0b0d;
  --esp-tools-button-border-radius: 14px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% -10%, rgba(114, 245, 165, .08), transparent 32%), var(--bg); color: var(--text); }
button, select { font: inherit; }
a { color: inherit; }

.page-shell { width: min(1180px, calc(100% - 34px)); margin: 0 auto; }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: -.02em; font-size: 18px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #0d1013; }
.brand-mark svg { width: 24px; fill: var(--green); }
.topbar-badge { color: var(--muted); font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; }

.main-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); gap: 64px; align-items: center; padding: 86px 0 96px; }
.hero-card { padding-right: 20px; }
.eyebrow, .step-label { text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 18px rgba(114,245,165,.6); }
h1 { margin: 22px 0 22px; font-size: clamp(48px, 6vw, 82px); line-height: .97; letter-spacing: -.06em; max-width: 720px; }
h1 span { color: #848c96; }
.hero-copy { max-width: 590px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.compatibility-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.compatibility-row span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: #c4cad1; font-size: 12px; background: rgba(255,255,255,.015); }

.installer-card { background: linear-gradient(180deg, #121419, #0e1013); border: 1px solid #2c3037; border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.card-head h2 { margin: 7px 0 0; font-size: 27px; letter-spacing: -.035em; }
.connection-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; font-size: 11px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.connection-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.connection-pill.ok span { background: var(--green); }
.field-label { display: block; color: #a9b1bb; font-size: 12px; font-weight: 700; margin-bottom: 9px; }
.field-label.no-margin { margin: 0; }
.select-wrap { position: relative; }
.select-wrap::after { content: '⌄'; position: absolute; right: 16px; top: 50%; transform: translateY(-57%); pointer-events: none; color: var(--muted); }
select { appearance: none; width: 100%; border: 1px solid var(--line); background: #0c0e11; color: var(--text); border-radius: 14px; padding: 14px 44px 14px 15px; outline: none; }
select:focus { border-color: #5d6671; box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.device-summary { display: grid; grid-template-columns: 52px 1fr; gap: 15px; align-items: center; margin: 18px 0 28px; padding: 16px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.012); border-radius: 16px; }
.device-icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: #1b2025; border: 1px solid #333941; color: var(--green); font-weight: 900; font-size: 11px; letter-spacing: .05em; }
.device-summary h3 { margin: 0 0 5px; font-size: 15px; }
.device-summary p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 13px; }
.section-row, .release-title-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.version-chip, .chip-family { border: 1px solid var(--line); padding: 5px 8px; border-radius: 8px; font-size: 11px; color: #c2c8cf; }
.segmented { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #0b0d10; border: 1px solid var(--line); border-radius: 13px; }
.segment { border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 10px; cursor: pointer; font-weight: 700; font-size: 12px; }
.segment.active { background: #1b1f24; color: var(--text); box-shadow: inset 0 0 0 1px #30353c; }
.segment:disabled { opacity: .5; cursor: not-allowed; }
.tiny-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-left: 5px; }
.release-panel { margin-top: 18px; padding: 18px; border: 1px solid var(--line); background: #0b0d10; border-radius: 16px; }
.release-kicker { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.release-panel h3 { margin: 6px 0 0; font-size: 17px; }
.release-notes { margin: 15px 0 0; padding-left: 18px; color: #b3bac3; font-size: 12px; line-height: 1.65; }
.install-zone { margin-top: 18px; }
esp-web-install-button { display: block; width: 100%; }
.install-button { width: 100%; border: 0; border-radius: 15px; background: var(--text); color: #090a0c; padding: 15px 18px; min-height: 52px; font-weight: 850; cursor: pointer; letter-spacing: -.01em; transition: transform .16s ease, opacity .16s ease; }
.install-button:not(:disabled):hover { transform: translateY(-1px); }
.install-button:disabled { opacity: .38; cursor: not-allowed; }
.usb-icon { margin-right: 7px; }
.install-hint { margin: 10px 8px 0; color: #727b85; font-size: 11px; line-height: 1.5; text-align: center; }
.browser-warning { border: 1px solid #493f24; background: #18150d; color: #eed890; border-radius: 12px; padding: 12px 14px; font-size: 12px; line-height: 1.5; }
.advanced { margin-top: 22px; border-top: 1px solid var(--line-soft); padding-top: 17px; color: var(--muted); }
.advanced summary { cursor: pointer; font-size: 12px; font-weight: 700; color: #aeb5bd; }
.advanced-body { padding-top: 14px; }
.info-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.info-row strong { color: #d6dae0; }
.advanced-body p { font-size: 11px; line-height: 1.6; }

.steps-section { padding: 88px 0; border-top: 1px solid var(--line-soft); }
.section-heading h2, .support-card h2 { margin: 9px 0 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.steps-grid article { min-height: 210px; padding: 24px; border: 1px solid var(--line); background: #0c0e11; border-radius: 20px; }
.steps-grid article > span { color: var(--green); font-weight: 900; font-size: 12px; }
.steps-grid h3 { margin: 52px 0 9px; font-size: 20px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.support-card { margin-bottom: 60px; display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 34px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(135deg, #111419, #0b0d10); }
.support-card p { max-width: 760px; color: var(--muted); line-height: 1.65; }
.text-link { text-decoration: none; color: var(--green); font-weight: 800; white-space: nowrap; }
footer { padding: 24px 0 42px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; color: #707984; font-size: 11px; }
.fatal-card { max-width: 700px; margin: 80px auto; border: 1px solid var(--line); background: var(--panel); padding: 30px; border-radius: 20px; }
.fatal-card h1 { font-size: 42px; }
.fatal-card code { color: var(--danger); }

@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; padding: 64px 0 70px; gap: 48px; }
  .hero-card { padding-right: 0; }
  .installer-card { width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: 160px; }
  .steps-grid h3 { margin-top: 34px; }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 22px, 1180px); }
  .topbar { min-height: 70px; }
  .topbar-badge { display: none; }
  .main-grid { padding-top: 48px; }
  h1 { font-size: clamp(44px, 15vw, 68px); }
  .installer-card { padding: 20px; border-radius: 20px; }
  .card-head { display: block; }
  .connection-pill { margin-top: 14px; }
  .release-title-row { align-items: flex-start; }
  .support-card { display: block; padding: 26px; }
  .text-link { display: inline-block; margin-top: 12px; }
  footer { display: grid; gap: 8px; }
}
