/* CSS Design System for Expandit */
:root {
  /* Core Colors */
  --primary-hsl: 217, 91%, 60%;
  --primary: hsl(var(--primary-hsl));
  --primary-light: hsl(217, 91%, 75%);
  --primary-dark: hsl(217, 91%, 45%);
  --primary-glow: hsla(var(--primary-hsl), 0.3);

  --secondary-hsl: 262, 83%, 66%;
  --secondary: hsl(var(--secondary-hsl));

  /* Neutral Palette */
  --bg-body: #fdfdfe;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-nav: rgba(253, 253, 254, 0.8);

  --text-main: #0a0f1d;
  --text-muted: #4b5563;
  --text-light: #9ca3af;

  --border: rgba(229, 231, 235, 0.5);
  --border-focus: var(--primary-light);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --glow: 0 0 20px var(--primary-glow);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s var(--ease);

  /* Sizing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --bg-body: #05070a;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-nav: rgba(5, 7, 10, 0.8);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border: rgba(30, 41, 59, 0.5);

  --grad-surface: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.2) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Background Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 40vw;
  height: 40vw;
  background: var(--grad-primary);
  filter: blur(80px);
  opacity: 0.1;
  border-radius: var(--radius-full);
}

.blob-1 {
  top: -10%;
  right: -10%;
}

.blob-2 {
  bottom: -10%;
  left: -10%;
  animation: float 10s infinite alternate;
}

@keyframes float {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(5%, 5%);
  }
}

/* Glassmorphism Refined */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons Reset & Polish */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: var(--shadow-lg), 0 0 0 0 var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 20px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-2px);
}


/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

nav.scrolled {
  padding: 0.75rem 0;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
}

.logo i {
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-download-btn {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  background: var(--border);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 4px 12px;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--bg-body);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--border);
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary-glow);
  color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--border);
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.625rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  z-index: 1001;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.hero-content .gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Section Common */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Features Styling */
.features {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1.75rem;
  font-size: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--grad-primary);
  color: white;
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
  flex-grow: 1;
}


/* Use Cases Section */
.use-cases {
  padding: 6rem 0;
  background: var(--bg-body);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.use-case-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 4px solid transparent;
}

.use-case-card.old {
  background: hsla(0, 84%, 60%, 0.05);
  border-left-color: #ef4444;
}

.use-case-card.new {
  background: hsla(var(--primary-hsl), 0.05);
  border-left-color: var(--primary);
}

.use-case-card h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.use-case-card ul {
  list-style: none;
}

.use-case-card li {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.use-case-card.old i {
  color: #ef4444;
}

.use-case-card.new i {
  color: var(--primary);
}

/* FAQ Section */
.faq {
  padding: 6rem 0;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.5rem 2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--border);
}

.faq-question i {
  transition: transform 0.3s var(--ease);
  color: var(--primary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 2rem 1.5rem;
  color: var(--text-muted);
  background: var(--bg-card);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.3s var(--ease);
}

/* Pricing/CTA Section */
.pricing {
  margin: 4rem 1.5rem;
  padding: 6rem 2rem;
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  color: white;
  text-align: center;
  box-shadow: 0 20px 40px var(--primary-glow);
}

.pricing h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
}

.pricing p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pricing .btn-primary {
  background: white;
  color: var(--primary);
}

.pricing .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--border);
}

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

.footer-brand .logo {
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 320px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-lg);
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s var(--ease);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.modal-body {
  padding: 2rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  color: #ef4444;
}

/* Stats Section in Hero */
.stats {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--primary-glow);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid hsla(var(--primary-hsl), 0.1);
}

.stats i {
  width: 18px;
  height: 18px;
}

.stats #download-count {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-content {
    padding: 0 1rem;
  }

  .nav-links {
    position: fixed;
    top: 5rem;
    left: 1rem;
    right: 1rem;
    background: var(--bg-nav);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 2.5rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-xl);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    text-align: center;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-download-btn {
    display: none;
  }

  .mobile-only {
    display: block;
    width: 100%;
  }

  .mobile-only .btn-primary {
    width: 100%;
  }

  .hero {
    padding-top: 8rem;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pricing {
    margin: 2rem 1rem;
    padding: 4rem 1.5rem;
  }

  .feature-card {
    padding: 2rem;
  }
}