:root {
  color-scheme: light;
  --paper: #f8f8f7;
  --ink: #0d0e11;
  --quiet: #50515a;
  --line: #dddde2;
  --blue: #164cff;
  --blue-hover: #123ed1;
  --stage: #121418;
  --stage-line: #ffffff26;
  --stage-quiet: #babcc8;
  --stage-white: #f8f8fc;
  --round: 20px;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-width: 280px;
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #7294ff; outline-offset: 4px; }

.skip {
  position: absolute;
  z-index: 10;
  top: 14px;
  left: 14px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #fff;
  transform: translateY(-160%);
}

.skip:focus { transform: translateY(0); }

.shell { width: min(1312px, calc(100% - clamp(30px, 10vw, 174px))); margin-inline: auto; }

.navigation {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark, .broadcast-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-weight: 740;
  letter-spacing: -.045em;
}

.wordmark { font-size: clamp(15px, 1.5vw, 22px); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 31px;
  font-weight: 970;
  font-style: italic;
  letter-spacing: -.16em;
  line-height: .85;
  padding-inline: 0 4px;
  transform: skewX(-7deg);
}

.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 42px); font-weight: 650; }
.nav-links > a:not(.studio-link):hover, .text-link:hover { color: #2048d5; }

.studio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  white-space: nowrap;
  transition: background .2s ease;
}

.studio-link:hover { background: #eaeaec; }

.hero {
  padding: clamp(24px, 2.7vw, 45px) 0 clamp(26px, 2.85vw, 42px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 7.65vw, 110px);
  line-height: .91;
  letter-spacing: -.064em;
  word-spacing: .035em;
  font-weight: 810;
}

.hero p {
  max-width: 570px;
  margin: clamp(18px, 1.75vw, 27px) auto 0;
  font-size: clamp(17px, 1.76vw, 24px);
  line-height: 1.36;
  letter-spacing: -.03em;
  color: #32333d;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px clamp(18px, 2.4vw, 36px);
  margin-top: clamp(22px, 1.85vw, 30px);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 10px 27px;
  background: var(--blue);
  border-radius: 100px;
  color: #fff;
  font-weight: 730;
  font-size: clamp(16px, 1.38vw, 19px);
  letter-spacing: -.035em;
  transition: background .2s ease, transform .2s ease;
}

.primary-button:hover { background: var(--blue-hover); }
.primary-button:active { transform: scale(.98); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: clamp(15px, 1.35vw, 19px);
  letter-spacing: -.025em;
}

.text-link > span { font-size: 1.24em; font-weight: 470; }

.broadcast {
  position: relative;
  padding: 0 8px 8px;
  border-radius: var(--round);
  background: #101114;
  color: var(--stage-white);
  box-shadow: 0 16px 60px #191c2121, 0 3px 7px #191c2126;
  isolation: isolate;
}

.broadcast-bar, .broadcast-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  min-height: 56px;
  padding-inline: 17px;
}

.broadcast-brand { min-width: 0; font-size: 18px; }
.broadcast-brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.broadcast-brand .brand-mark { font-size: 28px; flex: 0 0 auto; }
.bar-heading { padding-left: 15px; border-left: 1px solid var(--stage-line); font-size: 14px; font-weight: 500; color: var(--stage-quiet); }

.mode-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #19312d;
  color: #baf2e5;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.mode-indicator > span, .camera-caption > span { width: 7px; height: 7px; border-radius: 50%; background: #78edc8; }

.reset-button, .gift-button {
  min-height: 39px;
  padding: 7px 12px;
  border: 1px solid var(--stage-line);
  border-radius: 10px;
  background: #ffffff0b;
  color: #f7f7fa;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 680;
}
.reset-button:hover, .gift-button:hover { background: #ffffff21; }

.broadcast-body { display: grid; min-width: 0; grid-template-columns: minmax(215px, .98fr) minmax(0, 3.02fr); gap: 8px; }

.chat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 16px;
  padding: 16px 15px 14px;
  background: linear-gradient(160deg, #202126 0%, #16171b 90%);
  border: 1px solid var(--stage-line);
  border-radius: 14px;
  container-type: inline-size;
}

.chat h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 660; }
.chat-icon { display: inline-block; width: 14px; height: 11px; border: 1.5px solid #ddd; border-radius: 5px; position: relative; }
.chat-icon::after { content: ""; position: absolute; left: 2px; bottom: -4px; width: 4px; height: 4px; border-left: 1.5px solid #ddd; transform: skewY(-35deg); }

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-block: 12px;
  border-top: 1px solid #ffffff14;
}

.chat-log > p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: #d4d5de;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.chat-log > p > strong { color: #fff; font-weight: 670; }
.chat-log .avatar {
  display: inline-grid;
  place-items: center;
  inline-size: 25px;
  block-size: 25px;
  border-radius: 50%;
  color: #16171a;
  font-size: 11px;
  font-weight: 820;
}

.avatar-blue { background: #9abaf8; }
.avatar-green { background: #91dac4; }
.avatar-rose { background: #e3a4b5; }
.chat-caption { color: var(--stage-quiet); padding-top: 12px; margin: auto 0 0; font-size: 12px; line-height: 1.4; }

.camera {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-width: 0;
  min-height: clamp(360px, 30vw, 430px);
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--stage-line);
  border-radius: 14px;
  background:
    linear-gradient(90deg, #11131e10 20%, #11131e56 51%, #101219fa 100%),
    url("./studio-camera.webp") 50% 47% / cover,
    radial-gradient(ellipse at 28% 35%, #7e433c, #493451 47%, #161725 76%);
  transition: background-color .25s ease;
}

.camera-caption {
  position: absolute;
  top: 15px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  background: #101116b5;
  border-radius: 6px;
  color: #e3e2ed;
  font-size: 11px;
  font-weight: 650;
}

.camera-caption > span { width: 5px; height: 5px; }

.on-air {
  position: relative;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px 10px 66px;
}

.scene-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.scene-label { display: inline-block; padding: 5px 9px; border-radius: 100px; background: #1751e8; color: #fff; font-size: 12px; font-weight: 750; }
.score { font-size: 12px; font-weight: 520; color: #e6e6ef; }
.score > strong { margin-left: 3px; color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }

.scene-content h2 {
  margin: 9px 0 15px;
  font-size: clamp(23px, 2.5vw, 38px);
  line-height: 1.02;
  letter-spacing: -.049em;
  font-weight: 810;
  text-wrap: balance;
  text-shadow: 0 1px 12px #0008;
}

.scene-content p { color: #dedee9; max-width: 240px; font-size: 14px; line-height: 1.5; }

.answers { display: grid; gap: 5px; }
.answers > button, .race-row > button {
  text-align: left;
  min-height: 39px;
  padding: 6px 9px;
  background: #14151ddb;
  border: 1px solid #ffffff69;
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 690;
}

.answers > button:not(:disabled):hover, .race-row > button:not(:disabled):hover { border-color: #98aeff; background: #202b4b; }
.answers > button:disabled { opacity: .7; }
.answers > button:disabled.correct { opacity: 1; border-color: #90e8c1; }
.answers > button:disabled.incorrect { border-color: #f99399; }

.answers > button span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 5px;
  border-radius: 5px;
  background: #ffffff13;
  font-size: 12px;
}

.on-air-action {
  min-height: 37px;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid #b1c4ff56;
  border-radius: 8px;
  background: #18318a;
  color: #fff;
  font-size: 13px;
  font-weight: 680;
}

.on-air-action:hover { background: #294dd1; }

.track { display: grid; gap: 8px; }
.race-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 34px; gap: 8px; align-items: center; }
.race-row > button { min-height: 35px; padding-inline: 0; text-align: center; }
.race-lane { height: 9px; overflow: hidden; border-radius: 100px; background: #fff2; }
.race-lane > span { display: block; height: 100%; width: 0; background: #f7d064; border-radius: inherit; transition: width .28s cubic-bezier(.2,.9,.3,1); }
.race-row:nth-child(2) .race-lane > span { background: #9dbaff; }
.race-row:nth-child(3) .race-lane > span { background: #ffb1ca; }

.gift-layer {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  min-height: 53px;
  padding: 7px 10px;
  background: linear-gradient(110deg, #574020ee, #322b20f2);
  border: 1px solid #f9cf7a91;
  border-radius: 14px;
  color: #ffebbd;
  animation: gift-pop .3s cubic-bezier(.25,.9,.3,1) both;
}

.gift-layer strong, .gift-layer small { display: block; font-size: 12px; }
.gift-layer small { margin-top: 2px; color: #f7dcae; font-size: 11px; }
.gift-layer b { font-size: 15px; }
.gift-icon { color: #ffca68; font-size: 25px; }
@keyframes gift-pop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.broadcast-controls { padding: 8px 14px 3px; align-items: center; }
.scene-picker { display: flex; gap: 3px; flex: 0 0 auto; padding: 3px; border: 1px solid var(--stage-line); border-radius: 10px; }
.scene-picker > button { min-height: 32px; border: 0; padding: 5px 9px; border-radius: 7px; background: transparent; color: var(--stage-quiet); white-space: nowrap; font-size: 12px; font-weight: 660; }
.scene-picker > button:hover { color: #fff; }
.scene-picker > button[aria-pressed="true"] { color: #fff; background: #ffffff20; }
.demo-status { margin: 0; color: #cfd0d7; font-size: 13px; line-height: 1.4; text-align: center; }
.gift-button { color: #ffe2a8; }
.gift-button > span { color: #ffc968; margin-right: 4px; }

.setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  align-items: start;
  gap: clamp(34px, 7vw, 108px);
  padding: clamp(74px, 10vw, 145px) 0 clamp(60px, 7vw, 102px);
}
.setup h2 { margin: 0; max-width: 620px; font-size: clamp(41px, 5.65vw, 80px); font-weight: 810; line-height: .99; letter-spacing: -.074em; }
.setup-intro > p { max-width: 415px; margin: 22px 0 27px; color: var(--quiet); font-size: clamp(17px, 1.7vw, 22px); line-height: 1.45; letter-spacing: -.025em; text-wrap: pretty; }
.setup-steps { border-top: 1px solid var(--line); }
.setup-steps article { padding: 17px 0 19px; border-bottom: 1px solid var(--line); }
.setup-steps h3 { margin: 0 0 7px; letter-spacing: -.04em; font-size: 21px; }
.setup-steps p { margin: 0; color: var(--quiet); font-size: 15px; line-height: 1.55; }
.setup-steps code { overflow-wrap: anywhere; font-size: .9em; }

.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 82px; padding-block: 14px; border-top: 1px solid var(--line); }
.page-footer > p { max-width: 430px; color: var(--quiet); font-size: 13px; line-height: 1.4; text-align: right; }

@media (max-width: 990px) {
  .broadcast-body { grid-template-columns: minmax(168px, .85fr) minmax(0, 3.15fr); }
  .camera { grid-template-columns: .8fr 1fr; padding: 15px 9px; min-height: 345px; }
  .chat { gap: 13px; padding-inline: 10px; }
  .chat-log > p { font-size: 12px; }
  .chat-caption { font-size: 11px; }
}

@media (max-width: 695px) {
  .navigation { min-height: 57px; }
  .nav-links { font-size: 13px; }
  .nav-links > a:not(.studio-link) { display: none; }
  .studio-link { min-height: 38px; padding: 6px 12px; border-radius: 12px; }
  .brand-mark { font-size: 27px; }
  .wordmark { gap: 9px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(53px, 10.4vw, 72px); }
  .desktop-break { display: none; }
  .hero-actions { gap: 14px 19px; }
  .primary-button { min-height: 45px; padding-inline: 21px; }
  .showcase { width: calc(100% - 22px); }
  .broadcast { padding-inline: 6px; border-radius: 15px; }
  .broadcast-bar { gap: 8px; min-height: 49px; padding-inline: 6px; }
  .broadcast-brand { gap: 7px; font-size: 13px; }
  .broadcast-brand strong > span { display: none; }
  .broadcast-brand .brand-mark { font-size: 23px; }
  .bar-heading { display: none; }
  .mode-indicator { font-size: 10px; padding-inline: 7px; }
  .reset-button { min-height: 34px; padding-inline: 6px; font-size: 10px; }
  .broadcast-body { display: flex; flex-direction: column-reverse; }
  .camera { min-height: 370px; grid-template-columns: 1fr; padding: 90px 11px 9px; align-items: end; background-position: center, 44% 35%, center; background-image: linear-gradient(180deg, #1011190c 5%, #10111948 25%, #101119e6 65%), url("./studio-camera.webp"), radial-gradient(ellipse at 28% 35%, #7e433c, #493451 47%, #161725 76%); }
  .on-air { grid-column: 1; padding: 0 0 54px; }
  .camera-caption { top: 8px; left: 8px; }
  .scene-content h2 { max-width: 330px; margin-bottom: 10px; font-size: 24px; }
  .answers > button { min-height: 33px; padding-block: 3px; }
  .answers > button span { height: 21px; width: 21px; }
  .gift-layer { right: 0; left: 0; min-height: 46px; padding-block: 5px; }
  .chat { gap: 5px; padding: 8px 10px; }
  .chat h2 { font-size: 12px; }
  .chat-log { min-height: 35px; padding-block: 5px 0; }
  .chat-log > p:not(:last-child) { display: none; }
  .chat-caption { display: none; }
  .broadcast-controls { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding-inline: 2px; }
  .scene-picker { justify-content: space-between; }
  .scene-picker > button { padding-inline: 4px; font-size: 11px; }
  .gift-button { padding-inline: 5px; font-size: 10px; }
  .gift-button > span { margin-right: 1px; }
  .demo-status { grid-column: 1 / -1; grid-row: 2; padding: 3px 0; min-height: 24px; font-size: 12px; }
  .setup { grid-template-columns: 1fr; }
  .page-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .page-footer > p { text-align: left; }
}

@media (max-width: 340px) {
  .broadcast-brand strong { display: none; }
  .hero h1 { font-size: 46px; }
}

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

/* ── Sandra Zenamy additions: gallery, versions, tested list ── */
.gallery, .versions, .tested { padding-block: clamp(64px, 9vw, 128px) 0; }
.gallery-intro { max-width: 720px; margin-bottom: 40px; }
.gallery h2, .versions h2, .tested h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 14px; }
.gallery-intro p, .tested-note { color: var(--quiet); font-size: 19px; margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-grid article, .version-grid article { background: #fff; border: 1px solid var(--line); border-radius: var(--round); padding: 26px 24px 28px; }
.gallery-grid h3, .version-grid h3 { font-size: 23px; letter-spacing: -.02em; margin: 10px 0 8px; }
.gallery-grid p, .version-grid p { color: var(--quiet); font-size: 16px; line-height: 1.5; margin: 0; }
.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 650; }
.tag.ready { background: #dff5e7; color: #0b5f33; }
.tag.later { background: #fdeecb; color: #6f4500; }
.version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.version-grid .text-link { display: inline-block; margin-top: 16px; }
.tested { padding-bottom: clamp(64px, 9vw, 120px); }
.tested-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.tested-list li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 4px 18px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.tested-list strong { font-weight: 650; }
.tested-list span.how { grid-column: 2; color: var(--quiet); font-size: 15px; }
.tested-list .tag { justify-self: start; align-self: start; grid-row: span 2; }
.setup-steps a { color: var(--blue); }
.setup-steps article .primary-button { margin-top: 12px; }
.nav-links a[aria-current="page"] { font-weight: 650; }
@media (max-width: 860px) {
  .gallery-grid, .version-grid { grid-template-columns: 1fr; }
  .tested-list li { grid-template-columns: 1fr; }
  .tested-list span.how { grid-column: 1; }
  .tested-list .tag { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gift-layer, .gift-layer * { animation: none !important; }
  .race-lane span, .answers button, .primary-button { transition: none !important; }
}
