.stream-home .hero {
  display: flex;
  align-items: stretch;
  padding: 0;
}

.stream-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(26px, 3vw, 44px);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(12px, 1.2vw, 18px) 0 clamp(28px, 3.2vw, 40px);
}

.stream-hero-copy h1 {
  max-width: 8.4ch;
}

.stream-inline-command {
  display: inline-flex;
  align-items: center;
  min-height: 1.9em;
  padding: 0 0.52em;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 119, 0.22);
  background: rgba(255, 150, 71, 0.08);
  color: #fff2e3;
  font-weight: 700;
  white-space: nowrap;
}

.stream-hero-visual {
  position: relative;
  min-height: clamp(360px, 36vw, 500px);
  display: grid;
  align-content: center;
  justify-items: end;
  transform: translateY(clamp(12px, 1.4vw, 18px));
}

.stream-hero-stage {
  position: relative;
  width: min(100%, 520px);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 36px;
  border: 1px solid rgba(255, 183, 121, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(19, 22, 28, 0.94), rgba(10, 12, 16, 0.96));
  box-shadow: var(--shadow-xl);
}

.stream-hero-stage::before,
.stream-hero-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: auto;
}

.stream-hero-stage::before {
  inset: 10px;
  border-radius: 28px;
  border: 1px solid rgba(94, 166, 255, 0.08);
}

.stream-hero-stage::after {
  left: 14%;
  right: 14%;
  bottom: -18px;
  height: 80px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 150, 71, 0.18), transparent 68%);
  filter: blur(34px);
  opacity: 0.9;
}

.stream-hero-screen {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 34vw, 448px);
  border-radius: 28px;
  border: 1px solid rgba(255, 183, 121, 0.16);
  background: #10161d;
}

.stream-screen-wash {
  position: absolute;
  inset: 0;
}

.stream-screen-wash {
  background: linear-gradient(180deg, rgba(8, 11, 15, 0.1), rgba(8, 11, 15, 0.46));
}

.stream-screen-wash::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border-radius: 18px;
  background-image:
    linear-gradient(rgba(178, 201, 231, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 201, 231, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.82;
  pointer-events: none;
}

.stream-demo-stage {
  position: absolute;
  z-index: 1;
}

.stream-live-tag,
.stream-demo-result {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  backdrop-filter: blur(16px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.stream-live-tag {
  top: 22px;
  left: 22px;
  border: 1px solid rgba(94, 166, 255, 0.26);
  background: rgba(14, 25, 43, 0.74);
  color: #dbebff;
}

.stream-demo-panel {
  position: relative;
  z-index: 2;
  width: calc(100% - 28px);
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 183, 121, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    rgba(13, 18, 26, 0.84);
  box-shadow: 0 18px 32px rgba(4, 8, 14, 0.24);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 8px;
}

.stream-demo-label {
  color: var(--text-low);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stream-demo-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 183, 121, 0.18);
  background: rgba(7, 11, 18, 0.72);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.stream-hero-stage.is-typing .stream-demo-input-wrap,
.stream-hero-stage.is-user-active .stream-demo-input-wrap,
.stream-demo-input-wrap:focus-within {
  border-color: rgba(255, 183, 121, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 183, 121, 0.08), 0 12px 24px rgba(6, 8, 12, 0.18);
}

.stream-demo-input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: #f9fbff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  outline: none;
}

.stream-demo-input::placeholder {
  color: rgba(219, 235, 255, 0.44);
}

.stream-demo-launch {
  border: 0;
  padding: 0 14px;
  min-height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffb25f, #ff9342);
  color: #16110c;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  box-shadow: 0 10px 22px rgba(255, 145, 46, 0.26);
}

.stream-demo-launch:hover,
.stream-demo-launch:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 145, 46, 0.3);
  filter: brightness(1.02);
}

.stream-demo-launch:focus-visible {
  outline: 2px solid rgba(255, 214, 179, 0.7);
  outline-offset: 2px;
}

.stream-demo-hint {
  margin: 0;
  color: rgba(219, 235, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

.stream-demo-stage {
  inset: 0;
  pointer-events: none;
}

.stream-stage-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.stream-demo-result {
  top: 22px;
  right: 22px;
  border: 1px solid rgba(255, 183, 121, 0.26);
  background: rgba(255, 150, 71, 0.18);
  color: #fff8f1;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease;
}

.stream-hero-stage.is-resolved .stream-demo-result {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stream-step-card,
.stream-info-card,
.stream-gameplay-card {
  position: relative;
  overflow: hidden;
}

.stream-step-card::before,
.stream-info-card::before,
.stream-gameplay-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 150, 71, 0.4), rgba(94, 166, 255, 0.16), transparent 82%);
}

.stream-step-card span,
.stream-info-card span,
.stream-gameplay-card span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stream-step-number {
  margin-bottom: 16px;
}

.stream-tight-head {
  margin-bottom: clamp(18px, 3vw, 26px);
}

.stream-ready-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stream-shot-block {
  display: grid;
  gap: 14px;
}

.stream-shot-button {
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  border-radius: 28px;
  background: transparent;
}

.stream-shot-button:focus-visible {
  outline: 2px solid rgba(255, 190, 128, 0.4);
  outline-offset: 4px;
}

.stream-shot-frame {
  display: block;
  overflow: hidden;
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255, 183, 121, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(20, 24, 31, 0.94);
  box-shadow: var(--shadow-card);
}

.stream-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.stream-shot-caption {
  margin: 0;
  color: var(--text-med);
}

.stream-gameplay-grid {
  align-items: stretch;
}

.stream-install-panel {
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 150, 71, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(94, 166, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--card-soft);
}

.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 34px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.shot-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.shot-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 6, 10, 0.76);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.shot-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  padding: 18px 18px 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 183, 121, 0.2);
  background: rgba(13, 16, 22, 0.96);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 220ms ease;
}

.shot-lightbox.is-open .shot-lightbox-dialog {
  transform: translateY(0) scale(1);
}

.shot-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 121, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

.shot-lightbox-image {
  display: block;
  width: 100%;
  max-height: min(84vh, 1020px);
  object-fit: contain;
  background: rgba(9, 12, 17, 0.92);
  border-radius: 20px;
}

.shot-lightbox-caption {
  margin-top: 14px;
  color: var(--text-med);
}

body.is-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .stream-hero-grid {
    grid-template-columns: 1fr;
  }

  .stream-hero-visual {
    justify-items: start;
  }
}

@media (max-width: 820px) {
  .stream-hero-grid {
    min-height: auto;
    padding-top: 24px;
  }

  .stream-hero-copy h1 {
    max-width: 10ch;
  }

  .stream-hero-stage {
    width: min(100%, 560px);
    padding: 14px;
    gap: 10px;
  }

  .stream-hero-screen {
    min-height: 360px;
  }

  .stream-screen-wash::before {
    top: 16px;
    right: 16px;
    bottom: 18px;
    left: 16px;
    background-size: 26px 26px;
  }

  .stream-demo-panel {
    width: calc(100% - 18px);
    padding: 13px 14px;
  }

  .stream-demo-launch {
    min-height: 40px;
    padding: 0 13px;
  }

  .stream-demo-result {
    top: 22px;
    right: 18px;
  }
}

@media (max-width: 640px) {
  .stream-hero-visual {
    min-height: 320px;
    transform: translateY(0);
  }

  .stream-hero-stage {
    padding: 12px;
    border-radius: 28px;
    gap: 10px;
  }

  .stream-hero-screen {
    min-height: 300px;
    border-radius: 22px;
  }

  .stream-screen-wash::before {
    top: 12px;
    right: 12px;
    bottom: 16px;
    left: 12px;
    border-radius: 14px;
    background-size: 22px 22px;
    opacity: 0.7;
  }

  .stream-live-tag,
  .stream-demo-result {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .stream-live-tag {
    top: 16px;
    left: 16px;
  }

  .stream-demo-panel {
    width: 100%;
    margin: 0;
    padding: 13px;
    gap: 8px;
  }

  .stream-demo-label {
    font-size: 0.68rem;
  }

  .stream-demo-input-wrap {
    gap: 8px;
    padding: 7px;
  }

  .stream-demo-input {
    font-size: 0.92rem;
  }

  .stream-demo-launch {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .stream-demo-hint {
    font-size: 0.74rem;
  }

  .stream-demo-result {
    right: 16px;
    top: 16px;
  }

  .shot-lightbox-dialog {
    width: min(100%, calc(100% - 8px));
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stream-demo-input-wrap,
  .stream-demo-result {
    transition: none;
  }
}
