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

:root {
    --green-primary: #2d8659;
    --green-light: #4ade80;
    --green-dark: #1e5d3f;
    --green-accent: #10b981;
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-lighter: #f8f9fa;
    --bg-slate-50: #f8fafc;
    --bg-slate-100: #f1f5f9;
    
    --text-dark: #0f172a;
    --text-slate-800: #1e293b;
    --text-slate-700: #334155;
    --text-slate-600: #475569;
    --text-slate-500: #64748b;
    --text-slate-400: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-slate-200: #e2e8f0;
    --border-slate-300: #cbd5e1;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-green: 0 10px 40px -10px rgba(45, 134, 89, 0.3);
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-white: #0f172a;
    --bg-light: #1e293b;
    --bg-lighter: #334155;
    --bg-slate-50: #1e293b;
    --bg-slate-100: #334155;
    
    --text-dark: #f8fafc;
    --text-slate-800: #f1f5f9;
    --text-slate-700: #e2e8f0;
    --text-slate-600: #cbd5e1;
    --text-slate-500: #94a3b8;
    --text-slate-400: #64748b;
    
    --border-color: #334155;
    --border-slate-200: #475569;
    --border-slate-300: #64748b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    cursor: none;
}

body.loaded {
    cursor: auto;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--green-primary) 0%, var(--green-accent) 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 8px rgba(45, 134, 89, 0.4);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9998;
    display: none;
}

body.loaded .custom-cursor {
    display: block;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--green-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-fast);
    opacity: 0.7;
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 1px solid var(--green-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-base);
    opacity: 0.25;
}

.custom-cursor.hover .cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
}

.custom-cursor.hover .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.5;
}

/* Particle Background */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Premium Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: all var(--transition-base);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.8);
    border-bottom-color: rgba(51, 65, 85, 0.8);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--green-primary);
    background: rgba(45, 134, 89, 0.05);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-slate-700);
    transition: all var(--transition-base);
    position: absolute;
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--green-primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
    transition: all var(--transition-base);
    position: relative;
}

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

.logo:hover::after {
    width: 100%;
}

.logo-sub {
    font-weight: 400;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-slate-700);
    font-weight: 400;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-primary);
    transition: width var(--transition-base);
    border-radius: 2px;
}

.nav-menu a:hover {
    color: var(--green-primary);
}

.nav-menu a:hover::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-slate-700);
    transition: all var(--transition-base);
    border-radius: 2px;
}

[data-theme="dark"] .menu-toggle span {
    background: var(--text-slate-300);
}

/* Premium Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    background: var(--bg-white);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 0;
    transform: scale(1.1);
    transition: transform 20s ease-out;
}

.hero:hover .hero-image {
    transform: scale(1.15);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--green-primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--green-primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    z-index: 1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-nature {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    border-radius: 50% 40% 60% 30%;
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 100%);
    opacity: 0.08;
    filter: blur(80px);
    animation: float 25s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(40px, -40px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) rotate(240deg) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title-main {
    display: inline-block;
    font-size: 1.1em;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.title-sub {
    font-weight: 400;
    font-size: 0.4em;
    letter-spacing: 2px;
    display: block;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-slate-500);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--text-slate-600);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-summary {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.summary-item {
    text-align: center;
    transition: transform var(--transition-base);
}

.summary-item:hover {
    transform: translateY(-4px);
}

.summary-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-slate-500);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn {
    padding: 1.125rem 2.75rem;
    border: 1px solid var(--green-primary);
    background: transparent;
    color: var(--green-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-base);
    font-family: inherit;
    letter-spacing: 0.5px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 1s both;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--green-primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    box-shadow: 0 12px 48px -10px rgba(45, 134, 89, 0.4);
    transform: translateY(-2px);
}

.btn-primary::before {
    background: var(--green-dark);
}

/* Section Styles */
section {
    padding: 160px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -2px;
    line-height: 1.1;
}

.section-header p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-slate-500);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-note {
    font-size: 0.85rem !important;
    color: var(--text-slate-400) !important;
    font-style: italic;
    margin-top: 1rem !important;
    max-width: 600px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-slate-500);
    font-size: 1.1rem;
    margin-bottom: 5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Product Section */
.product {
    background: var(--bg-slate-50);
}

.product-content {
    max-width: 1000px;
    margin: 0 auto;
}

.product-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    letter-spacing: -2px;
    line-height: 1.1;
}

.product-intro {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: var(--text-slate-700);
    line-height: 1.8;
    margin-bottom: 4rem;
    font-weight: 300;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--green-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
    border-radius: 0 4px 4px 0;
}

.feature-item:hover {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-lg);
    transform: translateX(6px);
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-primary);
    background: rgba(45, 134, 89, 0.08);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--green-primary);
    stroke-width: 1.5;
    transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
    background: rgba(45, 134, 89, 0.15);
    transform: scale(1.08) rotate(5deg);
}

.feature-item:hover .feature-icon svg {
    stroke: var(--green-dark);
    stroke-width: 2;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.feature-content p {
    color: var(--text-slate-500);
    line-height: 1.7;
    font-weight: 300;
    font-size: 0.95rem;
    margin: 0;
}

/* Technology Section */
.about {
    background: var(--bg-white);
}

.technology-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
    padding: 60px;
    background: linear-gradient(135deg, var(--bg-slate-50) 0%, var(--bg-white) 100%);
    border-radius: 24px;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.tech-intro-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.tech-intro-content p {
    font-size: 1.1rem;
    color: var(--text-slate-600);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.tech-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.tech-stat-item:hover {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.tech-stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.tech-stat-label {
    font-size: 0.9rem;
    color: var(--text-slate-500);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.technology-process {
    margin-bottom: 80px;
}

.process-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.process-header p {
    font-size: 1.1rem;
    color: var(--text-slate-500);
    font-weight: 300;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.process-step {
    position: relative;
    padding: 3rem 2.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all var(--transition-base);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--green-primary) 0%, var(--green-accent) 100%);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.process-step:hover {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.process-step:hover::before {
    transform: scaleX(1);
}

.process-step-number {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-accent) 100%);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.process-step:hover .process-step-number {
    transform: translateX(-50%) scale(1.1) rotate(360deg);
}

.process-step-icon {
    width: 88px;
    height: 88px;
    margin: 2rem auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 134, 89, 0.08);
    border-radius: 20px;
    color: var(--green-primary);
    transition: all var(--transition-base);
}

.process-step-icon svg {
    width: 44px;
    height: 44px;
    stroke: var(--green-primary);
    stroke-width: 1.5;
    transition: all var(--transition-base);
}

.process-step:hover .process-step-icon {
    background: rgba(45, 134, 89, 0.15);
    transform: scale(1.1) rotate(5deg);
}

.process-step:hover .process-step-icon svg {
    stroke: var(--green-dark);
    stroke-width: 2;
}

.process-step-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.process-step-content p {
    font-size: 1rem;
    color: var(--text-slate-500);
    line-height: 1.7;
    font-weight: 300;
}

.ai-features {
    margin-top: 80px;
}

.ai-header {
    text-align: center;
    margin-bottom: 60px;
}

.ai-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.ai-header p {
    font-size: 1.1rem;
    color: var(--text-slate-500);
    font-weight: 300;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ai-feature-card {
    padding: 2.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ai-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--green-primary) 0%, var(--green-accent) 100%);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.ai-feature-card:hover {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

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

.ai-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 134, 89, 0.08);
    border-radius: 16px;
    color: var(--green-primary);
    transition: all var(--transition-base);
}

.ai-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--green-primary);
    stroke-width: 1.5;
    transition: all var(--transition-base);
}

.ai-feature-card:hover .ai-icon {
    background: rgba(45, 134, 89, 0.15);
    transform: scale(1.08) rotate(-5deg);
}

.ai-feature-card:hover .ai-icon svg {
    stroke: var(--green-dark);
    stroke-width: 2;
}

.ai-feature-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.ai-feature-card p {
    font-size: 1rem;
    color: var(--text-slate-500);
    line-height: 1.7;
    font-weight: 300;
}

/* Benefits Section */
.services {
    background: var(--bg-slate-50);
}

.services-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -2px;
    line-height: 1.1;
}

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

.service-card {
    padding: 2.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    text-align: left;
    border-radius: 16px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--green-primary) 0%, var(--green-accent) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.service-icon-tech {
    width: 72px;
    height: 72px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-primary);
    transition: all var(--transition-base);
    position: relative;
    background: rgba(45, 134, 89, 0.08);
    border-radius: 16px;
    padding: 18px;
}

.service-icon-tech svg {
    width: 100%;
    height: 100%;
    stroke: var(--green-primary);
    stroke-width: 1.5;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon-tech {
    transform: translateY(-8px) scale(1.08);
    background: rgba(45, 134, 89, 0.15);
    box-shadow: var(--shadow-md);
}

.service-card:hover .service-icon-tech svg {
    stroke: var(--green-dark);
    transform: scale(1.05);
    stroke-width: 2;
}

.service-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: var(--green-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.service-card p {
    color: var(--text-slate-500);
    line-height: 1.7;
    font-weight: 300;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background: var(--bg-slate-50);
}

.contact-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-dark);
    letter-spacing: -2px;
    line-height: 1.1;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.contact-image-wrapper:hover .contact-image {
    transform: scale(1.08);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info p {
    color: var(--text-slate-500);
    font-size: 1rem;
    font-weight: 300;
    transition: color var(--transition-base);
}

.contact-info p:hover {
    color: var(--green-primary);
}

.contact-form {
    background: transparent;
    padding: 0;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.25rem 0;
    border: none;
    border-bottom: 2px solid var(--border-color);
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    color: var(--text-dark);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--green-primary);
    padding-left: 0.5rem;
}

.form-group textarea {
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-slate-400);
    font-weight: 300;
    transition: all var(--transition-base);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
    transform: translateX(4px);
}

.form-group-turnstile {
    margin-bottom: 1.5rem;
}

.turnstile-widget {
    min-height: 65px;
}

.form-status {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-status--success {
    color: #16a34a;
}

.form-status--error {
    color: #dc2626;
}

.contact-form .btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Visualizations Section */
.visualizations {
    background: var(--bg-white);
}

.viz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.viz-card {
    padding: 2.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.viz-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--green-primary);
}

.viz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.viz-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.viz-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(45, 134, 89, 0.1);
    color: var(--green-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-container {
    height: 200px;
    margin-bottom: 1.5rem;
}

.energy-chart {
    width: 100%;
    height: 100%;
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out forwards;
}

.chart-area {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawArea 2s ease-out 0.5s forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawArea {
    to {
        stroke-dashoffset: 0;
    }
}

.viz-stats {
    display: flex;
    gap: 2rem;
}

.viz-stat {
    flex: 1;
}

.viz-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 0.25rem;
}

.viz-stat-label {
    font-size: 0.85rem;
    color: var(--text-slate-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.temp-gauge {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-chart {
    width: 100%;
    height: 100%;
}

.gauge-progress {
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    animation: fillGauge 2s ease-out forwards;
}

@keyframes fillGauge {
    to {
        stroke-dashoffset: 75;
    }
}

.gauge-value {
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.calculator {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-input-group label {
    font-size: 0.9rem;
    color: var(--text-slate-600);
    font-weight: 500;
}

.calc-input-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all var(--transition-base);
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
}

.calc-result {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(45, 134, 89, 0.05);
    border-radius: 12px;
}

.calc-savings {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-label {
    font-size: 0.95rem;
    color: var(--text-slate-600);
}

.calc-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-primary);
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-slate-50);
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto 100px;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform var(--transition-slow);
    gap: 0;
}

.testimonial-card {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.testimonial-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-quote {
    font-size: 4rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--green-primary);
    line-height: 1;
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-slate-700);
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-accent) 100%);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-slate-500);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.carousel-btn:hover {
    border-color: var(--green-primary);
    background: var(--green-primary);
    transform: scale(1.1);
}

.carousel-btn:hover svg {
    stroke: var(--bg-white);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-slate-700);
    transition: stroke var(--transition-base);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-base);
}

.carousel-dot.active {
    background: var(--green-primary);
    width: 30px;
    border-radius: 5px;
}

/* Case Studies */
.case-studies {
    margin-top: 100px;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.case-study-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.case-study-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--green-primary);
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.case-study-header h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    flex: 1;
}

.case-study-badge {
    padding: 0.375rem 1rem;
    background: rgba(45, 134, 89, 0.1);
    color: var(--green-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-stat {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.case-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
}

.case-stat-label {
    font-size: 0.9rem;
    color: var(--text-slate-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-content p {
    color: var(--text-slate-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.case-study-toggle {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--green-primary);
    color: var(--green-primary);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
}

.case-study-toggle:hover {
    background: var(--green-primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.case-study-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    margin-top: 1.5rem;
}

.case-study-card.expanded .case-study-details {
    max-height: 500px;
}

.case-study-details p {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--green-primary);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer {
    background: var(--bg-lighter);
    border-top-color: var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-sub {
    font-weight: 400;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-summary {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .summary-number {
        font-size: 2rem;
    }

    .about-content,
    .contact-wrapper,
    .why-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .why-image-wrapper {
        height: 400px;
    }

    .technology-intro {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .technology-performance {
        padding: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .viz-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .product-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        transition: left var(--transition-base);
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
    }

    [data-theme="dark"] .nav-menu {
        background: var(--bg-light);
        border-bottom-color: var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-summary {
        gap: 1.5rem;
    }

    .summary-number {
        font-size: 1.75rem;
    }

    .tech-intro-content h3,
    .performance-content h3 {
        font-size: 1.75rem;
    }

    .process-header h3,
    .ai-header h3 {
        font-size: 2rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .custom-cursor {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .testimonials-carousel {
        margin-bottom: 60px;
    }

    .testimonial-content {
        padding: 2rem;
    }

    section {
        padding: 100px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-header h2,
    .product-text h2,
    .services-content h2,
    .contact-content h2 {
        font-size: 2rem;
    }

    .viz-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-track {
        flex-direction: column;
    }

    .testimonial-card {
        min-width: 100%;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Performance Map
   ============================================ */
.performance-map {
    background: var(--bg-slate-50);
    padding: 4rem 0 5rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.performance-map.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.performance-map-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.performance-map-header {
    text-align: center;
    margin-bottom: 2rem;
}

.performance-map-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-slate-500, #64748b);
    margin-bottom: 0.5rem;
}

.performance-map-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    line-height: 1.15;
}

.performance-map-subtitle {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-slate-600, #475569);
}

.map-frame {
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: #B8D9F0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    overscroll-behavior: contain;
}

.map-area {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #B8D9F0;
    cursor: grab;
    touch-action: none;
    overscroll-behavior: contain;
}

.map-area.is-panning {
    cursor: grabbing;
}

#world-map-svg {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
    user-select: none;
    background: #B8D9F0;
    vertical-align: top;
}

.map-controls {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.map-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.map-control-btn:hover {
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

.map-control-btn:active {
    transform: scale(0.94);
}

.map-hint {
    margin: 0;
    padding: 0.65rem 1rem 0.85rem;
    text-align: center;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.5;
    background: #B8D9F0;
}

.map-hint strong {
    font-weight: 600;
    color: #475569;
}

.map-user-marker {
    pointer-events: none;
}

.map-user-marker-pulse {
    animation: mapMarkerPulse 2s ease-out infinite;
}

@keyframes mapMarkerPulse {
    0% { r: 3; opacity: 0.55; }
    100% { r: 8; opacity: 0; }
}

.map-country {
    transition: opacity 0.3s ease, filter 0.3s ease, stroke-width 0.3s ease;
}

.map-country--interactive {
    cursor: pointer;
    opacity: 0.92;
}

.map-country--interactive.is-hovered,
.map-country--interactive:focus {
    opacity: 1;
    stroke-width: 1.2;
    outline: none;
}

.map-tooltip-card {
    --zone-color: #5DBB2F;
    position: absolute;
    z-index: 20;
    min-width: 260px;
    max-width: min(92vw, 340px);
    padding: 1.15rem 1.25rem 1.2rem;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--zone-color) 28%, rgba(255, 255, 255, 0.65));
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.78) 100%
    );
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 16px 40px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 0 24px color-mix(in srgb, var(--zone-color) 18%, transparent);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 18px)) scale(0.94);
    transition:
        opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease;
    overflow: hidden;
}

.map-tooltip-card.is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 18px)) scale(1);
}

.map-tooltip-card.is-mobile {
    transform: translate(-50%, 0) scale(0.96);
    width: calc(100% - 1.5rem);
    max-width: none;
    min-width: 0;
}

.map-tooltip-card.is-mobile.is-visible {
    transform: translate(-50%, 0) scale(1);
}

.map-tooltip-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--zone-color),
        color-mix(in srgb, var(--zone-color) 55%, #ffffff)
    );
}

.map-tooltip-country {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin: 0.35rem 0 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.map-tooltip-rows {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.map-tooltip-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem 1rem;
    align-items: baseline;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.map-tooltip-row dt {
    color: #64748b;
    font-weight: 400;
}

.map-tooltip-value {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: #1e293b;
}

.map-tooltip-value--highlight {
    font-weight: 700;
}

.map-error {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

/* Legend */
.map-legend {
    margin-top: 3.5rem;
}

.map-legend-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.map-legend-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.map-legend-header p {
    font-size: 1rem;
    color: var(--text-slate-500);
    font-weight: 300;
    line-height: 1.6;
}

.map-legend-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .map-legend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.legend-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.legend-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 4px 4px 0;
    transition: width var(--transition-base);
}

.legend-card--green::before { background: #5DBB2F; }
.legend-card--orange::before { background: #F59E0B; }
.legend-card--red::before { background: #EF4444; }

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

.legend-card--green:hover { border-color: #5DBB2F; }
.legend-card--orange:hover { border-color: #F59E0B; }
.legend-card--red:hover { border-color: #EF4444; }

.legend-card:hover::before {
    width: 6px;
}

.legend-zone-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.legend-card--green .legend-zone-dot { background: #5DBB2F; }
.legend-card--orange .legend-zone-dot { background: #F59E0B; }
.legend-card--red .legend-zone-dot { background: #EF4444; }

.legend-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.legend-card-top h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.legend-rating {
    flex-shrink: 0;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legend-card--green .legend-rating {
    color: #3d8f1f;
    background: rgba(93, 187, 47, 0.12);
}

.legend-card--orange .legend-rating {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
}

.legend-card--red .legend-rating {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}

.legend-card-desc {
    font-size: 0.9rem;
    color: var(--text-slate-500);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.legend-metrics {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.legend-metric {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.legend-metric dt {
    font-size: 0.8rem;
    color: var(--text-slate-500);
    font-weight: 400;
}

.legend-metric dd {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-slate-800);
    text-align: right;
}

.legend-card--green .legend-metric dd { color: #5DBB2F; }
.legend-card--orange .legend-metric dd { color: #F59E0B; }
.legend-card--red .legend-metric dd { color: #EF4444; }

.map-disclaimer {
    margin-top: 2rem;
    padding: 0 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--text-slate-400);
    font-weight: 300;
    font-style: italic;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .map-disclaimer {
        font-size: 0.85rem;
    }
}
