/*
   SlapIA - Homepage Premium Styles
   Enterprise-grade visual effects, micro-animations, and premium aesthetics.
*/

/* =========================================
   1. HERO SECTION - Dramatic & Bold
   ========================================= */

.hero-premium {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

/* Animated gradient mesh behind hero */
.hero-gradient-mesh {
    position: absolute;
    top: -50%;
    left: -30%;
    width: 160%;
    height: 200%;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(191, 90, 242, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 80% 30%, rgba(41, 151, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 80%, rgba(48, 209, 88, 0.08) 0%, transparent 70%);
    animation: meshDrift 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes meshDrift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(30px, -20px) rotate(2deg) scale(1.05);
    }

    100% {
        transform: translate(-20px, 30px) rotate(-1deg) scale(0.98);
    }
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-duration: 8s;
    animation-delay: 0s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(2) {
    left: 25%;
    top: 60%;
    animation-duration: 12s;
    animation-delay: -2s;
    width: 4px;
    height: 4px;
    background: rgba(191, 90, 242, 0.4);
}

.particle:nth-child(3) {
    left: 45%;
    top: 30%;
    animation-duration: 10s;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    left: 60%;
    top: 70%;
    animation-duration: 9s;
    animation-delay: -1s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(5) {
    left: 80%;
    top: 40%;
    animation-duration: 11s;
    animation-delay: -3s;
    width: 4px;
    height: 4px;
    background: rgba(41, 151, 255, 0.3);
}

.particle:nth-child(6) {
    left: 15%;
    top: 80%;
    animation-duration: 13s;
    animation-delay: -5s;
}

.particle:nth-child(7) {
    left: 70%;
    top: 15%;
    animation-duration: 7s;
    animation-delay: -6s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(8) {
    left: 90%;
    top: 55%;
    animation-duration: 14s;
    animation-delay: -7s;
    background: rgba(48, 209, 88, 0.3);
}

.particle:nth-child(9) {
    left: 35%;
    top: 90%;
    animation-duration: 10s;
    animation-delay: -8s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(10) {
    left: 55%;
    top: 10%;
    animation-duration: 9s;
    animation-delay: -3s;
    width: 4px;
    height: 4px;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120px) translateX(40px);
        opacity: 0;
    }
}

/* Hero display title - even bolder */
.hero-title-xl {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e5 40%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animated gradient subtitle */
.text-gradient-animated {
    background: linear-gradient(270deg, #c471f5, #fa71cd, #2997ff, #bf5af2);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

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

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

/* Hero sub-description */
.hero-description {
    max-width: 640px;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Hero stats bar */
.hero-stats-bar {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
    padding: 0;
}

.hero-stat {
    text-align: center;
    position: relative;
}

.hero-stat::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.hero-stat:last-child::after {
    display: none;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Dual CTA buttons */
.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--accent-purple), #7000ff);
    color: white;
    border-radius: 100px;
    padding: 16px 36px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
    box-shadow: 0 0 30px rgba(191, 90, 242, 0.3), 0 10px 40px rgba(112, 0, 255, 0.2);
}

.btn-primary-glow:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 50px rgba(191, 90, 242, 0.5), 0 15px 50px rgba(112, 0, 255, 0.3);
    color: white;
}

.btn-primary-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(30deg) translateX(-100%);
    animation: btnShimmer 4s infinite;
}

@keyframes btnShimmer {
    0% {
        transform: rotate(30deg) translateX(-100%);
    }

    25% {
        transform: rotate(30deg) translateX(50%);
    }

    100% {
        transform: rotate(30deg) translateX(50%);
    }
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 16px 36px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}


/* =========================================
   2. ANIMATED BORDER GLOW - Bento Cards
   ========================================= */

.bento-card-glow {
    position: relative;
}

.bento-card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(191, 90, 242, 0), rgba(41, 151, 255, 0.3), rgba(191, 90, 242, 0), transparent);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderGlow 8s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.bento-card-glow:hover::before {
    opacity: 1;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 0%;
    }

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

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


/* =========================================
   3. MAIN FEATURE CARD - Enhanced
   ========================================= */

.card-feature-main {
    min-height: 420px;
    background:
        linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.card-feature-main .card-glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.card-feature-main:hover .card-glow-orb {
    opacity: 0.25;
}

.card-feature-main .card-glow-orb.orb-blue {
    background: var(--accent-blue);
    top: -50px;
    right: -50px;
}

.card-feature-main .card-glow-orb.orb-purple {
    background: var(--accent-purple);
    bottom: -30px;
    left: -30px;
}

/* Mini terminal mockup inside the card */
.mini-terminal {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 20px;
}

.mini-terminal-header {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ff5f57;
}

.terminal-dot.yellow {
    background: #febc2e;
}

.terminal-dot.green {
    background: #28c840;
}

.mini-terminal-body {
    padding: 16px 20px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.terminal-line {
    display: flex;
    gap: 8px;
    opacity: 0;
    animation: terminalType 0.3s ease forwards;
}

.terminal-line:nth-child(1) {
    animation-delay: 0.5s;
}

.terminal-line:nth-child(2) {
    animation-delay: 1.2s;
}

.terminal-line:nth-child(3) {
    animation-delay: 1.9s;
}

.terminal-line:nth-child(4) {
    animation-delay: 2.6s;
}

@keyframes terminalType {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

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

.terminal-prompt {
    color: var(--accent-purple);
    font-weight: 600;
}

.terminal-command {
    color: #e0e0e0;
}

.terminal-success {
    color: var(--accent-cyan);
}

.terminal-info {
    color: var(--accent-blue);
}


/* =========================================
   4. WHY SLAPIA SECTION
   ========================================= */

.section-why {
    position: relative;
    padding: 100px 0;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(191, 90, 242, 0.1);
    border: 1px solid rgba(191, 90, 242, 0.2);
    color: var(--accent-purple);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.section-title-lg {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.why-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(191, 90, 242, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(191, 90, 242, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.why-card:hover::before {
    opacity: 1;
}

.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
    position: relative;
}

.why-icon.icon-purple {
    background: linear-gradient(135deg, rgba(191, 90, 242, 0.2), rgba(191, 90, 242, 0.05));
    color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(191, 90, 242, 0.1);
}

.why-icon.icon-blue {
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.2), rgba(41, 151, 255, 0.05));
    color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(41, 151, 255, 0.1);
}

.why-icon.icon-green {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.2), rgba(48, 209, 88, 0.05));
    color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(48, 209, 88, 0.1);
}

.why-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.why-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}


/* =========================================
   5. NUMBERS / COUNTER SECTION
   ========================================= */

.numbers-section {
    padding: 80px 0;
    position: relative;
}

.numbers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 90, 242, 0.3), transparent);
}

.numbers-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(41, 151, 255, 0.3), transparent);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.number-item {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.number-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 30%;
    height: 40%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.number-value {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 30%, var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.number-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================
   6. FINAL CTA SECTION
   ========================================= */

.final-cta {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.final-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 30% 50%, rgba(191, 90, 242, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 500px 300px at 70% 50%, rgba(41, 151, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta .section-title-lg {
    font-size: 3rem;
}

.final-cta-desc {
    max-width: 550px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* =========================================
   7. ENHANCED COACHING CARD
   ========================================= */

.card-coaching {
    background: linear-gradient(135deg, var(--accent-purple), #7000ff, #5000cc);
    position: relative;
    overflow: hidden;
}

.card-coaching::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(60px);
}

.card-coaching-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}


/* =========================================
   8. ENTERPRISE CARD ENHANCED
   ========================================= */

.card-enterprise {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(41, 151, 255, 0.15);
}

.card-enterprise::before {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: rgba(41, 151, 255, 0.08);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

/* Enterprise mini-logos row */
.enterprise-logos {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.enterprise-logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

.enterprise-logo-pill i {
    font-size: 0.85rem;
    color: var(--accent-blue);
}


/* =========================================
   9. GRID PATTERN BACKGROUND OVERLAY
   ========================================= */

.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}


/* =========================================
   10. RESPONSIVE OVERRIDES
   ========================================= */

@media (max-width: 991px) {
    .hero-title-xl {
        font-size: 3.5rem;
    }

    .section-title-lg {
        font-size: 2.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .number-item:nth-child(2)::after {
        display: none;
    }

    .hero-stats-bar {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero-title-xl {
        font-size: 2.8rem;
    }

    .hero-premium {
        padding: 60px 0 40px;
    }

    .section-title-lg {
        font-size: 2rem;
    }

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

    .btn-primary-glow,
    .btn-outline-glass {
        width: 100%;
        justify-content: center;
    }

    .final-cta .section-title-lg {
        font-size: 2rem;
    }

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

    .number-value {
        font-size: 2.5rem;
    }

    .hero-stat::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title-xl {
        font-size: 2.2rem;
    }

    .hero-stats-bar {
        gap: 16px;
    }

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

    .number-value {
        font-size: 2rem;
    }

    .number-item {
        padding: 24px 12px;
    }

    .section-title-lg {
        font-size: 1.75rem;
    }

    .section-why {
        padding: 60px 0;
    }

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