/* 
 * v3-design-system.css
 * "Carbon Impact Premium" — Kemguep Smart Village
 * High-Contrast B2B Green Finance Identity
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
    /* Core Palette */
    --obsidian:        #0B1512;   /* Near-black with forest undertone */
    --obsidian-soft:   #111C17;   /* Card dark background */
    --electric-green:  #00C96B;   /* Primary accent — metrics & badges */
    --vivid-gold:      #E8B84B;   /* CTA & highlights */
    --arctic-white:    #F2F7F4;   /* Light section background */
    --pure-white:      #FFFFFF;
    --muted-green:     #4B7562;   /* Secondary text on light bg */
    --border-light:    #D8EDE3;   /* Subtle borders on light bg */
    --border-dark:     rgba(255,255,255,0.08); /* Subtle borders on dark bg */

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Montserrat', system-ui, sans-serif;

    /* Spacing */
    --section-pad: clamp(4rem, 8vw, 8rem);

    /* Elevation & Depth */
    --shadow-ambient: 0 20px 80px rgba(11, 21, 18, 0.05), 0 10px 30px rgba(11, 21, 18, 0.02);
    --shadow-premium: 0 40px 100px rgba(0, 201, 107, 0.08), 0 15px 40px rgba(0, 0, 0, 0.04);
}

/* ─── BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--pure-white);
    color: var(--obsidian);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ─── GLOBAL TEXT JUSTIFY ────────────────────────────────── */
p, li, td, blockquote {
    text-align: justify !important;
    hyphens: auto;
}
/* Exclude elements where justify makes no sense */
.nav-link, .btn-gold, .btn-outline-light, .btn-outline-dark,
.eyebrow, .stat-chip, .gauge-value, nav p, footer p,
h1 p, h2 p, h3 p, h4 p, h5 p, h6 p {
    text-align: unset !important;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, .font-heading { font-family: var(--font-heading); line-height: 1.1; }

.display-h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.0;
}

.display-h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--obsidian);
    margin-bottom: 1.5rem;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--vivid-gold);
}

.h2-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    font-weight: 500;
    font-style: italic;
    color: var(--muted-green);
    text-transform: none;
    margin-top: 0.5rem;
    letter-spacing: normal;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--vivid-gold);
    color: var(--obsidian);
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 32px rgba(232, 184, 75, 0.25);
}
.btn-gold:hover {
    background: #f5cc60;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(232, 184, 75, 0.4);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--pure-white);
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--obsidian);
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1.5px solid var(--obsidian);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-outline-dark:hover {
    background: var(--obsidian);
    color: white;
}

/* ─── INLINE EDGE BADGE ─────────────────────────────────────── */
.edge-badge-inline {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--electric-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 201, 107, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 10;
}
.edge-badge-inline::after {
    content: "IFC CERTIFIED";
    position: absolute;
    bottom: -15px;
    font-size: 0.5rem;
    font-weight: 900;
    color: var(--electric-green);
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0.8;
}
.edge-badge-inline:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 25px rgba(0, 201, 107, 0.2);
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav-transparent {
    background: transparent !important;
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}
.nav-scrolled {
    background: rgba(11, 21, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
}
.nav-link {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s ease;
}
.nav-link:hover { color: var(--electric-green); }
.nav-link-dark {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-green);
    transition: color 0.2s ease;
}
.nav-link-dark:hover { color: var(--obsidian); }

/* ─── CIRCULAR GAUGES ────────────────────────────────────── */
.gauge-container {
    position: relative;
    width: 180px;
    height: 180px;
}
.gauge-svg { transform: rotate(-90deg); }

.gauge-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 8;
}
.gauge-prog {
    fill: none;
    stroke: var(--electric-green);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: 565;
    transition: stroke-dashoffset 2s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 0 8px rgba(0, 201, 107, 0.5));
}
.gauge-prog-dark { stroke: var(--electric-green); }

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--obsidian);
}
.gauge-value-light { color: var(--pure-white) !important; }

/* ─── SDG CARDS ──────────────────────────────────────────── */
.sdg-card {
    padding: 2.5rem 2rem;
    background: var(--pure-white);
    border: 1.5px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
}
.sdg-card:hover {
    transform: translateY(-8px);
    border-color: var(--electric-green);
    box-shadow: 0 20px 60px rgba(0, 201, 107, 0.1);
}
.sdg-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--arctic-white);
    color: var(--obsidian);
    transition: all 0.4s ease;
}
.sdg-card:hover .sdg-icon {
    background: var(--electric-green);
    color: var(--obsidian);
}

/* ─── STAT CHIP ──────────────────────────────────────────── */
.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}
.stat-chip-green {
    background: rgba(0, 201, 107, 0.12);
    color: var(--electric-green);
    border: 1px solid rgba(0, 201, 107, 0.2);
}
.stat-chip-gold {
    background: rgba(232, 184, 75, 0.12);
    color: var(--vivid-gold);
    border: 1px solid rgba(232, 184, 75, 0.2);
}

/* ─── SECTION DIVIDER ────────────────────────────────────── */
.gold-line {
    width: 48px;
    height: 2px;
    background: var(--vivid-gold);
    margin-bottom: 1.5rem;
}

/* ─── ANIMATIONS ────────────────────────────────────────── */

/* ─── PROPTECH HUB UTILITIES ────────────────────────────── */
.glass-hud {
    background: rgba(11, 21, 18, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.neon-glow-green {
    box-shadow: 0 0 20px rgba(0, 201, 107, 0.3), inset 0 0 10px rgba(0, 201, 107, 0.1);
}

.neon-glow-gold {
    box-shadow: 0 0 20px rgba(232, 184, 75, 0.3), inset 0 0 10px rgba(232, 184, 75, 0.1);
}

/* ─── ANIMATIONS ────────────────────────────────────────── */
@keyframes ken-burns {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.15) translate(-2%, -2%); }
    100% { transform: scale(1) translate(0, 0); }
}

.animate-ken-burns {
    animation: ken-burns 40s ease-in-out infinite;
}

@keyframes hud-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-hud-float {
    animation: hud-float 6s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2.4); opacity: 0; }
}

.animate-pulse-ring::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--electric-green);
    border-radius: 50%;
    animation: pulse-ring 2.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

/* ─── BENTO & RELIEF ────────────────────────────────────── */
.bento-card {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.bento-card:hover {
    transform: scale(1.02);
    z-index: 20;
}

.premium-relief {
    box-shadow: var(--shadow-ambient);
    border: 1px solid var(--border-light);
    transition: all 0.5s var(--ease-out);
}
.premium-relief:hover {
    box-shadow: var(--shadow-premium);
    border-color: var(--electric-green);
}

/* ─── DEPTH SYSTEM: AURAS & GRIDS ───────────────────────── */
.aura-container {
    position: relative;
    overflow: hidden;
}

.aura-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.aura-green { background: var(--electric-green); width: 600px; height: 600px; }
.aura-gold { background: var(--vivid-gold); width: 500px; height: 500px; }

.tech-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 201, 107, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 201, 107, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

@keyframes aura-drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 8%) scale(1.1); }
    66% { transform: translate(-3%, 4%) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

.animate-aura-drift {
    animation: aura-drift 25s ease-in-out infinite;
}

.glass-relief {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-ambient);
}
