      :root {
  /* Accent colors used across the UI */
  --accent: #7c5cff;
  --accent-2: #06b6d4;

  /* Background and panel theme vars (from index.html inline styles) */
  --bg-start: #071022;
  --bg-end: #07151f;
  --panel-bg: rgba(17, 24, 39, 0.6);
  --card-bg: rgba(20, 27, 39, 0.7);
  --muted: rgba(203, 213, 225, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.35; 
}

p {
  line-height: 1.45;
}

body.nav-open {
  overflow: hidden;
}

.site-nav-backdrop {
  backdrop-filter: blur(6px);
  background-color: rgba(8, 10, 20, 0.55);
}

.site-footer {
  background: transparent;
}

/* Mobile nav dropdown animation */
#mobileMenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transform-origin: top;
  transition: max-height 200ms ease, opacity 200ms ease, transform 200ms ease;
}

#mobileMenu.mobile-menu-open {
  max-height: 260px; /* enough for all links */
  opacity: 1;
  transform: translateY(0);
}

.theme-card {
  background: linear-gradient(180deg, rgba(22, 28, 40, 0.7), rgba(12, 18, 30, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.theme-card .w-14 {
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.45);
}

.theme-card .icon-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.02);
  margin-top: 8px;
  margin-bottom: 8px;
}

.theme-card:focus {
  outline: 3px solid rgba(124, 58, 237, 0.18);
  outline-offset: 4px;
}

/* Custom styles that don't map well to Tailwind */
.drop-area {
  background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.15), transparent 55%),
              radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.13), transparent 55%),
              linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.9));
  transition: box-shadow 0.22s, transform 0.12s, border-color 0.18s, background 0.25s;
  border: 1px solid rgba(148, 163, 184, 0.32);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 45px rgba(7, 12, 30, 0.9);
}

.drop-area:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(7, 12, 30, 0.95);
  border-color: rgba(129, 140, 248, 0.8);
}

.drop-area.dragover {
  box-shadow: 0 26px 75px rgba(7, 12, 30, 0.98);
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.95);
}

.card-bg {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.16), transparent 55%),
              linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.9);
}

/* Generic glassy info card (used on value cards) */
.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(2, 6, 23, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.9);
}

.preview-img {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}

.preview-img.visible {
  opacity: 1;
  transform: none;
}

.primary-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(7, 12, 30, 0.8);
  transition: transform 0.12s ease-out, box-shadow 0.18s ease-out, opacity 0.12s ease-out;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
  opacity: 0.96;
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.9);
}

.download-btn {
  background: linear-gradient(90deg, #34d399, #10b981);
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.65);
  transition: transform 0.12s ease-out, box-shadow 0.18s ease-out, opacity 0.12s ease-out;
}

.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(6, 95, 70, 0.85);
  opacity: 0.98;
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 16px rgba(6, 78, 59, 0.8);
}

.logo-bg {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* Back to top button: solid white pill with black arrow */
#backToTopBtn {
  background: #ffffff;
  color: #000000; /* arrow uses currentColor */
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.8);
}

#backToTopBtn:hover {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.95);
}

@keyframes popIn {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.animate-pop {
  animation: popIn 420ms cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

/* Polished FAQ accordion styles */
#faqs .faq-wrap {
  display: grid;
  gap: 0.9rem;
}

#faqs details {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(2, 6, 23, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.45);
}

/* Reusable glassy card for footer (matches FAQ card feel) */
.footer-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(2, 6, 23, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.9);
}

#faqs summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#faqs summary::-webkit-details-marker {
  display: none;
}

#faqs .faq-summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  gap: 0.75rem;
}

#faqs summary .faq-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#faqs summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.chev-wrap {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.chev {
  transition: transform 240ms cubic-bezier(0.2, 0.9, 0.3, 1);
  color: rgba(229, 231, 235, 0.9);
}

details[open] .chev {
  transform: rotate(90deg);
}

details[open] .chev-wrap {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.18);
  transform: translateX(2px);
}

.faq-body {
  padding: 0 1rem 1rem 1rem;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 320ms ease, opacity 240ms ease, transform 240ms ease;
}

details[open] .faq-body {
  opacity: 1;
  transform: none;
}

#faqs summary:focus {
  outline: none;
}

.faq-content p {
  margin: 0;
  color: #e5e7eb;
}

.faq-summary span.font-medium {
  font-size: 1.05rem;
}

/* Custom scrollbar for preview grid (dark, subtle) */
.custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.7) transparent;
}

.custom-scroll::-webkit-scrollbar {
  width: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.85), rgba(75, 85, 99, 0.95));
  border-radius: 9999px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.9), rgba(148, 163, 184, 0.95));
}

/* About page: example workspace progress bar animation */
@keyframes exampleProgressFill {
  from {
    width: 0;
  }
  to {
    width: 80%;
  }
}

.example-progress-bar {
  width: 0;
  animation: exampleProgressFill 900ms cubic-bezier(0.22, 0.9, 0.3, 1) 0.2s forwards;
}

/* Generic section spacing utility (used on About page) */
.section-spacing {
  margin-bottom: 60px; /* mobile / small screens */
}

@media (min-width: 768px) { /* md and up (tablet) */
  .section-spacing {
    margin-bottom: 80px;
  }
}

@media (min-width: 1024px) { /* lg and up */
  .section-spacing {
    margin-bottom: 100px;
  }
}

@media (min-width: 1280px) { /* xl and up */
  .section-spacing {
    margin-bottom: 140px;
  }
}