/* ============================================
   MUDAHCUAN - LANDING PAGE STYLES
   Version 2.0 - Clean & Professional
   ============================================ */

/* ==== CSS Variables ==== */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card: #ffffff;
    --card-hover: #f8fafc;
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --gradient-primary: linear-gradient(135deg, #3b82f6, #2563eb);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6, #7c3aed);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==== Dark Theme ==== */
[data-theme="dark"] {
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --card: #1e293b;
    --card-hover: #273548;
    --text-main: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border: #334155;
    --border-light: #273548;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.5);
}

/* ==== Reset & Base ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==== Mobile Frame Container ==== */
.mobile-frame {
    max-width: 480px;
    width: 100%;
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    box-shadow: var(--shadow-xl);
}

/* ==== Top Navigation ==== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

[data-theme="dark"] .top-nav {
    background: rgba(15, 23, 42, 0.85);
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(59, 130, 246, 0.2));
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-theme {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-theme:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--card-hover);
}

.btn-login {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

/* ==== Hero Section ==== */
.hero {
    padding: 32px 20px 36px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.hero-badge .icon-star {
    color: #f59e0b;
    font-size: 0.7rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 2px;
}

.hero-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px;
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.stat-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: var(--border);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: var(--card);
    color: var(--text-main);
    padding: 16px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    transition: var(--transition);
    min-width: 52px;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--card-hover);
}

/* ==== Features Section ==== */
.features-section {
    padding: 0 20px 28px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.section-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.feature-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.feature-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.feature-icon.orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.feature-card h4 {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==== Live Transactions ==== */
.transactions-section {
    padding: 0 20px 28px;
}

.trust-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.trust-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.total-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.total-info strong {
    color: var(--success);
    font-weight: 800;
}

/* Payout Container */
.payout-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.payout-fade-top,
.payout-fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 32px;
    z-index: 2;
    pointer-events: none;
}

.payout-fade-top {
    top: 0;
    background: linear-gradient(to bottom, var(--card), transparent);
}

.payout-fade-bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--card), transparent);
}

.payout-list {
    padding: 4px 0;
}

.payout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.payout-item:hover {
    background: var(--card-hover);
}

.payout-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    position: relative;
    flex-shrink: 0;
}

.avatar-dana { background: #e8f0fe; color: #108ee9; }
.avatar-gopay { background: #e8f8f0; color: #00aa5b; }
.avatar-ovo { background: #f3e8f7; color: #6c3a96; }
.avatar-bca { background: #e8f4f8; color: #0066ae; }
.avatar-bri { background: #fef3e8; color: #e87822; }
.avatar-mandiri { background: #e8f0f4; color: #004589; }

[data-theme="dark"] .avatar-dana { background: rgba(16, 142, 233, 0.15); }
[data-theme="dark"] .avatar-gopay { background: rgba(0, 170, 91, 0.15); }
[data-theme="dark"] .avatar-ovo { background: rgba(108, 58, 150, 0.15); }
[data-theme="dark"] .avatar-bca { background: rgba(0, 102, 174, 0.15); }
[data-theme="dark"] .avatar-bri { background: rgba(232, 120, 34, 0.15); }
[data-theme="dark"] .avatar-mandiri { background: rgba(0, 69, 137, 0.15); }

.verified-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45rem;
    color: white;
}

.user-info strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 1px;
    font-weight: 700;
}

.user-info span {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
}

.payout-detail {
    text-align: right;
}

.payout-amount {
    font-weight: 800;
    color: var(--success);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.payout-time {
    font-size: 0.6rem;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: flex-end;
}

/* ==== Testimonials ==== */
.testimonials-section {
    padding: 0 20px 28px;
}

.testimonial-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.testimonial-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.testimonial-meta .name {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-main);
}

.testimonial-meta .date {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.testimonial-rating {
    margin-bottom: 8px;
    color: #f59e0b;
    font-size: 0.75rem;
}

.testimonial-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* ==== Partners Section ==== */
.partners-section {
    padding: 0 20px 28px;
}

.partners-grid {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    border: 1px solid var(--border-light);
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.partner-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.partner-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.partner-item:hover .partner-icon {
    background: var(--gradient-primary);
    color: white;
}

/* ==== CTA Bottom ==== */
.cta-bottom {
    margin: 0 20px 28px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 28px 22px;
    text-align: center;
    color: white;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-bottom::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate-bg 15s linear infinite;
}

@keyframes rotate-bg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-bottom h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 6px;
    position: relative;
}

.cta-bottom p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 18px;
    position: relative;
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==== Footer ==== */
.footer {
    text-align: center;
    padding: 20px 20px 28px;
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--success);
    font-weight: 600;
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 0.65rem;
    color: var(--text-light);
}

/* ==== Responsive ==== */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 8px;
        padding: 12px;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .feature-card {
        padding: 14px 10px;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .btn-outline {
        padding: 12px;
    }
}