:root {
  --demo-bg: #0b1220;
  --demo-surface: #121a2b;
  --demo-text: #e8eef9;
  --demo-muted: #93a4c3;
  --demo-accent: #3d8bfd;
  --demo-border: rgba(148, 163, 184, 0.28);
  --demo-font: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body.demo-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--demo-font);
  color: var(--demo-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 139, 253, 0.22), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(99, 102, 241, 0.16), transparent 55%),
    var(--demo-bg);
}

.demo-shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.demo-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.demo-brand {
  color: var(--demo-text);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}

.demo-tagline {
  margin: 0;
  color: var(--demo-muted);
  font-size: 0.95rem;
}

.demo-panel {
  background: color-mix(in srgb, var(--demo-surface) 92%, white 8%);
  border: 1px solid var(--demo-border);
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.5rem;
  margin-bottom: 1rem;
}

.demo-panel h1,
.demo-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
}

.demo-lead {
  margin: 0 0 1.1rem;
  color: var(--demo-muted);
  line-height: 1.5;
}

.demo-form {
  display: grid;
  gap: 0.9rem;
  max-width: 28rem;
}

.demo-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(12rem, 0.85fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.demo-setup-main .demo-form {
  max-width: none;
}

.demo-setup-aside {
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--demo-border);
  border-radius: 14px;
  background: rgba(8, 14, 26, 0.35);
}

.demo-follow-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.demo-follow-lead {
  margin: 0 0 0.9rem;
  color: var(--demo-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.demo-setup-social,
.contact-social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.demo-setup-social .social-link,
.demo-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  text-decoration: none;
  border-radius: 10px;
  color: inherit;
}

.demo-setup-social .social-link:hover,
.demo-social .social-link:hover {
  text-decoration: none;
  background: rgba(61, 139, 253, 0.12);
}

.demo-setup-social .social-icon,
.demo-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  color: #fff;
  flex-shrink: 0;
}

.social-icon-linkedin {
  background: #0a66c2;
}

.social-icon-instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af);
}

.social-icon-x {
  background: #000;
}

.demo-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.demo-form select,
.demo-form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--demo-border);
  background: #0a1220;
  color: var(--demo-text);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.demo-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  background: var(--demo-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.demo-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.demo-btn-secondary {
  background: transparent;
  border: 1px solid var(--demo-border);
  color: var(--demo-text);
  margin-top: 0.85rem;
}

#demo-cta {
  margin-top: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.demo-optional {
  color: var(--demo-muted);
  font-weight: 400;
  font-size: 0.9em;
}

.demo-muted {
  margin: 0.85rem 0 0;
  color: var(--demo-muted);
  font-size: 0.9rem;
}

.demo-consent {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--demo-muted);
}

.demo-consent a {
  color: inherit;
  text-decoration: underline;
}

.demo-setup-aside .demo-voice-notice {
  margin: 1.1rem 0 0;
}

.demo-voice-notice {
  margin: 0.35rem 0 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.35);
}

.demo-voice-notice-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--demo-text, #e2e8f0);
}

.demo-voice-notice-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--demo-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.demo-voice-notice-list li + li {
  margin-top: 0.28rem;
}

.demo-voice-notice .demo-consent {
  margin: 0.7rem 0 0;
}

.demo-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.demo-alert.ok {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.hidden {
  display: none !important;
}

.demo-session-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.demo-session-frame {
  width: 100%;
  min-height: min(78vh, 820px);
  border: 0;
  border-radius: 16px;
  background: #000;
  display: block;
}

.demo-session-end {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.15) 0%, rgba(6, 10, 18, 0.72) 42%, rgba(6, 10, 18, 0.88) 100%);
}

.demo-session-end.hidden {
  display: none;
}

.demo-session-end-card {
  width: min(440px, 100%);
  max-height: min(70vh, 640px);
  overflow: auto;
  background: linear-gradient(180deg, #152238 0%, #101927 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 1.35rem 1.3rem 1.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.demo-session-end-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.3rem;
}

.demo-session-report {
  margin-top: 0.85rem;
}

.demo-score-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.55rem;
  margin: 0.75rem 0 0.9rem;
}

.demo-score-summary.hidden {
  display: none;
}

.demo-score-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 139, 253, 0.35);
  background: rgba(61, 139, 253, 0.12);
}

.demo-score-card span {
  color: var(--demo-muted);
  font-size: 0.78rem;
}

.demo-score-card strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.demo-session-cta {
  margin-top: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.demo-report {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: #0a1220;
  border: 1px solid var(--demo-border);
  color: #e2e8f0;
  overflow-x: auto;
}

.demo-lang-toggle {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.demo-lang-btn {
  border: 1px solid var(--demo-border);
  background: transparent;
  color: var(--demo-muted);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font: inherit;
}

.demo-lang-btn.is-active {
  background: rgba(61, 139, 253, 0.2);
  color: var(--demo-text);
  border-color: var(--demo-accent);
}

.demo-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.25rem;
}

.demo-social a {
  color: var(--demo-accent);
}

.demo-unlock-prompt {
  margin: 1rem 0 0;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.45;
}

.demo-email-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(6px);
}

.demo-email-dialog {
  width: min(440px, 100%);
  background: linear-gradient(180deg, #152238 0%, #101927 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 1.5rem 1.45rem 1.35rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.demo-email-dialog h2 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.demo-email-lead {
  margin: 0 0 1.1rem;
  color: var(--demo-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.demo-email-form {
  max-width: none;
}

.demo-email-actions {
  display: grid;
  gap: 0.65rem;
}

.demo-email-actions .demo-btn-secondary {
  margin-top: 0;
}

.demo-email-error {
  margin: 0;
  color: #fecaca;
  font-size: 0.88rem;
}

body.demo-email-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .demo-shell {
    width: calc(100% - 1.25rem);
  }

  .demo-setup-grid {
    grid-template-columns: 1fr;
  }

  .demo-session-frame {
    min-height: 70vh;
  }
}

.demo-contact {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.demo-contact a:not(.demo-btn) {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}
