/* BIM VPN — interactive hero demo widget. Scoped under .vpn-demo.
   Self-contained; mirrors the desktop client (v0.2.0) visual identity. */

.vpn-demo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 360 / 640;
  background: #1A1A1A;
  color: #ffffff;
  font-family: 'PingFang SC', 'SF Pro Display', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  container-type: inline-size;
  font-size: 12px;
}

/* Buttons reset */
.vpn-demo button {
  appearance: none;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

/* ─── Header (shared chrome) ──────────────────────────────────────────── */

.vpn-demo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.3cqw 3.9cqw;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
  min-height: 12cqw;
  gap: 2.2cqw;
}

.vpn-demo__brand {
  display: flex;
  align-items: center;
  gap: 2.2cqw;
}

.vpn-demo__logo {
  width: 7.8cqw;
  height: 7.8cqw;
  display: block;
  object-fit: contain;
}

.vpn-demo__brand-text {
  color: #F58300;
  font-size: 4.2cqw;
  font-weight: 700;
  letter-spacing: 0.28cqw;
}

.vpn-demo__header-actions {
  display: flex;
  align-items: center;
  gap: 1.7cqw;
  color: #aaaaaa;
}

/* Header variant: home vs page */
.vpn-demo[data-view="home"] .vpn-demo__header--page { display: none; }
.vpn-demo:not([data-view="home"]) .vpn-demo__header--home { display: none; }

.vpn-demo__back {
  display: inline-flex;
  align-items: center;
  gap: 1cqw;
  color: #F58300;
  font-size: 3.6cqw;
  font-weight: 600;
}

.vpn-demo__page-title {
  font-size: 4.2cqw;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  text-align: center;
}

.vpn-demo__header-spacer {
  width: 12cqw;
}

/* Lang select in header */
.vpn-demo__lang-select {
  background: #222222;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 1.4cqw;
  padding: 1cqw 1.7cqw;
  font-family: inherit;
  font-size: 3cqw;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23aaa' d='M5 6L0 0h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.4cqw center;
  background-size: 2.2cqw auto;
  padding-right: 5cqw;
  cursor: pointer;
}

/* Gear button + dropdown menu */
.vpn-demo__gear-wrap { position: relative; }

.vpn-demo__gear {
  font-size: 4.4cqw;
  line-height: 1;
  padding: 0.6cqw;
  border-radius: 1.4cqw;
}

.vpn-demo__gear:hover { background: rgba(255,255,255,0.06); }

.vpn-demo__gear-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 1.7cqw;
  width: 52cqw;
  background: #222222;
  border: 1px solid #333333;
  border-radius: 2.5cqw;
  box-shadow: 0 4cqw 12cqw rgba(0,0,0,0.5);
  padding: 1.4cqw;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.vpn-demo__gear-menu[hidden] { display: none; }

.vpn-demo__gear-menu button {
  display: flex;
  align-items: center;
  gap: 2.2cqw;
  padding: 2.2cqw 2.5cqw;
  border-radius: 1.7cqw;
  font-size: 3.3cqw;
  color: #ddd;
  text-align: left;
}

.vpn-demo__gear-menu button:hover { background: rgba(255,255,255,0.06); }

/* ─── Views (router) ──────────────────────────────────────────────────── */

.vpn-demo__view {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.vpn-demo[data-view="home"]      .vpn-demo__view--home      { display: flex; }
.vpn-demo[data-view="theme"]     .vpn-demo__view--theme     { display: flex; }
.vpn-demo[data-view="speedtest"] .vpn-demo__view--speedtest { display: flex; }
.vpn-demo[data-view="split"]     .vpn-demo__view--split     { display: flex; }
.vpn-demo[data-view="login"]     .vpn-demo__view--login     { display: flex; }
.vpn-demo[data-view="about"]     .vpn-demo__view--about     { display: flex; }

.vpn-demo__page-body {
  flex: 1;
  overflow-y: auto;
  padding: 3.9cqw;
  display: flex;
  flex-direction: column;
  gap: 2.8cqw;
}

.vpn-demo__page-body--centered {
  align-items: center;
  text-align: center;
}

/* ─── Home view ───────────────────────────────────────────────────────── */

.vpn-demo__status {
  display: flex;
  align-items: center;
  gap: 2.2cqw;
  padding: 2.8cqw 3.9cqw;
  background: rgba(255,255,255,0.03);
  transition: background 250ms ease;
  flex-shrink: 0;
  min-height: 12cqw;
}

.vpn-demo[data-state="connecting"] .vpn-demo__status { background: rgba(245,131,0,0.06); }
.vpn-demo[data-state="connected"]  .vpn-demo__status { background: rgba(74,222,128,0.07); }

.vpn-demo__dot {
  width: 1.95cqw; height: 1.95cqw;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
  transition: background 250ms ease, box-shadow 250ms ease;
}

.vpn-demo[data-state="connecting"] .vpn-demo__dot { background: #F58300; box-shadow: 0 0 1.7cqw #F58300; }
.vpn-demo[data-state="connected"]  .vpn-demo__dot { background: #4ade80; box-shadow: 0 0 1.7cqw #4ade80; }

.vpn-demo__state-text {
  font-size: 3.3cqw;
  color: #aaaaaa;
  margin-right: auto;
}

.vpn-demo[data-state="connecting"] .vpn-demo__state-text { color: #F58300; }
.vpn-demo[data-state="connected"]  .vpn-demo__state-text { color: #4ade80; }

.vpn-demo__ip-row {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  font-size: 3cqw;
  color: #cccccc;
  flex-wrap: nowrap;
  min-width: 0;
}

.vpn-demo__ip {
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2a;
  border-radius: 1.7cqw;
  padding: 0.8cqw 1.7cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38cqw;
  font-variant-numeric: tabular-nums;
}

.vpn-demo__ip--real { color: #aaaaaa; }
.vpn-demo__ip--tunnel { color: #4ade80; border-color: rgba(74,222,128,0.3); }

.vpn-demo__ip-arrow { color: #F58300; font-size: 3.3cqw; flex-shrink: 0; }

.vpn-demo:not([data-state="connected"]) .vpn-demo__ip-arrow,
.vpn-demo:not([data-state="connected"]) .vpn-demo__ip--tunnel { display: none; }

.vpn-demo__server { padding: 3.3cqw 3.9cqw; flex-shrink: 0; }

.vpn-demo__server-label {
  display: block;
  font-size: 2.8cqw;
  color: #888;
  letter-spacing: 0.28cqw;
  text-transform: uppercase;
  margin-bottom: 1.7cqw;
}

.vpn-demo__select {
  width: 100%;
  background: #222222;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 2.2cqw;
  padding: 2.5cqw 3.3cqw;
  font-size: 3.9cqw;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23aaa' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 3.3cqw center;
  background-size: 3cqw auto;
  padding-right: 9cqw;
  cursor: pointer;
  transition: border-color 250ms ease;
}

.vpn-demo[data-state="connected"] .vpn-demo__select { border-color: #F58300; }
.vpn-demo__select:disabled { cursor: not-allowed; opacity: 0.85; }

.vpn-demo__connect-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2cqw 4.4cqw 4cqw;
  gap: 2.2cqw;
}

.vpn-demo__btn-wrap { position: relative; width: 39cqw; height: 39cqw; }

.vpn-demo__btn {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 0.83cqw solid #333333;
  background: #222222;
  color: #aaaaaa;
  font-family: inherit;
  font-size: 4.4cqw;
  font-weight: 700;
  letter-spacing: 0.28cqw;
  z-index: 1;
  transition: border-color 250ms ease, background 250ms ease, color 250ms ease, box-shadow 250ms ease;
}

.vpn-demo[data-state="disconnected"] .vpn-demo__btn { animation: vpn-demo-pulse 2s ease-in-out infinite; }
.vpn-demo[data-state="disconnected"] .vpn-demo__btn:hover { box-shadow: 0 0 6cqw 2.2cqw rgba(245,131,0,0.35); }

.vpn-demo[data-state="connecting"] .vpn-demo__btn {
  border-color: #F58300; color: #F58300; cursor: wait;
  background: rgba(245,131,0,0.06);
}

.vpn-demo[data-state="connected"] .vpn-demo__btn {
  border-color: #F58300;
  background: rgba(245,131,0,0.12);
  color: #F58300;
  box-shadow: 0 0 5.6cqw rgba(245,131,0,0.2);
}

.vpn-demo__btn-ring {
  position: absolute; inset: -1.4cqw;
  border-radius: 50%;
  border: 0.83cqw solid transparent;
  border-top-color: rgba(245,131,0,0.95);
  border-right-color: rgba(245,131,0,0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease;
}

.vpn-demo[data-state="connected"] .vpn-demo__btn-ring {
  opacity: 1;
  animation: vpn-demo-ring-spin 2s linear infinite;
}

.vpn-demo__btn-dots { display: inline-block; width: 1ch; }
.vpn-demo[data-state="connecting"] .vpn-demo__btn-dots::after {
  content: ""; animation: vpn-demo-dots 1.2s steps(4, end) infinite;
}

.vpn-demo__protocol {
  font-size: 2.8cqw;
  color: #555;
  letter-spacing: 0.14cqw;
  text-align: center;
  margin-top: 1cqw;
}

.vpn-demo__account {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 100px;
  padding: 1.4cqw 3.3cqw;
  color: #aaaaaa;
  font-size: 3cqw;
  margin-top: 1cqw;
}

.vpn-demo__account:hover { border-color: #F58300; color: #F58300; }

.vpn-demo__footer {
  flex-shrink: 0;
  border-top: 1px solid #2a2a2a;
  padding: 2.8cqw 3.9cqw 3.3cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4cqw;
}

.vpn-demo__quit {
  width: 100%;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 2.2cqw;
  padding: 1.9cqw 3.3cqw;
  color: #ef4444;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5cqw;
}

.vpn-demo__quit-label { font-size: 3.3cqw; font-weight: 700; letter-spacing: 0.28cqw; }
.vpn-demo__quit-hint { font-size: 2.5cqw; color: #777; font-weight: 400; }

.vpn-demo__version { font-size: 2.2cqw; color: #444; }

/* ─── Theme view ──────────────────────────────────────────────────────── */

.vpn-demo__option {
  display: flex;
  align-items: center;
  gap: 3.3cqw;
  padding: 3.9cqw 3.3cqw;
  background: #222222;
  border: 1px solid #2a2a2a;
  border-radius: 2.8cqw;
  text-align: left;
  width: 100%;
  color: #ddd;
}

.vpn-demo__option[aria-selected="true"] {
  border-color: #F58300;
  background: rgba(245,131,0,0.08);
}

.vpn-demo__option-icon { font-size: 5.5cqw; }
.vpn-demo__option-text { flex: 1; min-width: 0; }
.vpn-demo__option-title { font-size: 3.6cqw; font-weight: 600; color: #ffffff; }
.vpn-demo__option-desc { font-size: 2.8cqw; color: #888; margin-top: 0.5cqw; }
.vpn-demo__option-check {
  color: #F58300; font-weight: 700; font-size: 4cqw;
  opacity: 0;
}
.vpn-demo__option[aria-selected="true"] .vpn-demo__option-check { opacity: 1; }

/* ─── Speed test view ─────────────────────────────────────────────────── */

.vpn-demo__vpn-hint {
  display: inline-flex;
  align-items: center;
  gap: 1.7cqw;
  padding: 1.7cqw 2.8cqw;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2a;
  border-radius: 100px;
  align-self: flex-start;
}

.vpn-demo__vpn-hint[data-connected="true"] {
  background: rgba(74,222,128,0.10);
  border-color: rgba(74,222,128,0.4);
}

.vpn-demo__vpn-hint-dot {
  width: 1.7cqw; height: 1.7cqw;
  border-radius: 50%;
  background: #666;
}

.vpn-demo__vpn-hint[data-connected="true"] .vpn-demo__vpn-hint-dot {
  background: #4ade80;
  box-shadow: 0 0 1.4cqw #4ade80;
}

.vpn-demo__vpn-hint-text {
  font-size: 3cqw;
  color: #aaa;
  font-weight: 600;
}

.vpn-demo__vpn-hint[data-connected="true"] .vpn-demo__vpn-hint-text { color: #4ade80; }

.vpn-demo__speed-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5cqw;
}

.vpn-demo__speed-card {
  background: #222222;
  border: 1px solid #2a2a2a;
  border-radius: 3cqw;
  padding: 3.6cqw 3cqw;
  display: flex;
  flex-direction: column;
  gap: 1.4cqw;
  min-height: 32cqw;
}

.vpn-demo__speed-card-label {
  font-size: 2.8cqw;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.28cqw;
}

.vpn-demo__speed-hero {
  display: flex;
  align-items: baseline;
  gap: 1.1cqw;
  margin: 1.4cqw 0 0.8cqw;
}

.vpn-demo__speed-hero b {
  font-size: 8cqw;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.vpn-demo__speed-unit {
  font-size: 3cqw;
  color: #888;
  font-weight: 600;
}

.vpn-demo__speed-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 2.8cqw;
  color: #aaa;
  gap: 1.4cqw;
  margin-top: auto;
  padding-top: 1.4cqw;
  border-top: 1px solid #2a2a2a;
}

.vpn-demo__speed-stat b {
  color: #ffffff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 3cqw;
}

.vpn-demo__btn-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4cqw;
  width: 100%;
  padding: 3cqw;
  background: #F58300;
  color: #1A1A1A;
  border-radius: 2.5cqw;
  font-size: 3.9cqw;
  font-weight: 700;
  letter-spacing: 0.28cqw;
  text-decoration: none;
  box-shadow: 0 1cqw 4cqw rgba(245,131,0,0.2);
}

.vpn-demo__btn-wide:hover { filter: brightness(1.05); }
.vpn-demo__btn-wide:disabled { opacity: 0.6; cursor: progress; box-shadow: none; }

.vpn-demo__btn-wide--gold { background: #fbbf24; box-shadow: 0 1cqw 4cqw rgba(251,191,36,0.25); }
.vpn-demo__btn-wide--orange { background: #F58300; color: #1A1A1A; }

.vpn-demo__btn-wide--xl {
  padding: 5cqw;
  font-size: 4.4cqw;
  border-radius: 3cqw;
  letter-spacing: 0.42cqw;
}

.vpn-demo__btn-wide--xl span[aria-hidden] { font-size: 5cqw; }

.vpn-demo__note {
  font-size: 2.5cqw;
  color: #666;
  text-align: center;
}

/* ─── Split tunneling view ────────────────────────────────────────────── */

.vpn-demo__split-group {
  display: flex;
  flex-direction: column;
  gap: 1.7cqw;
}

.vpn-demo__field-label {
  font-size: 2.8cqw;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.28cqw;
}

.vpn-demo__addrow {
  display: flex;
  gap: 1.7cqw;
}

.vpn-demo__input {
  flex: 1;
  background: #222222;
  border: 1px solid #2a2a2a;
  border-radius: 2cqw;
  padding: 2.2cqw 2.5cqw;
  color: #ffffff;
  font-family: inherit;
  font-size: 3.3cqw;
  outline: none;
  min-width: 0;
}

.vpn-demo__input:focus { border-color: #F58300; }

.vpn-demo__add-btn {
  background: #2a2a2a;
  color: #ddd;
  border-radius: 2cqw;
  padding: 2.2cqw 3.3cqw;
  font-size: 3.3cqw;
  font-weight: 600;
  flex-shrink: 0;
}

.vpn-demo__add-btn:hover { background: #333; color: #fff; }

.vpn-demo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4cqw;
}

.vpn-demo__tag {
  display: inline-flex;
  align-items: center;
  gap: 1cqw;
  background: rgba(245,131,0,0.08);
  border: 1px solid rgba(245,131,0,0.3);
  color: #F58300;
  padding: 1cqw 2.2cqw;
  border-radius: 100px;
  font-size: 3cqw;
}

.vpn-demo__tag button {
  color: #F58300;
  font-size: 3.6cqw;
  line-height: 1;
  padding: 0 0.5cqw;
}

.vpn-demo__advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  font-size: 3.3cqw;
  color: #888;
  padding: 1.4cqw 0;
  font-weight: 600;
}

.vpn-demo__advanced-toggle .vpn-demo__chev {
  display: inline-block;
  transition: transform 200ms ease;
}

.vpn-demo__advanced-toggle[aria-expanded="true"] .vpn-demo__chev { transform: rotate(90deg); }

.vpn-demo__advanced {
  display: flex;
  flex-direction: column;
  gap: 2.8cqw;
  border-left: 1px solid #2a2a2a;
  padding-left: 2.8cqw;
}

.vpn-demo__advanced[hidden] { display: none; }

/* ─── Login view ─────────────────────────────────────────────────────── */

.vpn-demo__tier-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.7cqw;
}

.vpn-demo__tier {
  background: #222222;
  border: 1px solid #2a2a2a;
  border-radius: 2.5cqw;
  padding: 2.8cqw;
  font-size: 3.6cqw;
  font-weight: 700;
  color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4cqw;
}

.vpn-demo__tier[aria-selected="true"][data-tier="gold"] {
  background: rgba(251,191,36,0.15);
  border-color: rgba(251,191,36,0.5);
  color: #fbbf24;
}

.vpn-demo__tier[aria-selected="true"][data-tier="bronze"] {
  background: rgba(205,127,50,0.15);
  border-color: rgba(205,127,50,0.5);
  color: #cd7f32;
}

.vpn-demo__period-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1cqw;
}

.vpn-demo__period {
  background: #222222;
  border: 1px solid #2a2a2a;
  border-radius: 2cqw;
  padding: 1.7cqw 0.5cqw;
  font-size: 2.8cqw;
  font-weight: 600;
  color: #aaa;
  text-align: center;
}

.vpn-demo__period[aria-selected="true"] {
  background: rgba(245,131,0,0.12);
  border-color: #F58300;
  color: #F58300;
}

.vpn-demo__price-card {
  background: #222222;
  border: 1px solid #2a2a2a;
  border-radius: 2.8cqw;
  padding: 3.3cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4cqw;
}

.vpn-demo__price-main {
  font-size: 7.5cqw;
  font-weight: 700;
  color: #fbbf24;
}

.vpn-demo__price-eq {
  font-size: 2.8cqw;
  color: #888;
}

.vpn-demo__auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.7cqw;
  margin-top: 1.4cqw;
}

.vpn-demo__auth-tab {
  background: #222222;
  border: 1px solid #2a2a2a;
  border-radius: 2cqw;
  padding: 2.2cqw 1cqw;
  font-size: 3.3cqw;
  color: #aaa;
  font-weight: 600;
}

.vpn-demo__auth-tab[aria-selected="true"] {
  background: rgba(245,131,0,0.10);
  border-color: #F58300;
  color: #F58300;
}

.vpn-demo__form {
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
}

/* ─── About view ──────────────────────────────────────────────────────── */

.vpn-demo__about-logo {
  width: 20cqw;
  height: 20cqw;
  margin-top: 2.2cqw;
}

.vpn-demo__about-name {
  font-size: 5.5cqw;
  font-weight: 700;
  color: #F58300;
  letter-spacing: 0.28cqw;
}

.vpn-demo__about-card {
  background: #222222;
  border: 1px solid #2a2a2a;
  border-radius: 2.8cqw;
  padding: 3.3cqw;
  width: 100%;
  text-align: left;
}

.vpn-demo__about-title {
  font-size: 4.2cqw;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.7cqw;
}

.vpn-demo__about-body {
  font-size: 3cqw;
  color: #aaa;
  line-height: 1.6;
}

.vpn-demo__about-hint { font-size: 2.5cqw; color: #555; margin-top: -1cqw; }

/* ─── Animations ─────────────────────────────────────────────────────── */

@keyframes vpn-demo-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,131,0,0); }
  50%  { box-shadow: 0 0 5cqw 1.7cqw rgba(245,131,0,0.25); }
  100% { box-shadow: 0 0 0 0 rgba(245,131,0,0); }
}

@keyframes vpn-demo-ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes vpn-demo-dots {
  0%   { content: ""; }
  25%  { content: "·"; }
  50%  { content: "··"; }
  75%  { content: "···"; }
  100% { content: ""; }
}

/* ─── Outer frame size override ──────────────────────────────────────── */

.hero__app-screen .vpn-demo { display: flex; }

.vpn-demo-frame-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.vpn-demo-caption {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  font-style: italic;
}

[data-theme="light"] .vpn-demo-caption { color: rgba(0,0,0,0.45); }

.hero__app-screen { width: 380px; }
.hero__visual { height: auto; min-height: 700px; padding: 1rem 0; }

@media (max-width: 900px) {
  .hero__app-screen { width: 300px; }
  .hero__visual { min-height: 580px; }
}

@media (max-width: 720px) {
  .hero__app-screen { width: 280px; }
  .hero__visual { min-height: 540px; }
}

/* ─── Widget day-mode (independent of website theme) ─────────────────── */
/* Applied only when the widget's own theme is "light". Scoped to .vpn-demo
   only so the surrounding page stays untouched. */

.vpn-demo[data-theme="light"] { background: #F2F2F7; color: #1C1C1E; }

.vpn-demo[data-theme="light"] .vpn-demo__header,
.vpn-demo[data-theme="light"] .vpn-demo__footer,
.vpn-demo[data-theme="light"] .vpn-demo__speed-stat { border-color: #E0E0E5; }

.vpn-demo[data-theme="light"] .vpn-demo__status { background: rgba(0,0,0,0.03); }
.vpn-demo[data-theme="light"][data-state="connecting"] .vpn-demo__status { background: rgba(245,131,0,0.08); }
.vpn-demo[data-theme="light"][data-state="connected"]  .vpn-demo__status { background: rgba(22,163,74,0.09); }

.vpn-demo[data-theme="light"] .vpn-demo__state-text,
.vpn-demo[data-theme="light"] .vpn-demo__header-actions { color: #636366; }

.vpn-demo[data-theme="light"] .vpn-demo__ip {
  background: rgba(0,0,0,0.04);
  border-color: #E0E0E5;
  color: #3A3A3C;
}

.vpn-demo[data-theme="light"] .vpn-demo__select,
.vpn-demo[data-theme="light"] .vpn-demo__lang-select,
.vpn-demo[data-theme="light"] .vpn-demo__input,
.vpn-demo[data-theme="light"] .vpn-demo__speed-card,
.vpn-demo[data-theme="light"] .vpn-demo__option,
.vpn-demo[data-theme="light"] .vpn-demo__tier,
.vpn-demo[data-theme="light"] .vpn-demo__period,
.vpn-demo[data-theme="light"] .vpn-demo__price-card,
.vpn-demo[data-theme="light"] .vpn-demo__auth-tab,
.vpn-demo[data-theme="light"] .vpn-demo__about-card,
.vpn-demo[data-theme="light"] .vpn-demo__gear-menu {
  background: #FFFFFF;
  border-color: #E0E0E5;
  color: #1C1C1E;
}

.vpn-demo[data-theme="light"] .vpn-demo__btn {
  background: #FFFFFF;
  border-color: #C8C8CC;
  color: #636366;
}

.vpn-demo[data-theme="light"] .vpn-demo__option-title,
.vpn-demo[data-theme="light"] .vpn-demo__about-title,
.vpn-demo[data-theme="light"] .vpn-demo__about-name,
.vpn-demo[data-theme="light"] .vpn-demo__page-title { color: #1C1C1E; }

.vpn-demo[data-theme="light"] .vpn-demo__option-desc,
.vpn-demo[data-theme="light"] .vpn-demo__about-body,
.vpn-demo[data-theme="light"] .vpn-demo__field-label,
.vpn-demo[data-theme="light"] .vpn-demo__server-label,
.vpn-demo[data-theme="light"] .vpn-demo__speed-card-label,
.vpn-demo[data-theme="light"] .vpn-demo__advanced-toggle,
.vpn-demo[data-theme="light"] .vpn-demo__protocol,
.vpn-demo[data-theme="light"] .vpn-demo__note,
.vpn-demo[data-theme="light"] .vpn-demo__quit-hint,
.vpn-demo[data-theme="light"] .vpn-demo__about-hint,
.vpn-demo[data-theme="light"] .vpn-demo__version,
.vpn-demo[data-theme="light"] .vpn-demo__speed-unit { color: #8E8E93; }

.vpn-demo[data-theme="light"] .vpn-demo__speed-hero b,
.vpn-demo[data-theme="light"] .vpn-demo__speed-stat b { color: #1C1C1E; }

.vpn-demo[data-theme="light"] .vpn-demo__gear:hover,
.vpn-demo[data-theme="light"] .vpn-demo__gear-menu button:hover { background: rgba(0,0,0,0.05); }

.vpn-demo[data-theme="light"] .vpn-demo__vpn-hint { background: rgba(0,0,0,0.04); border-color: #E0E0E5; }
.vpn-demo[data-theme="light"] .vpn-demo__vpn-hint-text { color: #636366; }
.vpn-demo[data-theme="light"] .vpn-demo__advanced { border-color: #E0E0E5; }
.vpn-demo[data-theme="light"] .vpn-demo__add-btn { background: #E5E5EA; color: #1C1C1E; }
