* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  min-height: 100vh;
}

/* Landing Page */
.landing-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.landing-card {
  background: #1a1a2e;
  border-radius: 1.5rem;
  padding: 3rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.logo-icon {
  font-size: 1.8rem;
  color: #099dfd;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.subtitle {
  color: #8888a0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.form-section h2 {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #8888a0;
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #16162b;
  border: 1px solid #2a2a45;
  border-radius: 0.75rem;
  color: #e0e0e0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #099dfd;
}

.btn {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: #099dfd;
  color: #fff;
}

.btn-secondary {
  background: #2a2a45;
  color: #e0e0e0;
}

.btn-secondary:hover {
  background: #3a3a5a;
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid #2a2a45;
  color: #e0e0e0;
}

.btn-outline:hover {
  background: #2a2a45;
}

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

.divider {
  text-align: center;
  margin: 1.5rem 0;
  color: #555;
  font-size: 0.8rem;
}

.divider span {
  background: #1a1a2e;
  padding: 0 1rem;
}

.status-bar {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  text-align: center;
  display: none;
}

.status-bar.loading {
  display: block;
  background: #1a2a3e;
  color: #099dfd;
}

.status-bar.error {
  display: block;
  background: #3e1a1a;
  color: #e74c3c;
}

/* Call Page */
.call-container {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  grid-template-rows: 1fr auto;
  height: 100vh;
  gap: 0;
}

/* Video Panel */
.video-panel {
  background: #111;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-box {
  background: #1a1a2e;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-box video,
.video-box > div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.video-mic-btn {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.video-mic-btn.muted {
  background: rgba(231, 76, 60, 0.85);
}

.video-cam-btn {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.video-cam-btn.hidden {
  background: rgba(231, 76, 60, 0.85);
}

.video-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  color: #ccc;
}

.agent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #555;
}

.agent-avatar {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Human Avatar */
.avatar-human {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.agent-placeholder.speaking .avatar-ring {
  border-color: #2ecc7180;
  box-shadow: 0 0 20px #2ecc7130, 0 0 40px #2ecc7110;
  animation: avatar-pulse-ring 1.5s ease-in-out infinite;
}

.agent-placeholder.listening .avatar-ring {
  border-color: #099dfd80;
  box-shadow: 0 0 20px #099dfd30, 0 0 40px #099dfd10;
  animation: avatar-pulse-ring 2s ease-in-out infinite;
}

@keyframes avatar-pulse-ring {
  0%, 100% { box-shadow: 0 0 10px currentColor20, 0 0 20px currentColor10; }
  50% { box-shadow: 0 0 25px currentColor50, 0 0 50px currentColor20; }
}

.avatar-face {
  position: relative;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #d48c6c, #c47a5a);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.avatar-eyes {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
}

.avatar-eye {
  width: 10px;
  height: 10px;
  background: #2a1a0a;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.avatar-pupil {
  display: block;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: transform 0.1s;
}

.agent-placeholder:hover .avatar-pupil,
.agent-placeholder.listening .avatar-pupil {
  transform: scale(1.3);
}

.avatar-mouth {
  width: 18px;
  height: 4px;
  background: #9b4a3a;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.agent-placeholder.speaking .avatar-mouth {
  width: 22px;
  height: 9px;
  border-radius: 0 0 11px 11px;
  background: #4a1a0a;
  animation: avatar-mouth-speak 0.3s ease-in-out infinite alternate;
}

.agent-placeholder.listening .avatar-mouth {
  width: 14px;
  height: 5px;
  border-radius: 3px;
  background: #9b4a3a;
}

@keyframes avatar-mouth-speak {
  0% { height: 6px; width: 20px; }
  100% { height: 10px; width: 24px; border-radius: 0 0 12px 12px; }
}

.avatar-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.3s;
  z-index: 0;
}

.agent-placeholder.speaking .avatar-glow {
  background: radial-gradient(circle, #2ecc7120 0%, transparent 70%);
}

.agent-placeholder.listening .avatar-glow {
  background: radial-gradient(circle, #099dfd15 0%, transparent 70%);
}

.agent-status {
  font-size: 0.75rem;
  color: #099dfd;
}

.agent-status.speaking {
  color: #2ecc71;
}

.agent-status.idle {
  color: #888;
}

/* Slides Panel */
.slides-panel {
  background: #0f0f1a;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.whiteboard-panel {
  padding: 0;
  overflow: hidden;
}

#whiteboardContainer {
  width: 100%;
  height: 100%;
  flex: 1;
  position: relative;
}

.whiteboard-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #555;
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem;
}

.whiteboard-placeholder code {
  background: #1a1a2e;
  border: 1px solid #2a2a45;
  border-radius: 0.4rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  color: #8888c0;
}

.slide-viewer {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slide-card {
  flex: 1;
  background: #1a1a2e;
  border: 1px solid #2a2a45;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-number {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.05em;
}

.slide-auto-badge {
  font-size: 0.7rem;
  color: #2ecc71;
  border: 1px solid #2ecc7140;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  letter-spacing: 0.04em;
}

.slide-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.slide-subtitle {
  font-size: 0.9rem;
  color: #099dfd;
  font-weight: 600;
}

.slide-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.slide-bullets li {
  font-size: 0.9rem;
  color: #c0c0d8;
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.slide-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #099dfd;
  font-weight: 700;
}

.slide-nav {
  display: flex;
  gap: 0.75rem;
}

.slide-nav-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  background: #2a2a45;
  border: 1px solid #3a3a5a;
  color: #e0e0e0;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
}

.slide-nav-btn:hover {
  background: #3a3a5a;
}

.gamma-deck-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  gap: 1rem;
}

.gamma-deck-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.gamma-deck-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.gamma-deck-text {
  font-size: 0.95rem;
  color: #8888a0;
  line-height: 1.5;
  max-width: 360px;
}

.gamma-open-btn {
  margin-top: 1rem;
  padding: 0.85rem 2rem;
  background: #099dfd;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.gamma-open-btn:hover {
  opacity: 0.9;
}

/* Chat Panel */
.chat-panel {
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #2a2a45;
}

.chat-header {
  padding: 1rem;
  border-bottom: 1px solid #2a2a45;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message {
  padding: 0.6rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  max-width: 85%;
  line-height: 1.4;
}

.message.agent {
  background: #099dfd20;
  border: 1px solid #099dfd30;
  color: #cce;
  align-self: flex-start;
}

.message.user {
  background: #2a2a45;
  color: #e0e0e0;
  align-self: flex-end;
}

.message.system {
  background: #2a2a2a;
  color: #888;
  align-self: center;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
}

.message-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  opacity: 0.7;
}

.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid #2a2a45;
  display: flex;
  gap: 0.5rem;
}

.chat-input-area input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  background: #16162b;
  border: 1px solid #2a2a45;
  border-radius: 0.5rem;
  color: #e0e0e0;
  font-size: 0.85rem;
  outline: none;
}

.chat-input-area input:focus {
  border-color: #099dfd;
}

.chat-input-area button {
  padding: 0.6rem 1rem;
  background: #099dfd;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Toolbar */
.toolbar {
  grid-column: 1 / -1;
  background: #1a1a2e;
  border-top: 1px solid #2a2a45;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.toolbar button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #2a2a45;
  background: transparent;
  color: #e0e0e0;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.toolbar button:hover {
  background: #2a2a45;
}

.toolbar button.active {
  background: #099dfd20;
  border-color: #099dfd;
  color: #099dfd;
}

/* Recording indicator */
.recording-badge {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #e74c3c;
}

.recording-badge.active {
  display: flex;
}

.recording-dot {
  width: 8px;
  height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 1024px) {
  .call-container {
    grid-template-columns: 200px 1fr 240px;
  }
}

@media (max-width: 768px) {
  .call-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
  }
  .video-panel {
    flex-direction: row;
    padding: 0.5rem;
  }
  .video-box {
    aspect-ratio: 1;
    flex: 1;
  }
  .slides-panel {
    padding: 1rem;
  }
  .slide-title {
    font-size: 1.5rem;
  }
}

/* Hero Landing Page */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: radial-gradient(ellipse at 60% 40%, #0d1f3c 0%, #0f0f1a 60%);
}

.hero-inner {
  text-align: center;
  max-width: 560px;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.hero-logo-icon {
  width: 36px;
  height: 36px;
}

.hero-logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-headline span {
  color: #099dfd;
}

.hero-sub {
  font-size: 1.1rem;
  color: #8888a0;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  padding: 0.95rem 2.5rem;
  background: #099dfd;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.01em;
}

.hero-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #8888a0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse 2s infinite;
}
