/* ==========================================================================
   Desa Konoha Landing Page - Main Styles
   Design: Warm Rustic Modern
   ========================================================================== */

/* CSS Variables */
:root {
    /* Primary Colors */
    --forest-green: #2D5A27;
    --leaf-green: #4CAF50;
    --leaf-green-light: #81C784;
    --leaf-green-dark: #388E3C;
    --sky-blue: #87CEEB;

    /* Secondary Colors */
    --wheat-cream: #F5F5DC;
    --earth-brown: #8B4513;
    --earth-brown-light: #A0522D;
    --sunflower: #FFD700;

    /* Neutrals */
    --cloud-white: #FFFFFF;
    --mist-gray: #F8F9FA;
    --charcoal: #2C3E50;
    --text-gray: #5A6C7D;
    --border-gray: #E0E0E0;

    /* Badge Colors */
    --badge-inti: #4CAF50;
    --badge-populer: #FFD700;
    --badge-baru: #87CEEB;
    --badge-unik: #9B59B6;
    --badge-seru: #FF6B35;
    --badge-dinamis: #00BCD4;
    --badge-otomasi: #607D8B;
    --badge-kompetisi: #E74C3C;
    --badge-weekend: #E91E63;
    --badge-koleksi: #FFC107;
    --badge-craft: #795548;
    --badge-bonus: #8BC34A;
    --badge-event: #3F51B5;
    --badge-trade: #00BCD4;

    /* Typography */
    --font-display: 'Baloo 2', cursive;
    --font-body: 'Quicksand', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 8px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 90, 39, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 90, 39, 0.12);
    --shadow-lg: 0 8px 40px rgba(45, 90, 39, 0.16);
    --shadow-xl: 0 16px 60px rgba(45, 90, 39, 0.2);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--cloud-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Grain Overlay
   ========================================================================== */

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Container
   ========================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    text-align: center;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.section-title-light {
    color: var(--cloud-white);
}

.title-icon {
    display: inline-block;
    margin-right: 8px;
    transform: translateY(4px);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--leaf-green);
    color: var(--cloud-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--leaf-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--earth-brown);
    border-color: var(--earth-brown);
}

.btn-secondary:hover {
    background: var(--earth-brown);
    color: var(--cloud-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--forest-green);
}

.logo-icon {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--leaf-green);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--forest-green);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--leaf-green);
    color: var(--cloud-white);
    border-radius: 50px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--leaf-green-dark);
    transform: scale(1.05);
}

/* Language Toggle Button */
.lang-toggle {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--forest-green);
    color: var(--forest-green);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: var(--font-body);
    min-width: 50px;
}

.lang-toggle:hover {
    background: var(--forest-green);
    color: var(--cloud-white);
    transform: scale(1.05);
}

.lang-toggle:active {
    transform: scale(0.98);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition-base);
}

/* ==========================================================================
   Floating CTA
   ========================================================================== */

.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #25D366;
    color: var(--cloud-white);
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.floating-cta:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.wa-icon {
    width: 24px;
    height: 24px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 40px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 60px rgba(37, 211, 102, 0.6);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--sky-blue) 0%, var(--wheat-cream) 50%, var(--cloud-white) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Sun */
.sun {
    position: absolute;
    top: 80px;
    right: 10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--sunflower) 0%, rgba(255, 215, 0, 0.3) 70%);
    border-radius: 50%;
    animation: sun-glow 4s ease-in-out infinite;
}

@keyframes sun-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 100px rgba(255, 215, 0, 0.6);
    }
}

/* Clouds */
.cloud {
    position: absolute;
    background: var(--cloud-white);
    border-radius: 100px;
    opacity: 0.8;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: var(--cloud-white);
    border-radius: 50%;
}

.cloud-1 {
    top: 100px;
    left: 5%;
    width: 180px;
    height: 50px;
    animation: cloud-float 20s linear infinite;
}

.cloud-1::before {
    width: 80px;
    height: 80px;
    top: -40px;
    left: 20px;
}

.cloud-1::after {
    width: 60px;
    height: 60px;
    top: -30px;
    right: 30px;
}

.cloud-2 {
    top: 150px;
    right: 20%;
    width: 140px;
    height: 40px;
    animation: cloud-float 25s linear infinite reverse;
    animation-delay: -5s;
}

.cloud-2::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud-2::after {
    width: 50px;
    height: 50px;
    top: -25px;
    right: 20px;
}

.cloud-3 {
    top: 200px;
    left: 30%;
    width: 100px;
    height: 30px;
    animation: cloud-float 30s linear infinite;
    animation-delay: -10s;
}

.cloud-3::before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 10px;
}

@keyframes cloud-float {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(calc(100vw + 100px));
    }
}

/* Hills */
.hill {
    position: absolute;
    bottom: 0;
    border-radius: 50% 50% 0 0;
}

.hill-1 {
    left: -10%;
    width: 60%;
    height: 200px;
    background: linear-gradient(180deg, var(--leaf-green-light) 0%, var(--leaf-green) 100%);
}

.hill-2 {
    right: -10%;
    width: 70%;
    height: 250px;
    background: linear-gradient(180deg, var(--leaf-green) 0%, var(--forest-green) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-title {
    font-size: clamp(32px, 6vw, 56px);
    margin-bottom: 20px;
    color: var(--charcoal);
}

.hero-title .highlight {
    color: var(--forest-green);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(76, 175, 80, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    backdrop-filter: blur(4px);
}

.trust-badge .check {
    color: var(--leaf-green);
    font-weight: 700;
}

/* Hero Visual - Farm Scene */
.hero-visual {
    position: relative;
    height: 500px;
}

.farm-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Farm Ground */
.farm-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, var(--earth-brown-light) 0%, var(--earth-brown) 100%);
    border-radius: 20px 20px 0 0;
}

.farm-ground::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--earth-brown) 0px,
        var(--earth-brown) 20px,
        transparent 20px,
        transparent 40px
    );
    opacity: 0.5;
}

/* Farm Fence */
.farm-fence {
    position: absolute;
    bottom: 60px;
    left: 5%;
    right: 5%;
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        #C4A574 0px,
        #C4A574 8px,
        transparent 8px,
        transparent 30px
    );
    border-radius: 4px;
}

.farm-fence::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 8px;
    background: #C4A574;
}

.farm-fence::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    height: 8px;
    background: #C4A574;
}

/* Plants */
.plant {
    position: absolute;
    bottom: 80px;
}

.plant-1 { left: 15%; }
.plant-2 { left: 35%; }
.plant-3 { left: 55%; }
.plant-4 { left: 75%; }

.plant .stem {
    width: 8px;
    height: 80px;
    background: linear-gradient(180deg, var(--leaf-green-dark) 0%, var(--forest-green) 100%);
    margin: 0 auto;
    border-radius: 4px;
    transform-origin: bottom center;
    animation: plant-sway 3s ease-in-out infinite;
}

.plant-2 .stem { animation-delay: -0.5s; height: 100px; }
.plant-3 .stem { animation-delay: -1s; height: 70px; }
.plant-4 .stem { animation-delay: -1.5s; height: 90px; }

@keyframes plant-sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.plant .leaves {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--leaf-green);
    border-radius: 50% 0 50% 0;
    transform-origin: bottom center;
}

.plant .leaves::before,
.plant .leaves::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--leaf-green-light);
    border-radius: 50% 0 50% 0;
}

.plant .leaves::before {
    top: -15px;
    left: -20px;
    transform: rotate(-45deg);
}

.plant .leaves::after {
    top: -15px;
    right: -20px;
    transform: rotate(45deg);
}

.plant .fruit {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at 30% 30%, #FF6B6B 0%, #E74C3C 100%);
    border-radius: 50%;
    box-shadow: inset -4px -4px 8px rgba(0,0,0,0.2);
    animation: fruit-bounce 2s ease-in-out infinite;
}

.plant-2 .fruit {
    background: radial-gradient(circle at 30% 30%, #FFE066 0%, #F1C40F 100%);
    animation-delay: -0.3s;
}

.plant-3 .fruit {
    background: radial-gradient(circle at 30% 30%, #FF9F43 0%, #E67E22 100%);
    animation-delay: -0.6s;
}

.plant-4 .fruit {
    background: radial-gradient(circle at 30% 30%, #A29BFE 0%, #6C5CE7 100%);
    animation-delay: -0.9s;
}

@keyframes fruit-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* Farmer */
.farmer {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
}

.farmer-body {
    width: 40px;
    height: 60px;
    background: linear-gradient(180deg, #5DADE2 0%, #3498DB 100%);
    border-radius: 8px 8px 4px 4px;
    position: relative;
}

.farmer-body::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5px;
    width: 12px;
    height: 30px;
    background: var(--earth-brown);
    border-radius: 4px;
}

.farmer-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 5px;
    width: 12px;
    height: 30px;
    background: var(--earth-brown);
    border-radius: 4px;
}

.farmer-head {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: #FDBF6F;
    border-radius: 50%;
}

.farmer-hat {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: var(--wheat-cream);
    border-radius: 50% 50% 0 0;
}

.farmer-hat::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -5px;
    width: 50px;
    height: 8px;
    background: var(--wheat-cream);
    border-radius: 4px;
}

/* Barn */
.barn {
    position: absolute;
    bottom: 80px;
    right: 5%;
    width: 80px;
    height: 70px;
    background: linear-gradient(180deg, #C0392B 0%, #922B21 100%);
    border-radius: 4px 4px 0 0;
}

.barn::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 35px solid #922B21;
}

.barn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 35px;
    background: #5D4037;
    border-radius: 12px 12px 0 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 12px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-gray);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-gray);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-scroll 1.5s ease-in-out infinite;
}

@keyframes wheel-scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 0.5; }
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats {
    padding: var(--section-padding);
    background: var(--forest-green);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--leaf-green-light), var(--sunflower), var(--leaf-green-light));
}

.stats-title {
    color: var(--cloud-white);
    margin-bottom: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(4px);
    transition: var(--transition-base);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--sunflower);
    display: inline;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--sunflower);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-extra {
    text-align: center;
    margin-top: 40px;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--cloud-white);
}

.stats-extra .infinity {
    display: inline-block;
    font-size: 32px;
    color: var(--sunflower);
    animation: infinity-glow 2s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes infinity-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

/* ==========================================================================
   Leaderboard Section
   ========================================================================== */

.leaderboard {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--wheat-cream) 0%, var(--cloud-white) 100%);
}

.leaderboard-container {
    max-width: 700px;
    margin: 0 auto;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--cloud-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.leaderboard-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.leaderboard-item.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--charcoal);
}

.leaderboard-item.rank-2 {
    background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
}

.leaderboard-item.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: var(--cloud-white);
}

.leaderboard-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--forest-green);
    color: var(--cloud-white);
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.leaderboard-item.rank-1 .leaderboard-rank {
    background: var(--charcoal);
}

.leaderboard-item.rank-2 .leaderboard-rank {
    background: #555;
}

.leaderboard-item.rank-3 .leaderboard-rank {
    background: #8B4513;
}

.leaderboard-rank .rank-icon {
    font-size: 1.5rem;
}

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: inherit;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.farmer-role {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    background: rgba(45, 90, 39, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.leaderboard-item.rank-1 .farmer-role,
.leaderboard-item.rank-3 .farmer-role {
    background: rgba(255, 255, 255, 0.2);
}

.farmer-actual-name {
    font-weight: 700;
    font-size: 1rem;
}

.leaderboard-farm {
    font-size: 0.85rem;
    opacity: 0.8;
    color: inherit;
}

.leaderboard-money {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--forest-green);
    flex-shrink: 0;
}

.leaderboard-item.rank-1 .leaderboard-money,
.leaderboard-item.rank-3 .leaderboard-money {
    color: inherit;
}

.leaderboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px;
    color: var(--text-gray);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-gray);
    border-top-color: var(--leaf-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.leaderboard-error {
    text-align: center;
    padding: 32px;
    color: var(--text-gray);
}

.leaderboard-cta {
    text-align: center;
    margin-top: 32px;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    padding: var(--section-padding);
    background: var(--mist-gray);
}

.feature-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.tab-btn {
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    background: var(--cloud-white);
    border-radius: 50px;
    border: 2px solid var(--border-gray);
    transition: var(--transition-base);
}

.tab-btn:hover {
    border-color: var(--leaf-green);
    color: var(--leaf-green);
}

.tab-btn.active {
    background: var(--leaf-green);
    border-color: var(--leaf-green);
    color: var(--cloud-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 32px 24px;
    background: var(--cloud-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--leaf-green);
    transform: scaleX(0);
    transition: var(--transition-base);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    color: var(--cloud-white);
}

.badge-inti { background: var(--badge-inti); }
.badge-populer { background: var(--badge-populer); color: var(--charcoal); }
.badge-baru { background: var(--badge-baru); }
.badge-unik { background: var(--badge-unik); }
.badge-seru { background: var(--badge-seru); }
.badge-dinamis { background: var(--badge-dinamis); }
.badge-otomasi { background: var(--badge-otomasi); }
.badge-kompetisi { background: var(--badge-kompetisi); }
.badge-weekend { background: var(--badge-weekend); }
.badge-koleksi { background: var(--badge-koleksi); color: var(--charcoal); }
.badge-craft { background: var(--badge-craft); }
.badge-bonus { background: var(--badge-bonus); }
.badge-event { background: var(--badge-event); }
.badge-trade { background: var(--badge-trade); }

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    transition: var(--transition-base);
}

.feature-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.feature-card.hidden {
    display: none;
}

/* ==========================================================================
   How to Play Section
   ========================================================================== */

.howtoplay {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--wheat-cream) 0%, var(--cloud-white) 100%);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    padding: 24px;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--leaf-green);
    color: var(--cloud-white);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.step-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}

.step-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.step-desc {
    font-size: 14px;
    color: var(--text-gray);
}

.step-desc code {
    background: var(--leaf-green);
    color: var(--cloud-white);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -16px;
    width: 32px;
    height: 2px;
    background: var(--leaf-green);
}

.step-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--leaf-green);
}

.step:last-child .step-connector {
    display: none;
}

.howtoplay-cta {
    text-align: center;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials {
    padding: var(--section-padding);
    background: var(--forest-green);
    position: relative;
    overflow: hidden;
}

.testimonials-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.leaf {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--leaf-green-light);
    border-radius: 0 50% 50% 50%;
    opacity: 0.2;
    transform: rotate(45deg);
}

.leaf-1 {
    top: 10%;
    left: 5%;
    animation: leaf-float 15s ease-in-out infinite;
}

.leaf-2 {
    top: 60%;
    right: 10%;
    animation: leaf-float 18s ease-in-out infinite reverse;
    animation-delay: -3s;
}

.leaf-3 {
    bottom: 20%;
    left: 15%;
    animation: leaf-float 20s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes leaf-float {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-30px); }
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cloud-white);
    transition: var(--transition-base);
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

.testimonial-track {
    overflow: hidden;
}

.testimonial-card {
    display: none;
    padding: 40px;
    background: var(--cloud-white);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.testimonial-card.active {
    display: block;
    animation: fade-slide 0.5s ease;
}

@keyframes fade-slide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-rating {
    margin-bottom: 24px;
}

.testimonial-rating span {
    font-size: 24px;
    margin: 0 2px;
}

.testimonial-quote {
    font-size: 18px;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 32px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--leaf-green), var(--forest-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--cloud-white);
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--charcoal);
    font-size: 16px;
}

.author-role {
    font-size: 14px;
    color: var(--text-gray);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition-base);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: var(--cloud-white);
    transform: scale(1.2);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq {
    padding: var(--section-padding);
    background: var(--mist-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    background: var(--cloud-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    text-align: left;
    transition: var(--transition-base);
}

.faq-question:hover {
    background: var(--wheat-cream);
}

.faq-icon {
    transition: var(--transition-base);
    font-size: 12px;
    color: var(--leaf-green);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-gray);
    line-height: 1.8;
}

.faq-answer code {
    background: var(--leaf-green);
    color: var(--cloud-white);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* ==========================================================================
   Footer CTA
   ========================================================================== */

.footer-cta {
    padding: 100px 0;
    background: var(--forest-green);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234CAF50' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 24px;
}

.cta-title {
    font-size: clamp(28px, 5vw, 42px);
    color: var(--cloud-white);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: 60px 0 30px;
    background: var(--charcoal);
    color: var(--cloud-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--cloud-white);
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-links h4,
.footer-social h4,
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--cloud-white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--cloud-white);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cloud-white);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--leaf-green);
    transform: translateY(-4px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-contact p {
    margin-bottom: 12px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: var(--cloud-white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 8px;
}

.tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: var(--cloud-white);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}
