/* ==========================================================================
   MULTI TOOLS — STYLESHEET
   Table of contents:
   1. Design tokens (custom properties)
   2. Reset & base
   3. Utility classes
   4. Header
   5. Hero
   6. Buttons
   7. Section shell / eyebrow / headings
   8. Categories
   9. Tool cards + filters
   10. Why / stats
   11. Blog magazine layout
   12. Testimonials
   13. FAQ accordion
   14. Newsletter
   15. Footer
   16. Back to top
   17. Animations
   18. Responsive breakpoints
   19. Reduced motion / print
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
------------------------------------------------------------------------- */
:root {
  /* Palette */
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-raised: #ffffff;
  --ink: #0b1220;
  --ink-soft: #4a5468;
  --ink-faint: #7a8398;
  --border: #e7eaf4;
  --border-strong: #d7dcec;

  --blue: #4f8cff;
  --purple: #7b5cff;
  --gradient-primary: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(79,140,255,.10), rgba(123,92,255,.10));
  --gradient-text: linear-gradient(135deg, #2f6fee, #8a4dff);

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(24, 32, 64, 0.08);
  --shadow-lg: 0 20px 60px rgba(24, 32, 64, 0.14);
  --shadow-glow: 0 0 0 1px rgba(79,140,255,.12), 0 12px 40px rgba(123,92,255,.18);

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;

  /* Layout */
  --container-w: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 160ms;
  --dur-base: 260ms;
  --dur-slow: 600ms;
}

[data-theme="dark"] {
  --bg: #0a0f1c;
  --bg-soft: #0e1526;
  --bg-raised: #101a2e;
  --ink: #eef1fb;
  --ink-soft: #b7c0d6;
  --ink-faint: #7b869e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --glass-bg: rgba(16, 26, 46, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.45);
}

/* -------------------------------------------------------------------------
   2. RESET & BASE
------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, button { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

:focus-visible {
  outline: 2.5px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------------------------
   3. UTILITY CLASSES
------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 .6em;
  font-weight: 500;
}

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-lede { font-size: 1.05rem; }
.section-cta { text-align: center; margin-top: 40px; }

/* -------------------------------------------------------------------------
   4. HEADER
------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow var(--dur-base) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark { display: inline-flex; filter: drop-shadow(0 4px 10px rgba(123,92,255,.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand-tag { font-size: .72rem; color: var(--ink-faint); }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: .94rem;
  color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a.active { color: var(--ink); background: var(--bg-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.icon-btn:hover { color: var(--purple); border-color: var(--purple); transform: translateY(-1px); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-toggle span {
  width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   5. HERO
------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  isolation: isolate;
}

.hero-field { position: absolute; inset: 0; z-index: -1; }
.hero-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 45% at 18% 20%, rgba(79,140,255,.24), transparent 60%),
    radial-gradient(42% 50% at 82% 12%, rgba(123,92,255,.22), transparent 60%),
    radial-gradient(50% 60% at 50% 100%, rgba(79,140,255,.14), transparent 65%);
  animation: meshDrift 18s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .55;
}
[data-theme="dark"] .hero-grid { opacity: .3; }

.floating-token {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--purple);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  animation: floatToken 7s ease-in-out infinite;
  opacity: .9;
}
.t1 { top: 12%; left: 8%; animation-delay: 0s; }
.t2 { top: 22%; right: 10%; animation-delay: 1.2s; color: var(--blue); }
.t3 { bottom: 20%; left: 14%; animation-delay: 2.1s; }
.t4 { top: 55%; right: 6%; animation-delay: .6s; color: var(--blue); }
.t5 { bottom: 12%; right: 22%; animation-delay: 1.8s; }
.t6 { top: 8%; left: 46%; animation-delay: 2.6s; color: var(--blue); }

.hero-inner { text-align: center; max-width: 780px; }
.hero-inner .eyebrow { display: inline-block; }
.hero-subtitle { font-size: 1.15rem; max-width: 560px; margin-inline: auto; }

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin: 32px auto 0;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-md);
}
.hero-search .search-icon { color: var(--ink-faint); flex-shrink: 0; }
.hero-search input {
  flex: 1;
  border: 0; background: transparent; outline: 0;
  font-size: .98rem; color: var(--ink); padding: 10px 0;
}
.hero-search input::placeholder { color: var(--ink-faint); }

.live-search-results {
  max-width: 560px;
  margin: 8px auto 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: left;
  overflow: hidden;
}
.live-search-results a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  font-size: .92rem;
  border-bottom: 1px solid var(--border);
}
.live-search-results a:last-child { border-bottom: 0; }
.live-search-results a:hover, .live-search-results a:focus-visible { background: var(--bg-soft); }
.live-search-results .lr-cat { margin-left: auto; font-size: .74rem; color: var(--ink-faint); font-family: var(--font-mono); }

.hero-ctas { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 26px; font-size: .84rem; color: var(--ink-faint);
}
.hero-trust span[aria-hidden] { opacity: .6; }

/* -------------------------------------------------------------------------
   6. BUTTONS
------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { box-shadow: 0 16px 46px rgba(123,92,255,.32), 0 0 0 1px rgba(79,140,255,.2); }

.btn-ghost { background: var(--bg-raised); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .86rem; }

/* -------------------------------------------------------------------------
   8. CATEGORIES
------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.category-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.category-card .cat-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  color: var(--purple);
}
.category-card .cat-name { font-weight: 600; font-size: .92rem; }
.category-card .cat-count { display: block; font-size: .76rem; color: var(--ink-faint); }

/* -------------------------------------------------------------------------
   9. TOOL CARDS + FILTERS
------------------------------------------------------------------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.chip {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  font-size: .84rem; font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--purple); color: var(--purple); }
.chip.is-active { background: var(--gradient-primary); color: #fff; border-color: transparent; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tool-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  animation: cardIn var(--dur-slow) var(--ease) both;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    var(--gradient-primary) border-box;
  border: 1px solid transparent;
}

.tool-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  color: var(--purple);
  margin-bottom: 16px;
}
.tool-icon svg { width: 26px; height: 26px; }

.tool-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.tool-card p { font-size: .88rem; margin-bottom: 16px; flex: 1; }

.tool-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}
.tool-link {
  font-weight: 600; font-size: .86rem;
  color: var(--purple);
  display: inline-flex; align-items: center; gap: 4px;
}
.tool-link svg { transition: transform var(--dur-fast) var(--ease); }
.tool-card:hover .tool-link svg { transform: translateX(3px); }

.tools-empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--ink-faint); }

.skeleton-card {
  height: 210px;
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.tools-grid.is-loaded .skeleton-card { display: none; }

/* -------------------------------------------------------------------------
   10. WHY / STATS
------------------------------------------------------------------------- */
.why { background: var(--bg-soft); }
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.why-list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.why-list li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.why-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat; mask-size: contain;
}
.why-list strong { color: var(--ink); }

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: .82rem; color: var(--ink-faint); }

/* -------------------------------------------------------------------------
   11. BLOG MAGAZINE LAYOUT
------------------------------------------------------------------------- */
.magazine-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.feature-post {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.feature-post:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-post-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.feature-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.feature-post:hover .feature-post-media img { transform: scale(1.05); }
.post-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gradient-primary); color: #fff;
  font-size: .72rem; font-weight: 600;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.feature-post-body { padding: 24px; }
.post-meta { font-size: .78rem; color: var(--ink-faint); display: flex; gap: 8px; margin-bottom: 8px; }
.post-category { color: var(--purple); font-weight: 600; }
.feature-post-body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.feature-post-body h3 a:hover { color: var(--purple); }
.read-more { font-weight: 600; font-size: .88rem; color: var(--purple); }

.latest-list { display: flex; flex-direction: column; gap: 18px; }
.latest-list-title { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px;}
.latest-post {
  display: flex; gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease);
}
.latest-post:hover { background: var(--bg-soft); }
.latest-post-media { width: 68px; height: 68px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.latest-post-media img { width: 100%; height: 100%; object-fit: cover; }
.latest-post h3 { font-size: .96rem; margin: 0; }
.latest-post h3 a:hover { color: var(--purple); }

.editor-picks { margin-top: 44px; }
.editor-picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.pick-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.pick-card:hover { transform: translateY(-3px); border-color: var(--purple); }
.pick-category { font-size: .72rem; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: .03em; }
.pick-card h4 { font-size: .96rem; margin: 8px 0 0; font-family: var(--font-body); font-weight: 600; }

/* -------------------------------------------------------------------------
   12. TESTIMONIALS
------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  margin: 0;
  padding: 26px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial-card blockquote { margin: 0 0 20px; }
.testimonial-card p { color: var(--ink); font-size: .96rem; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary); color: #fff;
  font-size: .78rem; font-weight: 700; flex-shrink: 0;
}
.tname { display: block; font-weight: 600; font-size: .88rem; }
.trole { display: block; font-size: .78rem; color: var(--ink-faint); }

/* -------------------------------------------------------------------------
   13. FAQ ACCORDION
------------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  overflow: hidden;
}
.faq-item h3 { margin: 0; }
.faq-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  background: transparent; border: 0;
  text-align: left;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  color: var(--ink);
}
.faq-icon {
  position: relative;
  width: 18px; height: 18px; flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--purple);
  border-radius: 2px; top: 50%; left: 50%;
}
.faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); transition: transform var(--dur-fast) var(--ease); }
.faq-trigger[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { margin: 0; }

/* -------------------------------------------------------------------------
   14. NEWSLETTER
------------------------------------------------------------------------- */
.newsletter-card {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
}
.newsletter-card h2, .newsletter-card p { color: #fff; }
.newsletter-card p { opacity: .9; margin-bottom: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.14);
  color: #fff;
  min-width: 240px;
  outline: 0;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.75); }
.newsletter-form .btn-primary { background: #fff; color: var(--purple); box-shadow: none; }
.newsletter-card .form-status { flex-basis: 100%; margin: 0; font-size: .85rem; opacity: .9; }

/* -------------------------------------------------------------------------
   15. FOOTER
------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cbd2e6; padding-top: 64px; }
.site-footer .brand-name { color: #fff; }
.site-footer p { color: #9aa4c0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { max-width: 300px; margin-top: 12px; }
.social-icons { display: flex; gap: 10px; margin-top: 18px; }
.social-icons a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #cbd2e6;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.social-icons a:hover { background: var(--gradient-primary); color: #fff; }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-heading { color: #fff; font-weight: 600; font-size: .84rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #9aa4c0; font-size: .9rem; transition: color var(--dur-fast) var(--ease); }
.footer-nav a:hover { color: #fff; }

.footer-newsletter form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.footer-newsletter input {
  padding: 11px 16px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; outline: 0;
}
.footer-newsletter input::placeholder { color: #7b869e; }

.footer-bottom { padding: 24px; text-align: center; font-size: .82rem; color: #7b869e; }

/* -------------------------------------------------------------------------
   16. BACK TO TOP
------------------------------------------------------------------------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff; border: 0;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.back-to-top:hover { transform: translateY(-3px); }

/* -------------------------------------------------------------------------
   17. ANIMATIONS
------------------------------------------------------------------------- */
@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 3%) scale(1.06); }
}
@keyframes floatToken {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------
   18. RESPONSIVE BREAKPOINTS
------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-stats { max-width: 480px; }
  .magazine-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-picks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg); padding: 20px 24px; transform: translateY(-8px);
    opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  }
  .main-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .menu-toggle { display: flex; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .editor-picks-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-search { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 14px; }
  .hero-search input { width: 100%; order: 1; }
  .hero-search .btn { order: 2; width: 100%; }
  .hero-search .search-icon { order: 0; }
  .floating-token { display: none; }
  .newsletter-card { padding: 32px 24px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------------------------------------------------
   19. REDUCED MOTION / PRINT
------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
