/* ============================================================
   HOME.CSS — Landing Page Styles
   ============================================================ */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

/* Background effects */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79, 110, 247, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(159, 95, 255, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: var(--z-base);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-2xs) var(--space-md);
    background: rgba(79, 110, 247, 0.1);
    border: 1px solid rgba(79, 110, 247, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--accent-hover);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
    font-size: var(--fs-display);
    font-weight: var(--fw-extrabold);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s var(--ease-out) 0.1s forwards;
    opacity: 0;
}

.hero-title .text-gradient {
    display: inline;
}

.hero-description {
    font-size: var(--fs-body-lg);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xl);
    max-width: 480px;
    animation: fadeInUp 0.6s var(--ease-out) 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    animation: fadeInUp 0.6s var(--ease-out) 0.4s forwards;
    opacity: 0;
}

.hero-stat .stat-number {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    line-height: 1;
}

.hero-stat .stat-number .text-gradient {
    display: inline;
}

.hero-stat .stat-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-top: var(--space-2xs);
}

/* Hero Image / Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s var(--ease-out) 0.3s forwards;
    opacity: 0;
}

.hero-visual img,
.hero-visual video {
    width: 100%;
    min-height: 550px;
    max-width: 480px;
    filter: drop-shadow(0 20px 60px rgba(79, 110, 247, 0.2));
    animation: float 6s ease-in-out infinite;
    border-radius: var(--radius-xl);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.hero-glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0.3;
    filter: blur(40px);
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

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

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0.3;
    animation: float-particle 8s linear infinite;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .hero-visual img {
        max-width: 380px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        gap: var(--space-xl);
    }
}


/* ============================================================
   PRODUCT SHOWCASE SECTION
   ============================================================ */
.products-showcase {
    position: relative;
    background: var(--bg-secondary);
}

.product-card-lg {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-2xl);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.product-card-lg:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
}

.product-card-lg+.product-card-lg {
    margin-top: var(--space-xl);
}

.product-card-lg .product-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.product-card-lg .product-image img {
    width: 100%;
    transition: transform var(--duration-slow) var(--ease-out);
}

.product-card-lg:hover .product-image img {
    transform: scale(1.03);
}

.product-card-lg .product-info {
    padding: var(--space-lg) 0;
}

.product-card-lg .product-category {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.product-card-lg .product-name {
    font-size: var(--fs-h2);
    margin-bottom: var(--space-md);
}

.product-card-lg .product-desc {
    font-size: var(--fs-body);
    margin-bottom: var(--space-lg);
    line-height: var(--lh-relaxed);
}

.product-card-lg .product-features-list {
    margin-bottom: var(--space-xl);
}

.product-card-lg .product-features-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

.product-card-lg .product-features-list li svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .product-card-lg {
        grid-template-columns: 1fr;
        padding: var(--space-lg);
    }

    .product-card-lg:nth-child(even) .product-image {
        order: -1;
    }
}


/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
    position: relative;
}

.feature-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.feature-card .card-icon {
    margin: 0 auto var(--space-lg);
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    margin: 0 auto;
    max-width: 280px;
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
    position: relative;
    background: var(--bg-secondary);
}

.steps-container {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(90deg,
            var(--accent-primary),
            var(--accent-secondary),
            var(--accent-primary));
    opacity: 0.3;
}

.step-card {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    color: var(--accent-primary);
    transition: all var(--duration-normal) var(--ease-out);
}

.step-card:hover .step-number {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

.step-card h3 {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-sm);
}

.step-card p {
    margin: 0 auto;
    max-width: 260px;
    font-size: var(--fs-small);
}

@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .steps-container::before {
        display: none;
    }

    .step-card {
        max-width: 340px;
    }
}


/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-md) 0;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 380px;
    max-width: 380px;
    scroll-snap-align: center;
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-md);
    color: var(--warning);
    font-size: 1rem;
}

.testimonial-text {
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-gradient);
}

.testimonial-info .name {
    font-weight: var(--fw-semibold);
    font-size: var(--fs-small);
    color: var(--text-primary);
}

.testimonial-info .role {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.testimonials-nav button {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.testimonials-nav button:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

@media (max-width: 480px) {
    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
    }
}


/* ============================================================
   STATS / TRUST BAR
   ============================================================ */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-2xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item .stat-value {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: var(--fw-bold);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-item .stat-desc {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

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

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   NEWSLETTER CTA
   ============================================================ */
.newsletter-section {
    position: relative;
}

.newsletter-container {
    text-align: center;
    padding: var(--space-3xl) var(--space-2xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.newsletter-container::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.15;
}

.newsletter-container h2 {
    margin-bottom: var(--space-md);
}

.newsletter-container p {
    margin: 0 auto var(--space-xl);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form .form-input {
    flex: 1;
    background: var(--bg-primary);
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

@keyframes float {

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

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}