/* ============================================================
   PeachAI — landing.css
   Landing Page Styles
   ============================================================ */

/* ===== Page Layout ===== */
#page-landing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg-primary);
}

/* ===== Animated Background Orbs ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orb-float 20s ease-in-out infinite;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(255, 140, 105, 0.12) 0%, transparent 70%);
  animation-duration: 22s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -150px;
  background: radial-gradient(circle, rgba(255, 100, 60, 0.08) 0%, transparent 70%);
  animation-duration: 18s;
  animation-delay: -8s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, rgba(255, 203, 164, 0.06) 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -15s;
}

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

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}

/* ===== Navigation ===== */
.landing-nav {
  position: relative;
  z-index: var(--z-sticky);
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

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

/* Nav user button — shown when signed in */
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-user-btn:hover {
  border-color: var(--peach);
  transform: translateY(-1px);
}

.nav-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8C69, #FF6B47);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: white;
  flex-shrink: 0;
  line-height: 1;
}

.nav-user-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  max-width: 900px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: rgba(255, 140, 105, 0.1);
  border: 1px solid rgba(255, 140, 105, 0.25);
  border-radius: var(--radius-full);
  color: var(--peach-200);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  animation: badge-glow 3s ease-in-out infinite;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--peach-400);
  animation: pulse 2s ease-in-out infinite;
}

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

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 140, 105, 0); }
  50%       { box-shadow: 0 0 16px rgba(255, 140, 105, 0.2); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: var(--weight-extrabold);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  animation: fade-up 0.7s ease both;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--space-10);
  animation: fade-up 0.7s 0.15s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.7s 0.3s ease both;
}

/* ===== Module Preview Cards ===== */
.module-preview {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.7s 0.45s ease both;
}

.module-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  cursor: default;
}

.module-card.active-module {
  background: rgba(255, 140, 105, 0.08);
  border-color: rgba(255, 140, 105, 0.3);
  box-shadow: 0 0 20px rgba(255, 140, 105, 0.1);
}

.module-card.active-module:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 140, 105, 0.15);
}

.module-card.soon {
  opacity: 0.5;
}

.module-icon {
  font-size: 20px;
  line-height: 1;
}

.module-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.module-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.module-tag {
  font-size: 10px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.active-module .module-tag {
  color: var(--peach-300);
}

.soon .module-tag {
  color: var(--text-tertiary);
}

/* ===== Stats Row ===== */
.stats-row {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  width: 100%;
  max-width: 800px;
  padding: var(--space-8) var(--space-8);
  margin: 0 auto;
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-top: auto;
  animation: fade-up 0.7s 0.6s ease both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--peach-200);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--weight-medium);
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-default);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .landing-nav { padding: var(--space-4) var(--space-5); }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding: var(--space-8) var(--space-5); }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats-row {
    gap: var(--space-5);
    flex-wrap: wrap;
    padding: var(--space-6) var(--space-5);
  }
  .stat-divider { display: none; }
  .module-preview { gap: var(--space-2); }
  .module-card { padding: var(--space-2) var(--space-3); }
}
