* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --secondary: #FFE66D;
    --accent: #FF9F1C;
    --dark: #2D3748;
    --light: #F7FAFC;
    --success: #48BB78;
    --warning: #ED8936;
    --purple: #6B46C1;
    --blue: #3182CE;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #F3E8FF 0%, #E0E7FF 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23p)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 30px;
    opacity: 0.95;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.trust-badge {
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.trust-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.trust-badge p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cta-buttons .btn svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.9);
    color: var(--dark);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* Territory Section */
.territory-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.territory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.territory-card {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Stack children vertically */
    justify-content: space-between; /* Push content apart, button to bottom */
}

.territory-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.territory-card:hover::before {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.territory-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.territory-card .btn {
    margin-top: auto; /* Push the button to the bottom */
}

.territory-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.territory-icon svg {
    width: 48px;
    height: 48px;
    color: white;
}

.territory-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.territory-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.territory-features {
    list-style: none;
    text-align: left;
    margin: 30px 0;
    flex-grow: 1; /* Allow features list to grow and push button down */
}

.territory-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
}

.territory-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

@media (min-width: 769px) {
    .benefits-section .benefits-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row for "Syarat & Ketentuan" */
    }
}

.benefit-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.benefit-icon {
    margin-bottom: 20px;
    display: block;
}

.benefit-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary); /* Or a suitable color */
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

/* Success Stories */
.success-section {
    padding: 80px 0;
    background: white;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.reward-program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

@media (min-width: 769px) {
    .success-section .success-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cards per row for "Program Reward Special" */
    }
    .success-section .success-grid:nth-of-type(2) { /* Targeting the second success-grid for 2 items */
        grid-template-columns: repeat(2, 1fr);
    }
    .company-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .reward-program-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 30px;
    }
    .reward-program-grid .success-card {
        grid-column: span 2;
    }
    .reward-program-grid .success-card:nth-child(4),
    .reward-program-grid .success-card:nth-child(5) {
        grid-column: span 3;
    }
}

.success-card {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.success-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.success-avatar svg {
    width: 48px;
    height: 48px;
    color: white;
}

/* CTA Section */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, #1A202C 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.urgency-text {
    background: #D03801; /* Higher contrast orange */
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex; /* Use inline-flex for alignment */
    align-items: center;
    gap: 10px; /* Space between icon and text */
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.urgency-text svg {
    width: 24px;
    height: 24px;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Support info in final CTA */
.support-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.support-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-info p svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
}

.support-info a {
    color: var(--secondary);
    text-decoration: none;
}

.support-info a:hover {
    text-decoration: underline;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .trust-badges {
        gap: 20px;
    }
    
    .trust-badge {
        padding: 15px;
        min-width: 120px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .territory-grid,
    .benefits-grid,
    .success-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Floating Action Button */
.fab-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.fab-whatsapp::before {
    content: ""; /* Remove emoji content */
}

.fab-whatsapp svg {
    width: 28px;
    height: 28px;
    color: white;
}
