/* --- 0. SELF-HOSTED WEB FONTS (GDPR-compliant, no third-party requests) --- */
/* Self-hosted TrueType (.ttf) fonts from /fonts/. All modern browsers support TTF in @font-face.
   Fallback stacks (Georgia / system-ui / SF Mono) render if files are missing. */
@font-face {
    font-family: 'Fraunces';
    src: url('/fonts/Fraunces-Variable.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fraunces';
    src: url('/fonts/Fraunces-Italic-Variable.ttf') format('truetype');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Geist';
    src: url('/fonts/Geist-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Geist';
    src: url('/fonts/Geist-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Geist';
    src: url('/fonts/Geist-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Geist';
    src: url('/fonts/Geist-Bold.ttf') format('truetype');
    font-weight: 700 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/JetBrainsMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- 1. CORE VARIABLES & BACKGROUND --- */
:root {
    --paper: #F4F6F1;
    --surface: #FCFDFB;
    --ink: #20241F;
    --ink-soft: #57604F;
    --line: #DFE5DA;
    --line-dark: #B9C4B3;
    --moss: #3E6B4F;
    --moss-deep: #2F5640;
    --moss-tint: #E2EDE3;
    --moss-wash: #EDF3EC;
    --honey: #8A6A25;
    --honey-tint: #F5ECD6;
    --mist: #3C5A70;
    --mist-tint: #E3ECF2;
    --clay: #8F4A3E;
    --clay-tint: #F4E6E1;
    --danger: #8F3A34;
    --danger-tint: #F6E9E7;
    /* Blog article aliases — maps old design tokens to current palette */
    --primary: #2F5640;
    --muted: #57604F;
    --text: #20241F;
    --warning: #E8A33D;
    --card: #FCFDFB;
    --border: #DFE5DA;
    --r-card: 16px;
    --r-input: 10px;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 1px 2px rgba(32, 36, 31, 0.04), 0 12px 24px -8px rgba(32, 36, 31, 0.08);
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Geist', 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--paper);
    background-image:
        radial-gradient(1100px 700px at 88% -6%, rgba(190, 219, 196, 0.4), transparent 62%),
        radial-gradient(900px 620px at -12% 34%, rgba(214, 230, 240, 0.35), transparent 58%),
        radial-gradient(1000px 720px at 52% 112%, rgba(240, 225, 186, 0.3), transparent 60%);
    background-attachment: fixed;
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Premium Paper Texture (Noise Overlay) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

body > * { width: 100%; }

/* --- 2. FLOATING ISLAND LIQUID GLASS HEADER --- */
.glass-header {
    position: sticky;
    top: 16px;
    z-index: 1000;
    width: calc(100% - 32px);
    max-width: 900px;
    margin: 16px auto 0;
    background: rgba(252, 253, 251, 0.78);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 4px 6px -1px rgba(32, 36, 31, 0.03),
        0 12px 24px -8px rgba(32, 36, 31, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.glass-header:hover {
    background: rgba(252, 253, 251, 0.92);
    box-shadow:
        0 8px 16px -4px rgba(32, 36, 31, 0.06),
        0 20px 32px -12px rgba(62, 107, 79, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-header .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--moss);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.glass-header .logo span { color: var(--ink); }

.glass-header .nav-links { display: flex; gap: 2rem; align-items: center; }
.glass-header .nav-links > a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
    padding: 8px 12px;
    border-radius: 999px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.glass-header .nav-links > a:hover {
    color: var(--ink);
    background: rgba(32, 36, 31, 0.04);
}

.glass-header .lang-switcher {
    display: flex;
    gap: 8px;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
}

.glass-header .lang-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}
.glass-header .lang-btn:hover,
.glass-header .lang-btn.active {
    background: var(--moss);
    color: white;
    border-color: var(--moss);
    box-shadow: 0 4px 12px rgba(62, 107, 79, 0.25);
}

/* --- 3. LAYOUT & CONTAINERS --- */
.container {
    flex: 1 0 auto;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    width: 100%;
}

/* --- HERO: SPLIT-SCREEN LAYOUT --- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 1.5rem 5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(244, 246, 241, 0.96) 0%, rgba(226, 237, 227, 0.85) 100%);
    box-shadow:
        0 1px 2px rgba(32, 36, 31, 0.03),
        0 24px 48px -16px rgba(32, 36, 31, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.hero::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(62, 107, 79, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(138, 106, 37, 0.04) 0%, transparent 40%);
    z-index: 0;
    animation: heroGlow 15s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 2%) scale(1.05); }
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero Right: Text Content */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 500;
    font-variation-settings: "opsz" 144, "SOFT" 50;
    color: var(--ink);
    margin: 0.5rem 0;
}
.hero h1 em,
.hero h1 strong {
    font-style: italic;
    font-weight: 500;
    color: var(--moss-deep);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 52ch;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Green Continue Button */
.btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--moss) 0%, var(--moss-deep) 100%);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    box-shadow:
        0 4px 12px rgba(62, 107, 79, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.btn-continue svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease);
}
.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(62, 107, 79, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-continue:hover svg {
    transform: translateY(2px);
}
.btn-continue:active {
    transform: translateY(0) scale(0.98);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line-dark);
    color: var(--ink);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--spring);
    backdrop-filter: blur(6px);
}
.btn-ghost svg {
    width: 16px;
    height: 16px;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--ink-soft);
}
.btn-ghost:active {
    transform: scale(0.97);
}

/* Trust indicators row */
.hero-trust {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-weight: 500;
}
.trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--moss);
    flex-shrink: 0;
}

/* Hero Left: Image Frame */
.hero-left {
    position: relative;
    perspective: 1200px;
}
.hero-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 24px 48px -16px rgba(32, 36, 31, 0.25),
        0 8px 16px -4px rgba(32, 36, 31, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: rotate(2deg);
    transition: transform 0.4s var(--ease);
    aspect-ratio: 4 / 5;
    max-height: 560px;
    margin: 0 auto;
    width: 100%;
}
.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease);
}
.hero-image-frame:hover img {
    transform: scale(1.03);
}
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 40%, rgba(47, 86, 64, 0.3) 100%);
    pointer-events: none;
}

/* Floating result cards on the image */
.floating-card {
    position: absolute;
    background: rgba(252, 253, 251, 0.95);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow:
        0 8px 20px rgba(32, 36, 31, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 3;
    max-width: 240px;
    animation: float-y 6s ease-in-out infinite alternate;
}
.floating-card svg {
    width: 28px;
    height: 28px;
    color: var(--moss);
    flex-shrink: 0;
}
.fc-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
}
.fc-sub {
    font-size: 0.72rem;
    color: var(--ink-soft);
    margin-top: 2px;
}
.card-1 {
    top: 8%;
    left: -8%;
    transform: rotate(-4deg);
    animation-delay: 0s;
}
.card-2 {
    bottom: 10%;
    right: -6%;
    transform: rotate(3deg);
    animation-delay: 2s;
}
@keyframes float-y {
    0% { translate: 0 0; }
    100% { translate: 0 -10px; }
}

/* Magic UI inspired Animated Grid Pattern */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    pointer-events: none;
    border-radius: 28px;
}
.hero-grid-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: grid-move 24s linear infinite;
    opacity: 0.35;
}
@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

/* Text 3D Flip Component - Progressive Enhancement */
.text-3d-flip {
    perspective: 1000px;
    display: inline-block;
    cursor: pointer;
}
.flip-char {
    /* Visible by default - animation is progressive enhancement */
    display: inline-block;
    transform-style: preserve-3d;
    color: var(--ink);
}
/* Only apply animation if JS added the flip class */
.text-3d-flip .flip-char {
    opacity: 0;
    transform: rotateX(-90deg);
    animation: flip-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--i) * 0.025s);
}
@keyframes flip-in {
    to {
        opacity: 1;
        transform: rotateX(0deg);
    }
}
/* Hover: all letters rotate 360deg together */
.text-3d-flip:hover .flip-char {
    transform: rotateX(360deg);
    animation: none;
    transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Magic UI Grid Pattern */
.magic-grid-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 28px;
    pointer-events: none;
}
.magic-grid-pattern::before {
    content: "";
    position: absolute;
    inset: -30% 0;
    background-image:
        linear-gradient(var(--line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: skewY(-12deg);
    mask-image: radial-gradient(400px circle at 30% 50%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(400px circle at 30% 50%, black, transparent 70%);
    opacity: 0.4;
    animation: grid-pulse 8s ease-in-out infinite alternate;
}
.magic-grid-pattern::after {
    content: "";
    position: absolute;
    width: 40px; height: 40px;
    top: 30%; left: 15%;
    background: rgba(62, 107, 79, 0.15);
    border: 1px solid var(--moss);
    box-shadow:
        120px 80px 0 rgba(62, 107, 79, 0.1),
        -80px 160px 0 rgba(62, 107, 79, 0.12),
        200px -40px 0 rgba(62, 107, 79, 0.08);
    transform: skewY(-12deg);
    animation: square-float 12s ease-in-out infinite alternate;
}
@keyframes grid-pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.5; }
}
@keyframes square-float {
    0% { transform: skewY(-12deg) translate(0, 0); }
    100% { transform: skewY(-12deg) translate(20px, -10px); }
}

/* --- STATS STRIP --- */
.stats-strip {
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 1.5rem 1.25rem;
    text-align: left;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-top: 6px;
    font-weight: 500;
}

/* --- 4. CARDS & GLASS PANELS --- */
.tool-card, .seo-content, .blog-card {
    background: linear-gradient(160deg, rgba(252, 253, 251, 0.9) 0%, rgba(244, 246, 241, 0.6) 100%);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--r-card);
    padding: 2rem;
    /* True Glassmorphism: Add inner refraction and bottom shadow */
    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(32, 36, 31, 0.04);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
}


.tool-card:hover, .seo-content:hover, .blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-dark);
    box-shadow:
        0 8px 16px -4px rgba(32, 36, 31, 0.06),
        0 20px 32px -12px rgba(62, 107, 79, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(32, 36, 31, 0.06);
}



/* --- 5. FORMS & INPUTS --- */
.input-group, .input-row > div { margin-bottom: 1rem; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; color: var(--ink); }
input, select, textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-input);
    font-size: 1rem; background: rgba(255, 255, 255, 0.85); color: var(--ink);
    font-family: inherit; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    min-height: 48px;
    font-variant-numeric: tabular-nums;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(62, 107, 79, 0.15);
}
input[type="color"] { height: 48px; padding: 4px; cursor: pointer; }

.input-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.input-row .operator { font-weight: 700; color: var(--ink-soft); font-size: 1.1rem; padding: 12px 4px; }

.base-input {
    display: flex; gap: 10px; align-items: center;
    background: var(--moss-wash); padding: 12px 16px; border-radius: var(--r-input);
    margin-bottom: 1.5rem; border: 1px solid var(--line);
}
.base-input label { margin: 0; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.base-input input { max-width: 80px; padding: 8px; }

/* --- 6. TABS --- */
.tabs { display: flex; gap: 8px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn {
    flex: 1; padding: 10px 16px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6); border-radius: 999px; cursor: pointer;
    font-weight: 700; transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--spring);
    color: var(--ink-soft); font-size: 0.9rem; min-height: 48px;
}
.tab-btn:hover { background: rgba(32, 36, 31, 0.04); color: var(--ink); }
.tab-btn:active { transform: scale(0.97); }
.tab-btn.active {
    border-color: var(--moss); background: var(--moss); color: white;
    box-shadow: 0 4px 12px rgba(62, 107, 79, 0.25);
}

/* --- 7. RESULTS & BADGES --- */
.result-box {
    background: var(--moss-wash); padding: 1.5rem; border-radius: var(--r-input);
    text-align: center; color: var(--moss-deep); margin-top: 1rem;
    border: 1px solid var(--line);
}
.result-main { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result-code {
    display: inline-block; margin-top: 10px; padding: 6px 14px;
    background: var(--ink); color: var(--paper); border-radius: 6px;
    font-family: var(--font-mono); font-size: 0.9rem;
}
.result-label { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 4px; font-weight: 600; }
.result-sub { font-size: 0.9rem; color: var(--ink-soft); margin-top: 4px; }

.badge {
    position: absolute; top: 16px; right: 16px;
    padding: 4px 12px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-live { background: var(--moss-tint); color: var(--moss-deep); }
.badge-soon { background: #FEF3C7; color: #92400E; }

/* --- 8. HOME PAGE SPECIFIC --- */
.search-container { max-width: 600px; margin: 0 auto 4rem; position: relative; padding: 0 1.5rem; }
.search-inner { position: relative; }
.search-icon {
    position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
    color: var(--ink-soft); pointer-events: none; width: 20px; height: 20px;
    transition: color 0.2s var(--ease);
}
#toolSearch {
    width: 100%; padding: 16px 20px 16px 56px; font-size: 1.05rem;
    border: 1px solid var(--line); border-radius: 999px; outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(10px); color: var(--ink);
    min-height: 56px;
    font-family: var(--font-body);
}
#toolSearch::placeholder { color: var(--ink-soft); }
#toolSearch:focus {
    border-color: var(--moss); box-shadow: 0 0 0 3px rgba(62, 107, 79, 0.15);
    background: rgba(255, 255, 255, 0.95);
}
.search-container:focus-within .search-icon { color: var(--moss); }

.category-section {
    margin-bottom: 3rem;
}
.category-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    margin: 3.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--line);
    color: var(--ink);
    letter-spacing: -0.015em;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 14px;
}
.category-title svg {
    width: 32px; height: 32px; padding: 9px; border-radius: 12px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    flex-shrink: 0;
}
.category-section:hover .category-title svg {
    transform: scale(1.1) rotate(-5deg);
}
.category-section:nth-child(1) .category-title svg {
    background: linear-gradient(135deg, var(--moss-tint) 0%, #B8D9BE 100%);
    color: var(--moss-deep);
    box-shadow: 0 4px 12px rgba(62, 107, 79, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.category-section:nth-child(2) .category-title svg {
    background: linear-gradient(135deg, var(--mist-tint) 0%, #A8C5D8 100%);
    color: var(--mist);
    box-shadow: 0 4px 12px rgba(60, 90, 112, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.category-section:nth-child(3) .category-title svg {
    background: linear-gradient(135deg, var(--honey-tint) 0%, #DCC896 100%);
    color: var(--honey);
    box-shadow: 0 4px 12px rgba(138, 106, 37, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.tool-card-lg {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(252, 253, 251, 0.95) 0%, rgba(226, 237, 227, 0.6) 100%);
}
.tools-grid:has(.tool-card:only-child) {
    grid-template-columns: 1fr;
}
.tool-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.tool-card p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; line-height: 1.6; }

#noResults {
    display: none; text-align: center; color: var(--ink-soft);
    padding: 3rem 1rem; font-size: 1.05rem; background: var(--surface);
    border-radius: var(--r-card); border: 1px solid var(--line);
}

/* --- HOW IT WORKS --- */
.how-it-works {
    margin-top: 5rem;
    padding: 4rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.how-header {
    max-width: 600px;
    margin-bottom: 3rem;
}
.how-header h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.how-header p {
    font-size: 1.05rem;
    color: var(--ink-soft);
}
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.how-card {
    position: relative;
    padding: 2rem 1.5rem;
    border-radius: var(--r-card);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.how-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--line-dark);
}
.how-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.how-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #D5E5D6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.how-icon svg {
    width: 24px;
    height: 24px;
    color: var(--moss-deep);
}
.how-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.how-card p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* --- 9. BLOG PREVIEW --- */
.blog-preview {
    margin-top: 5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--line);
}
.preview-header {
    max-width: 650px;
    margin-bottom: 3rem;
}
.preview-header h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.preview-header p {
    font-size: 1.05rem;
    color: var(--ink-soft);
}
.blog-card h3 {
    transition: color 0.3s var(--ease);
}
.blog-card:hover h3 {
    color: var(--moss-deep);
}
.blog-card-date {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- 9. ABOUT / SEO CONTENT --- */
.seo-content {
    margin-top: 6rem;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, rgba(252, 253, 251, 0.85) 0%, rgba(245, 236, 214, 0.3) 100%);
    border-radius: var(--r-card);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
}
.seo-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.015em;
}
.seo-content p {
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 65ch;
}
.seo-content p:last-child {
    margin-bottom: 0;
}

/* --- 10. BLOG SPECIFIC --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.blog-card { text-decoration: none; color: var(--ink); overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.blog-card-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}
.blog-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(32, 36, 31, 0.15) 100%);
    pointer-events: none;
}
.blog-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-date { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.5rem; font-weight: 600; }
.blog-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.75rem; line-height: 1.3; letter-spacing: -0.01em; }
.blog-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; flex-grow: 1; }

.blog-card-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 1rem;
    align-self: flex-start;
}
.blog-card-tag.wellness { background: var(--honey-tint); color: var(--honey); }
.blog-card-tag.video { background: var(--mist-tint); color: var(--mist); }
.blog-card-tag.dev { background: var(--moss-tint); color: var(--moss-deep); }
.blog-card-tag.career { background: var(--clay-tint); color: var(--clay); }
.blog-card-tag.fitness { background: #FFF3E0; color: #E65100; }

/* --- 11. CONTENT & FAQ --- */
.content-section { margin-top: 3rem; }
.content-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 500; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--ink);
    display: flex; align-items: center; gap: 10px;
}
.content-section p, .content-section li { color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.7; max-width: 65ch; }
.content-section ul { padding-left: 1.5rem; }
.content-section li { margin-bottom: 0.5rem; }

.faq-item { margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 0.5rem 0; font-size: 1.1rem; color: var(--ink); font-weight: 700; }
.faq-item p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

.ref-table { width: 100%; border-collapse: collapse; margin-top: 1rem; background: rgba(255,255,255,0.6); border-radius: var(--r-input); overflow: hidden; border: 1px solid var(--line); }
.ref-table th { background: var(--moss); color: white; padding: 12px 16px; text-align: left; font-size: 0.85rem; font-weight: 700; }
.ref-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ref-table tr:last-child td { border-bottom: none; }
.ref-table tr:hover { background: rgba(255,255,255,0.8); }

/* --- 12. FOOTER --- */
footer {
    background: rgba(244, 246, 241, 0.8);
    backdrop-filter: blur(10px);
    color: var(--ink);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--line);
}
.footer-links {
    margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
}
.footer-links a {
    color: var(--ink-soft); text-decoration: none; font-weight: 600; transition: color 0.2s var(--ease);
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; min-width: 48px; padding: 8px 12px;
}
.footer-links a:hover { color: var(--moss); }
.copyright { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* --- 13. COLOR PALETTE TOOL SPECIFIC --- */
.controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1.5rem; align-items: flex-end; }
.controls > div { flex: 1; min-width: 140px; }
.btn-primary, .btn-secondary {
    width: 100%; padding: 12px; border-radius: 999px; font-weight: 700; cursor: pointer;
    transition: background 0.2s var(--ease), transform 0.15s var(--spring), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.95rem; min-height: 48px;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--moss) 0%, var(--moss-deep) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(62, 107, 79, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--moss-deep) 0%, #1E3D2C 100%);
    box-shadow: 0 6px 16px rgba(62, 107, 79, 0.35);
}
.btn-primary:active { transform: scale(0.97); }
.btn-secondary { background: rgba(255,255,255,0.6); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { background: rgba(32, 36, 31, 0.04); border-color: var(--line-dark); }
.btn-secondary:active { transform: scale(0.97); }

.palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 1rem; }
.swatch { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: white; border: 1px solid var(--line); transition: transform 0.3s var(--ease); }
.swatch:hover { transform: translateY(-3px); }
.swatch-color { height: 140px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; position: relative; }
.swatch-info { padding: 16px; }
.swatch-info .hex { font-weight: 800; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); }
.swatch-info .rgb, .swatch-info .hsl { font-size: 0.8rem; color: var(--ink-soft); font-family: var(--font-mono); margin-top: 2px; }
.copy-btn {
    width: 100%; margin-top: 10px; padding: 8px; font-size: 0.85rem; font-weight: 700;
    background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
    cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease); color: var(--ink);
    min-height: 48px;
}
.copy-btn:hover { background: var(--moss); color: white; border-color: var(--moss); }
.copy-btn.copied { background: var(--moss-deep); color: white; border-color: var(--moss-deep); }

.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 8px;
    background: var(--surface); border-radius: 12px; box-shadow: 0 10px 25px rgba(32,36,31,0.12);
    min-width: 200px; z-index: 100; border: 1px solid var(--line); overflow: hidden;
}
.dropdown-menu.active { display: block; }
.dropdown-item {
    padding: 10px 16px; cursor: pointer; transition: background 0.2s var(--ease);
    color: var(--ink); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; font-weight: 600;
    min-height: 48px;
}
.dropdown-item:hover { background: var(--moss-wash); }
.dropdown-item.active { background: var(--moss-tint); color: var(--moss-deep); }

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(32, 36, 31, 0.4); backdrop-filter: blur(4px);
    z-index: 2000; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--surface); border-radius: 20px; padding: 2rem;
    max-width: 600px; width: 90%; max-height: 85vh; overflow-y: auto;
    box-shadow: 0 20px 40px rgba(32,36,31,0.2); border: 1px solid var(--line);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.modal-close {
    background: none; border: none; cursor: pointer; color: var(--ink-soft);
    display: flex; align-items: center; justify-content: center; padding: 8px;
    border-radius: 999px; transition: background 0.2s var(--ease);
    min-height: 48px;
    min-width: 48px;
}
.modal-close:hover { background: rgba(32, 36, 31, 0.04); color: var(--ink); }
.export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.export-option {
    padding: 1.25rem; background: var(--paper); border: 1px solid var(--line);
    border-radius: 12px; text-align: center; cursor: pointer; transition: all 0.2s var(--ease);
    display: flex; flex-direction: column; align-items: center;
}
.export-option:hover { border-color: var(--moss); background: var(--moss-wash); transform: translateY(-2px); }
.export-icon { width: 28px; height: 28px; color: var(--moss); margin-bottom: 0.5rem; }
.export-label { font-weight: 700; font-size: 0.9rem; color: var(--ink); }

.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--ink); color: var(--paper); padding: 12px 24px;
    border-radius: 999px; opacity: 0; transition: all 0.3s var(--ease); z-index: 3000;
    font-weight: 600; box-shadow: 0 10px 20px rgba(32,36,31,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.palette.filter-protanopia { filter: url('#protanopia'); }
.palette.filter-deuteranopia { filter: url('#deuteranopia'); }
.palette.filter-tritanopia { filter: url('#tritanopia'); }
.palette.filter-achromatopsia { filter: grayscale(100%); }

/* --- 13B. BLOG ARTICLE HERO IMAGE --- */
.article-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--r-card);
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 16px -4px rgba(32, 36, 31, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- 13C. SCROLL REVEAL ANIMATION SYSTEM --- */
/* Base state: hidden, offset based on direction */
.reveal {
    opacity: 0;
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal-up { transform: translateY(32px); }
.reveal-right { transform: translateX(-32px); }
.reveal-left { transform: translateX(32px); }
.reveal-scale { transform: scale(0.94) translateY(16px); }

/* Revealed state */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Dynamic delay mapping from data-delay attribute via JS below */

/* --- AESTHETIC BANNER --- */
.aesthetic-banner {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    overflow: hidden;
    border-radius: 24px;
}
.aesthetic-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    filter: brightness(0.95);
}
.aesthetic-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(244, 246, 241, 0.85) 0%, rgba(62, 107, 79, 0.75) 100%);
    border-radius: 24px;
    padding: 2rem;
}
.aesthetic-overlay h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(32, 36, 31, 0.3);
}
.aesthetic-overlay p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(32, 36, 31, 0.2);
}

@media (max-width: 768px) {
    .aesthetic-img {
        height: 280px;
    }
    .aesthetic-overlay h2 {
        font-size: 1.5rem;
    }
    .aesthetic-overlay p {
        font-size: 1rem;
    }
}

/* --- AESTHETIC GALLERY --- */
.aesthetic-gallery {
    margin-top: 6rem;
    padding: 3rem 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    box-shadow: 0 8px 24px -8px rgba(32, 36, 31, 0.15);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px -12px rgba(32, 36, 31, 0.25);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-caption {
    text-align: center;
    padding: 1rem 0;
}
.gallery-caption p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink-soft);
    font-style: italic;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- 14. MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-left {
        order: 2;
    }
    .hero-right {
        order: 1;
    }
    .hero-image-frame {
        transform: rotate(0deg);
        max-height: 480px;
    }
    .card-1 { left: 5%; }
    .card-2 { right: 5%; }
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .how-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .glass-header {
        width: calc(100% - 32px);
        padding: 16px 20px;
        border-radius: 24px;
        flex-wrap: wrap;
        overflow: hidden;
    }
    .glass-header .nav-links {
        width: 100%;
        justify-content: center;
        border-top: 1px solid var(--line);
        padding-top: 12px;
        margin-top: 4px;
        gap: 8px;
        flex-wrap: wrap;
    }
    .glass-header .nav-links > a {
        padding: 8px 12px;
        font-size: 0.9rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .glass-header .lang-switcher {
        margin-left: 0; padding-left: 0; border-left: none;
        margin-top: 8px; justify-content: center; width: 100%;
        border-top: 1px solid var(--line);
        padding-top: 12px;
        flex-shrink: 0;
    }
    .hero { padding: 2.5rem 1.25rem 3rem; }
    .hero h1 { font-size: 2.1rem; }
    .container { padding: 1.5rem 1rem 3rem; }
    .tool-card, .seo-content { padding: 1.5rem; }
    .seo-content { margin-top: 4rem; }
    .tabs { flex-direction: column; }
    .tab-btn { width: 100%; text-align: center; }
    .input-row { flex-direction: column; align-items: stretch; }
    .input-row .operator { padding: 4px 0; text-align: center; }
    .controls { flex-direction: column; }
    .controls > div { width: 100%; }
    .blog-grid { grid-template-columns: 1fr; }
    .article-hero-image { height: 240px; margin-bottom: 2rem; }
    .tools-grid { grid-template-columns: 1fr; }
    .tool-card-lg { grid-column: span 1; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .hero-trust {
        gap: 1rem;
        justify-content: flex-start;
    }
    .hero-actions {
        flex-direction: column;
    }
    .btn-continue, .btn-ghost {
        width: 100%;
        justify-content: center;
    }
    .how-header h2 { font-size: 1.75rem; }
    .category-title { font-size: 1.35rem; }
}

/* Strategic Omission: Skip to Content Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 16px;
    z-index: 10000;
    background: var(--ink);
    color: var(--paper);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(32, 36, 31, 0.15);
}
.skip-link:focus {
    left: 16px;
}

/* --- 15. PERFORMANCE & ACCESSIBILITY --- */
@media (prefers-reduced-transparency: reduce) {
    .glass-header, .tool-card, .seo-content, .blog-card, .modal, footer {
        background: var(--surface);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- 16. BLOG PAGINATION (bottom of /blog/index.html) --- */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem auto 1rem;
    max-width: 720px;
}
.blog-pagination[hidden] { display: none; }
.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.page-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.page-arrow:hover:not(:disabled) {
    background: var(--moss);
    color: var(--paper);
    border-color: var(--moss);
    transform: translateY(-1px);
}
.page-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.page-arrow:focus-visible,
.page-num:focus-visible {
    outline: 2px solid var(--moss);
    outline-offset: 2px;
}
.page-num {
    min-width: 44px;
    height: 44px;
    padding: 0 0.6rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.page-num:hover {
    background: var(--moss-wash);
    color: var(--ink);
}
.page-num.active {
    background: var(--moss);
    color: var(--paper);
    border-color: var(--moss-deep);
}
.page-ellipsis {
    padding: 0 0.25rem;
    color: var(--ink-soft);
    user-select: none;
}
html:not(.js) .blog-pagination { display: none; }
.blog-grid .is-hidden { display: none !important; }

@media (max-width: 480px) {
    .blog-pagination { gap: 0.5rem; }
    .page-num { min-width: 40px; height: 40px; font-size: 0.9rem; }
}
