/* BGRemove AI — Main Styles */
:root {
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --accent: #6366f1;
  --accent-2: #06b6d4;
  --accent-3: #a855f7;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

.mode-dark {
  --bg: #0a0e1a;
  --bg-elevated: #111827;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(17, 24, 39, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
}

.mode-light {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-3); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1rem; color: var(--text-muted); }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container-narrow { max-width: 800px; }
.text-center { text-align: center; }

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.glass-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.site-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon { color: var(--accent-2); }
.primary-nav .menu { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.primary-nav a:hover, .primary-nav .current-menu-item a { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }
.mobile-nav { display: none; padding: 1rem; border-top: 1px solid var(--border); }
.mobile-nav .menu { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; padding: 0.75rem 0; color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-xs { padding: 0.35rem 0.65rem; font-size: 0.8rem; }

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-2);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.badge-glow { box-shadow: 0 0 20px rgba(6, 182, 212, 0.3); }

.hero-section {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(168, 85, 247, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(6, 182, 212, 0.12), transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 1.1rem; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.hero-stats li { font-size: 0.9rem; color: var(--text-muted); }
.hero-stats strong { display: block; color: var(--text); font-size: 1.1rem; }

.section { padding: 4rem 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--text); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card { padding: 1.75rem; transition: transform var(--transition); }
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.feature-card h3 { color: var(--text); font-size: 1.1rem; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card { padding: 1.75rem; margin: 0; }
.testimonial-card p { font-size: 1.05rem; color: var(--text); font-style: italic; }
.testimonial-card footer { margin-top: 1rem; }
.testimonial-card footer span { display: block; font-size: 0.85rem; color: var(--text-muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  padding: 2rem;
  position: relative;
  text-align: center;
}
.pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}
.pricing-card .badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); }
.pricing-card h3 { color: var(--text); }
.price { margin: 1rem 0; }
.price .amount { font-size: 2.5rem; font-weight: 800; color: var(--text); font-family: var(--font-display); }
.price .period { color: var(--text-muted); font-size: 0.9rem; }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}
.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.pricing-features li::before { content: "✓ "; color: var(--accent-2); }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { padding: 1.25rem 1.5rem; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { margin-bottom: 0.75rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card { overflow: hidden; }
.blog-card-thumb { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-thumb {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.2));
  aspect-ratio: 16/10;
}
.blog-card-body { padding: 1.25rem; }
.blog-card h3 a { color: var(--text); }
.read-more { font-weight: 600; font-size: 0.9rem; }

.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
.sidebar .widget { margin-bottom: 1.5rem; padding: 1.25rem; }

.site-footer {
  position: relative;
  padding: 4rem 0 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--gradient);
  opacity: 0.5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-tagline { max-width: 280px; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-link {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-legal a { color: var(--text-muted); margin: 0 0.25rem; }

.page-hero { padding: 3rem 0 2rem; text-align: center; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--text); }

.lifetime-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--gradient);
  border: none;
}
.lifetime-banner h2, .lifetime-banner p { color: #fff; }
.lifetime-cta { text-align: center; }
.lifetime-cta .amount { font-size: 3rem; font-weight: 800; color: #fff; display: block; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card { padding: 1.5rem; text-align: center; }
.stat-label { display: block; font-size: 0.85rem; color: var(--text-muted); }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--text); font-family: var(--font-display); }
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
}
.dashboard-sidebar { padding: 1.25rem; }
.dashboard-menu { list-style: none; margin: 0; padding: 0; }
.dashboard-menu a {
  display: block;
  padding: 0.65rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.history-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.history-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.history-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.api-docs-section .doc-block { padding: 1.5rem; margin-bottom: 1rem; }
.api-docs-section pre {
  background: var(--bg-elevated);
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.85rem;
}
.docs-nav { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem; margin-bottom: 1.5rem; }

.theme-toggle {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
}
.mode-dark .icon-sun { display: none; }
.mode-light .icon-moon { display: none; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-nav.is-open { display: block; }
  .blog-layout { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
