/* ==========================================================================
   WIKILID AgTech & RWA Design Tokens
   ========================================================================== */
:root {
    --emerald-primary: #10b981;
    --emerald-hover: #059669;
    --emerald-glow: rgba(16, 185, 129, 0.2);
    --gold-accent: #e5b842;
    --gold-hover: #fcd35e;
    --bg-dark: #070d0a;
    --bg-header: rgba(10, 18, 14, 0.92);
    --bg-surface: #0f1a14;
    --bg-surface-hover: #16281f;
    --border-color: #1f382b;
    --text-white: #f9fafb;
    --text-muted: #9ca3af;
    --max-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-header);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
}

.brand-badge {
    background: var(--emerald-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.brand-name {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.ticker { color: var(--gold-accent); font-weight: 800; }

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--emerald-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--emerald-primary);
    color: #04120a;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--emerald-hover);
    box-shadow: 0 0 15px var(--emerald-glow);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 1.5rem;
    background: linear-gradient(180deg, rgba(7, 13, 10, 0.7) 0%, rgba(7, 13, 10, 0.95) 100%), 
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
    text-align: center;
}

.hero-container { max-width: 900px; margin: 0 auto; }

.hero-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 800;
}

.highlight { color: var(--emerald-primary); }

.hero-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

/* Metrics Bar */
.metrics-bar {
    background-color: var(--bg-surface);
    border-style: 1px solid var(--border-color);
    padding: 1.75rem 0;
    margin-top: -1px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--emerald-primary);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section Common */
.section { padding: 5rem 0; border-top: 1px solid var(--border-color); }
.section-title { font-size: 2rem; margin-bottom: 0.5rem; font-weight: 700; }
.section-desc { color: var(--text-muted); margin-bottom: 3rem; font-size: 1.05rem; }

/* Grid & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--emerald-primary);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body { padding: 1.5rem; }
.card-tag {
    font-size: 0.75rem;
    color: var(--gold-accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.card-title { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-white); }
.card-text { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.2rem; }

/* RWA Farm Metric Bar inside Cards */
.progress-bar-bg {
    background: var(--bg-dark);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0 1rem;
}

.progress-bar-fill {
    background: var(--emerald-primary);
    height: 100%;
}

/* Mobile Drawer */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar { width: 24px; height: 2px; background-color: var(--text-white); }

.mobile-drawer {
    display: none;
    flex-direction: column;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.drawer-link {
    color: var(--text-white);
    text-decoration: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-drawer.active { display: flex; }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    background: #040806;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--emerald-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-col a:hover { color: var(--text-white); }

/* ==========================================================================
   3D Animated $WKL Coin Emblem Component
   ========================================================================== */
.coin-container {
    width: 120px;
    height: 120px;
    perspective: 1000px;
    margin: 0 auto 1.5rem;
}

.coin-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spinCoin 10s linear infinite;
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold-accent);
    box-shadow: 0 0 25px rgba(229, 184, 66, 0.4), inset 0 0 15px rgba(16, 185, 129, 0.3);
}

.coin-front {
    background: radial-gradient(circle, #1f382b 0%, #0a120e 100%);
    color: var(--gold-accent);
}

.coin-back {
    background: radial-gradient(circle, #0a120e 0%, #1f382b 100%);
    color: var(--emerald-primary);
    transform: rotateY(180deg);
}

.coin-symbol {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.coin-subtext {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
}

@keyframes spinCoin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Logo styles */
.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-accent);
}

.hero-coin {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    box-shadow: 0 0 30px rgba(229, 184, 66, 0.35);
    border: 3px solid var(--gold-accent);
}



