/* ===== LANDING PAGE — Visual Upgrade ===== */

/* KEYFRAMES */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(59,130,246,0); }
}

/* REVEAL — hidden until IntersectionObserver triggers */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* BASE */
.landing-body {
  background: linear-gradient(180deg, #f8faff 0%, #eef2ff 50%, #f8faff 100%);
  color: #1a1a2e;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* NAV */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228,232,239,0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
.landing-nav.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.landing-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}
.landing-logo:hover { text-decoration: none; }
.landing-logo span { color: #3b82f6; }

.nav-actions { display: flex; gap: 0.5rem; }
.nav-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}
.nav-btn.ghost {
  background: transparent;
  color: #555;
}
.nav-btn.ghost:hover { background: #eef2ff; color: #3b82f6; }
.nav-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}
.nav-btn.primary:hover {
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
  transform: translateY(-1px);
}

/* HERO */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  gap: 3rem;
}
.hero-content {
  flex: 1;
  max-width: 540px;
  animation: fadeInLeft 0.8s ease both;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.12;
  color: #0f172a;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}
.hero-content h1 br + br { display: none; }
.hero-content > p {
  font-size: 1.15rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-buttons { display: flex; gap: 0.8rem; margin-bottom: 2rem; }
.btn-hero {
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-hero.primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.btn-hero.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.4);
}
.btn-hero.ghost {
  background: #fff;
  color: #475569;
  border: 1.5px solid #e2e8f0;
}
.btn-hero.ghost:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #f8faff;
}

.hero-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.hero-badges span {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  color: #3b82f6;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(59,130,246,0.15);
}

/* Hero image */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeInRight 0.8s ease 0.2s both;
}
.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.12),
    0 4px 16px rgba(0,0,0,0.06);
  max-width: 420px;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* SHOWCASE */
.showcase-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 1rem;
  text-align: center;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.showcase-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showcase-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase-caption {
  margin-top: 1.2rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

/* STEPS */
.steps-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.steps-section h2, .categories-section h2, .features-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.section-sub {
  text-align: center;
  color: #64748b;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.step-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: #3b82f6;
}
.step-num {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}

/* CATEGORIES */
.categories-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.cat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem 1rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: default;
}
.cat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.cat-emoji { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.cat-card h4 { font-size: 0.85rem; font-weight: 600; color: #334155; }

/* FEATURES */
.features-section {
  background: #fff;
  padding: 5rem 2rem;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.feature {
  padding: 1.8rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.feature p { font-size: 0.88rem; color: #64748b; line-height: 1.6; }

/* CTA */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  max-width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(30,41,59,0.8));
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
}
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-section .btn-hero.primary {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* FOOTER */
.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}
.landing-footer span span { color: #3b82f6; }
.footer-muted { color: #94a3b8; font-weight: 400; }

/* AUTH MODAL on landing */
.landing-body .auth-card {
  background: #fff;
  color: #333;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
  border-radius: 20px;
}
.landing-body .auth-card .logo { color: #0f172a; }
.landing-body .auth-card .logo span { color: #3b82f6; }
.landing-body .auth-form label > span { color: #64748b; }
.landing-body .auth-form input {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #333;
  border-radius: 10px;
}
.landing-body .auth-form input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.landing-body .auth-form button[type="submit"] {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 10px;
}
.landing-body .auth-form button[type="submit"]:hover {
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}
.landing-body .auth-form .switch { color: #94a3b8; }
.landing-body .auth-form .switch a { color: #3b82f6; }
.landing-body .modal-close { color: #94a3b8; }
.landing-body .modal-close:hover { background: #f1f5f9; color: #333; }
.landing-body .modal-overlay { background: rgba(15,23,42,0.5); backdrop-filter: blur(4px); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-section { flex-direction: column; text-align: center; padding: 3rem 1.5rem; }
  .hero-content { max-width: 100%; animation: fadeInUp 0.8s ease both; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-buttons { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { animation: fadeInUp 0.8s ease 0.2s both; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .hero-image { max-width: 340px; }
}
@media (max-width: 600px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .hero-content h1 { font-size: 1.8rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-buttons { flex-direction: column; }
  .landing-nav { padding: 0.8rem 1rem; }
  .nav-btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
  .hero-section { padding: 2rem 1rem; }
  .steps-section, .categories-section { padding: 3rem 1rem; }
  .features-section { padding: 3rem 1rem; }
  .cta-section { padding: 3rem 1rem; }
}
