/* ==========================================================================
   Two Viz (2vz.in) — Design System
   Moderate Slate & Electric Cyan Palette (Strictly Zero Purple/Violet)
   ========================================================================== */

:root {
  /* Moderate Slate Theme: Comfortable contrast, neither pitch-black nor bright */
  --bg-app: #121824;
  --bg-surface: #1a2232;
  --bg-surface-elevated: #222d40;
  --bg-tile: #151c2a;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(6, 182, 212, 0.55);

  /* Primary Brand: Electric Cyan & Crisp Teal (Zero Purple) */
  --accent-primary: #06b6d4;
  --accent-primary-hover: #0891b2;
  --accent-glow: rgba(6, 182, 212, 0.28);
  --accent-subtle: rgba(6, 182, 212, 0.12);

  /* Functional Accents */
  --accent-success: #10b981; /* Emerald Green */
  --accent-danger: #f43f5e;  /* Coral/Rose Red */
  --accent-danger-hover: #e11d48;

  /* Typography Colors */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 30px -8px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px var(--accent-glow);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: #0d1420;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(6, 182, 212, 0.16) 0%, transparent 70%),
    radial-gradient(500px 500px at 90% 15%, rgba(16, 185, 129, 0.11) 0%, transparent 60%),
    radial-gradient(500px 500px at 10% 40%, rgba(56, 189, 248, 0.10) 0%, transparent 60%),
    radial-gradient(600px 600px at 50% 85%, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  -webkit-font-smoothing: antialiased;
}

/* Helpers */
.hidden {
  display: none !important;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 24, 36, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.domain-pill {
  font-size: 11px;
  background: var(--accent-subtle);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-primary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.btn-nav-action {
  background: var(--accent-primary);
  color: #0b1320;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.btn-nav-action:hover {
  background: #22d3ee;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ==========================================================================
   HERO & STUDIO GREEN ROOM
   ========================================================================== */

.hero-studio-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px 24px;
}

.hero-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 44px auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 32, 50, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-headline {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #22d3ee;
  display: inline;
}

.hero-subheadline {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

/* Studio Two-Column Grid */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hero-headline {
    font-size: 34px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.studio-card {
  background: linear-gradient(180deg, rgba(28, 38, 56, 0.92) 0%, rgba(20, 28, 42, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(6, 182, 212, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.studio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.65), transparent);
}

.studio-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.15);
}

.card-header {
  margin-bottom: 22px;
}

.card-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.card-header p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Launcher Form */
.join-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input {
  background: #151d2a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.input-with-button {
  display: flex;
  align-items: center;
  background: #151d2a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 8px 0 14px;
}

.input-with-button:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.input-prefix {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 16px;
  user-select: none;
}

.input-with-button input {
  background: transparent;
  border: none;
  padding: 12px 8px;
  flex: 1;
}

.btn-subtle-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.btn-subtle-icon:hover {
  color: var(--text-main);
}

.btn-subtle-icon svg {
  width: 18px;
  height: 18px;
}

/* Call Mode Selector (Video vs Audio Only) */
.call-mode-selector {
  display: flex;
  gap: 8px;
  background: #141c28;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all var(--transition-fast);
}

.mode-btn:hover {
  color: var(--text-main);
}

.mode-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--accent-primary);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.mode-btn svg {
  width: 16px;
  height: 16px;
}

/* Room share preview box */
.room-share-preview {
  background: rgba(6, 182, 212, 0.08);
  border: 1px dashed rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.share-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-url {
  font-size: 13px;
  color: var(--text-main);
  font-family: monospace;
  word-break: break-all;
}

/* Primary Button */
.btn-primary-glow {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #081018;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary-glow svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn-primary-glow:hover svg {
  transform: translateX(3px);
}

.security-badges {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.badge-item svg {
  width: 15px;
  height: 15px;
  color: var(--accent-primary);
}

/* ==========================================================================
   GREEN ROOM PREVIEW CARD
   ========================================================================== */

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator-live {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-success);
  background: rgba(16, 185, 129, 0.14);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.resolution-badge {
  font-size: 11px;
  color: var(--text-dim);
  background: #151d2a;
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.preview-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: var(--bg-tile);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-viewport video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

/* Precheck Prompt Overlay: Keeps hardware camera/mic completely off on page load */
.preview-precheck-prompt {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  gap: 12px;
  background: rgba(21, 28, 42, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 6;
  border-radius: var(--radius-md);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow: hidden;
}

.precheck-radar-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, transparent 70%);
  animation: radarPulse 2.8s infinite ease-out;
  pointer-events: none;
}

@keyframes radarPulse {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.35; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.precheck-icon {
  width: 48px;
  height: 48px;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
  position: relative;
  z-index: 2;
}

.precheck-icon svg {
  width: 24px;
  height: 24px;
}

.preview-precheck-prompt p {
  font-size: 13px;
  color: #cbd5e1;
  max-width: 260px;
  position: relative;
  z-index: 2;
}

.preview-badges-row {
  display: flex;
  gap: 8px;
  margin-top: 2px;
  position: relative;
  z-index: 2;
}

.mini-status-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-primary);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.btn-subtle-preview {
  background: rgba(30, 42, 62, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--text-main);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.btn-subtle-preview:hover {
  background: rgba(40, 56, 82, 1);
  border-color: #22d3ee;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.3);
}

.btn-subtle-preview svg {
  width: 16px;
  height: 16px;
  color: #22d3ee;
}

/* Audio Level Widget */
.audio-level-widget {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(18, 24, 36, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.audio-mic-icon svg {
  width: 14px;
  height: 14px;
  color: var(--accent-success);
  display: block;
}

.audio-level-track {
  width: 60px;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.audio-level-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-success);
  border-radius: var(--radius-pill);
  transition: width 0.08s ease;
}

/* Floating overlay buttons on preview */
.preview-overlay-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.overlay-ctrl-btn {
  background: rgba(18, 24, 36, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.overlay-ctrl-btn:hover {
  background: #222d40;
  transform: scale(1.05);
}

.overlay-ctrl-btn.active-off {
  background: var(--accent-danger);
  border-color: var(--accent-danger);
}

.overlay-ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.audio-test-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-test-audio {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-test-audio:hover {
  background: #2a374e;
  border-color: var(--accent-primary);
}

.btn-test-audio svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.test-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* Avatar Fallback: Centered, perfect circle (prevents oval distortion) */
.avatar-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: #081018;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(6, 182, 212, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.18);
  z-index: 5;
  user-select: none;
}

/* ==========================================================================
   TRUST & LIVE METRICS STRIP
   ========================================================================== */

.trust-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .trust-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .trust-metrics-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.metric-item {
  background: linear-gradient(180deg, rgba(26, 36, 54, 0.75) 0%, rgba(18, 26, 40, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-item:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.35);
}

.metric-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.metric-icon-wrap.cyan {
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #06b6d4;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
}

.metric-icon-wrap.emerald {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.metric-icon-wrap.sky {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.metric-icon-wrap.mint {
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.25);
}

.metric-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.metric-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURES, STEPS & FAQ SECTIONS
   ========================================================================== */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 52px auto;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-primary);
  margin-bottom: 8px;
  display: block;
}

.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(28, 38, 56, 0.75) 0%, rgba(20, 28, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.45), 0 0 20px rgba(6, 182, 212, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon.icon-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(2, 132, 199, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #22d3ee;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
}

.feature-icon.icon-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.feature-icon.icon-teal {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(13, 148, 136, 0.2));
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: #2dd4bf;
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.25);
}

.feature-icon.icon-sky {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(2, 132, 199, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.step-card {
  background: linear-gradient(180deg, rgba(28, 38, 56, 0.75) 0%, rgba(20, 28, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.35);
}

.step-number {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #38bdf8;
  margin-bottom: 14px;
  font-family: inherit;
  letter-spacing: -1px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-card code {
  background: #141c28;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-primary);
  font-size: 13px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: linear-gradient(180deg, rgba(28, 38, 56, 0.75) 0%, rgba(20, 28, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.1);
}

.faq-question {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: #0e141e;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 32px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 36px auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-col a, .footer-col span {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   VIEW 2: IN-CALL MEETING ROOM
   ========================================================================== */

.room-view {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-app);
}

.room-header {
  position: absolute;
  top: 16px;
  top: max(16px, env(safe-area-inset-top, 16px));
  left: 20px;
  right: 20px;
  height: 56px;
  background: rgba(26, 34, 50, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.room-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 10px var(--accent-success);
}

.room-info h2 {
  font-size: 16px;
  font-weight: 700;
}

.count-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-copy-link {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-copy-link:hover {
  background: #2b3952;
  border-color: var(--accent-primary);
}

.btn-copy-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

/* ==========================================================================
   VIDEO GRID & ACTIVE SPEAKER DETECTION
   ========================================================================== */

.video-grid {
  flex: 1;
  padding: 88px 20px 96px 20px;
  display: grid;
  gap: 16px;
  width: 100%;
  height: 100%;
  place-content: center;
}

.video-grid.single-peer {
  grid-template-columns: minmax(320px, 880px);
  grid-template-rows: 1fr;
}

.video-grid.two-peers {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  grid-template-rows: 1fr;
}

.video-grid.multi-peers {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  grid-template-rows: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .video-grid.two-peers {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
}

.video-tile {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--bg-tile);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-tile video:not(.screen-sharing) {
  transform: scaleX(-1);
}

/* Active Speaker Glow: Electric Cyan & Emerald Pulse */
.video-tile.speaking {
  border-color: var(--accent-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.45), var(--shadow-lg);
}

.tile-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.tile-name-badge {
  background: rgba(18, 24, 36, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.tile-mic-icon svg {
  width: 14px;
  height: 14px;
}

.tile-mic-icon.muted {
  color: var(--accent-danger);
}

/* ==========================================================================
   FLOATING BOTTOM CONTROLS DOCK
   ========================================================================== */

.controls-dock {
  position: absolute;
  bottom: 20px;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  left: 50%;
  transform: translateX(-50%);
  height: 64px;
  background: rgba(26, 34, 50, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dock-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.dock-btn:active {
  transform: translateY(0);
}

.dock-btn.active-off {
  background: var(--accent-danger);
  border-color: var(--accent-danger);
  color: white;
}

.dock-btn.active-on {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #0b1320;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5);
}

.dock-btn.btn-danger {
  background: var(--accent-danger);
  border-color: var(--accent-danger);
  color: white;
  margin-left: 6px;
}

.dock-btn.btn-danger:hover {
  background: var(--accent-danger-hover);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.5);
}

.dock-btn svg {
  width: 20px;
  height: 20px;
}

.unread-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-primary);
}

/* ==========================================================================
   REACTIONS & FLOATING EMOJIS
   ========================================================================== */

.reaction-popover-wrapper {
  position: relative;
}

.reaction-menu {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  display: flex;
  gap: 8px;
  z-index: 60;
  box-shadow: var(--shadow-md);
  animation: popoverFade 0.2s ease-out;
}

@keyframes popoverFade {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.reaction-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  padding: 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

.reaction-btn:hover {
  transform: scale(1.3);
}

.reaction-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.floating-emoji {
  position: absolute;
  bottom: 80px;
  font-size: 38px;
  animation: floatUp 2.5s ease-out forwards;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-200px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateY(-450px) scale(1);
  }
}

/* ==========================================================================
   SLIDE-OVER CHAT DRAWER
   ========================================================================== */

.chat-drawer {
  position: absolute;
  top: 84px;
  top: max(84px, calc(env(safe-area-inset-top, 16px) + 68px));
  right: 20px;
  bottom: 96px;
  bottom: max(96px, calc(env(safe-area-inset-bottom, 20px) + 76px));
  width: 320px;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.25s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.chat-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system-chat-msg {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 85%;
}

.chat-bubble.mine {
  align-self: flex-end;
}

.chat-bubble.theirs {
  align-self: flex-start;
}

.chat-meta {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  gap: 6px;
}

.chat-bubble.mine .chat-meta {
  justify-content: flex-end;
}

.chat-content {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-bubble.mine .chat-content {
  background: var(--accent-primary);
  color: #0b1320;
  font-weight: 500;
  border-bottom-right-radius: 2px;
}

.chat-bubble.theirs .chat-content {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}

.chat-input-area {
  padding: 12px 14px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
}

.chat-input-area input {
  flex: 1;
  background: #141c28;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.chat-input-area input:focus {
  border-color: var(--border-focus);
}

.btn-icon-send {
  background: var(--accent-primary);
  border: none;
  color: #0b1320;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.btn-icon-send:hover {
  transform: scale(1.08);
}

.btn-icon-send svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   TOAST SYSTEM
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: rgba(30, 40, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease-out, toastOut 0.25s ease-in 2.75s forwards;
  pointer-events: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}
