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

:root {
  --page-bg: #0f0f10;
  --card-bg: #18181b;
  --accent: #3b82f6;
  --accent-light: #93c5fd;
  --text: #e4e4e7;
  --muted: #71717a;
  --border: #27272a;
  --mac-bg: rgba(30, 30, 30, 0.95);
  --mac-window: rgba(40, 40, 40, 0.95);
  --mac-window-border: rgba(255, 255, 255, 0.12);
  --gong-purple: #6C47FF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f0f10 0%, #0a1628 50%, #0f0f10 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e4e4e7 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.tagline {
  font-size: 15px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tech-stack span {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ── Demo section ─────────────────────────────────────── */
.demo-section {
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
}

.demo-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Step nav ─────────────────────────────────────────── */
.step-nav {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 4px;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.step-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.step-btn.active {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--accent);
  color: var(--accent-light);
}

.step-num {
  width: 20px;
  height: 20px;
  background: var(--border);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-btn.active .step-num {
  background: var(--accent);
  color: white;
}

.step-connector {
  height: 1px;
  width: 16px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Mac Desktop Frame ────────────────────────────────── */
.mac-desktop {
  background: #1a1a2e;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

.mac-desktop.hidden { display: none; }

.mac-menubar {
  height: 28px;
  background: var(--mac-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mac-menubar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
}

.mac-menubar-left .apple-logo {
  font-size: 15px;
  opacity: 0.9;
}

.mac-menubar-left span {
  opacity: 0.75;
  font-size: 13px;
}

.mac-menubar-left span:first-of-type {
  font-weight: 700;
  opacity: 0.9;
}

.mac-menubar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.mac-tray-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tray-svg {
  display: block;
  flex-shrink: 0;
}

.tap-tray-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.tap-tray-icon svg {
  width: 14px;
  height: 14px;
}

.tap-tray-icon.tray-active {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.tray-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(30, 30, 30, 0.95);
  transition: background 0.3s;
}

.tray-badge.badge-none { display: none; }
.tray-badge.badge-green { background: #34d399; display: block; }
.tray-badge.badge-orange { background: #fb923c; display: block; }
.tray-badge.badge-blue { background: #60a5fa; display: block; }

.mac-date {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  white-space: nowrap;
}

.mac-clock {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

/* Desktop area */
.mac-desktop-area {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #1a1a2e 0%, #16162a 50%, #121228 100%);
  min-height: 552px;
  overflow: hidden;
}

.mac-desktop-area .demo-step {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ── macOS Notification Toast ─────────────────────────── */
.mac-notification {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 340px;
  background: rgba(50, 50, 50, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.notif-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 7px;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-app {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

/* ── Floating Notification Panel (app notifications) ──── */
.float-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 360px;
  background: rgba(40, 40, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 15;
}

.float-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.float-panel-icon {
  width: 28px;
  height: 28px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.float-panel-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-panel-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.float-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  border: none;
  font-family: inherit;
}

.float-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.float-btn-primary {
  background: var(--accent);
  color: white;
}

.float-panel-timer {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  margin-top: 10px;
  overflow: hidden;
}

.float-panel-timer-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  width: 65%;
}

/* ── Menu Bar Dropdown ────────────────────────────────── */
.mac-dropdown {
  position: absolute;
  top: 0;
  right: 80px;
  width: 240px;
  background: rgba(40, 40, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  padding: 4px 0;
  z-index: 20;
  font-size: 13px;
}

.dropdown-item {
  padding: 4px 14px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-item.disabled {
  color: rgba(255, 255, 255, 0.4);
}

.dropdown-item-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

.dropdown-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

.dropdown-item-danger {
  color: #ef4444;
}

.dropdown-item-submenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-item-submenu::after {
  content: '›';
  opacity: 0.5;
}

.dropdown-item-check::before {
  content: '✓';
  font-size: 11px;
  color: var(--accent-light);
  width: 14px;
}

.dropdown-item-nocheck::before {
  content: '';
  width: 14px;
}

/* ── Mock Teams Meeting Window ────────────────────────── */
.teams-window {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 50px;
  background: #292929;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.teams-titlebar {
  height: 32px;
  background: #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  flex-shrink: 0;
}

.teams-titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.teams-titlebar-right {
  display: flex;
  gap: 2px;
}

.teams-window-btn {
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.teams-close-btn { color: rgba(255, 255, 255, 0.7); }

.teams-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #242424;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.teams-meeting-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.teams-meeting-timer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

.teams-meeting-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.teams-video-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  padding: 8px;
  background: #1a1a1a;
}

.teams-video-tile {
  background: #2d2d2d;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.teams-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.teams-participant-name {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  position: absolute;
  bottom: 6px;
  left: 8px;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 3px;
}

.teams-toolbar {
  height: 48px;
  background: #292929;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.teams-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.teams-tool-active {
  background: rgba(255, 255, 255, 0.15);
}

.teams-hangup {
  background: #c42b1c;
  color: white;
  transform: rotate(135deg);
}

/* ── Teams ended state ────────────────────────────────── */
.teams-ended-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1a1a1a;
  padding: 40px;
}

.teams-ended-icon {
  font-size: 36px;
  opacity: 0.4;
  transform: rotate(135deg);
  margin-bottom: 8px;
}

.teams-ended-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.teams-ended-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.teams-ended-duration {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 12px;
}

.teams-ended-actions {
  display: flex;
  gap: 8px;
}

.teams-ended-btn {
  padding: 6px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default;
  font-family: inherit;
}

.teams-ended-btn-primary {
  background: #5b5fc7;
  color: white;
  border-color: #5b5fc7;
}

/* ── Recording HUD ────────────────────────────────────── */
.rec-hud {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  z-index: 5;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: recPulse 1.2s ease-in-out infinite;
}

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

/* ── macOS Window Chrome ──────────────────────────────── */
.mac-window {
  background: var(--mac-window);
  border-radius: 10px;
  border: 1px solid var(--mac-window-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.mac-titlebar {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(50, 50, 50, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 10px;
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tl-close { background: #ff5f57; }
.tl-minimize { background: #ffbd2e; }
.tl-maximize { background: #27c93f; }

.mac-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding-right: 52px;
}

/* ── Upload Confirmation Panel ────────────────────────── */
.upload-confirm {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  z-index: 15;
}

.upload-confirm-body {
  padding: 16px 18px;
}

.upload-confirm-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 14px;
}

.upload-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.upload-info-row:last-of-type { border-bottom: none; }

.upload-info-label {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.upload-info-value {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.upload-confirm-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 0;
}

.upload-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.upload-action-btn {
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: default;
  font-family: inherit;
}

.btn-discard {
  background: transparent;
  color: #ef4444;
}

.btn-skip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.btn-upload {
  background: var(--accent);
  color: white;
}

/* Upload progress state */
.upload-progress-wrap {
  margin-top: 14px;
}

.upload-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.upload-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  width: 0%;
}

.upload-progress-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.upload-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #4ade80;
}

.upload-success a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.upload-success a:hover { text-decoration: underline; }

/* ── Recordings Window ────────────────────────────────── */
.recordings-window {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.recordings-body {
  flex: 1;
  overflow: visible;
  padding: 0;
}

.recordings-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.4);
}

.recordings-section-suggested {
  background: rgba(59, 130, 246, 0.08);
}

.btn-upload-all {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  background: none;
  border: none;
  cursor: default;
  font-family: inherit;
}

.recording-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.recording-row:last-child { border-bottom: none; }

.recording-play-btn {
  font-size: 18px;
  color: var(--accent-light);
  flex-shrink: 0;
  opacity: 0.7;
  width: 20px;
  text-align: center;
}

.recording-info {
  flex: 1;
  min-width: 0;
}

.recording-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recording-title .cal-icon {
  font-size: 11px;
  opacity: 0.5;
}

.recording-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  gap: 8px;
  margin-top: 1px;
}

.status-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

.status-uploaded {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-not-uploaded {
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-in-gong {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.recording-ellipsis {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.3);
  cursor: default;
  flex-shrink: 0;
  padding: 0 2px;
}

/* ── Attendee Popover ─────────────────────────────────── */
.attendee-popover {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 4px;
  width: 220px;
  background: rgba(45, 45, 45, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 20;
  font-size: 12px;
}

.attendee-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  color: rgba(255, 255, 255, 0.8);
}

.attendee-icon {
  font-size: 12px;
  opacity: 0.6;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.attendee-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendee-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 8px;
  flex-shrink: 0;
}

.badge-you {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-external {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.attendee-domain {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Gong Frame (DARK MODE) ──────────────────────────── */
.gong-browser-chrome {
  background: rgba(50, 50, 50, 0.9);
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--mac-window-border);
  border-bottom: none;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gong-browser-chrome.hidden { display: none; }

.gong-browser-dots {
  display: flex;
  gap: 6px;
}

.gong-browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.gong-url-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'SF Mono', Monaco, monospace;
}

.gong-frame {
  display: flex;
  background: #12121f;
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--mac-window-border);
  border-top: none;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  min-height: 520px;
}

.gong-frame.hidden { display: none; }

.gong-sidebar {
  width: 200px;
  background: #1a1a2e;
  color: #fff;
  padding: 16px 0;
  flex-shrink: 0;
}

.gong-logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 4px 20px 20px;
  color: #fff;
}

.gong-nav-item {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gong-nav-item.active {
  color: #fff;
  background: rgba(108, 71, 255, 0.15);
  border-left: 3px solid var(--gong-purple);
  padding-left: 17px;
}

.gong-nav-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.gong-main {
  flex: 1;
  background: #1e1e32;
  color: #e4e4e7;
  padding: 24px;
  overflow-y: auto;
}

.gong-breadcrumb {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.gong-breadcrumb a {
  color: var(--gong-purple);
  text-decoration: none;
}

.gong-call-header {
  margin-bottom: 20px;
}

.gong-call-title {
  font-size: 22px;
  font-weight: 700;
  color: #f0f0f3;
  margin-bottom: 6px;
}

.gong-call-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  align-items: center;
}

.gong-call-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Participants */
.gong-participants {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  align-items: center;
}

.gong-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  margin-right: -4px;
  border: 2px solid #1e1e32;
}

.gong-participant-names {
  margin-left: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Waveform */
.gong-player {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.gong-waveform {
  display: flex;
  align-items: flex-end;
  height: 48px;
  gap: 1px;
  margin-bottom: 8px;
}

.waveform-bar {
  width: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.waveform-bar.played { background: var(--gong-purple); }
.waveform-bar.unplayed { background: rgba(255, 255, 255, 0.15); }

.gong-timeline {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

/* Speaker bars */
.gong-speaker-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.speaker-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.speaker-bar-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  width: 80px;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.speaker-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  gap: 2px;
}

.speaker-segment {
  height: 100%;
  border-radius: 2px;
}

/* Metadata */
.gong-metadata {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gong-metadata span { font-weight: 500; }
.gong-metadata strong { color: rgba(255, 255, 255, 0.7); font-weight: 600; }

/* Tabs */
.gong-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.gong-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: default;
}

.gong-tab.active {
  color: var(--gong-purple);
  border-bottom-color: var(--gong-purple);
}

/* Topics */
.gong-topic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gong-topic-row:last-child { border-bottom: none; }

.gong-topic-name {
  font-size: 14px;
  font-weight: 600;
  color: #e4e4e7;
  flex: 1;
}

.gong-topic-times {
  font-size: 12px;
  color: var(--gong-purple);
  display: flex;
  gap: 6px;
}

.gong-topic-time {
  background: rgba(108, 71, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Transcript */
.gong-transcript {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.transcript-line {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.transcript-line:last-child { border-bottom: none; }

.transcript-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.transcript-speaker {
  font-size: 12px;
  font-weight: 600;
}

.transcript-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-variant-numeric: tabular-nums;
}

.transcript-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

/* AI Summary */
.gong-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.gong-summary-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.gong-action-btns {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.gong-action-btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
  cursor: default;
  font-family: inherit;
}

.gong-action-btn-primary {
  background: var(--gong-purple);
  color: white;
  border-color: var(--gong-purple);
}

/* ── Walkthrough highlight blocks ───────────────────── */
.hl-block {
  transition: opacity 0.3s;
}

.hl-block.hl-hidden { display: none; }

.hl-block.dimmed { display: none; }

.hl-block.revealed {
  opacity: 1;
}

.hl-content {
  border: none;
  padding: 0;
  position: relative;
}

/* hl-blocks inside desktop area need to fill it for absolute children */
.mac-desktop-area .hl-block {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.mac-desktop-area .hl-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ── Tips container (outside frames) ────────────────── */
.tips-container {
  margin-top: 16px;
}

/* ── Spotlight tip card ──────────────────────────────── */
.spotlight-tip {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 8px;
  padding: 11px 14px;
}

.spotlight-tip.active { display: flex; }

.tip-text {
  font-size: 13px;
  color: var(--accent-light);
  line-height: 1.55;
  flex: 1;
}

.tip-next-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
  font-family: inherit;
  animation: relayGlow 1.6s ease-in-out infinite;
}

.tip-next-btn:hover { background: #2563eb; }

.tip-next-btn:disabled {
  background: #4a5568;
  cursor: not-allowed;
  opacity: 0.6;
  animation: none;
}

@keyframes relayGlow {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(59, 130, 246, 0.5), 0 0 20px 4px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 16px 4px rgba(147, 197, 253, 0.6), 0 0 32px 8px rgba(59, 130, 246, 0.25); }
}

/* ── Footer ───────────────────────────────────────────── */
.project-footer {
  padding: 40px 24px;
  text-align: center;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent-light); }

/* ── Back button ────────────────────────────────────────── */
.back-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.back-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 48px 16px 40px; }
  .demo-section { padding: 32px 12px; }

  .mac-desktop { min-height: 480px; }
  .mac-desktop-area { min-height: 452px; }

  .step-label { display: none; }
  .step-connector { width: 8px; }

  .gong-sidebar { display: none; }
  .gong-frame { min-height: 480px; }

  .upload-confirm { width: 95%; }
  .recordings-window { width: 95%; }
  .mac-notification { width: 280px; }
  .float-panel { width: 300px; }
  .mac-dropdown { width: 200px; right: 8px; }
  .attendee-popover { width: 180px; }
}

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