/*--------- Affiliate Marketing Interface Styles ----------*/

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(10px, 3vw, 20px);
}

.hero-section {
    background: var(--pure-white, #ffffff);
    background-image: radial-gradient(circle at 50% 0%, rgba(141, 110, 99, 0.08), transparent 70%);
    padding: clamp(60px, 12vw, 120px) 0;
    text-align: center;
    color: var(--dark-coffee, #3e2723);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.4));
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: clamp(15px, 3vw, 25px);
    color: var(--dark-coffee, #3e2723);
    font-weight: 800;
    letter-spacing: clamp(-0.5px, -0.1vw, -1px);
}

.hero-subtitle {
    color: var(--text-muted, #6c757d);
    margin-bottom: clamp(30px, 5vw, 50px);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    max-width: clamp(300px, 90vw, 800px);
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(10px, 2vw, 20px);
}

.cta-button {
    background: var(--primary-brown, #8d6e63);
    color: var(--pure-white, #ffffff) !important;
    padding: clamp(15px, 3vw, 20px) clamp(30px, 5vw, 50px);
    border-radius: clamp(25px, 5vw, 50px);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(141, 110, 99, 0.25);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid transparent;
}

.cta-button:hover, .cta-button:focus {
    background: var(--pure-white, #ffffff);
    color: var(--primary-brown, #8d6e63) !important;
    transform: translateY(clamp(-3px, -0.5vw, -5px)) scale(1.02);
    box-shadow: 0 12px 30px rgba(141, 110, 99, 0.15);
    border-color: var(--primary-brown, #8d6e63);
    outline: none;
}

.cta-button:active {
    transform: translateY(0) scale(1);
}

/* Common Card Styles */
.card {
    background: var(--glass-bg, rgba(255, 255, 255, 0.7));
    backdrop-filter: var(--backdrop-blur, blur(10px));
    border-radius: clamp(12px, 3vw, 20px);
    box-shadow: var(--glass-shadow, 0 8px 32px 0 rgba(141, 110, 99, 0.15));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.4));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(clamp(-6px, -1vw, -12px));
    box-shadow: var(--glass-shadow-hover, 0 12px 40px 0 rgba(141, 110, 99, 0.25));
    background: var(--pure-white, #ffffff);
}

.section-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    color: var(--primary-brown, #8d6e63);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

/* Feature Cards */
.features-section {
    background-color: var(--pure-white, #ffffff);
    padding: clamp(60px, 10vw, 100px) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 25vw, 250px), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.feature-card {
    padding: clamp(20px, 4vw, 40px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--primary-brown, #8d6e63);
    margin-bottom: clamp(15px, 3vw, 25px);
    background: rgba(141, 110, 99, 0.08);
    width: clamp(70px, 10vw, 100px);
    height: clamp(70px, 10vw, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-brown, #8d6e63);
    color: var(--pure-white, #ffffff);
    transform: scale(1.1);
}

.feature-card h3 {
    color: var(--dark-coffee, #3e2723);
    margin-bottom: clamp(10px, 2vw, 15px);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.feature-text {
    color: var(--text-muted, #6c757d);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
}

/* Commission Tiers */
.commission-tiers {
    background-color: var(--off-white, #f8f9fa);
    padding: clamp(60px, 10vw, 100px) 0;
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.tier-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 30vw, 300px), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    justify-content: center;
}

.tier-card {
    padding: clamp(25px, 5vw, 50px) clamp(15px, 4vw, 35px);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tier-card:hover {
    z-index: 2;
}

.tier-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: clamp(15px, 3vw, 20px);
    font-weight: 700;
}

.commission {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--dark-coffee, #3e2723) !important;
    margin: clamp(15px, 3vw, 25px) 0;
    background: linear-gradient(135deg, var(--primary-brown, #8d6e63), var(--dark-coffee, #3e2723));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sales-range {
    background-color: #6c757d;
    color: white;
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
    border-radius: clamp(4px, 1vw, 8px);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    display: inline-block;
}

.tier-desc {
    color: var(--text-muted, #6c757d);
    margin-top: clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

/* Stats Section */
.stats-section {
    padding: clamp(60px, 10vw, 100px) 0;
    text-align: center;
    color: var(--pure-white, #ffffff);
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.stats-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 20vw, 250px), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.stat-card {
    padding: clamp(10px, 2vw, 1rem);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
}

.stat-label {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================================================== */
/* Testimonials (Synced perfectly with home.css)      */
/* ==================================================== */

.testimonials-section {
    padding: clamp(40px, 8vw, 5rem) 0;
}

.alt-bg {
    background-color: #f8f9fa;
}

.testimonials-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-subtitle {
    color: var(--text-muted, #6c757d);
    max-width: 600px;
    margin: 0 auto;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.testimonial-card {
    background: var(--pure-white, #ffffff);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: clamp(10px, 3vw, 15px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(141, 110, 99, 0.1);
}

.quote-icon {
    color: var(--primary-brown, #8d6e63);
    opacity: 0.5;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.reviewer-avatar {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto clamp(0.75rem, 2vw, 1rem) auto;
    border: 3px solid #eaeaea;
}

.reviewer-name {
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted, #6c757d);
    flex-grow: 1;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
}

.rating {
    color: #ffc107;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

.testimonials-action {
    text-align: center;
    margin-top: 15px;
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-brown, #8d6e63);
    color: var(--primary-brown, #8d6e63);
    padding: clamp(12px, 2.5vw, 15px) clamp(25px, 5vw, 40px);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.btn-outline:hover, .btn-outline:focus {
    background: var(--primary-brown, #8d6e63);
    color: white;
    outline: none;
}

/* Hardware Accelerated CSS Infinite Marquee Animations */
.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(10px, 2vw, 20px) 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 45s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    padding-right: clamp(1.5rem, 4vw, 2.5rem);
}

.marquee-item {
    flex-shrink: 0;
}

.testimonial-wrapper.marquee-item {
    width: clamp(280px, 30vw, 350px);
    display: flex;
}

@keyframes marqueeScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}