:root {
  --sai-bg: #08090d;
  --sai-bg-2: #0d0f15;
  --sai-card: rgba(18, 20, 29, .74);
  --sai-card-2: rgba(255, 255, 255, .055);
  --sai-line: rgba(255, 255, 255, .105);
  --sai-line-2: rgba(255, 255, 255, .16);
  --sai-text: #f6f7fb;
  --sai-muted: rgba(246, 247, 251, .66);
  --sai-soft: rgba(246, 247, 251, .84);
  --sai-green: #3ee47f;
  --sai-blue: #68a6ff;
  --sai-orange: #ffb454;
  --sai-radius: 24px;
  --sai-shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sai-text);
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 180, 84, .18), transparent 36rem),
    radial-gradient(circle at 8% 16%, rgba(104, 166, 255, .13), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(62, 228, 127, .08), transparent 26rem),
    linear-gradient(180deg, #0b0d13 0%, #08090d 46%, #0d0f15 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .48;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.18) 72%, transparent);
}

a { color: inherit; text-decoration: none; }
.sai-home { position: relative; overflow: hidden; }
.sai-wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.sai-nav {
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--sai-line);
  border-radius: 24px;
  background: rgba(13, 15, 21, .72);
  box-shadow: 0 18px 70px rgba(0,0,0,.26);
  backdrop-filter: blur(18px);
}
.sai-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 950; letter-spacing: -.02em; }
.sai-brand img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.sai-brand span { font-size: 16px; }
.sai-nav-links { display: flex; align-items: center; gap: 8px; }
.sai-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 13px;
  color: var(--sai-muted);
  font-size: 13px;
  font-weight: 850;
}
.sai-nav-links a:hover { color: var(--sai-text); background: rgba(255,255,255,.06); }
.sai-nav-links .sai-nav-cta { color: #111; background: #f4f5f7; }

.sai-hero { padding: clamp(58px, 8vw, 104px) 0 54px; }
.sai-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .82fr); gap: 28px; align-items: center; }
.sai-kicker,
.sai-section-head span,
.sai-pricing-copy span {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--sai-line);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: var(--sai-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sai-hero-copy h1 {
  max-width: 740px;
  margin: 18px 0 18px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: .94;
  letter-spacing: -.062em;
}
.sai-hero-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--sai-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}
.sai-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 15px;
  background: #f4f5f7;
  color: #101219;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 18px 54px rgba(0,0,0,.26);
  transition: transform .18s ease, background .18s ease;
}
.sai-btn:hover { transform: translateY(-2px); }
.sai-btn-soft { background: rgba(255,255,255,.06); color: var(--sai-text); border-color: var(--sai-line-2); box-shadow: none; }
.sai-note { margin-top: 22px !important; max-width: 480px !important; font-size: 13px !important; color: rgba(246,247,251,.52) !important; }

.sai-hero-demo {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--sai-line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.04));
  box-shadow: var(--sai-shadow);
  backdrop-filter: blur(18px);
}
.sai-hero-demo::before {
  content: "";
  position: absolute;
  inset: -90px -80px auto auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(104,166,255,.15);
  filter: blur(12px);
}
.sai-demo-top,
.sai-demo-stats,
.sai-stream-preview {
  position: relative;
  border: 1px solid var(--sai-line);
  background: rgba(12,14,20,.74);
}
.sai-demo-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
}
.sai-demo-top strong { display: block; font-size: 22px; letter-spacing: -.04em; }
.sai-demo-top span { display: block; margin-top: 4px; color: var(--sai-muted); font-size: 13px; font-weight: 750; }
.sai-demo-top a { padding: 12px 14px; border-radius: 13px; background: #f4f5f7; color: #101219; font-size: 13px; font-weight: 950; white-space: nowrap; }
.sai-demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-top: 12px; border-radius: 18px; }
.sai-demo-stats div { padding: 16px; background: rgba(255,255,255,.035); }
.sai-demo-stats span { display: block; color: var(--sai-muted); font-size: 12px; font-weight: 850; }
.sai-demo-stats strong { display: block; margin-top: 4px; font-size: 28px; }
.sai-stream-preview-list { display: grid; gap: 10px; margin-top: 12px; }
.sai-stream-preview { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px; border-radius: 16px; }
.sai-stream-preview strong { display: block; font-size: 15px; }
.sai-stream-preview span { display: block; margin-top: 4px; color: var(--sai-muted); font-size: 12px; font-weight: 750; }
.sai-stream-preview b { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 12px; }
.sai-stream-preview b::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--sai-blue); }
.sai-stream-preview.live b::before { background: var(--sai-green); box-shadow: 0 0 16px rgba(62,228,127,.62); }
.sai-stream-preview.processing b::before { background: var(--sai-orange); }

.sai-section { padding: clamp(58px, 8vw, 94px) 0; }
.sai-section-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.sai-section-head span { margin: 0 auto; }
.sai-section-head h2,
.sai-pricing-copy h2,
.sai-story-copy h2,
.sai-final-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: .98;
  letter-spacing: -.058em;
}
.sai-section-head p,
.sai-pricing-copy p,
.sai-story-copy p,
.sai-final-card p { color: var(--sai-muted); font-size: 17px; line-height: 1.65; }

.sai-feature-grid,
.sai-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sai-feature-grid article,
.sai-case-grid article,
.sai-pricing-card,
.sai-story-grid,
.sai-final-card {
  border: 1px solid var(--sai-line);
  border-radius: var(--sai-radius);
  background: var(--sai-card);
  box-shadow: 0 18px 72px rgba(0,0,0,.20);
  backdrop-filter: blur(16px);
}
.sai-feature-grid article,
.sai-case-grid article { padding: 24px; }
.sai-feature-grid h3,
.sai-case-grid h3 { margin: 0 0 9px; font-size: 19px; letter-spacing: -.025em; }
.sai-feature-grid p,
.sai-case-grid p { margin: 0; color: var(--sai-muted); line-height: 1.55; font-size: 14px; }

.sai-pricing-card { display: grid; grid-template-columns: 1fr 430px; gap: 24px; align-items: stretch; padding: 24px; }
.sai-pricing-copy { padding: clamp(10px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; }
.sai-price-box { border: 1px solid var(--sai-line); border-radius: 22px; background: rgba(255,255,255,.06); padding: 26px; }
.sai-price { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 22px; }
.sai-price small { margin-top: 10px; font-size: 24px; font-weight: 950; }
.sai-price strong { font-size: 72px; line-height: .9; letter-spacing: -.07em; }
.sai-price span { align-self: flex-end; margin-bottom: 8px; color: var(--sai-muted); font-weight: 850; }
.sai-price-box ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--sai-soft); }
.sai-price-box li { display: flex; gap: 10px; line-height: 1.45; }
.sai-price-box li::before { content: "✓"; color: var(--sai-green); font-weight: 950; }
.sai-price-box .sai-btn { width: 100%; margin-top: 24px; }

.sai-story-grid { display: grid; grid-template-columns: 310px 1fr; overflow: hidden; }
.sai-profile-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 340px; padding: 30px; border-right: 1px solid var(--sai-line); text-align: center; }
.sai-profile-card img { width: 108px; height: 108px; border-radius: 30px; object-fit: cover; box-shadow: 0 20px 60px rgba(0,0,0,.30); }
.sai-profile-card strong { display: block; margin-top: 16px; font-size: 28px; letter-spacing: -.04em; }
.sai-profile-card span { display: block; margin-top: 6px; color: var(--sai-muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.sai-story-copy { padding: clamp(28px, 5vw, 48px); }
.sai-story-copy p { margin: 0 0 16px; }

.sai-final { padding: 40px 0 92px; }
.sai-final-card { text-align: center; padding: clamp(40px, 7vw, 76px) 24px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045)); }
.sai-final-card h2 { max-width: 780px; margin-left: auto; margin-right: auto; }
.sai-final-card p { max-width: 620px; margin: 0 auto 28px; }

@media (max-width: 980px) {
  .sai-hero-grid,
  .sai-pricing-card,
  .sai-story-grid { grid-template-columns: 1fr; }
  .sai-profile-card { border-right: 0; border-bottom: 1px solid var(--sai-line); }
}
@media (max-width: 820px) {
  .sai-nav { align-items: flex-start; flex-direction: column; }
  .sai-nav-links { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .sai-nav-links a { background: rgba(255,255,255,.045); }
  .sai-feature-grid,
  .sai-case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .sai-wrap,
  .sai-nav { width: min(100% - 22px, 1160px); }
  .sai-brand img { width: 46px; height: 46px; }
  .sai-nav-links { grid-template-columns: repeat(2, 1fr); }
  .sai-actions { flex-direction: column; }
  .sai-btn { width: 100%; }
  .sai-demo-top { align-items: flex-start; flex-direction: column; }
  .sai-demo-top a { width: 100%; text-align: center; justify-content: center; }
  .sai-demo-stats { grid-template-columns: 1fr; }
  .sai-price strong { font-size: 58px; }
  .sai-hero-copy h1 { font-size: clamp(40px, 12vw, 62px); }
}







* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #070707;
  color: #fff;
}

a {
  color: inherit;
}

.sl-page,
.ss-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.08), transparent 35%),
    #070707;
}

.sl-card,
.ss-card {
  width: 100%;
  max-width: 460px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(18,18,18,.92);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.sl-topbar {
  margin-bottom: 20px;
}

.sl-back-home {
  text-decoration: none;
  font-size: 24px;
  opacity: .85;
}

.sl-header,
.ss-header {
  margin-bottom: 24px;
}

.sl-header h1,
.ss-header h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.1;
}

.sl-header p,
.ss-header p,
.sl-small-note,
.ss-small-note {
  color: rgba(255,255,255,.68);
  line-height: 1.5;
}

.sl-form,
.ss-form {
  display: grid;
  gap: 14px;
}

.sl-field input,
.ss-field input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 0 16px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 16px;
  outline: none;
}

.sl-field input:focus,
.ss-field input:focus {
  border-color: rgba(255,255,255,.45);
}

.sl-code-input,
.ss-code-input {
  text-align: center;
  letter-spacing: 8px;
  font-weight: 700;
}

.sl-btn,
.ss-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.sl-btn:disabled,
.ss-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.sl-btn-secondary,
.ss-btn-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}

.sl-error,
.ss-error {
  color: #ff8f8f;
  background: rgba(255,0,0,.08);
  border: 1px solid rgba(255,0,0,.18);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
}

.sl-message,
.ss-message {
  color: #9dffbd;
  background: rgba(0,255,100,.08);
  border: 1px solid rgba(0,255,100,.18);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
}

.sl-signup-note,
.ss-login-note {
  margin-top: 20px;
  text-align: center;
  color: rgba(255,255,255,.7);
}

.sl-signup-note a,
.ss-login-note a {
  color: #fff;
  font-weight: 700;
}













/* Streaming page shell only.
   The full dashboard HTML/CSS/JS is loaded from the backend into #streaming-dashboard. */

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.st-body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.08), transparent 35%),
    #070707;
  color: #fff;
}

body.st-body a {
  color: inherit;
}

#streaming-dashboard {
  width: 100%;
  min-height: 100vh;
}

.st-dashboard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.st-loader-card,
.st-error-card {
  width: 100%;
  max-width: 460px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(18,18,18,.92);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.st-loader-card h1,
.st-error-card h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.st-loader-card p,
.st-error-card p {
  max-width: 360px;
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.5;
}

.st-spinner {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 4px solid rgba(255,255,255,.16);
  border-top-color: #fff;
  animation: stSpin .75s linear infinite;
}

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.st-dashboard-ready {
  display: block;
  animation: stFadeIn 140ms ease-out both;
}

@keyframes stSpin {
  to { transform: rotate(360deg); }
}

@keyframes stFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 700px) {
  .st-loader-card,
  .st-error-card {
    padding: 22px;
  }

  .st-loader-card h1,
  .st-error-card h2 {
    font-size: 28px;
  }
}
