/* ── Landing Page Styles ── */

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ── Animated Background ── */

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.landing-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
  animation: drift 20s ease-in-out infinite;
}

.landing-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(253, 121, 168, 0.06) 0%, transparent 70%);
  animation: drift 25s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -20px); }
  50% { transform: translate(-20px, 30px); }
  75% { transform: translate(20px, 20px); }
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.2;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.2; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ── Navigation ── */

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-8);
  position: relative;
  z-index: var(--z-base);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-icon {
  font-size: 1.75rem;
}

.logo-text {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* ── Hero Section ── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  position: relative;
  z-index: var(--z-base);
  text-align: center;
}

.hero-content {
  max-width: 600px;
  margin-bottom: var(--space-12);
  animation: fade-in-up 600ms ease forwards;
}

.hero-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-5);
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Action Cards ── */

.action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 700px;
  width: 100%;
  padding: 0 var(--space-4);
  animation: fade-in-up 600ms ease 200ms both;
}

.action-card {
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: rgba(255, 255, 255, 0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
}

.card-desc {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-6);
  line-height: var(--lh-relaxed);
}

.card-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card-form .input {
  background: var(--bg-deep);
}

.input-row {
  display: flex;
  gap: var(--space-3);
}

.input-row .input {
  flex: 1;
}

.room-code-input {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: var(--fw-semibold);
  font-family: var(--font-mono);
}

/* ── Features Section ── */

.features-section {
  position: relative;
  z-index: var(--z-base);
  padding: var(--space-16) var(--space-6);
  animation: fade-in-up 600ms ease 400ms both;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  display: block;
}

.feature-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-1);
}

.feature-desc {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  line-height: var(--lh-relaxed);
}

/* ── Footer ── */

.landing-footer {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  padding: var(--space-6);
  color: var(--text-tertiary);
  font-size: var(--fs-xs);
  border-top: 1px solid var(--glass-border);
}
