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

:root {
  --bg: #090e1a;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text-primary: #f0f4ff;
  --text-secondary: #8896b3;
  --accent: #6c63ff;
  --accent-2: #00d4ff;
  --accent-glow: rgba(108,99,255,0.35);
  --create-grad: linear-gradient(135deg, #6c63ff, #a78bfa);
  --join-grad: linear-gradient(135deg, #00d4ff, #0ea5e9);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Animated Background Orbs ────────────────────────────────────────────── */
.bg-orbs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbFloat 15s ease-in-out infinite;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #6c63ff, transparent);
  top: -150px; left: -120px;
  animation-delay: 0s;
}
.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #00d4ff, transparent);
  bottom: -100px; right: -80px;
  animation-delay: -5s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #a78bfa, transparent);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: -10s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-40px) scale(1.05); }
  66%       { transform: translate(-20px,20px) scale(0.95); }
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(9,14,26,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-icon {
  width: 36px; height: 36px;
  background: var(--create-grad);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 0 20px rgba(108,99,255,0.5);
}
.brand-icon svg { width: 20px; height: 20px; }
.brand-name {
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em;
  background: var(--create-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-powered {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.nav-powered:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}
.powered-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.powered-logo {
  height: 24px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
}
.hero-content {
  max-width: 960px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 1.5rem;
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem; font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.03em;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6c63ff;
  box-shadow: 0 0 8px #6c63ff;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

/* Title */
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
}
.gradient-text {
  background: linear-gradient(135deg, #6c63ff, #00d4ff, #a78bfa);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradShift 4s linear infinite;
}
@keyframes gradShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-sub {
  max-width: 580px;
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Action Cards ────────────────────────────────────────────────────────── */
.action-cards {
  display: flex; align-items: stretch; gap: 1.5rem;
  width: 100%; max-width: 780px;
  margin-top: 1rem;
}
.action-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(12px);
}
.action-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.card-header { display: flex; align-items: center; gap: 1rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; }
.create-icon  { background: var(--create-grad); color: white; box-shadow: 0 8px 24px rgba(108,99,255,0.4); }
.join-icon    { background: var(--join-grad);   color: white; box-shadow: 0 8px 24px rgba(0,212,255,0.3); }
.card-title   { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.15rem; }
.card-desc    { font-size: 0.8rem; color: var(--text-secondary); }

/* Form */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.04em; text-transform: uppercase; }
.input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit; font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; width: 100%;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input::placeholder { color: rgba(136,150,179,0.5); }
.meeting-id-input { text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; font-size: 1.1rem; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  padding: 0.85rem 1.5rem;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: white; opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 0.08; }
.btn:active { transform: scale(0.97); }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--create-grad);
  color: white;
  box-shadow: 0 8px 30px rgba(108,99,255,0.45);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(108,99,255,0.6); transform: translateY(-2px); }
.btn-secondary {
  background: var(--join-grad);
  color: white;
  box-shadow: 0 8px 30px rgba(0,212,255,0.3);
}
.btn-secondary:hover { box-shadow: 0 12px 40px rgba(0,212,255,0.45); transform: translateY(-2px); }

/* Divider or */
.divider-or {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
  flex-shrink: 0; width: 40px;
}

/* ── Features Strip ──────────────────────────────────────────────────────── */
.features-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1.5rem 3rem;
  margin-top: 4rem;
  padding: 2rem;
  border-top: 1px solid var(--border);
  width: 100%; max-width: 780px;
}
.feature {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.feature-icon { font-size: 1.6rem; }
.feature-label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.04em; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(30px);
  background: rgba(20,26,48,0.95);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 500;
  backdrop-filter: blur(20px);
  opacity: 0; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none; z-index: 9999; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(52,211,153,0.4); color: #6ee7b7; }
.toast.error   { border-color: rgba(248,113,113,0.4); color: #fca5a5; }
.toast.info    { border-color: rgba(108,99,255,0.4);  color: #a78bfa; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .action-cards { flex-direction: column; }
  .divider-or { width: auto; padding: 0.5rem 0; }
  .navbar { padding: 1rem 1.2rem; }
  .nav-powered .powered-label { display: none; }
  .powered-logo { height: 20px; }
  .hero { padding: 6rem 1rem 3rem; }
}

@media (max-width: 480px) {
  .hero { padding: 5.5rem 0.75rem 2.5rem; }
  .action-card { padding: 1.25rem; }
  .btn { padding: 0.75rem 1.25rem; min-height: 48px; }
  .features-strip { gap: 1rem 2rem; padding: 1.5rem 1rem; }
  .navbar { padding: 0.75rem 1rem; }
}
