img {
  width: 4rem; /* Set desired finite width */
  height: 4rem; /* Set desired finite height */
  object-fit: contain; /* Preserves aspect ratio; 'cover' fills but crops */
}

a {
  text-decoration: none;
}

/* =========================================
   1. ROOT VARIABLES & THEME
   ========================================= */
:root {
  /* Palette: Deep Space & Vitality */
  --bg: #0f172a; /* Deep Slate Blue (Replaces muddy grey) */
  --surface: #1e293b; /* Lighter Slate for cards/sections */
  --surface-glass: rgba(30, 41, 59, 0.7); /* Glassy surface */

  /* Accents: Trust (Blue) & Growth (Green) */
  --accent: #3b82f6; /* Vibrant Blue */
  --accent-hover: #2563eb;
  --accent-2: #10b981; /* Emerald Green (Replaces neon lime) */
  --accent-2-hover: #059669;

  /* Text & Muted */
  --text-main: #f8fafc; /* Off-white for better readability */
  --text-muted: #94a3b8; /* Softer grey-blue */

  /* Utilities */
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --radius: 12px;

  /* Layout */
  --max-width: 1200px; /* Slightly wider for modern feel */
  --container-pad: 20px;

  color-scheme: dark;
}

/* =========================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* =========================================
   3. HEADER & NAV
   ========================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--container-pad);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

header nav {
  display: flex;
  gap: 2rem;
}

header nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

header nav a:hover {
  color: var(--accent);
}

header img {
  height: 40px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--border);
}

/* =========================================
   4. HERO SECTION (Enhanced)
   ========================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--container-pad);
  background:
    radial-gradient(
      circle at top right,
      rgba(59, 130, 246, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(16, 185, 129, 0.1),
      transparent 40%
    );
  text-align: center;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  color: var(--accent); /* Fallback */
  background: none;
  -webkit-text-fill-color: var(--accent);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* NEW: Hero Actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   5. BUTTONS (New Classes)
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--glass);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* =========================================
   6. STATS BAR (New Section)
   ========================================= */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem var(--container-pad);
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   7. PRODUCTS SECTION
   ========================================= */
.products {
  padding: 5rem var(--container-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.products h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.product-icon {
  width: 50px;
  height: 50px;
  background: var(--glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--accent);
}

/* NEW: Product Meta & Badges */
.product-meta {
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:hover {
  gap: 0.5rem; /* Slide effect */
}

/* =========================================
   8. FAQS SECTION (New Styles)
   ========================================= */
.faqs {
  background: var(--surface);
  padding: 5rem var(--container-pad);
}

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

.faq-container h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  color: var(--text-muted);
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}

/* Simple JS toggle class for demo, you can add JS later */
.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

.faq-item.active .faq-question::after {
  content: "−";
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
  background: #020617; /* Darker than bg */
  padding: 4rem var(--container-pad) 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-links h4 {
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

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

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* NEW: Newsletter */
.footer-newsletter h4 {
  margin-bottom: 0.5rem;
}

.footer-newsletter p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  header nav {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .stats-bar {
    gap: 2rem;
  }
}

/* Add to your CSS file */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Puts it behind all content */
  pointer-events: none; /* Allows clicking through it */
  background: var(--bg); /* Fallback color */
}

/* Optional: Ensure text content has a slight backdrop if particles get too dense */
hero,
section,
header,
footer {
  position: relative; /* Establishes stacking context */
}

/* Update this existing block in your CSS */
.product-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 10px 25px -5px var(--accent),
    0 0 15px -5px var(--accent); /* The Glow Effect */
  border-color: transparent; /* Hide the solid border to let the glow shine */
  background: linear-gradient(
    145deg,
    var(--surface) 0%,
    rgba(59, 130, 246, 0.1) 100%
  );
}

/* Optional: Make the icon pulse slightly */
.product-card:hover .product-icon {
  transform: scale(1.1);
  color: var(--accent);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
