@charset "UTF-8";

/* ==========================================================================
   /demo/ — product demonstration page
   Uses the shared BattleStack design tokens; only page-specific components
   are defined here.
   ========================================================================== */

.demo-hero .hero__inner {
  align-items: center;
  gap: 54px;
}

.demo-hero__media {
  min-width: 0;
  margin: 0;
}

.demo-hero__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: #101f2b;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.demo-hero__frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.demo-hero__play {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(9, 22, 32, 0.82);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.demo-hero__caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 60%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: rgba(9, 22, 32, 0.86);
  color: #e7edf0;
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.03em;
  line-height: 1.45;
  text-align: right;
}

.demo-hero__media figcaption {
  margin: 11px 0 0;
  color: #8fa4ae;
  font-size: 0.63rem;
  line-height: 1.6;
}

.demo-index {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.demo-index__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.demo-index a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 13px;
  padding: 22px 26px;
  border-left: 1px solid var(--line-soft);
  text-decoration: none;
}

.demo-index a:first-child { border-left: 0; padding-left: 0; }
.demo-index a:last-child { padding-right: 0; }
.demo-index a:hover { background: var(--surface-soft); }

.demo-index span {
  grid-row: 1 / span 2;
  color: var(--amber-deep);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.6;
}

.demo-index strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.demo-index small {
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.5;
}

/* Video --------------------------------------------------------------------- */

.demo-video {
  margin: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.demo-video__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.demo-video__label {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-video__spacer { flex: 1; }

.demo-video__bar .tag--soft {
  border-color: #d9c99e;
  background: var(--amber-soft);
  color: #76530b;
}

.demo-video__time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
}

.demo-video__frame {
  position: relative;
  background: #0b1a27;
}

.demo-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0b1a27;
}

.demo-video__status {
  margin: 0;
  padding: 12px 15px;
  border-top: 1px solid #e2c98d;
  background: var(--amber-soft);
  color: #655b45;
  font-size: 0.74rem;
}

.demo-video__status a { color: #5f4309; }

.demo-video figcaption {
  padding: 13px 15px 15px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.6;
}

/* Split panels -------------------------------------------------------------- */

.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 0 26px;
}

.demo-panel {
  padding: 26px 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.demo-panel--accent {
  border-color: #dfc679;
  background: #fdf8eb;
}

.demo-panel--dark {
  border-color: #2c4658;
  background: #102a3d;
  color: #dce5e8;
}

.demo-panel--dark h3 { color: #fff; }
.demo-panel--dark .demo-list li { color: #c6d2d7; }
.demo-panel--dark .demo-list li::before { color: #e7bd67; }

.demo-panel h3 {
  max-width: 420px;
  margin-bottom: 15px;
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.demo-panel > p { color: var(--muted); font-size: 0.78rem; line-height: 1.7; }
.demo-panel--dark > p { color: #b7c6cc; }
.demo-panel .fine-print { margin: 17px 0 0; color: var(--muted-2); font-size: 0.67rem; }
.demo-panel .actions { margin-top: 19px; }
.demo-panel .button { font-size: 0.74rem; }

.demo-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.demo-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border-radius: 50%;
  background: #e3eee5;
  color: #386246;
  font-size: 0.56rem;
  font-weight: 700;
}

.demo-panel--dark .demo-check { background: #244938; color: #9bd0a9; }

.demo-panel--accent .demo-check { background: #f1e2bd; color: #75530c; }

.demo-source-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: var(--surface-soft);
}

.demo-source-note strong {
  flex: none;
  padding-top: 1px;
  color: var(--amber-deep);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-source-note p { margin: 0; color: var(--muted); font-size: 0.7rem; line-height: 1.65; }
.demo-source-note--premium { border-left-color: #b46a4d; background: #f9eee7; }
.demo-source-note--premium strong { color: #8b3d24; }

.demo-premium-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  padding: 17px 20px;
  border: 1px solid #d1b88a;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
}

.demo-premium-banner p { margin: 0; color: #5f5136; font-size: 0.76rem; line-height: 1.65; }
.demo-premium-banner strong { color: #4f3f22; }

.demo-product--premium { background: var(--paper-deep); }

/* Integration --------------------------------------------------------------- */

.demo-integration { background: var(--surface); }

.demo-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.demo-facts article {
  padding: 24px 25px;
  border-top: 2px solid var(--ink);
  background: #fbfaf6;
}

.demo-facts__number {
  display: block;
  margin-bottom: 16px;
  color: var(--amber-deep);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
}

.demo-facts h3 { margin-bottom: 9px; font-size: 1.62rem; }
.demo-facts p { color: var(--muted); font-size: 0.76rem; line-height: 1.72; }
.demo-facts .fine-print { margin: 12px 0 0; color: var(--muted-2); font-size: 0.65rem; }

.demo-integration__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.demo-integration__bottom > p {
  max-width: 710px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.7;
}

.demo-integration__bottom .actions { flex: none; }

/* Transcripts and credits --------------------------------------------------- */

.demo-transcript,
.demo-credits {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.demo-transcript summary,
.demo-credits summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 12px 17px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 650;
  list-style: none;
}

.demo-transcript summary::-webkit-details-marker,
.demo-credits summary::-webkit-details-marker { display: none; }

.demo-transcript summary:hover,
.demo-credits summary:hover { color: var(--amber-deep); }

.demo-transcript[open] .faq-item__icon,
.demo-credits[open] .faq-item__icon { transform: rotate(45deg); background: var(--amber); border-color: var(--amber); color: var(--ink); }

.demo-transcript__body {
  padding: 4px 18px 12px;
  border-top: 1px solid var(--line-soft);
}

.demo-transcript__body p {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.65;
}

.demo-transcript__body p:last-child { border-bottom: 0; }
.demo-transcript__body span { color: var(--amber-deep); font-family: var(--font-mono); font-size: 0.56rem; font-weight: 700; }

.demo-credits > div { padding: 4px 18px 14px; border-top: 1px solid var(--line-soft); }
.demo-credits p { margin: 12px 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.7; }
.demo-credits a { text-decoration-color: var(--amber); }

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 980px) {
  .demo-hero .hero__inner { gap: 34px; }
  .demo-hero__media { max-width: 760px; }
  .demo-index__inner { grid-template-columns: 1fr; }
  .demo-index a,
  .demo-index a:first-child,
  .demo-index a:last-child { padding: 17px 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .demo-index a:first-child { border-top: 0; }
  .demo-split { grid-template-columns: 1fr; }
  .demo-facts { grid-template-columns: 1fr; }
  .demo-integration__bottom { display: block; }
  .demo-integration__bottom .actions { margin-top: 17px; }
}

@media (max-width: 760px) {
  .demo-hero__play { width: 42px; height: 42px; left: 16px; bottom: 16px; }
  .demo-hero__caption { display: none; }
  .demo-video__bar { flex-wrap: wrap; gap: 6px 10px; }
  .demo-video__spacer { display: none; }
  .demo-video__time { margin-left: auto; }
  .demo-panel { padding: 21px 20px; }
  .demo-premium-banner { display: block; padding: 15px 16px; }
  .demo-premium-banner .tag { margin-bottom: 8px; }
  .demo-source-note { display: block; }
  .demo-source-note strong { display: block; margin-bottom: 6px; }
  .demo-facts article { padding: 21px 20px; }
  .demo-transcript__body p { grid-template-columns: 52px 1fr; gap: 10px; }
}

@media (max-width: 500px) {
  .demo-index strong { font-size: 1.05rem; }
  .demo-video figcaption { font-size: 0.63rem; }
  .demo-transcript summary,
  .demo-credits summary { font-size: 0.72rem; }
}

.demo-video__store {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--amber);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.demo-video__store:hover { color: var(--amber-deep); }
