/* ── Landing & Auth Page ─────────────────────────────────────── */
.auth-page { overflow-x: hidden; }

/* Animated mesh background */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(100px);
  animation: floatOrb 20s ease-in-out infinite;
}
.orb-1 { width: 650px; height: 650px; background: radial-gradient(circle, #4f46e5 0%, transparent 70%); opacity: 0.22; top: -220px; left: -120px; }
.orb-2 { width: 550px; height: 550px; background: radial-gradient(circle, #a855f7 0%, transparent 70%); opacity: 0.14; bottom: -180px; left: 28%; animation-delay: -7s; }
.orb-3 { width: 380px; height: 380px; background: radial-gradient(circle, #3b82f6 0%, transparent 70%); opacity: 0.14; top: 38%; left: 52%; animation-delay: -13s; }
@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(48px,-36px) scale(1.07); }
  66%      { transform: translate(-32px,44px) scale(0.93); }
}

/* Nav */
.landing { position: relative; z-index: 1; }
.land-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 52px;
  background: linear-gradient(100deg, rgba(14,10,42,0.95) 0%, rgba(9,8,26,0.9) 100%);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border-bottom: 1px solid rgba(99,102,241,0.22);
  box-shadow: 0 1px 0 rgba(99,102,241,0.1), 0 8px 48px rgba(0,0,0,0.32);
  position: relative; z-index: 20;
}
.land-nav-actions { display: flex; gap: 10px; align-items: center; }

/* Hero */
.hero {
  max-width: 760px; margin: 80px auto 0;
  text-align: center; padding: 0 24px;
  animation: heroIn .9s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes heroIn {
  from { opacity:0; transform: translateY(36px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); color: var(--accent2);
  border: 1px solid var(--accent-border); border-radius: 100px;
  font-size: 11px; font-weight: 700; padding: 6px 18px;
  margin-bottom: 30px; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(22px,7.8vw,76px);
  font-weight: 800; line-height: 1.05; margin-bottom: 24px;
  color: var(--text); letter-spacing: -0.025em;
}
.hero-sub {
  font-size: 18px; color: var(--text2); line-height: 1.68;
  max-width: 500px; margin: 0 auto 44px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero-features { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding-top: 36px; }
.feat {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 100px; padding: 9px 20px;
  font-size: 13px; color: var(--text2); font-weight: 500;
  backdrop-filter: blur(14px); transition: all .22s;
}
.feat:hover { border-color: var(--border-hover); color: var(--text); background: rgba(255,255,255,0.07); }
.feat-icon { display: flex; align-items: center; color: var(--accent2); }

/* Auth panel */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.68);
  backdrop-filter: blur(10px); z-index: 50; transition: opacity .3s;
}
.auth-overlay.hidden { display: none !important; }

.auth-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(460px, 100vw);
  background: var(--bg2); border-left: 1px solid var(--border);
  z-index: 51; padding: 48px 44px; overflow-y: auto;
  transform: translateX(100%); transition: transform .38s cubic-bezier(0.4,0,0.2,1);
  box-shadow: none;
}
.auth-panel.open { transform: translateX(0); box-shadow: -28px 0 80px rgba(0,0,0,0.6); }

.panel-close {
  position: absolute; top: 24px; right: 24px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.panel-close:hover { color: var(--text); border-color: var(--border-hover); background: var(--bg4); }

.auth-form { animation: heroIn .3s cubic-bezier(0.16,1,0.3,1) both; }
.auth-form h2 {
  font-family: var(--font-display); font-size: 30px; font-weight: 800;
  margin-bottom: 6px; letter-spacing: -0.015em;
}
.auth-sub { color: var(--text2); font-size: 14px; margin-bottom: 32px; line-height: 1.5; }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%; padding: 13px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; text-decoration: none; margin-bottom: 22px;
  font-family: var(--font-body);
}
.btn-google:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.07); }

.auth-form .field { margin-bottom: 16px; }
.switch-auth { text-align: center; font-size: 13px; color: var(--text2); margin-top: 20px; }
.switch-auth a { color: var(--accent2); cursor: pointer; font-weight: 600; }
.switch-auth a:hover { text-decoration: underline; }

/* Footer */
.land-footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(99,102,241,0.22);
  background: linear-gradient(100deg, rgba(14,10,42,0.7) 0%, rgba(7,7,14,0.65) 100%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 52px 52px 44px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-tagline { font-size: 14px; color: var(--text3); margin-top: 8px; line-height: 1.6; }
.footer-links { display: flex; align-items: center; gap: 32px; }
.footer-links a {
  font-size: 14px; color: var(--text2); cursor: pointer;
  text-decoration: none; transition: color .15s; font-weight: 500;
  padding: 4px 0;
}
.footer-links a:hover { color: var(--accent2); }
.footer-copy { font-size: 13px; color: var(--text3); }

@media (max-width: 768px) {
  .land-nav { padding: 16px 24px; }
}
@media (max-width: 600px) {
  .land-nav { padding: 13px 16px; }

  .auth-panel { padding: 40px 24px; }
  .hero { margin-top: 44px; }
  .hero-sub { font-size: 15px; margin-bottom: 32px; }
  .hero-actions { gap: 10px; flex-direction: column; align-items: stretch; }
  .hero-actions .btn-lg { padding: 12px 22px; font-size: 14px; justify-content: center; }
  .hero-features { display: grid; grid-template-columns: 1fr 1fr; padding-top: 24px; gap: 6px; }
  .feat { padding: 7px 14px; font-size: 12px; justify-content: center; }
  .land-footer { padding: 40px 20px 32px; margin-top: 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-links { gap: 20px; flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .land-nav-actions .btn-ghost { display: none; }
}
