:root {
    --bg: #faf6ef;
    --bg-2: #f3eddf;
    --surface: #fffdf8;
    --surface-2: #f6f1e6;
    --ink: #28231c;
    --muted: #6f6a5f;
    --primary: #4f46e5;
    --primary-2: #a855f7;
    --primary-3: #ec4899;
    --accent: #6d28d9;
    --success: #16a34a;
    --warning: #b45309;
    --danger: #dc2626;
    --label: #44403c;
    --border: rgba(133, 117, 92, 0.18);
    --border-strong: rgba(133, 117, 92, 0.34);
    --radius: 16px;
    --shadow: 0 10px 34px rgba(133, 117, 92, 0.12);
    --shadow-lg: 0 18px 50px rgba(79, 70, 229, 0.16);
    --grad: linear-gradient(135deg, var(--primary), var(--primary-2));
    --grad-3: linear-gradient(120deg, #6366f1, #a855f7, #ec4899);
    --glass: rgba(255, 253, 248, 0.86);
    --header-bg: rgba(250, 246, 239, 0.86);
    --footer-bg: #1c1917;
    --glow-1: rgba(99, 102, 241, 0.07);
    --glow-2: rgba(168, 85, 247, 0.06);
    --glow-3: rgba(217, 119, 6, 0.06);
    --orb-1: rgba(99, 102, 241, 0.24);
    --orb-2: rgba(236, 72, 153, 0.18);
    --h1-grad: linear-gradient(120deg, #28231c 18%, #7c3aed 45%, #db2777 68%, #28231c 88%);
    --h2-grad: linear-gradient(120deg, #28231c, #7c3aed);
    --nav-hover-bg: rgba(99, 102, 241, 0.10);
    --chip-bg: rgba(99, 102, 241, 0.07);
    --chip-border: rgba(99, 102, 241, 0.28);
    --chip-text: #44403c;
    --chip-strong: #4338ca;
    --dz-bg: rgba(99, 102, 241, 0.04);
    --dz-border: rgba(99, 102, 241, 0.45);
    --dz-hover-bg: rgba(109, 40, 217, 0.06);
    --opt-bg: rgba(99, 102, 241, 0.05);
    --ok-bg: rgba(22, 163, 74, 0.07);
    --ok-border: rgba(22, 163, 74, 0.35);
    --ok-text: #16a34a;
    --err-bg: rgba(220, 38, 38, 0.07);
    --err-text: #b91c1c;
    --err-border: rgba(220, 38, 38, 0.32);
    --ts-bg: rgba(99, 102, 241, 0.08);
    --ts-border: rgba(99, 102, 241, 0.28);
    --ts-text: #4338ca;
}

html.dark {
    --bg: #070b14;
    --bg-2: #0d1322;
    --surface: #101729;
    --surface-2: #151d33;
    --ink: #e6ebf5;
    --muted: #93a0bd;
    --accent: #22d3ee;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --label: #c7d2fe;
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.25);
    --shadow: 0 10px 40px rgba(2, 6, 23, 0.5);
    --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.22);
    --glass: rgba(16, 23, 41, 0.72);
    --header-bg: rgba(7, 11, 20, 0.78);
    --footer-bg: #05080f;
    --glow-1: rgba(99, 102, 241, 0.14);
    --glow-2: rgba(168, 85, 247, 0.10);
    --glow-3: rgba(34, 211, 238, 0.07);
    --orb-1: rgba(99, 102, 241, 0.5);
    --orb-2: rgba(236, 72, 153, 0.38);
    --h1-grad: linear-gradient(120deg, #e6ebf5 25%, #a5b4fc 45%, #f0abfc 60%, #e6ebf5 80%);
    --h2-grad: linear-gradient(120deg, #e6ebf5, #a5b4fc);
    --nav-hover-bg: rgba(99, 102, 241, 0.14);
    --chip-bg: rgba(99, 102, 241, 0.1);
    --chip-border: rgba(99, 102, 241, 0.28);
    --chip-text: #c7d2fe;
    --chip-strong: #c7d2fe;
    --dz-bg: rgba(99, 102, 241, 0.05);
    --dz-border: rgba(99, 102, 241, 0.45);
    --dz-hover-bg: rgba(34, 211, 238, 0.07);
    --opt-bg: rgba(99, 102, 241, 0.06);
    --ok-bg: rgba(52, 211, 153, 0.08);
    --ok-border: rgba(52, 211, 153, 0.35);
    --ok-text: #34d399;
    --err-bg: rgba(248, 113, 113, 0.12);
    --err-text: #fca5a5;
    --err-border: rgba(248, 113, 113, 0.35);
    --ts-bg: rgba(99, 102, 241, 0.12);
    --ts-border: rgba(99, 102, 241, 0.35);
    --ts-text: #c7d2fe;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 500px at 85% -10%, var(--glow-1), transparent 60%),
        radial-gradient(800px 500px at -10% 30%, var(--glow-2), transparent 60%),
        radial-gradient(700px 600px at 50% 110%, var(--glow-3), transparent 60%);
    pointer-events: none;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(99, 102, 241, 0.35); color: #fff; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-70px, 40px) scale(1.15); }
    100% { transform: translate(60px, -30px) scale(0.95); }
}
@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -50px) scale(1.1); }
    100% { transform: translate(-50px, 45px) scale(1.05); }
}
@keyframes gradShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.35); }
    50% { box-shadow: 0 0 34px 6px rgba(99, 102, 241, 0.14); }
}
@keyframes shimmer {
    from { transform: translateX(-120%) skewX(-18deg); }
    to { transform: translateX(240%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background 0.35s ease;
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.brand svg {
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.45));
    transition: transform 0.5s ease;
}
.brand:hover svg { transform: rotate(90deg); }
.brand:hover { text-decoration: none; }

.nav-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.main-nav a:hover { background: var(--nav-hover-bg); color: var(--ink); text-decoration: none; }
.main-nav a.active {
    background: var(--grad-3);
    background-size: 200% 200%;
    color: #fff;
    animation: gradShift 6s ease infinite;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.3s ease, background 0.35s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(20deg); }
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: var(--ink);
    padding: 72px 0 118px;
    text-align: center;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}
.hero::before {
    width: 520px; height: 520px;
    left: -140px; top: -120px;
    background: radial-gradient(circle, var(--orb-1), transparent 70%);
    animation: floatOrb1 14s ease-in-out infinite alternate;
}
.hero::after {
    width: 460px; height: 460px;
    right: -120px; bottom: -160px;
    background: radial-gradient(circle, var(--orb-2), transparent 70%);
    animation: floatOrb2 17s ease-in-out infinite alternate;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 4.4vw, 2.8rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: var(--h1-grad);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradShift 8s ease infinite, fadeUp 0.9s cubic-bezier(.22, 1, .36, 1) both;
}
.hero .lead {
    max-width: 740px;
    margin: 0 auto 26px;
    font-size: clamp(1rem, 2.4vw, 1.18rem);
    color: var(--muted);
    animation: fadeUp 0.9s 0.12s cubic-bezier(.22, 1, .36, 1) both;
}
.trust-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    animation: fadeUp 0.9s 0.24s cubic-bezier(.22, 1, .36, 1) both;
}
.trust-chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--chip-text);
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-chips span:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(99, 102, 241, 0.25); }
.trust-chips svg { width: 15px; height: 15px; color: var(--success); }

/* ---------- Tool card ---------- */
.tool-card {
    position: relative;
    z-index: 5;
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    box-shadow: var(--shadow), var(--shadow-lg);
    padding: 30px;
    margin-top: -68px;
    margin-bottom: 30px;
    animation: fadeUp 1s 0.35s cubic-bezier(.22, 1, .36, 1) both;
    transition: background 0.35s ease;
}

.dropzone {
    position: relative;
    border: 2px dashed var(--dz-border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    background: var(--dz-bg);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    animation: pulseGlow 4s ease-in-out infinite;
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent);
    background: var(--dz-hover-bg);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15) inset;
    animation: none;
}
.dropzone svg { margin: 0 auto 14px; color: var(--accent); }
.dropzone .dz-title { font-weight: 700; font-size: 1.08rem; margin: 0 0 6px; color: var(--ink); }
.dropzone .dz-hint { color: var(--muted); font-size: 0.88rem; margin: 0; }
.dropzone .dz-hint b { color: var(--chip-strong); }

.file-list { list-style: none; margin: 0; padding: 0; display: none; }
.file-list.show { display: block; }
.file-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 10px;
    background: var(--surface);
    animation: fadeUp 0.35s ease both;
    transition: background 0.35s ease;
}
.file-list img {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
}
.file-meta { flex: 1; min-width: 0; }
.file-meta .name { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.file-meta .size { color: var(--muted); font-size: 0.82rem; }
.file-remove {
    border: none;
    background: var(--surface-2);
    color: var(--muted);
    width: 30px; height: 30px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}
.file-remove:hover { background: var(--err-bg); color: var(--danger); }

/* ---------- Options ---------- */
.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 24px;
    margin-top: 22px;
    padding: 22px;
    background: var(--opt-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.opt-group label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; color: var(--label); }
.opt-group .opt-value { color: var(--accent); }
.opt-group select, .opt-group input[type="number"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 0.92rem;
    background: var(--surface-2);
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.opt-group select:focus, .opt-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.opt-group input[type="range"] { width: 100%; accent-color: var(--primary); }
.opt-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--ink);
}
.opt-check input { accent-color: var(--primary); width: 17px; height: 17px; margin-top: 2px; }
.opt-check small { display: block; color: var(--muted); font-weight: 400; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chips button {
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--muted);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chips button:hover { border-color: var(--primary-2); color: var(--ink); transform: translateY(-1px); }
.chips button.selected {
    background: var(--grad-3);
    background-size: 200% 200%;
    border-color: transparent;
    color: #fff;
    animation: gradShift 6s ease infinite;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4);
}

/* ---------- Buttons / progress / results ---------- */
.cta-row { margin-top: 24px; text-align: center; }
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 13px;
    padding: 15px 34px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-primary {
    background: var(--grad-3);
    background-size: 200% 200%;
    color: #fff;
    animation: gradShift 6s ease infinite, pulseGlow 4s ease-in-out infinite;
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-120%) skewX(-18deg);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary:hover:not(:disabled)::after { animation: shimmer 0.9s ease; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; animation: none; background: var(--grad); }
.btn-ghost {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    padding: 12px 26px;
    font-size: 0.95rem;
    border-radius: 13px;
    cursor: pointer;
    font-weight: 700;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-link {
    background: var(--ok-bg);
    color: var(--ok-text);
    border: 1px solid var(--ok-border);
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
}
.btn-link:hover { filter: brightness(1.05); text-decoration: none; transform: translateY(-1px); }

.progress-wrap { display: none; margin-top: 18px; }
.progress-wrap.show { display: block; }
.progress-bar {
    height: 12px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.progress-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--grad-3);
    background-size: 200% 100%;
    animation: gradShift 2s linear infinite;
    border-radius: 999px;
    transition: width 0.2s ease;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
}
.progress-label { font-size: 0.85rem; color: var(--muted); margin-top: 8px; text-align: center; font-weight: 600; }

.alert {
    display: none;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
}
.alert.show { display: block; animation: fadeUp 0.3s ease; }
.alert-error { background: var(--err-bg); color: var(--err-text); border: 1px solid var(--err-border); }

.results { list-style: none; margin: 22px 0 0; padding: 0; display: none; }
.results.show { display: block; }
.results li {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 15px 16px;
    border: 1px solid var(--ok-border);
    background: var(--ok-bg);
    border-radius: 13px;
    margin-top: 10px;
    animation: fadeUp 0.4s ease both;
}
.results .r-info { flex: 1; min-width: 200px; }
.results .r-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.results .r-sizes { color: var(--muted); font-size: 0.86rem; }
.results .r-sizes b { color: var(--ok-text); }
.badge {
    background: var(--grad-3);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 5px 13px;
    border-radius: 999px;
    white-space: nowrap;
    animation: gradShift 5s ease infinite;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}
.r-warn { width: 100%; color: var(--warning); font-size: 0.84rem; font-weight: 600; }

.total-savings {
    display: none;
    margin-top: 16px;
    padding: 15px 18px;
    border-radius: 13px;
    background: var(--ts-bg);
    border: 1px solid var(--ts-border);
    text-align: center;
    font-weight: 700;
    color: var(--ts-text);
    animation: fadeUp 0.4s ease both;
}
.total-savings.show { display: block; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background 0.35s ease; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.section-head h2 {
    font-size: clamp(1.4rem, 3.4vw, 2rem);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    background: var(--h2-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--muted); margin: 0; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
    font-size: clamp(1.35rem, 3.2vw, 1.8rem);
    margin: 36px 0 14px;
    letter-spacing: -0.02em;
    background: var(--h2-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.prose h3 { font-size: 1.12rem; margin: 26px 0 10px; color: var(--ink); }
.prose p, .prose ul { color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--primary-2); }

.steps-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.step, .feature {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.35s ease;
}
.step::before, .feature::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--grad-3);
    background-size: 200% 200%;
    animation: gradShift 5s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.step:hover, .feature:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-lg);
}
.step:hover::before, .feature::before { opacity: 1; }
.step .num {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--grad-3);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 14px;
    animation: gradShift 6s ease infinite;
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.4);
}
.step h3, .feature h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--ink); }
.step p, .feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.feature .f-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--opt-bg);
    border: 1px solid var(--chip-border);
    color: var(--accent);
    margin-bottom: 14px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.12);
    transition: transform 0.4s ease;
}
.feature:hover .f-icon { transform: rotate(-8deg) scale(1.08); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    margin-top: 12px;
    padding: 0 22px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.35s ease;
}
.faq-list details:hover, .faq-list details[open] {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: var(--shadow-lg);
}
.faq-list summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 17px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-list details[open] summary::after { transform: rotate(180deg); content: "\2212"; }
.faq-list details p { margin: 0 0 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Related tools ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.tool-link {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.35s ease;
}
.tool-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px 140px at var(--mx, 50%) -20%, rgba(99, 102, 241, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.tool-link:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.tool-link:hover::after { opacity: 1; }
.tool-link .t-tag { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.tool-link h3 { margin: 6px 0; font-size: 1.05rem; color: var(--ink); }
.tool-link p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- Ad slots (hidden: remove display:none to enable ads) ---------- */
.ad-slot { display: none; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--footer-bg);
    color: #a8a29e;
    margin-top: 64px;
    border-top: 1px solid var(--border);
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 480px; height: 2px;
    background: var(--grad-3);
    background-size: 200% 200%;
    animation: gradShift 6s ease infinite;
    border-radius: 2px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding: 50px 20px 42px;
}
.footer-grid p { font-size: 0.9rem; line-height: 1.7; }
.footer-grid h3 {
    color: #faf6ef;
    font-size: 0.95rem;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.footer-grid nav a { color: #a8a29e; font-size: 0.92rem; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-grid nav a:hover { color: #22d3ee; padding-left: 4px; }
.brand-light { color: #faf6ef; margin-bottom: 14px; }
.brand-light svg { color: #22d3ee; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; }
.footer-bottom p { margin: 0; font-size: 0.85rem; text-align: center; }

/* ---------- Mobile menu toggle ---------- */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.menu-toggle:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle .icon-close { display: none; }
.menu-toggle.open .icon-close { display: block; }
.menu-toggle.open .icon-open { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; }
    .nav-wrap { flex-wrap: nowrap; gap: 10px; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 6px;
        padding: 14px 20px 20px;
        background: var(--header-bg);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }
    .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .main-nav a {
        display: block;
        font-size: 1rem;
        padding: 13px 16px;
        border-radius: 12px;
        border: 1px solid transparent;
    }
    .main-nav a:hover { padding-left: 22px; border-color: var(--border); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero { padding: 48px 0 100px; }
    .hero::before { width: 320px; height: 320px; }
    .hero::after { width: 280px; height: 280px; }
    .tool-card { padding: 18px; margin-top: -54px; border-radius: 16px; }
    .results li { gap: 10px; }
    .results .r-info { min-width: 150px; }
    .btn { width: 100%; }
    .section { padding: 42px 0; }
    .section-head { margin-bottom: 30px; }
    .prose table { display: block; overflow-x: auto; }
    .trust-chips span { font-size: 0.78rem; padding: 6px 12px; }
    .options { padding: 16px; gap: 14px; }
    .dropzone { padding: 36px 16px; }
    .byline { font-size: 0.78rem; gap: 6px 14px; }
}

@media (max-width: 400px) {
    .container { padding: 0 14px; }
    .brand { font-size: 1.05rem; gap: 7px; }
    .hero h1 { font-size: 1.55rem; }
    .hero .lead { font-size: 0.95rem; }
    .dropzone .dz-title { font-size: 0.98rem; }
    .dropzone .dz-hint { font-size: 0.8rem; }
    .steps-grid, .features-grid { grid-template-columns: 1fr; }
    .chips button { padding: 6px 11px; font-size: 0.8rem; }
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.35s ease;
}
.article-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px 160px at var(--mx, 50%) -20%, rgba(99, 102, 241, 0.16), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.article-card:hover { transform: translateY(-6px); border-color: rgba(99, 102, 241, 0.5); box-shadow: var(--shadow-lg); text-decoration: none; }
.article-card:hover::after { opacity: 1; }
.article-card .a-tag { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }
.article-card h3 { margin: 0; font-size: 1.12rem; color: var(--ink); line-height: 1.35; }
.article-card p { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }
.article-card .a-meta { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.85rem; font-weight: 600; margin: 18px 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.byline svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; color: var(--accent); }

.cta-box {
    margin: 36px 0;
    padding: 26px 28px;
    border-radius: 16px;
    background: var(--ts-bg);
    border: 1px solid var(--ts-border);
    text-align: center;
}
.cta-box h2, .cta-box h3 { margin: 0 0 8px; color: var(--ts-text); font-size: 1.15rem; background: none; -webkit-text-fill-color: currentColor; }
.cta-box p { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }

.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--border-strong); padding: 10px 12px; text-align: left; color: var(--muted); }
.prose th { background: var(--surface-2); color: var(--ink); font-weight: 700; }

/* ---------- Article banners ---------- */
.article-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 4px;
}
.article-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}
