:root {
  --ink: #061512;
  --ink-soft: #9eb8b1;
  --foam: #e8f7f2;
  --accent: #3dceb4;
  --accent-deep: #1a8f7a;
  --brass: #e0b56a;
  --brass-soft: #f0d9a8;
  --line: rgba(232, 247, 242, 0.14);
  --card: rgba(7, 26, 23, 0.78);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scrollbar-gutter: stable; }

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

body {
  margin: 0;
  color: var(--foam);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 55% at 78% 8%, rgba(61, 206, 180, 0.16), transparent 56%),
    radial-gradient(ellipse 60% 45% at 8% 92%, rgba(224, 181, 106, 0.12), transparent 52%),
    linear-gradient(165deg, #071816 0%, #0a1f1b 42%, #061310 100%);
  text-rendering: optimizeLegibility;
}

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

button, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  backdrop-filter: blur(14px);
  background: rgba(4, 13, 11, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--foam), var(--brass-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  border: 1px solid transparent;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--foam);
  border-color: var(--line);
  background: rgba(61, 206, 180, 0.08);
}

#app {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 247, 242, 0.55);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: pretty;
}

.lobby h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.lede {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
  text-wrap: pretty;
}

.room-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.room-card,
.plan-card,
.panel,
.banner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(16px);
}

.room-card {
  padding: 1.35rem 1.35rem 1.2rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.room-card:hover { border-color: rgba(61, 206, 180, 0.45); transform: translateY(-2px); }

.room-card__kicker,
.plan-card__kicker {
  color: var(--brass-soft);
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.room-card h2,
.plan-card h2,
.panel h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.room-card p,
.plan-card p { color: var(--ink-soft); text-wrap: pretty; }

.room-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.room-card .btn,
.composer .btn,
.stage-tools .btn,
.banner .btn { margin-top: 1rem; align-self: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  transition: transform 0.2s var(--ease), filter 0.2s ease;
}

.btn:hover { filter: brightness(1.05); }

.btn:active { transform: translateY(1px); }

.btn:disabled { opacity: 0.55; cursor: wait; }

.btn--brass { background: var(--brass); }

.btn--ghost {
  background: transparent;
  color: var(--foam);
  border: 1px solid var(--line);
}

.btn:focus-visible,
.nav a:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.plan-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.plan-card { padding: 1.15rem 1.2rem 1.2rem; }

.plan-card a {
  display: inline-flex;
  margin-top: 0.4rem;
  color: var(--accent);
  min-height: 44px;
  align-items: center;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.studio {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 1rem;
  align-items: stretch;
}

.stage,
.dialogue {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 640px;
}

.stage {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.monitor {
  position: relative;
  flex: 1;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(232, 247, 242, 0.12);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(61, 206, 180, 0.28), transparent 46%),
    radial-gradient(ellipse at 50% 78%, rgba(224, 181, 106, 0.16), transparent 42%),
    linear-gradient(180deg, #12352e, #071512 72%);
}

.host-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.monitor.is-speaking .host-still {
  animation: breathe 2.8s ease-in-out infinite;
}

.lower-third {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(4, 13, 11, 0.72);
  border: 1px solid rgba(232, 247, 242, 0.1);
}

.lower-third strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.lower-third em {
  display: block;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f0d9a8;
  box-shadow: 0 0 0 0 rgba(240, 217, 168, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

.ai-chip {
  margin-left: auto;
  border: 1px solid rgba(61, 206, 180, 0.45);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.stage__note {
  margin: 0.8rem 0.2rem 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-wrap: pretty;
}

.dialogue {
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 0.9rem;
}

.dialogue header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.dialogue header p { margin: 0.2rem 0 0; color: var(--ink-soft); }

.status { color: var(--brass-soft); font-size: 0.85rem; }

.transcript {
  flex: 1;
  overflow: auto;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 280px;
  max-height: 460px;
}

.bubble {
  max-width: 85%;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  text-wrap: pretty;
}

.bubble--host { background: rgba(61, 206, 180, 0.1); border: 1px solid rgba(61, 206, 180, 0.18); }

.bubble--user {
  margin-left: auto;
  background: rgba(224, 181, 106, 0.12);
  border: 1px solid rgba(224, 181, 106, 0.2);
}

.bubble span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.bubble p { margin: 0; }

.empty-line {
  margin: auto 0;
  color: var(--ink-soft);
  text-align: center;
}

.composer { display: grid; gap: 0.7rem; }

textarea {
  width: 100%;
  resize: vertical;
  min-height: 88px;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(4, 13, 11, 0.45);
  font-size: 16px;
}

.composer__row,
.stage-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.banner {
  margin-bottom: 0.9rem;
  padding: 0.85rem 1rem;
  color: var(--brass-soft);
}

.banner p { margin: 0.25rem 0 0; }

.explain {
  display: grid;
  gap: 1rem;
}

.slide {
  min-height: 380px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(61, 206, 180, 0.18), transparent 42%),
    linear-gradient(160deg, rgba(18, 53, 46, 0.9), rgba(7, 21, 18, 0.92));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.slide__index {
  letter-spacing: 0.22em;
  color: var(--brass-soft);
  font-size: 0.78rem;
}

.slide h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.08;
}

.slide .caption {
  margin: 0.8rem 0 0;
  max-width: 36rem;
  color: var(--foam);
  font-size: 1.15rem;
  text-wrap: pretty;
}

.slide .narration {
  margin: 0.7rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.rail {
  margin-top: 1.4rem;
  height: 2px;
  background: rgba(232, 247, 242, 0.12);
}

.rail span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  justify-content: center;
  color: rgba(232, 247, 242, 0.5);
  font-size: 12px;
  border-top: 1px solid rgba(232, 247, 242, 0.08);
}

.site-footer a:hover { color: var(--accent); }

.plan-page { display: grid; gap: 1rem; }

.plan-page article {
  padding: 1.3rem 1.3rem 1.4rem;
}

.plan-page h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.plan-page ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.plan-page li + li { margin-top: 0.35rem; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(240, 217, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 217, 168, 0); }
}

@media (max-width: 860px) {
  .room-grid,
  .plan-row,
  .studio { grid-template-columns: 1fr; }

  .stage, .dialogue { min-height: 0; }

  .monitor { min-height: 460px; }

  .topbar { padding: 12px 14px; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .monitor.is-speaking .host-still,
  .live-dot,
  .room-card { animation: none; transition: none; }
}
