/* ============================================================
   NoCloud AquaHub — Landing Page Styles (landing.css)
   Hero section, section layouts, and final CTA.
   Component styles (feature-card, step-card, usp-card) are in app.css.
   ============================================================ */

/* --- Hero --------------------------------------------------- */
.hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(14,165,233,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(34,211,238,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--seafoam);
    background: rgba(45,212,191,0.1);
    border: 1px solid rgba(45,212,191,0.15);
    border-radius: var(--radius-full);
    margin-bottom: 28px;
}

.hero-badge i {
    font-size: 0.625rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.1875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Hero visual (right side) */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(14,165,233,0.2), transparent, rgba(34,211,238,0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.hero-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Floating feature badges around hero image */
.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    z-index: 2;
}

.hero-float i {
    font-size: 1rem;
    color: var(--teal-primary);
}

.hero-float--tl { top: -8px; left: -24px; }
.hero-float--tr { top: 20%; right: -32px; }
.hero-float--bl { bottom: 20%; left: -32px; }
.hero-float--br { bottom: -8px; right: -16px; }


/* --- Section Backgrounds (landing page) --------------------- */
.features {
    position: relative;
    background: var(--bg-secondary);
}

.products {
    position: relative;
}

.how-it-works {
    position: relative;
    background: var(--bg-secondary);
}


/* --- Grid Layouts (landing page) ---------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.products-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products-grid .product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.products-grid .product-footer {
    margin-top: auto;
}


/* --- Final CTA ---------------------------------------------- */
.final-cta {
    position: relative;
    text-align: center;
    padding: 96px 0;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(14,165,233,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.final-cta-content {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.final-cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.final-cta .hero-actions {
    justify-content: center;
    margin-bottom: 0;
}


/* --- Responsive --------------------------------------------- */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-float {
        display: none;
    }

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

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

    .products-grid .product-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .hero-actions .btn {
        justify-content: center;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

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

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

    .products-grid .product-card:last-child {
        max-width: none;
    }

    .final-cta {
        padding: 64px 0;
    }

    .final-cta h2 {
        font-size: 1.875rem;
    }

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