/* === Homepage styles === */

.hp-hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 4rem;
}

.hp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .12;
    pointer-events: none;
}

[data-bs-theme="light"] .hp-hero-bg {
    opacity: .18;
    color: var(--bs-primary);
}

.hp-hero .container {
    position: relative;
    z-index: 1;
}

.hp-hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hp-hero .lead {
    font-size: 1.25rem;
    max-width: 600px;
    line-height: 1.8;
}

@media (max-width: 767.98px) {
    .hp-hero { padding: 1.5rem 0 2.5rem; }
    .hp-hero h1 { font-size: 2rem; }
    .hp-hero .btn-lg { padding-left: 1rem; padding-right: 1rem; font-size: .9rem; }
    .hp-hero .lead { font-size: 1.05rem; }
}

/* === Benefits grid === */
.hp-benefits {
    padding: 4rem 0;
}

.hp-benefit-card {
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    padding: 2rem 1.5rem;
    height: 100%;
    background: var(--bs-secondary-bg);
    transition: border-color .2s, transform .2s;
}

.hp-benefit-card:hover {
    border-color: var(--bs-primary);
    transform: translateY(-2px);
}

.hp-benefit-icon {
    font-size: 2rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.hp-benefit-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.hp-benefit-card p {
    font-size: .92rem;
    margin-bottom: 0;
    color: var(--bs-secondary-color);
}

@media (max-width: 575.98px) {
    .hp-benefits { padding: 2.5rem 0; }

    .hp-benefit-card {
        padding: 1.25rem 1rem;
        display: flex;
        align-items: center;
        gap: .75rem;
    }

    .hp-benefit-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .hp-benefit-card h3 {
        margin-bottom: 0;
        font-size: .85rem;
        min-width: 0;
        word-wrap: break-word;
    }

    .hp-benefit-card p {
        display: none;
    }
}

/* === How it works === */
.hp-how {
    padding: 4rem 0;
}

.hp-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-body-bg);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* === CTA section === */
.hp-cta {
    padding: 4rem 0;
}

.hp-cta-box {
    border-radius: 1rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .15), rgba(var(--accent-rgb), .1));
    border: 1px solid var(--bs-border-color);
    text-align: center;
}

/* === SEO text section === */
.hp-about {
    padding: 3rem 0 4rem;
}

.hp-about p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bs-secondary-color);
    max-width: 800px;
}

/* === CTA octopus === */
.hp-cta-octopus {
    position: absolute;
    bottom: -10px;
    right: 1.5rem;
    opacity: .2;
    pointer-events: none;
    transition: opacity .3s;
}

.hp-cta-box:hover .hp-cta-octopus {
    opacity: .35;
}

@media (max-width: 575.98px) {
    .hp-cta-octopus {
        width: 80px;
        height: 87px;
        right: .5rem;
    }
}

/* === Octopus SVG animation === */
@keyframes tentacle-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

.hp-hero-bg .tentacle {
    transform-origin: 50% 30%;
    animation: tentacle-sway 4s ease-in-out infinite;
}

.hp-hero-bg .tentacle:nth-child(2n) {
    animation-delay: -1s;
    animation-duration: 5s;
}

.hp-hero-bg .tentacle:nth-child(3n) {
    animation-delay: -2s;
    animation-duration: 3.5s;
}

/* === Pulse animation for server nodes === */
@keyframes node-pulse {
    0%, 100% { opacity: .6; }
    50% { opacity: 1; }
}

.hp-hero-bg .node-dot {
    animation: node-pulse 2s ease-in-out infinite;
}

.hp-hero-bg .node-dot:nth-child(2n) {
    animation-delay: -.7s;
}

.hp-hero-bg .node-dot:nth-child(3n) {
    animation-delay: -1.4s;
}
