/* ============================================================
   AgriMarket — Landing Page Styles
   ============================================================ */

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero__three-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 42, 29, 0.4) 0%,
        rgba(15, 42, 29, 0.6) 50%,
        rgba(15, 42, 29, 0.8) 100%
    );
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: var(--space-4xl) 0;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    background: rgba(82, 183, 136, 0.15);
    border: 1px solid rgba(82, 183, 136, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-lighter);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero__title-highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 550px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero__stats {
    display: flex;
    gap: var(--space-2xl);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__stat {
    text-align: left;
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}

.hero__stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating decorative elements */
.hero__float-1 {
    position: absolute;
    right: 10%;
    top: 20%;
    font-size: 3rem;
    z-index: 3;
    opacity: 0.6;
    animation: float 5s ease-in-out infinite;
}

.hero__float-2 {
    position: absolute;
    right: 25%;
    bottom: 20%;
    font-size: 2.5rem;
    z-index: 3;
    opacity: 0.5;
    animation: float 7s ease-in-out 1s infinite;
}

.hero__float-3 {
    position: absolute;
    right: 5%;
    bottom: 35%;
    font-size: 2rem;
    z-index: 3;
    opacity: 0.4;
    animation: float 6s ease-in-out 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(1.5); opacity: 1; }
}

/* ============================================================
   Features Section
   ============================================================ */
.features {
    padding: var(--space-4xl) 0;
    background: var(--off-white);
    position: relative;
}

.features__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.features__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.features__title {
    margin-bottom: var(--space-md);
}

.features__subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card__icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: rgba(45, 106, 79, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-card__icon {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(5deg);
}

.feature-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-card__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

/* ============================================================
   Categories Section
   ============================================================ */
.categories-section {
    padding: var(--space-4xl) 0;
    background: var(--surface);
}

.categories-scroll {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    padding: var(--space-md) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.category-card__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.category-card__count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* ============================================================
   How It Works
   ============================================================ */
.how-it-works {
    padding: var(--space-4xl) 0;
    background: var(--off-white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

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

.step__number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.step:hover .step__number {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.step__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.step__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

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

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-section__bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
}

.cta-content .hero__actions {
    justify-content: center;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
    padding: var(--space-4xl) 0;
    background: var(--surface);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-card__quote {
    font-size: 2rem;
    color: var(--primary-lighter);
    opacity: 0.5;
    margin-bottom: var(--space-md);
}

.testimonial-card__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-style: italic;
}

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

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-card__name {
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-card__role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

    .hero__actions {
        flex-direction: column;
    }

    .hero__stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
}
