/* ============================================
   Landing Page Styles
   ============================================ */

/* ---- Animated Background ---- */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.landing-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15), transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 8s ease-in-out infinite;
}
.landing-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 101, 132, 0.1), transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: float 10s ease-in-out infinite reverse;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}
.navbar.scrolled {
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.navbar.menu-open {
  backdrop-filter: none !important;
  background: var(--bg-primary) !important;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  z-index: 1001; /* Keep above mobile menu */
}
.navbar-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-links a {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.navbar-links a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}
.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 1001;
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s backwards;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

/* ---- URL Input Card ---- */
.url-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.tab-btn.active {
  background: var(--accent-primary);
  color: white;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.url-input-card {
  width: 100%;
  max-width: 700px;
  padding: 8px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.6s ease 0.3s backwards;
  box-shadow: var(--shadow-glow-accent);
}
.url-input-wrapper {
  display: flex;
  gap: 8px;
}
.url-input-wrapper .input-with-icon {
  flex: 1;
  position: relative;
  display: flex;
}
.url-input-wrapper .input {
  width: 100%;
  padding: 16px 48px 16px 20px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
}
.url-input-wrapper .input:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}
.paste-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.paste-icon-btn:hover {
  transform: translateY(-50%) scale(1.1);
  filter: brightness(1.2);
}
.url-input-wrapper .btn {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

/* Result Card */
.result-card {
  margin-top: 16px;
  padding: 20px;
  background: rgba(0, 217, 163, 0.06);
  border: 1px solid rgba(0, 217, 163, 0.15);
  border-radius: var(--radius-lg);
  display: none;
}
.result-card.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}
.result-url {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.result-url .short-url {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--success);
  font-family: var(--font-mono);
  word-break: break-all;
}
.result-url .copy-btn {
  padding: 8px 16px;
  background: var(--success-bg);
  border: 1px solid rgba(0, 217, 163, 0.2);
  border-radius: var(--radius-md);
  color: var(--success);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.result-url .copy-btn:hover {
  background: rgba(0, 217, 163, 0.15);
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  animation: fadeInUp 0.6s ease 0.5s backwards;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Features Section ---- */
.features-section {
  padding: 120px 24px;
  position: relative;
}
.features-section h2 {
  text-align: center;
  margin-bottom: 16px;
}
.features-section .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 64px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-card {
  padding: 32px;
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-4px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-icon.purple { background: rgba(108, 99, 255, 0.12); }
.feature-icon.pink { background: rgba(255, 101, 132, 0.12); }
.feature-icon.green { background: rgba(0, 217, 163, 0.12); }
.feature-icon.blue { background: rgba(46, 216, 255, 0.12); }
.feature-icon.orange { background: rgba(255, 181, 71, 0.12); }
.feature-icon.cyan { background: rgba(0, 200, 220, 0.12); }

.feature-card h4 {
  margin-bottom: 10px;
  font-weight: 600;
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 100px 24px;
  text-align: center;
}
.cta-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 48px;
  background: var(--bg-glass);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}
.cta-card h2 {
  margin-bottom: 16px;
}
.cta-card p {
  margin-bottom: 32px;
  font-size: 1.0625rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.125rem;
    padding: 0 16px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .navbar-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1000;
  }
  .navbar-links.open {
    opacity: 1;
    visibility: visible;
  }
  .navbar-links a {
    font-size: 1.25rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .stats-bar {
    flex-direction: column;
    gap: 40px;
  }
  .url-tabs {
    flex-direction: column;
    gap: 8px;
  }
  .tab-btn {
    width: 100%;
    text-align: center;
  }
  .url-input-wrapper {
    flex-direction: column;
  }
  .url-input-wrapper .btn {
    width: 100%;
  }
  .cta-card {
    padding: 32px 20px;
  }
  .result-url {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .stat-item h3 {
    font-size: 2rem;
  }
}
