:root {
  --bg: #050507;
  --panel: rgba(18, 18, 22, 0.88);
  --panel-strong: #111116;
  --line: rgba(255, 255, 255, 0.10);
  --muted: #a4a4ad;
  --text: #f7f7fa;
  --red: #ff3b48;
  --red-2: #bd101c;
  --green: #40d27b;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 42, 60, .11), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(85, 45, 255, .09), transparent 30%),
    linear-gradient(155deg, #08080c 0%, #020203 62%, #09060a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

.ambient { position: fixed; border-radius: 999px; filter: blur(100px); pointer-events: none; opacity: .18; }
.ambient-a { width: 420px; height: 420px; background: #ff2636; left: -190px; top: 30%; }
.ambient-b { width: 390px; height: 390px; background: #6a36ff; right: -220px; top: 5%; }

.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0 34px; position: relative; z-index: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); background: rgba(7,7,10,.72); backdrop-filter: blur(18px); border-radius: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #ff4552, #9d0914); box-shadow: 0 8px 30px rgba(255, 42, 56, .22); }
.brand-mark svg { width: 28px; fill: white; }
.brand-mark .cut { fill: #d71522; }
.brand div { display: grid; gap: 2px; }
.brand strong { font-size: 15px; letter-spacing: .01em; }
.brand span { font-size: 12px; color: var(--muted); }
.secure-badge { color: #d4ffdF; border: 1px solid rgba(64,210,123,.35); background: rgba(64,210,123,.09); padding: 8px 11px; border-radius: 999px; font-size: 12px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); gap: 28px; align-items: center; padding: 76px 0 42px; }
.eyebrow { margin: 0 0 12px; font-size: 11px; letter-spacing: .22em; font-weight: 800; color: #ff6d78; }
h1 { margin: 0; max-width: 680px; font-size: clamp(42px, 6.2vw, 78px); line-height: .98; letter-spacing: -.055em; }
.lead { margin: 24px 0 0; color: #b9b9c2; max-width: 630px; line-height: 1.7; font-size: 17px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { min-height: 50px; border-radius: 13px; padding: 0 18px; border: 1px solid var(--line); color: white; font-weight: 750; }
.button-primary { border-color: rgba(255,93,104,.65); background: linear-gradient(145deg, #ff4653, #b20c18); box-shadow: 0 14px 34px rgba(210, 15, 29, .25); }
.button-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.button-secondary { background: #15151b; }
.button-icon { margin-right: 8px; }
.settings-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: 13px; }
.settings-row label:first-child { display: flex; align-items: center; gap: 9px; }
select { color: white; background: #111117; border: 1px solid var(--line); border-radius: 9px; padding: 8px 28px 8px 10px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.checkbox-label input { accent-color: var(--red); width: 16px; height: 16px; }

.status-panel { margin-top: 24px; display: flex; gap: 11px; align-items: flex-start; max-width: 650px; padding: 14px 15px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.status-panel div { display: grid; gap: 3px; }
.status-panel strong { font-size: 13px; }
.status-panel span { color: var(--muted); font-size: 12px; }
.status-dot { flex: 0 0 auto; margin-top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #777780; box-shadow: 0 0 0 5px rgba(255,255,255,.04); }
.status-panel.live .status-dot { background: var(--green); box-shadow: 0 0 0 5px rgba(64,210,123,.12), 0 0 18px rgba(64,210,123,.55); }
.status-panel.error .status-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(255,59,72,.12); }

.preview-card { border: 1px solid rgba(255,255,255,.12); background: rgba(15,15,19,.82); border-radius: 22px; padding: 13px; box-shadow: 0 28px 90px rgba(0,0,0,.42); }
.preview-header { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 8px; color: #c9c9d1; font-size: 13px; }
.live-pill { color: #aaaab2; background: #23232a; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.live-pill.live { color: white; background: #d51725; border-color: #ff5964; box-shadow: 0 0 22px rgba(255,30,47,.24); }
.preview-frame { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 14px; background: #060609; border: 1px solid rgba(255,255,255,.07); }
.preview-frame video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.preview-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 7px; color: var(--muted); text-align: center; background: radial-gradient(circle, #121219, #07070a 66%); }
.preview-empty.hidden { display: none; }
.preview-empty strong { color: #dfdfe5; font-size: 14px; }
.preview-empty span { font-size: 12px; }
.screen-icon { font-size: 34px; color: #f25b66; margin-bottom: 5px; }

.code-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; border-radius: 22px; border: 1px solid rgba(255,77,89,.35); background: linear-gradient(145deg, rgba(31,14,18,.94), rgba(13,13,17,.94)); padding: 25px; box-shadow: 0 20px 70px rgba(90,0,10,.22); }
.hidden { display: none !important; }
.code-row { display: flex; align-items: stretch; gap: 10px; }
.code-row code { flex: 1; display: flex; align-items: center; min-height: 68px; padding: 0 20px; color: white; background: #08080b; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; font-size: clamp(26px, 4vw, 44px); font-weight: 900; letter-spacing: .16em; }
.copy-button { width: 90px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: #212128; color: white; font-weight: 750; }
.code-copy > p:last-child { color: var(--muted); margin: 13px 0 0; line-height: 1.5; font-size: 13px; }
.session-details { display: grid; align-content: center; gap: 18px; padding-left: 22px; border-left: 1px solid var(--line); }
.session-details div { display: grid; gap: 5px; }
.session-details span { color: var(--muted); font-size: 12px; }
.session-details strong { font-size: 16px; }
.text-button { justify-self: start; padding: 0; color: #ff7a84; background: transparent; border: 0; font-weight: 750; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 34px 0; }
.steps article { display: flex; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.steps article > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: white; background: #2b171b; border: 1px solid rgba(255,74,88,.28); font-weight: 850; }
.steps article div { display: grid; gap: 4px; }
.steps strong { font-size: 13px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 12px; }
footer { display: flex; justify-content: space-between; gap: 20px; color: #74747e; border-top: 1px solid var(--line); padding-top: 20px; font-size: 11px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .preview-card { max-width: 720px; }
  .code-card { grid-template-columns: 1fr; }
  .session-details { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 1180px); padding-top: 11px; }
  .topbar { align-items: flex-start; }
  .secure-badge { display: none; }
  .hero { padding-top: 42px; }
  h1 { font-size: 48px; }
  .code-row { flex-direction: column; }
  .copy-button { width: 100%; min-height: 46px; }
  .session-details { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
