/* ── Animated Background ── */

.hp-glow-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.hp-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .12;
    animation: hpFloat 20s ease-in-out infinite;
}

.hp-glow-1 {
    width: 500px;
    height: 500px;
    background: #059669;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hp-glow-2 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: 10%;
    left: -80px;
    animation-delay: -7s;
}

.hp-glow-3 {
    width: 350px;
    height: 350px;
    background: #f59e0b;
    top: 50%;
    right: 15%;
    animation-delay: -14s;
}

@keyframes hpFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

/* ── Hero ── */

.hp-hero {
    text-align: center;
    padding: 56px 20px 36px;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.hp-hero-badge {
    display: inline-block;
    padding: 7px 22px;
    border-radius: 100px;
    background: rgba(5, 150, 105, .12);
    border: 1px solid rgba(52, 211, 153, .2);
    color: var(--emerald-light);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: .3px;
    animation: fadeInUp .5s ease-out both;
}

.hp-hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 22px;
    color: var(--text-primary);
    letter-spacing: -.5px;
    animation: fadeInUp .5s ease-out .1s both;
}

.hp-hero-accent {
    background: linear-gradient(135deg, var(--emerald-light), #f59e0b, #8b5cf6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hpGradientShift 6s ease infinite;
}

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

.hp-hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    animation: fadeInUp .5s ease-out .2s both;
}

.hp-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp .5s ease-out .3s both;
}

.hp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--emerald), #059669);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(5, 150, 105, .35);
    transition: all .25s;
}

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

.hp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(5, 150, 105, .5);
    color: #fff;
}

.hp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    transition: all .25s;
}

.hp-btn-secondary svg {
    width: 16px;
    height: 16px;
}

.hp-btn-secondary:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--emerald);
    color: var(--text-primary);
}

.hp-btn-glow {
    border-color: rgba(245, 158, 11, .25);
    background: rgba(245, 158, 11, .08);
}

.hp-btn-glow:hover {
    border-color: rgba(245, 158, 11, .5);
    background: rgba(245, 158, 11, .14);
    box-shadow: 0 0 24px rgba(245, 158, 11, .15);
}

/* ── Counters ── */

.hp-counters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 36px 20px;
    margin-bottom: 20px;
}

.hp-counter {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hp-counter-val {
    font-family: 'Space Mono', monospace;
    font-size: 44px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hp-counter-pct {
    font-family: 'Space Mono', monospace;
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-counter-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hp-counter-sep {
    width: 1px;
    height: 44px;
    background: var(--glass-border);
}

/* ── Section ── */

.hp-section {
    margin-bottom: 52px;
}

.hp-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.hp-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.hp-section-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

.hp-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--emerald-light);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}

.hp-link:hover {
    color: var(--gold);
}

/* ── What's New ── */

.hp-new-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hp-new-card {
    position: relative;
    padding: 24px 20px;
    background: rgba(15, 25, 20, .85);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    transition: all .3s;
    animation: fadeInUp .4s ease-out both;
    overflow: hidden;
}

.hp-new-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: .6;
    transition: opacity .3s;
}

.hp-new-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25), 0 0 30px color-mix(in srgb, var(--accent) 15%, transparent);
}

.hp-new-card:hover::before {
    opacity: 1;
}

.hp-new-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-bottom: 14px;
    box-shadow: 0 0 12px var(--accent);
    animation: hpPulse 2s ease-in-out infinite;
}

@keyframes hpPulse {
    0%, 100% { box-shadow: 0 0 8px var(--accent); }
    50% { box-shadow: 0 0 18px var(--accent); }
}

.hp-new-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.hp-new-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 14px;
    line-height: 1.55;
}

.hp-new-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: letter-spacing .2s;
}

.hp-new-card:hover .hp-new-link {
    letter-spacing: .5px;
}

/* ── Tools grid ── */

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

.hp-tool-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(15, 25, 20, .85);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all .25s;
    animation: fadeInUp .4s ease-out both;
}

.hp-tool-card:hover {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.hp-tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hp-tool-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.hp-tool-info {
    flex: 1;
    min-width: 0;
}

.hp-tool-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-tool-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #000;
    letter-spacing: .5px;
    line-height: 1.4;
}

.hp-tool-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-tool-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all .2s;
}

.hp-tool-card:hover .hp-tool-arrow {
    color: var(--emerald-light);
    transform: translateX(3px);
}

/* ── Sections grid ── */

.hp-sections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.hp-section-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px 26px;
    background: rgba(15, 25, 20, .85);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all .3s;
    animation: fadeInUp .4s ease-out both;
    position: relative;
    overflow: hidden;
}

.hp-section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}

.hp-section-card:hover {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
}

.hp-section-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}

.hp-section-card-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.hp-section-count {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--text-secondary);
}

.hp-section-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-primary);
}

.hp-section-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 18px;
    line-height: 1.5;
}

.hp-section-card-btn {
    font-size: 14px;
    font-weight: 600;
    color: var(--emerald-light);
    transition: color .2s;
}

.hp-section-card:hover .hp-section-card-btn {
    color: var(--gold);
}

/* ── Features ── */

.hp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.hp-feature {
    padding: 28px 22px;
    background: rgba(15, 25, 20, .85);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    transition: all .3s;
    animation: fadeInUp .4s ease-out both;
    position: relative;
    overflow: hidden;
}

.hp-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}

.hp-feature:hover {
    border-color: rgba(255, 255, 255, .15);
    transform: translateY(-3px);
}

.hp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.hp-feature-icon svg {
    width: 24px;
    height: 24px;
}

.hp-feature h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.hp-feature p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ── CTA ── */

.hp-cta {
    margin-bottom: 32px;
}

.hp-cta .glass-card {
    text-align: center;
    padding: 52px 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(5,150,105,.08), rgba(15,25,20,.9));
    border: 1px solid rgba(52,211,153,.15);
    position: relative;
    overflow: hidden;
}

.hp-cta .glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(5,150,105,.06) 0%, transparent 70%);
    pointer-events: none;
}

.hp-cta h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-primary);
    position: relative;
}

.hp-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* ── Responsive ── */

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

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

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

@media (max-width: 900px) {
    .hp-sections-grid {
        grid-template-columns: 1fr;
    }

    .hp-hero-title {
        font-size: 38px;
    }

    .hp-hero-sub {
        font-size: 15px;
    }

    .hp-counters {
        gap: 28px;
    }

    .hp-counter-val {
        font-size: 34px;
    }
}

@media (max-width: 700px) {
    .hp-tools-grid {
        grid-template-columns: 1fr;
    }

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

    .hp-new-grid {
        grid-template-columns: 1fr;
    }

    .hp-hero {
        padding: 36px 12px 24px;
    }

    .hp-hero-title {
        font-size: 30px;
    }

    .hp-hero-sub {
        font-size: 14px;
    }

    .hp-hero-badge {
        font-size: 12px;
        padding: 5px 16px;
    }

    .hp-counters {
        flex-wrap: wrap;
        gap: 20px 32px;
    }

    .hp-counter-sep {
        display: none;
    }

    .hp-counter-val {
        font-size: 28px;
    }

    .hp-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hp-section-title {
        font-size: 20px;
    }

    .hp-cta .glass-card {
        padding: 32px 20px;
    }

    .hp-cta h2 {
        font-size: 22px;
    }

    .hp-cta p {
        font-size: 14px;
    }

    .hp-glow { display: none; }
}
