/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07080d;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f8;
  --text-muted: #8a8aaa;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --danger: #f43f5e;
  --success: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 25px 60px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99,102,241,0.15) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 80% 80%, rgba(6,182,212,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: rgba(99,102,241,0.08); top: -200px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: rgba(6,182,212,0.06); bottom: -100px; right: -100px; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: rgba(244,63,94,0.05); top: 50%; left: 50%; animation-delay: -14s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(7,8,13,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.logo-icon.small { width: 28px; height: 28px; border-radius: 8px; }
.logo-icon svg { width: 20px; height: 20px; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav-cta {
  padding: 8px 20px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 120px 60px 60px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; max-width: 580px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 44px;
}

/* ===== MEETING CONTROLS ===== */
.meeting-controls { display: flex; flex-direction: column; gap: 14px; }
.control-group {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  backdrop-filter: blur(10px);
}
.divider-v { width: 1px; height: 36px; background: var(--border); margin: 0 8px; flex-shrink: 0; }
.join-group { display: flex; align-items: center; gap: 8px; flex: 1; }
.join-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  padding: 8px 12px;
}
.join-input::placeholder { color: var(--text-muted); }
.btn-join {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary-light);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-join:hover { background: rgba(99,102,241,0.15); border-color: var(--primary); color: white; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  box-shadow: 0 0 30px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.4); filter: brightness(1.1); }
.btn-primary.large { padding: 16px 36px; font-size: 17px; border-radius: 14px; }

.helper-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 8px;
}

/* ===== PREVIEW CARD ===== */
.hero-preview { flex: 1; max-width: 520px; }
.preview-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(99,102,241,0.1);
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.preview-dots span:nth-child(1) { background: #f43f5e; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #10b981; }
.preview-title { font-size: 12px; font-weight: 500; color: var(--text-muted); flex: 1; text-align: center; }
.preview-rec { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #f43f5e; }
.rec-dot { width: 7px; height: 7px; background: #f43f5e; border-radius: 50%; animation: recPulse 1.5s ease-in-out infinite; }
@keyframes recPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  background: var(--bg);
}
.preview-tile {
  aspect-ratio: 16/10;
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.preview-tile.active { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); }
.preview-tile.screen-share { background: rgba(6,182,212,0.06); color: var(--text-muted); }
.tile-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: white;
}
.tile-name { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.tile-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.tile-badge.host { background: rgba(99,102,241,0.3); color: var(--primary-light); border: 1px solid rgba(99,102,241,0.4); }

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
}
.tb-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.tb-btn.active { background: rgba(99,102,241,0.2); color: white; }
.tb-btn.rec-btn { background: rgba(244,63,94,0.15); color: #f43f5e; }
.tb-btn.danger { background: #f43f5e; color: white; }
.tb-btn:hover { transform: scale(1.1); }

/* ===== FEATURES ===== */
.features {
  position: relative; z-index: 1;
  padding: 100px 60px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 60px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.feature-card:hover {
  background: var(--surface-hover);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex; align-items: center; justify-content: center;
  color: white;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; line-height: 1.65; color: var(--text-muted); }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  position: relative; z-index: 1;
  padding: 100px 60px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 24px;
}
.step {
  flex: 1;
  max-width: 280px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}
.step-connector {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  flex-shrink: 0;
}
.step-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.4;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.step-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ===== CTA ===== */
.cta-section {
  position: relative; z-index: 1;
  padding: 60px;
  max-width: 1300px;
  margin: 0 auto 60px;
}
.cta-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.1));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  backdrop-filter: blur(20px);
}
.cta-card h2 { font-size: 48px; font-weight: 900; letter-spacing: -2px; margin-bottom: 16px; }
.cta-card p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #12131f;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  margin: 0 auto 20px;
}
.modal h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.modal p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.modal-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: var(--primary); }
.modal-actions { display: flex; gap: 12px; }
.btn-secondary {
  flex: 1; padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--surface-hover); color: var(--text); }
.modal-actions .btn-primary { flex: 1; justify-content: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 100px 24px 60px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-preview { max-width: 100%; width: 100%; }
  .features, .how-it-works, .cta-section { padding: 60px 24px; }
  .step-connector { display: none; }
  .cta-card { padding: 60px 24px; }
  .footer { flex-direction: column; gap: 16px; padding: 32px 24px; text-align: center; }
  .nav-links { display: none; }
  .steps { flex-direction: column; align-items: stretch; }
  .step { max-width: 100%; }
}

@media (max-width: 500px) {
  .hero-title { font-size: clamp(36px, 10vw, 44px); letter-spacing: -1px; }
  .control-group { flex-direction: column; background: transparent; border: none; padding: 0; gap: 12px; }
  .join-group { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px; }
  .divider-v { display: none; }
  .btn-primary.large { width: 100%; padding: 14px; }
  .cta-card h2 { font-size: 32px; }
  .section-title { font-size: 28px; }
  .navbar { padding: 12px 16px; }
}
