/* ==========================================================================
   OptimizeGIF.com - Main Stylesheet
   ========================================================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --primary:        #339966;
    --primary-dark:   #267a52;
    --primary-light:  #4db380;
    --primary-xlight: #e8f5ee;
    --primary-rgb:    51, 153, 102;

    --color-1: #e64e4e;
    --color-2: #3399cc;
    --color-3: #339966;

    --accent-gold:  #f5a623;
    --accent-teal:  #2eb8b8;

    --bg:           #f5fbf7;
    --bg-alt:       #edf7f2;
    --card-bg:      #ffffff;
    --card-secondary: #f0f9f4;

    --text-primary:   #0d1f16;
    --text-secondary: #2a4a38;
    --text-muted:     #5a7a6a;
    --text-light:     #8aaa9a;

    --border-color:   #cce8d8;
    --border-mid:     #b0d4c0;

    --header-bg:     rgba(255,255,255,0.97);
    --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:     0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.13);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-body:    'Plus Jakarta Sans', sans-serif;
    --font-mono:    'Space Mono', monospace;
}

[data-theme="dark"] {
    --bg:           #0a1a12;
    --bg-alt:       #0f2218;
    --card-bg:      #122b1c;
    --card-secondary: #0d2016;

    --text-primary:   #e8f5ee;
    --text-secondary: #a8d4bc;
    --text-muted:     #5a8a6e;
    --text-light:     #3d6650;

    --border-color:   #1e4030;
    --border-mid:     #2a5840;

    --header-bg: rgba(10,26,18,0.97);
    --primary-xlight: #0f2218;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 16px;
}

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

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

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

/* ===== SKIP LINK (accessibility) ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand__icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.4);
}

.brand__text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.brand__text span { color: var(--primary); }

.header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--card-secondary);
    color: var(--primary);
    text-decoration: none;
}

.nav-link i { width: 15px; height: 15px; }

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.35);
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.45);
    text-decoration: none;
    color: #fff;
}

.btn-cta i { width: 15px; height: 15px; }

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 7px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    transition: border-color 0.15s, color 0.15s;
}

.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle i { width: 14px; height: 14px; }
.theme-toggle .toggle-sun { display: none; }
[data-theme="dark"] .theme-toggle .toggle-moon { display: none; }
[data-theme="dark"] .theme-toggle .toggle-sun { display: block; }

/* Mobile menu toggle (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 7px 10px;
    cursor: pointer;
    color: var(--text-secondary);
}

.mobile-menu-toggle i { width: 18px; height: 18px; }

/* ===== HERO ===== */
.hero {
    padding: 72px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-xlight);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero__eyebrow i { width: 13px; height: 13px; }

.hero__title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    max-width: 760px;
    margin: 0 auto 20px;
}

/* Single-color emphasis (no gradient) */
.hero__title em {
    font-style: normal;
    color: var(--primary);
    position: relative;
}

.hero__title em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero__cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.4);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.5);
    text-decoration: none;
    color: #fff;
}

.btn-primary i { width: 18px; height: 18px; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    border: 1px solid var(--border-mid);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-xlight);
    text-decoration: none;
}

.btn-secondary i { width: 17px; height: 17px; }

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
    border-right: 1px solid var(--border-color);
}

.hero__stat:last-child { border-right: none; }

.hero__stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ===== GIF ANIMATION PREVIEW ===== */
.gif-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 auto 60px;
    max-width: 640px;
}

.gif-frame {
    width: 88px;
    height: 66px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-family: var(--font-mono);
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.gif-frame__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform-origin: left;
    animation: framebar 2.4s ease-in-out infinite;
}

.gif-frame:nth-child(2) .gif-frame__bar { animation-delay: -0.8s; }
.gif-frame:nth-child(3) .gif-frame__bar { animation-delay: -1.6s; }

@keyframes framebar {
    0%, 100% { transform: scaleX(0.1); }
    33% { transform: scaleX(1); }
    66% { transform: scaleX(0.1); }
}

.gif-arrow {
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.gif-arrow i { width: 16px; height: 16px; }

.gif-result {
    width: 112px;
    height: 84px;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    background: var(--primary-xlight);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.gif-result__badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    font-family: var(--font-mono);
}

.gif-result__num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
    line-height: 1;
}

.gif-result__label {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===== AD SLOT ===== */
.ad-slot {
    background: var(--card-secondary);
    border: 1px dashed var(--border-mid);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    margin: 0 auto;
}

/* ===== SECTION HEADERS ===== */
.section {
    padding: 72px 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section__header {
    text-align: center;
    margin-bottom: 48px;
}

.section__label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.section__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section__subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
}

/* Category labels (single solid colors per category) */
.tools-category-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}
.tools-category-label--compress { color: var(--primary); }
.tools-category-label--convert  { color: var(--color-2); }
.tools-category-label--edit     { color: var(--color-1); }
.tools-category-label--analyze  { color: var(--accent-gold); }

.tools-category-block {
    margin-bottom: 32px;
}
.tools-category-block:last-child {
    margin-bottom: 0;
}

/* ===== TOOLS GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    position: relative;
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.tool-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-xlight);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-card__icon i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.tool-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.tool-card__desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.tool-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 8px;
}

.tool-card__badge--new {
    background: var(--primary);
    color: #fff;
}

.tool-card__badge--soon {
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.tool-card--soon { opacity: 0.72; }
.tool-card--soon:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
    cursor: default;
}

/* ===== HOW IT WORKS ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.step__num {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.35);
}

.step__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.step__text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step__text a { color: var(--primary); font-weight: 600; }

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.feature__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(var(--primary-rgb), 0.12);
}

.feature__icon i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.feature__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature__text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.feature__text a { color: var(--primary); font-weight: 600; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--card-bg);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-body);
    transition: color 0.15s;
}

.faq-question:hover { color: var(--primary); }

.faq-question i {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.25s;
}

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer a { color: var(--primary); font-weight: 600; }

.faq-item.open .faq-answer { display: block; }

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--primary);
    padding: 16px 0;
}

.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.trust-item i { width: 15px; height: 15px; color: rgba(255,255,255,0.7); }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: var(--primary);
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.cta-banner__text {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--primary-dark);
}

.btn-white i { width: 18px; height: 18px; }

/* ===== FRIENDLY ERROR MESSAGES ===== */
.error-msg, .alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    margin: 16px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.error-msg--error  { border-color: rgba(230,78,78, 0.4); background: rgba(230,78,78, 0.06); }
.error-msg--warn   { border-color: rgba(245,166,35, 0.4); background: rgba(245,166,35, 0.06); }
.error-msg--info   { border-color: rgba(51,153,204, 0.4); background: rgba(51,153,204, 0.06); }

.error-msg__icon { flex-shrink: 0; }
.error-msg__icon i { width: 20px; height: 20px; }
.error-msg--error .error-msg__icon i { color: var(--color-1); }
.error-msg--warn  .error-msg__icon i { color: var(--accent-gold); }
.error-msg--info  .error-msg__icon i { color: var(--color-2); }

.error-msg a { color: var(--primary); font-weight: 700; }

/* ===== FOOTER ===== */
.footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.7);
    padding: 52px 0 0;
}

[data-theme="dark"] .footer { background: #060e09; }

.footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.footer__brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.footer__brand-name span { color: var(--primary-light); }

.footer__brand-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.footer__sister-sites {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.footer__sister-sites a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}

.footer__col-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 14px;
    display: block;
    font-family: var(--font-mono);
}

.footer__col a {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.15s;
}

.footer__col a:hover { color: var(--primary-light); text-decoration: none; }

.footer__bottom {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
}

.footer__bottom p { font-size: 0.78rem; }
.footer__bottom a { color: var(--primary-light); }

.footer__legal { display: flex; gap: 16px; }
.footer__legal a { color: rgba(255,255,255,0.4); }
.footer__legal a:hover { color: var(--primary-light); }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header__nav { display: none; }
    .header__nav.is-open {
        display: flex;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 12px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
    .header__nav.is-open .nav-link { width: 100%; }
    .mobile-menu-toggle { display: flex; align-items: center; }
}

@media (max-width: 640px) {
    .hero { padding: 48px 0 40px; }
    .hero__stat { padding: 0 18px; }
    .hero__stat-num { font-size: 1.5rem; }
    .section { padding: 48px 0; }
    .steps { grid-template-columns: 1fr; }
    .cta-banner { padding: 40px 24px; }
    .footer__top { grid-template-columns: 1fr; }
    .gif-preview { display: none; }
}

@media (max-width: 480px) {
    .hero__cta-group { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-secondary { justify-content: center; }
    .trust-bar__inner { gap: 16px; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== PRINT ===== */
@media print {
    .header, .footer, .ad-slot, .trust-bar, .cta-banner { display: none; }
    body { background: #fff; color: #000; }
}

/* Marquee */
.partners-marquee { background: var(--header-bg); border-top: 1px solid var(--border-color); padding: 12px 0; overflow: hidden; white-space: nowrap; }
.scroll-container { display: inline-block; animation: scroll-marquee 80s linear infinite; }
.scroll-container:hover { animation-play-state: paused; }
.scroll-container a { display: inline-block; padding: 0 20px; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.scroll-container a:hover { color: var(--link-hover); }
@keyframes scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
/* MEGA MENU INJECTION CSS */
.mega-dropdown-wrapper { position: static !important; }
.mega-dropdown {
    width: 100% !important;
    max-width: 1100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 30px !important;
    display: none;
    position: absolute;
    background: var(--card-bg, #ffffff) !important;
    border-radius: 12px;
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,0.15)) !important;
    border: 1px solid var(--border-color, rgba(128,128,128,0.15)) !important;
    z-index: 1000;
}
.mega-dropdown-wrapper:hover .mega-dropdown,
.mega-dropdown-wrapper.active .mega-dropdown { display: block; animation: megaFadeIn 0.2s ease; }
@keyframes megaFadeIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.mega-dropdown .mega-categories { display: flex; gap: 30px; justify-content: space-between; }
.mega-dropdown .mega-category { flex: 1; min-width: 0; }
.mega-dropdown .mega-category-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid var(--border-color, rgba(128,128,128,0.1)); padding-bottom: 10px; }
.mega-dropdown .mega-category-header h3 { font-size: 16px; font-weight: 700; color: var(--text-primary, #111) !important; margin: 0; }
.mega-dropdown .mega-category-header .cat-count { display: none; }
.mega-dropdown .mega-category-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(128,128,128,0.1); color: var(--text-primary) !important; }
.mega-dropdown .mega-category ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mega-dropdown .mega-category .subcat-header { font-size: 13px; font-weight: 700; color: var(--text-primary, #111) !important; margin-top: 15px; display: flex; align-items: center; gap: 6px; }
.mega-dropdown .mega-category .subcat-count { opacity: 0.5; font-size: 11px; color: var(--text-muted); }
.mega-dropdown .mega-category .tool-link { font-size: 13px; color: var(--text-muted, #666) !important; text-decoration: none; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; transition: all 0.2s; }
.mega-dropdown .mega-category .tool-link:hover { background: rgba(128,128,128,0.1) !important; color: var(--text-primary, #111) !important; }
.mega-dropdown .tool-label.new { background: #10b981; color: white; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 800; margin-left: auto; }