@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ══════════════════════════════════════════════════════
   DESIGN SYSTEM — ListMyProduct.in AI Listing Suite
   Colors, spacing, and components for the platform
   ══════════════════════════════════════════════════════ */

:root {
  /* ── Brand Palette (from extension tailwind.config.js) ── */
  --brand-50:  #f5f3ff;
  --brand-100: #ede9fe;
  --brand-200: #ddd6fe;
  --brand-300: #c4b5fd;
  --brand-400: #a78bfa;
  --brand-500: #7C3AED;
  --brand-600: #6d28d9;
  --brand-700: #5b21b6;
  --brand-800: #4c1d95;
  --brand-900: #2e1065;
  --accent-pink: #EC4899;
  --accent-rose: #f43f5e;

  /* ── Surface & Text (from extension index.css) ── */
  --bg-main:     #ffffff;
  --bg-card:     #ffffff;
  --bg-elevated: #f8fafc;
  --bg-subtle:   #f1f5f9;
  --text-main:   #0f172a;
  --text-secondary: #334155;
  --text-muted:  #64748b;
  --text-faint:  #94a3b8;
  --border-subtle: rgba(124, 58, 237, 0.1);
  --border-main: #e2e8f0;
  --brand-glow:  rgba(124, 58, 237, 0.05);

  /* ── Layout ── */
  --nav-height: 72px;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar (from extension) ────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-500); }

/* ══════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-500);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  font-weight: 500;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════
   COMPONENTS — Mirroring extension's Tailwind utilities
   ══════════════════════════════════════════════════════ */

/* ── Glass Card (from extension .glass-card) ───────── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.glass-elevated {
  background: var(--bg-elevated);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ── Gradient Button (from extension .btn-gradient) ── */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-pink));
  color: white !important;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px -5px rgba(124, 58, 237, 0.35);
  border: none;
}

.btn-gradient:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 40px -5px rgba(124, 58, 237, 0.5);
}

.btn-gradient:active {
  transform: scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-main);
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-600);
}

/* ── Badge (from extension tier badges) ────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  border: 1px solid;
}

.badge-brand {
  background: var(--brand-500);
  color: white;
  border-color: var(--brand-600);
}

.badge-outline {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-color: var(--border-main);
}

.badge-pink {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}

/* ── Text Gradient (from extension .text-gradient) ─── */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-500), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glow Background (from extension .bg-glow) ─────── */
.bg-glow {
  position: relative;
}

.bg-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background:
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(236, 72, 153, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS — From extension keyframes
   ══════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.2); }
  50%      { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0); }
}

@keyframes countDown {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out both;
}

.animate-slide-up {
  animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Staggered delay classes */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ══════════════════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom-color: var(--border-main);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ── Logo (from extension Header.jsx) ──────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-pink));
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
  transition: transform 0.3s;
}

.logo:hover .logo-icon {
  transform: scale(1.1);
}

.logo-icon-inner {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo-title span {
  color: var(--brand-500);
}

.logo-subtitle {
  font-size: 9px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ── Nav Links ─────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-500);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-500);
  border-radius: 1px;
}

.nav-cta {
  padding: 10px 20px !important;
  font-size: 11px !important;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--text-main);
  color: white;
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-desc {
  color: var(--text-faint);
  margin-top: 16px;
  font-size: 14px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: #cbd5e1;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--brand-400);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-faint);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--brand-400);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links { 
    display: none; 
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: white;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-main);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .nav-links.show { 
    display: flex; 
    animation: fadeIn 0.3s ease-out;
  }

  .nav-links a {
    font-size: 16px;
    width: 100%;
    text-align: center;
  }

  .nav-links a.active::after {
    bottom: -8px;
  }

  .mobile-toggle { display: flex; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
