:root {
    --hero-gradient-1: #7F5AF0;
    --hero-gradient-2: #2CB67D;
    --hero-gradient-3: #E040FB;
    --hero-gradient-4: #FF6B6B;
    --hero-gradient-5: #00D2FF;
    --neon-purple: rgba(127, 90, 240, 0.6);
    --neon-green: rgba(44, 182, 125, 0.5);
    --neon-pink: rgba(224, 64, 251, 0.4);
    --glass-white: rgba(255, 255, 255, 0.06);
    --glass-white-strong: rgba(255, 255, 255, 0.12);
    --glass-border-premium: rgba(255, 255, 255, 0.15);
    --card-glow-purple: rgba(127, 90, 240, 0.15);
    --card-glow-green: rgba(44, 182, 125, 0.15);
}

[data-theme="light"] {
    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-white-strong: rgba(255, 255, 255, 0.85);
    --glass-border-premium: rgba(0, 0, 0, 0.08);
    --neon-purple: rgba(127, 90, 240, 0.15);
    --neon-green: rgba(44, 182, 125, 0.12);
    --neon-pink: rgba(224, 64, 251, 0.1);
}

/* ═══════════════════════════════════════
   HERO SECTION — PREMIUM REDESIGN
   ═══════════════════════════════════════ */

.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0 60px;
    background: #08080f;
}

[data-theme="light"] .hero-section {
    background: linear-gradient(170deg,
            #f4f0ff 0%,
            #ede4ff 30%,
            #e4f0ff 60%,
            #f0eaff 100%);
}

/* ── Background Elements ── */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    will-change: transform;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(127, 90, 240, 0.7) 0%, transparent 70%);
    top: -15%;
    left: -10%;
    animation: glowDrift1 18s ease-in-out infinite;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44, 182, 125, 0.5) 0%, transparent 70%);
    bottom: -20%;
    right: -5%;
    animation: glowDrift2 22s ease-in-out infinite;
}

.hero-glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(224, 64, 251, 0.35) 0%, transparent 70%);
    top: 30%;
    right: 20%;
    animation: glowDrift3 15s ease-in-out infinite;
}

[data-theme="light"] .hero-glow-1 {
    opacity: 0.2;
}

[data-theme="light"] .hero-glow-2 {
    opacity: 0.15;
}

[data-theme="light"] .hero-glow-3 {
    opacity: 0.12;
}

@keyframes glowDrift1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, 30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, -20px) scale(0.95);
    }
}

@keyframes glowDrift2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-30px, -40px) scale(1.08);
    }

    66% {
        transform: translate(20px, 25px) scale(0.92);
    }
}

@keyframes glowDrift3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.15);
    }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(127, 90, 240, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 90, 240, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
}

[data-theme="light"] .hero-grid-overlay {
    background-image:
        linear-gradient(rgba(106, 64, 228, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(106, 64, 228, 0.06) 1px, transparent 1px);
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* Bottom fade for hero → next section */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

/* ── Hero Layout ── */
.hero-inner {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1280px;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
}

/* ── Hero Content (Left side) ── */
.hero-content {
    flex: 1 1 55%;
    max-width: 640px;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px 7px 12px;
    background: rgba(127, 90, 240, 0.1);
    border: 1px solid rgba(127, 90, 240, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #B794F6;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.7s ease 0.1s forwards;
}

[data-theme="light"] .hero-badge {
    background: rgba(106, 64, 228, 0.08);
    border-color: rgba(106, 64, 228, 0.2);
    color: #6A40E4;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #2CB67D;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.badge-pulse::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(44, 182, 125, 0.4);
    animation: badgePing 2s ease-in-out infinite;
}

@keyframes badgePing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.hero-title {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #FFFFFE;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease 0.25s forwards;
}

[data-theme="light"] .hero-title {
    color: #1D1D1F;
}

.hero-title .gradient-word {
    background: linear-gradient(135deg, #7F5AF0 0%, #E040FB 50%, #2CB67D 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #94A1B2;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 0.8s ease 0.4s forwards;
}

[data-theme="light"] .hero-subtitle {
    color: #555;
}

/* ── CTA Buttons ── */
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease 0.55s forwards;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #7F5AF0, #9F7AEA);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(127, 90, 240, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 48px rgba(127, 90, 240, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: #FFFFFE;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-outline:hover {
    background: rgba(127, 90, 240, 0.1);
    border-color: rgba(127, 90, 240, 0.4);
    color: #B794F6;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(127, 90, 240, 0.15);
}

[data-theme="light"] .hero-btn-outline {
    color: #1D1D1F;
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .hero-btn-outline:hover {
    color: #6A40E4;
    background: rgba(106, 64, 228, 0.06);
    border-color: rgba(106, 64, 228, 0.3);
}

/* ── Trust Badges ── */
.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(15px);
    animation: heroFadeUp 0.7s ease 0.7s forwards;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #72757E;
    letter-spacing: 0.2px;
}

.trust-item i {
    color: #2CB67D;
    font-size: 0.75rem;
}

[data-theme="light"] .trust-item {
    color: #888;
}

/* ── Hero Showcase (Right side) ── */
.hero-showcase {
    flex: 0 1 45%;
    max-width: 480px;
    perspective: 1200px;
    opacity: 0;
    transform: translateY(40px);
    animation: heroShowcaseIn 1s ease 0.5s forwards;
}

@keyframes heroShowcaseIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.showcase-wrapper {
    position: relative;
    padding: 20px;
}

.showcase-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(127, 90, 240, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    animation: showcaseGlow 6s ease-in-out infinite;
}

@keyframes showcaseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* ── Showcase Cards ── */
.showcase-card {
    position: relative;
    z-index: 2;
    background: rgba(22, 22, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .showcase-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.showcase-card:hover {
    transform: translateX(-6px) translateY(-3px);
    border-color: rgba(127, 90, 240, 0.3);
    box-shadow: 0 8px 40px rgba(127, 90, 240, 0.15);
}

.showcase-card-1 {
    animation: cardSlideIn 0.8s ease 0.6s both;
}

.showcase-card-2 {
    margin-left: 30px;
    animation: cardSlideIn 0.8s ease 0.8s both;
}

.showcase-card-3 {
    margin-left: 15px;
    animation: cardSlideIn 0.8s ease 1s both;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(60px) translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.showcase-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .showcase-card-header {
    border-bottom-color: rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.02);
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.showcase-dot.red {
    background: #FF5F57;
}

.showcase-dot.yellow {
    background: #FFBD2E;
}

.showcase-dot.green {
    background: #28C840;
}

.showcase-card-label {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #72757E;
}

[data-theme="light"] .showcase-card-label {
    color: #999;
}

.showcase-card-body {
    padding: 8px 14px 10px;
}

.showcase-tool-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #c8c8d0;
    text-decoration: none;
    transition: all 0.25s ease;
}

[data-theme="light"] .showcase-tool-row {
    color: #333;
}

.showcase-tool-row:hover {
    background: rgba(127, 90, 240, 0.08);
    color: #E0E0E8;
}

[data-theme="light"] .showcase-tool-row:hover {
    background: rgba(106, 64, 228, 0.06);
    color: #1D1D1F;
}

.showcase-tool-row i {
    width: 18px;
    text-align: center;
    color: #7F5AF0;
    font-size: 0.75rem;
}

.showcase-tool-row span:first-of-type {
    flex: 1;
}

.showcase-tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(127, 90, 240, 0.15);
    color: #B794F6;
}

.showcase-tag.green-tag {
    background: rgba(44, 182, 125, 0.15);
    color: #2CB67D;
}

.showcase-tag.ai-tag {
    background: rgba(224, 64, 251, 0.15);
    color: #E040FB;
}

[data-theme="light"] .showcase-tag {
    background: rgba(106, 64, 228, 0.1);
    color: #6A40E4;
}

[data-theme="light"] .showcase-tag.green-tag {
    background: rgba(0, 201, 183, 0.1);
    color: #00A89B;
}

[data-theme="light"] .showcase-tag.ai-tag {
    background: rgba(224, 64, 251, 0.08);
    color: #C030DA;
}

/* ── Entrance Animation ── */
@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 1023px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 1.5rem;
    }

    .hero-content {
        text-align: center;
        max-width: 600px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-showcase {
        max-width: 380px;
        width: 100%;
    }

    .showcase-card-2 {
        margin-left: 20px;
    }

    .showcase-card-3 {
        margin-left: 10px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding: 90px 0 80px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        justify-content: center;
        padding: 14px 24px;
    }

    .hero-trust {
        gap: 16px;
    }

    .hero-showcase {
        max-width: 320px;
    }

    .showcase-card-2 {
        margin-left: 15px;
    }

    .showcase-card-3 {
        margin-left: 5px;
    }

    .hero-glow-1 {
        width: 350px;
        height: 350px;
    }

    .hero-glow-2 {
        width: 300px;
        height: 300px;
    }

    .hero-glow-3 {
        width: 200px;
        height: 200px;
    }
}

.search-section {
    padding: 28px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.search-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    font-size: 1.05rem;
    background: var(--glass-white-strong);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border-premium);
    border-radius: 18px;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
    color: var(--text-sub);
    opacity: 0.8;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-light), 0 8px 32px rgba(127, 90, 240, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.2rem;
}

.stats-section {
    background: var(--bg-secondary);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--cta-color), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--glass-white);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border-premium);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--cta-color));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(127, 90, 240, 0.15);
    border-color: var(--accent-color);
}

.stat-number {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color), var(--cta-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-sub);
    font-size: 0.95rem;
    font-weight: 500;
}

.tools-showcase {
    padding: 50px 0 20px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.tool-category {
    margin-bottom: 64px;
    scroll-margin-top: 100px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border-premium);
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.category-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.category-icon-box:hover {
    transform: rotate(-5deg) scale(1.1);
}

.category-icon-box.pdf {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
}

.category-icon-box.image {
    background: linear-gradient(135deg, #00C9FF, #92FE9D);
}

.category-icon-box.writing {
    background: linear-gradient(135deg, #F7971E, #FFD200);
}

.category-icon-box.video {
    background: linear-gradient(135deg, #A855F7, #6366F1);
}

.category-icon-box.dev {
    background: linear-gradient(135deg, #00F5A0, #00D9F5);
}

.category-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.category-info p {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin: 0;
}

.category-count-badge {
    margin-left: auto;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-light), rgba(44, 182, 125, 0.1));
    color: var(--accent-color);
    border: 1px solid var(--glass-border-premium);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

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

.tool-card {
    position: relative;
    background: var(--glass-white);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border-premium);
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--hero-gradient-3), var(--cta-color));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--card-glow-purple) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(127, 90, 240, 0.4);
    box-shadow:
        0 20px 60px rgba(127, 90, 240, 0.15),
        0 0 0 1px rgba(127, 90, 240, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tool-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--accent-light), rgba(44, 182, 125, 0.08));
    color: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 1px solid var(--glass-border-premium);
}

.tool-card:hover .tool-card-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--hero-gradient-3));
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(127, 90, 240, 0.3);
    border-color: transparent;
}

.tool-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.tool-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-card-title {
    color: var(--accent-color);
}

.tool-card-desc {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.6;
    opacity: 0.9;
}

.tool-card-arrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.tool-card:hover .tool-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.tool-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    backdrop-filter: blur(8px);
}

.tool-tag.popular {
    background: linear-gradient(135deg, #7F5AF0, #E040FB);
    color: white;
    box-shadow: 0 4px 12px rgba(127, 90, 240, 0.3);
}

.tool-tag.new {
    background: linear-gradient(135deg, #00F5A0, #00D9F5);
    color: #0a0a0a;
    box-shadow: 0 4px 12px rgba(0, 245, 160, 0.3);
}

.tool-tag.ai {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.3);
}

.cta-banner {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-premium);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0 10px;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 30% 50%, var(--card-glow-purple) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, var(--card-glow-green) 0%, transparent 50%);
    animation: ctaBgMove 10s ease-in-out infinite;
    z-index: 0;
}

@keyframes ctaBgMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(5%, -5%);
    }
}

.cta-banner>* {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.cta-banner p {
    font-size: 1.05rem;
    color: var(--text-sub);
    margin-bottom: 28px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-banner .cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.features-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--glass-white);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border-premium);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(127, 90, 240, 0.12);
    border-color: rgba(127, 90, 240, 0.3);
}

.feature-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.feature-icon.purple {
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.15), rgba(224, 64, 251, 0.1));
    color: #7F5AF0;
}

.feature-icon.green {
    background: linear-gradient(135deg, rgba(44, 182, 125, 0.15), rgba(0, 245, 160, 0.1));
    color: #2CB67D;
}

.feature-icon.blue {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(99, 102, 241, 0.1));
    color: #00D2FF;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(127, 90, 240, 0.2);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

.site-footer {
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--cta-color), var(--hero-gradient-3), transparent);
}

.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, var(--neon-purple) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tool-card {
        padding: 22px;
    }

    .tool-card-arrow {
        opacity: 1;
        transform: translateX(0);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .category-header {
        flex-wrap: wrap;
    }

    .category-count-badge {
        margin-left: 0;
    }

    .cta-banner {
        padding: 40px 24px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}