:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --bg: #02060c;
  --panel: #07111e;
  --panel-2: #0b1625;
  --line: #25374c;
  --muted: #96a6ba;
  --text: #f7f9fc;
  --orange: #ff671d;
  --blue: #178cf7;
  --cyan: #1bc6ff;
  --green: #1ed48a;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 30%, rgba(30, 101, 174, .15), transparent 38%),
    radial-gradient(circle at 16% 14%, rgba(255, 103, 29, .06), transparent 25%),
    linear-gradient(145deg, #02060b, #07101b 58%, #03070e);
}
button, input { font: inherit; }
button { color: inherit; }

.page-shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 40px; }
.support-stage {
  overflow: hidden;
  border: 1px solid #1f3248;
  border-radius: 30px;
  background: rgba(2, 8, 15, .93);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}
.brand-header {
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 38px;
  border-bottom: 1px solid #17273a;
}
.brand-logo { width: 178px; height: auto; display: block; }
.secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b7c7d9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.secure-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(30, 212, 138, .09);
}
.stage-grid { display: grid; grid-template-columns: minmax(350px, 430px) minmax(0, 1fr); min-height: 690px; }
.connect-panel {
  margin: 34px 0 34px 42px;
  overflow: hidden;
  border: 1px solid #293b50;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(11, 20, 32, .98), rgba(5, 11, 19, .98));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .36);
  z-index: 2;
}
.workshop-visual { height: 232px; overflow: hidden; border-bottom: 1px solid #23344a; background: #060b12; }
.workshop-visual img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.7) contrast(1.08); }
.connect-content { padding: 26px 32px 30px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255, 103, 29, .08); }
h1 { margin: 0; font-size: clamp(42px, 4vw, 62px); line-height: .96; letter-spacing: -.045em; color: var(--orange); }
.intro { margin: 16px 0 23px; color: #aab8ca; line-height: 1.55; font-size: 14px; }
form { display: grid; gap: 9px; }
label { font-size: 12px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; color: #dce5ef; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 7px; }
.label-row span { color: var(--orange); font-size: 11px; font-weight: 800; }
.input-shell { position: relative; }
input {
  width: 100%;
  min-height: 49px;
  border: 1px solid #30445a;
  border-radius: 12px;
  padding: 0 84px 0 15px;
  color: white;
  background: #08121e;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:focus { border-color: var(--blue); background: #091725; box-shadow: 0 0 0 3px rgba(23, 140, 247, .13); }
input::placeholder { color: #667589; }
.input-action {
  position: absolute;
  top: 6px;
  right: 7px;
  height: 37px;
  min-width: 60px;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid #2a3b4e;
  background: transparent;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.field-note { color: #65758a; font-size: 11px; margin-bottom: 2px; }
.primary-action {
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  border: 1px solid rgba(255, 128, 68, .2);
  border-radius: 13px;
  background: linear-gradient(135deg, #ff6c22, #f34a22);
  box-shadow: 0 14px 30px rgba(209, 54, 20, .18);
  color: white;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.primary-action:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-action:disabled { opacity: .58; cursor: wait; transform: none; }
.button-lock { font-size: 14px; }
.status { min-height: 22px; margin-top: 16px; padding-left: 21px; position: relative; color: #8191a6; font-size: 12px; line-height: 1.45; }
.status::before { content: ""; position: absolute; left: 2px; top: 4px; width: 8px; height: 8px; border: 2px solid var(--blue); border-radius: 3px 3px 5px 5px; }
.status.error { color: #ff8192; }
.status.error::before { border-color: #ff5b72; }
.status.success { color: #6ee6b2; }
.status.success::before { border-color: var(--green); }

.hero-panel { position: relative; overflow: hidden; min-width: 0; }
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020811 0, rgba(2, 8, 17, .18) 24%, transparent 55%),
    linear-gradient(0deg, rgba(2, 7, 13, .7), transparent 30%);
  z-index: 1;
  pointer-events: none;
}
.hero-panel img { width: 100%; height: 100%; min-height: 690px; display: block; object-fit: cover; object-position: center; }
.hero-copy { position: absolute; z-index: 2; left: 46px; right: 42px; bottom: 34px; display: flex; align-items: center; gap: 18px; color: #96a9bf; font-size: 13px; }
.hero-line { width: 70px; height: 2px; background: linear-gradient(90deg, var(--orange), transparent); }
.stage-footer { min-height: 54px; padding: 0 38px; border-top: 1px solid #17273a; display: flex; align-items: center; justify-content: space-between; color: #6f8197; font-size: 12px; }
.stage-footer span { display: flex; align-items: center; gap: 8px; }
.stage-footer i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.viewer { overflow: hidden; border: 1px solid #263a51; border-radius: 22px; background: #01050a; box-shadow: 0 28px 80px rgba(0, 0, 0, .4); }
.viewer header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; background: #07121f; border-bottom: 1px solid #23364c; }
.viewer header > div { display: flex; align-items: center; gap: 16px; }
.viewer-logo { width: 104px; }
.viewer header button { border: 1px solid #c53d48; border-radius: 10px; padding: 9px 16px; background: #9f2533; color: white; font-weight: 750; cursor: pointer; }
.viewer-surface { position: relative; overflow: hidden; background: #000; }
video, canvas { display: block; width: 100%; min-height: 480px; max-height: calc(100vh - 170px); object-fit: contain; background: #000; }
.remote-control-surface { cursor: none; outline: none; user-select: none; -webkit-user-select: none; touch-action: none; }
.remote-control-surface:focus-visible { box-shadow: inset 0 0 0 2px rgba(23, 140, 247, .75); }
.remote-pointer {
  position: absolute;
  z-index: 20;
  width: 18px;
  height: 24px;
  transform: translate(-2px, -2px);
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .9));
}
.remote-pointer::before,
.remote-pointer::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 0 88%, 27% 67%, 43% 100%, 55% 94%, 39% 62%, 72% 62%);
}
.remote-pointer::before { background: #05070a; transform: scale(1.18); transform-origin: 0 0; }
.remote-pointer::after { background: #fff; }
.privacy { margin: 0; padding: 10px 16px 14px; color: #71839a; font-size: 12px; }

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .page-shell { width: min(760px, calc(100% - 24px)); padding-top: 16px; }
  .brand-header { height: 82px; padding: 14px 24px; }
  .brand-logo { width: 152px; }
  .stage-grid { display: block; min-height: 0; }
  .connect-panel { margin: 24px; }
  .hero-panel { display: none; }
}

@media (max-width: 560px) {
  .page-shell { width: 100%; padding: 0; }
  .support-stage { border-radius: 0; border-left: 0; border-right: 0; min-height: 100vh; }
  .brand-header { padding: 12px 18px; }
  .secure-chip { font-size: 0; gap: 0; }
  .connect-panel { margin: 14px; border-radius: 20px; }
  .workshop-visual { height: 190px; }
  .connect-content { padding: 23px 22px 26px; }
  h1 { font-size: 43px; }
  .stage-footer { padding: 0 18px; }
  .stage-footer span:last-child { display: none; }
}

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