:root {
  --bg: #000000;
  --panel: rgba(24, 24, 27, 0.92);
  --border: rgba(63, 63, 70, 0.72);
  --text: #ffffff;
  --muted: #cbd5e0;
  --accent: #ffb807;
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: inherit;
}

.page-wrapper {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(130deg, rgba(180, 130, 20, 0.15) 0%, rgba(0, 0, 0, 0.92) 50%, rgba(120, 80, 10, 0.1) 100%),
    repeating-conic-gradient(rgba(255, 184, 7, 0.03) 0% 25%, transparent 0% 50%) 0 0 / 4px 4px;
  background-color: #0a0800;
}

.bg-layer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 46%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 40%, rgba(180, 140, 20, 0.18) 0%, rgba(120, 80, 10, 0.08) 30%, transparent 70%);
}

.content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.brand-block {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, #ffda00 0%, #ff8c00 100%);
  color: #000000;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 0.14rem;
}

.brand-copy strong {
  font-size: 1.04rem;
}

.brand-copy span:last-child {
  color: rgba(203, 213, 224, 0.8);
  font-size: 0.94rem;
}

.room-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.status-item {
  display: grid;
  gap: 0.35rem;
  min-width: 10rem;
}

.status-label,
.panel-kicker,
.comment-form label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 184, 7, 0.76);
}

.status-item strong {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0 1.2rem;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.cta-btn:hover {
  transform: translateY(-1px);
}

.primary-cta {
  background: linear-gradient(130deg, #ffda00 0%, #ff8c00 100%);
  color: #000000;
  box-shadow: 0 16px 44px rgba(255, 184, 7, 0.18);
}

.ghost-cta {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.ghost-cta:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 420px;
  gap: 1rem;
  align-items: stretch;
  min-height: calc(100vh - 6rem);
}

.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 1.2rem;
  backdrop-filter: blur(16px);
}

.video-panel {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.video-panel h1,
.chat-panel h2 {
  margin: 0.25rem 0 0;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
}

.video-panel h1 {
  font-size: clamp(1.8rem, 2.2vw, 2.7rem);
  max-width: none;
}

.chat-panel h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.video-shell {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  overflow: hidden;
  background: #f5f2ea;
  min-height: clamp(28rem, 74vh, 56rem);
}

.slides-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(28rem, 74vh, 56rem);
  border: 0;
  background: #f5f2ea;
}

.chat-intro,
.assistant-status,
.comment-text {
  color: var(--muted);
  line-height: 1.6;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  min-height: 0;
}

.panel-head-chat {
  margin-bottom: 0.6rem;
}

.chat-intro {
  margin: 0 0 1rem;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.prompt-chip {
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  padding: 0.78rem 1rem;
  background: rgba(245, 158, 11, 0.08);
  color: #f3f4f6;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.prompt-chip:hover {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}

.comment-thread {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 0.75rem;
  padding-right: 0.25rem;
}

.comment-bubble {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.45rem;
}

.comment-bubble-user {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.comment-role {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.comment-role::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.comment-bubble-user .comment-role::before {
  background: var(--accent);
}

.comment-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.comment-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 7.4rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 1rem 1.05rem;
}

.comment-form textarea::placeholder {
  color: rgba(203, 213, 224, 0.42);
}

.comment-form textarea:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12);
}

.comment-form-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.assistant-status {
  margin: 0;
}

.send-btn {
  min-height: 3.2rem;
  padding-inline: 1.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr 380px;
  }
}

@media (max-width: 980px) {
  .topbar {
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .chat-panel {
    grid-template-rows: auto auto auto minmax(18rem, 1fr) auto;
  }
}

@media (max-width: 640px) {
  .content {
    width: min(calc(100% - 1rem), var(--max));
    padding-top: 0.5rem;
  }

  .room-status,
  .topbar-actions,
  .comment-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .status-item {
    min-width: 0;
  }

  .panel {
    border-radius: 22px;
    padding: 1rem;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-btn {
    width: 100%;
  }

  .video-panel h1 {
    font-size: clamp(1.6rem, 7vw, 2.3rem);
  }

  .slides-frame {
    min-height: 18rem;
  }

  .video-shell {
    min-height: 18rem;
  }
}
