/* ============================================================
   TECH TREASURE - blogs.css (default article / blog theme)
   ------------------------------------------------------------
   HOW TO USE FOR A NEW ARTICLE:
   1. Copy this <head> block (adjust title/meta/canonical):

      <link rel="preconnect" href="https://fonts.googleapis.com" />
      <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
      <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
      <link rel="stylesheet" href="/css/blogs.css" />

   2. Page skeleton (all classes below exist in this file):

      <div class="promo-bar">...</div>            (optional)
      <header class="site-header" id="siteHeader">
        <div class="container header-inner">
          <a href="/" class="logo"><span class="logo-mark">⚡</span>Tech Treasure</a>
          <button class="nav-toggle" id="navToggle" aria-label="Toggle navigation">☰</button>
          <nav class="nav-links" id="navLinks"> ... </nav>
        </div>
      </header>
      <section class="article-hero"><div class="container">
        <div class="breadcrumb">...</div>
        <span class="pill">...</span>
        <h1>...</h1>
        <p class="standfirst">...</p>
        <div class="meta">...</div>
        <div class="featured-image"><img ... /></div>
      </div></section>
      <main class="article-body"><div class="container narrow">
        <div class="toc">...</div>                 (optional)
        <div class="prose"> ... article HTML ... </div>
        <div class="callout note/tip/warning">...</div>
      </div></main>
      <section class="cta-section"><div class="container">
        <div class="cta-panel">...</div>
      </div></section>
      <footer class="footer">...</footer>

   3. Reveal-on-scroll: add class="reveal" to blocks, wrap grids in
      class="reveal-stagger" and set style="--i:0..5" per item.
      Wire up with the snippet at the bottom of this comment:

      <script>
      document.getElementById('navToggle').addEventListener('click', function() {
          document.getElementById('navLinks').classList.toggle('open');
      });
      const io = new IntersectionObserver(es => es.forEach(e => {
          if (e.isIntersecting) { e.target.classList.add('in-view'); io.unobserve(e.target); }
      }), { threshold: .12 });
      document.querySelectorAll('.reveal').forEach(el => io.observe(el));
      const h = document.getElementById('siteHeader');
      addEventListener('scroll', () => h.classList.toggle('scrolled', scrollY > 8), { passive: true });
      </script>
   ============================================================ */

:root {
    --purple: #6c3bff;
    --purple-2: #8b6bff;
    --pink: #ff5ea8;
    --ink: #171532;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --line: #e6e9f5;
    --bg: #f7f8ff;
    --card: #ffffff;
    --grad: linear-gradient(135deg, #6c3bff, #a358ff 50%, #ff5ea8);
    --shadow-sm: 0 4px 18px rgba(23, 21, 50, .06);
    --shadow-lg: 0 24px 60px rgba(108, 59, 255, .16);
    --radius: 18px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 800px; }

.grad-text {
    background: linear-gradient(90deg, #6c3bff, #a358ff, #ff5ea8, #6c3bff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradShift 9s linear infinite;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--purple);
    background: rgba(108, 59, 255, .09);
    border: 1px solid rgba(108, 59, 255, .18);
}

/* ============ PROMO BAR ============ */
.promo-bar {
    background: linear-gradient(90deg, #6c3bff, #a358ff, #ff5ea8, #6c3bff);
    background-size: 300% 100%;
    animation: gradShift 12s linear infinite;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    padding: .6rem 1rem;
}

.promo-bar a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.promo-bar a:hover { opacity: .9; }

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 248, 255, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}

.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(23, 21, 50, .05); }

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

.logo { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.3rem; font-weight: 800; text-decoration: none; color: var(--ink); }

.logo-mark {
    width: 36px; height: 36px; border-radius: 10px; background: var(--grad);
    display: grid; place-items: center; color: #fff; font-size: 1.05rem;
    box-shadow: 0 6px 16px rgba(108, 59, 255, .3);
}

.logo .badge {
    font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: .18rem .55rem; border-radius: 999px; color: #fff; background: var(--grad); margin-top: .35rem;
}

.nav-links { display: flex; align-items: center; gap: 1.6rem; }

.nav-links a:not(.btn-primary) {
    text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem;
    position: relative; transition: color .25s;
}

.nav-links a:not(.btn-primary)::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
    border-radius: 2px; background: var(--grad);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}

.nav-links a:not(.btn-primary):hover { color: var(--purple); }
.nav-links a:not(.btn-primary):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); padding: .35rem; }

/* ============ BUTTONS ============ */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .78rem 1.6rem; background: var(--grad); background-size: 160% 160%;
    color: #fff; border: none; border-radius: 14px; font-weight: 700; font-size: .95rem;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 10px 26px rgba(108, 59, 255, .32);
    transition: transform var(--ease) .25s, box-shadow .3s, background-position .5s;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(108, 59, 255, .42); background-position: 100% 50%; }
.btn-primary:active { transform: translateY(-1px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; border-radius: 16px; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .78rem 1.6rem; background: var(--card); color: var(--purple);
    border-radius: 14px; font-weight: 700; font-size: .95rem; text-decoration: none;
    border: 1px solid var(--line);
    transition: transform var(--ease) .25s, box-shadow .3s, border-color .3s;
}

.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(108, 59, 255, .35); box-shadow: var(--shadow-sm); }

.btn-visit {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .65rem 1.3rem; background: var(--grad); background-size: 160% 160%;
    color: #fff; border-radius: 12px; font-weight: 700; font-size: .88rem; text-decoration: none;
    box-shadow: 0 8px 20px rgba(108, 59, 255, .3);
    transition: transform var(--ease) .25s, box-shadow .3s;
}

.btn-visit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(108, 59, 255, .4); }

.btn-save {
    padding: .65rem 1.2rem; background: var(--card); color: var(--muted);
    border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .88rem;
    cursor: pointer; transition: border-color .25s, color .25s, transform var(--ease) .25s;
}

.btn-save:hover { border-color: rgba(108, 59, 255, .4); color: var(--purple); }
.btn-save.saved { border-color: rgba(108, 59, 255, .5); color: var(--purple); background: rgba(108, 59, 255, .07); }

.btn-buy {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; padding: 1rem 1.6rem; background: var(--grad); background-size: 160% 160%;
    color: #fff; border: none; border-radius: 14px; font-weight: 800; font-size: 1.02rem;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 12px 30px rgba(108, 59, 255, .35);
    transition: transform var(--ease) .25s, box-shadow .3s;
}

.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(108, 59, 255, .45); }

/* ============ ARTICLE HERO ============ */
.article-hero { position: relative; padding: 3.5rem 0 2.5rem; overflow: hidden; text-align: center; }

.article-hero::before {
    content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 59, 255, .16), rgba(255, 94, 168, .12));
    filter: blur(70px); top: -220px; left: 50%; transform: translateX(-50%); pointer-events: none;
}

.breadcrumb { font-size: .82rem; color: var(--muted-2); margin-bottom: 1.2rem; position: relative; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--purple); }

.article-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.03em; line-height: 1.12;
    margin: 1rem auto 1rem; max-width: 820px; position: relative;
}

.standfirst { font-size: 1.1rem; color: var(--muted); max-width: 700px; margin: 0 auto 1.2rem; line-height: 1.65; position: relative; }

.meta {
    display: flex; align-items: center; justify-content: center; gap: 1.1rem; flex-wrap: wrap;
    font-size: .85rem; color: var(--muted); margin-bottom: 2rem; position: relative;
}

.meta .verified {
    color: #16a34a; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .25);
    font-weight: 700; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem;
}

.featured-image { position: relative; max-width: 860px; margin: 0 auto; }

.featured-image img {
    width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
    border-radius: 22px; box-shadow: var(--shadow-lg);
    border: 1px solid rgba(23, 21, 50, .06);
}

/* ============ ARTICLE BODY ============ */
.article-body { padding: 1rem 0 3.5rem; }

.prose { font-size: 1.02rem; line-height: 1.75; color: var(--ink); }

.prose > * + * { margin-top: 1.1rem; }

.prose h2 { font-size: 1.55rem; letter-spacing: -.02em; margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose p { color: #3b3a55; }
.prose strong { color: var(--ink); }
.prose a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.prose ul, .prose ol { padding-left: 1.4rem; color: #3b3a55; }
.prose li + li { margin-top: .45rem; }

.prose blockquote {
    border-left: 4px solid var(--purple); background: rgba(108, 59, 255, .06);
    border-radius: 0 14px 14px 0; padding: 1rem 1.3rem; color: #3b3a55; font-style: italic;
}

.prose code {
    font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: .88em;
    background: rgba(23, 21, 50, .06); padding: .15rem .45rem; border-radius: 7px;
}

.prose pre {
    background: #12101f; color: #e8e6f5; border-radius: 14px; padding: 1.2rem 1.3rem;
    overflow-x: auto; font-size: .88rem; line-height: 1.6;
}

.prose pre code { background: none; padding: 0; color: inherit; }

.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; color: var(--ink); background: rgba(108, 59, 255, .05); }
.prose tr:hover td { background: rgba(108, 59, 255, .03); }

.prose img { border-radius: 16px; box-shadow: var(--shadow-sm); }

/* ============ TOC ============ */
.toc {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem 1.6rem; margin-bottom: 2.2rem; box-shadow: var(--shadow-sm);
}

.toc h2 { font-size: 1rem; margin-bottom: .8rem; }

.toc ul {
    list-style: none; columns: 2; column-gap: 2rem;
    max-height: 320px; overflow-y: auto;
}

.toc li { break-inside: avoid; margin-bottom: .35rem; }

.toc a { font-size: .88rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.toc a:hover { color: var(--purple); }

/* ============ CALLOUTS ============ */
.callout {
    border-radius: 14px; padding: 1.2rem 1.4rem; margin: 1.6rem 0;
    font-size: .93rem; line-height: 1.6; border: 1px solid var(--line);
    background: var(--card);
}

.callout strong { display: block; margin-bottom: .3rem; }

.callout.note { border-left: 4px solid var(--purple); background: rgba(108, 59, 255, .05); }
.callout.note strong { color: var(--purple); }

.callout.tip { border-left: 4px solid #16a34a; background: rgba(34, 197, 94, .06); }
.callout.tip strong { color: #16a34a; }

.callout.warning { border-left: 4px solid #f59e0b; background: rgba(245, 158, 11, .07); }
.callout.warning strong { color: #b45309; }

/* ============ TOOL / DIRECTORY CARDS ============ */
.tools-wrap { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.5rem 0; }

.tool-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); scroll-margin-top: 110px;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}

.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(108, 59, 255, .25); }

.tool-header { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }

.logo-placeholder {
    width: 52px; height: 52px; border-radius: 14px; flex: none;
    background: linear-gradient(135deg, rgba(108, 59, 255, .12), rgba(255, 94, 168, .12));
    border: 1px solid rgba(108, 59, 255, .18);
    display: grid; place-items: center; font-size: 1.6rem;
}

.tool-info { min-width: 0; flex: 1; }
.tool-name { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.tool-company { font-size: .82rem; color: var(--muted); }

.tool-badges { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }

.badge {
    font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: .28rem .65rem; border-radius: 999px; white-space: nowrap;
}

.badge-free { background: rgba(34, 197, 94, .12); color: #16a34a; }
.badge-freemium { background: rgba(108, 59, 255, .1); color: var(--purple); }
.badge-paid { background: rgba(245, 158, 11, .14); color: #b45309; }
.badge-featured { background: var(--grad); color: #fff; }
.badge-trending { background: rgba(255, 94, 168, .12); color: #e14b93; }

.tool-description { color: #3b3a55; font-size: .95rem; line-height: 1.65; margin-bottom: .8rem; }

.tool-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }

.tag {
    font-size: .72rem; font-weight: 600; color: var(--purple);
    background: rgba(108, 59, 255, .08); padding: .22rem .6rem; border-radius: 999px;
}

.tool-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ============ PRODUCT BLOCKS ============ */
.product-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }

.product-gallery { position: sticky; top: 110px; }

.main-image img {
    width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 20px; box-shadow: var(--shadow-lg);
    border: 1px solid rgba(23, 21, 50, .06);
}

.thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: .7rem; }

.thumb { border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color .25s, transform .25s var(--ease); }

.thumb img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

.thumb:hover { transform: translateY(-2px); }
.thumb.active { border-color: var(--purple); }

.price-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 20px;
    padding: 1.8rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}

.price-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad);
}

.price-display { display: flex; align-items: baseline; gap: .7rem; margin: 1rem 0 1.4rem; }

.price-display .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price-display .original { font-size: 1.1rem; color: var(--muted-2); text-decoration: line-through; }
.price-display .discount {
    font-size: .75rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: .25rem .6rem; border-radius: 999px;
}

.rating { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.rating .stars { color: #f59e0b; letter-spacing: .1em; }

.features-list { list-style: none; margin: 1.4rem 0; }

.features-list li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .7rem; font-size: .93rem; color: #3b3a55; }

.features-list .check {
    flex: none; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(34, 197, 94, .12); color: #16a34a;
    display: grid; place-items: center; font-size: .7rem; font-weight: 800; margin-top: .1rem;
}

.guarantee {
    margin-top: 1.2rem; text-align: center; font-size: .85rem; color: var(--muted);
    background: rgba(108, 59, 255, .05); border: 1px dashed rgba(108, 59, 255, .3);
    border-radius: 12px; padding: .8rem;
}

/* ============ PROMPT CARDS (for blogs embedding prompts) ============ */
.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin: 1.5rem 0; }

.prompt-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}

.prompt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(108, 59, 255, .25); }

.prompt-card .card-image { position: relative; overflow: hidden; }

.prompt-card .card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }

.prompt-card:hover .card-image img { transform: scale(1.05); }

.prompt-card .card-body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }

.prompt-card .title { font-size: 1rem; font-weight: 700; }
.prompt-card .desc { font-size: .87rem; color: var(--muted); line-height: 1.6; }

/* ============ SECTION HEADS ============ */
.section { padding: 4rem 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }

.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -.02em; margin-bottom: .7rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ============ CTA ============ */
.cta-section { padding: 4rem 0 5rem; }

.cta-panel {
    position: relative; background: var(--grad); border-radius: 28px;
    text-align: center; padding: 3.8rem 2rem; color: #fff; overflow: hidden;
}

.cta-panel::before {
    content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
    background: rgba(255, 255, 255, .16); top: -160px; right: -80px; filter: blur(10px);
}

.cta-panel::after {
    content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255, 255, 255, .12); bottom: -130px; left: -70px; filter: blur(10px);
}

.cta-panel h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -.02em; position: relative; }
.cta-panel p { opacity: .92; margin: .8rem 0 1.8rem; font-size: 1.02rem; position: relative; }
.cta-panel .btn-primary { background: #fff; color: var(--purple); box-shadow: 0 14px 34px rgba(15, 10, 40, .28); position: relative; }
.cta-panel .btn-primary:hover { background: #f6f6ff; }

/* ============ FOOTER ============ */
.footer { background: #12101f; color: #b9b6d4; padding: 3.5rem 0 2rem; }

.footer-top {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
    padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer .logo { color: #fff; }
.footer-brand p { margin-top: 1rem; font-size: .92rem; opacity: .75; line-height: 1.6; max-width: 320px; }

.footer-links-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }

.footer-links-col a { display: block; color: #b9b6d4; text-decoration: none; margin-bottom: .65rem; font-size: .92rem; transition: color .25s; }
.footer-links-col a:hover { color: #fff; }

.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
    padding-top: 1.4rem; font-size: .82rem; opacity: .65;
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger .reveal { transition-delay: calc(var(--i, 0) * 80ms); }

/* ============ ANIMATIONS ============ */
@keyframes gradShift { to { background-position: 300% 0; } }

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(28px, -24px) scale(1.08); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .prompt-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .toc ul { columns: 1; max-height: none; }
}

@media (max-width: 640px) {
    .nav-links {
        position: fixed; top: 0; right: 0; height: 100dvh; width: min(78vw, 320px);
        background: var(--card); flex-direction: column; align-items: stretch;
        padding: 5.5rem 1.6rem 2rem; gap: 1.2rem;
        box-shadow: -20px 0 60px rgba(23, 21, 50, .16);
        transform: translateX(105%); transition: transform .35s var(--ease); z-index: 72;
    }

    .nav-links.open { transform: none; }
    .nav-links a:not(.btn-primary)::after { display: none; }
    .nav-toggle { display: block; z-index: 71; }

    .nav-toggle::before {
        content: ''; position: fixed; inset: 0; background: rgba(18, 16, 31, .4);
        opacity: 0; pointer-events: none; transition: opacity .3s;
    }

    .nav-toggle.open::before { opacity: 1; pointer-events: auto; }

    .prompt-grid { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
    .tool-header { flex-wrap: wrap; }
    .tool-badges { justify-content: flex-start; }
    .footer-top { grid-template-columns: 1fr; }
    .article-hero { padding: 2.5rem 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
