:root {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 142 76% 36%;
    --primary-foreground: 355 7% 97%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 5.9% 10%;
    --muted-foreground: 240 22.64% 77.76%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 72.2% 50.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 11%;
    --input: 240 5.9% 11%;
    --ring: 142 76% 36%;
    --carbon-healthy: 142 76% 36%;
    --carbon-warning: 38 92% 50%;
    --carbon-critical: 0 72% 51%;
    --carbon-decayed: 240 4% 16%;
}

/* Ensure body has proper styling */
body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', sans-serif;
}

/* Atom/Star Animation Styles */
.atom {
    position: absolute;
    width: 4px;
    height: 4px;
    background: hsl(142 76% 36%);
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
    opacity: 0;
}

.atom-1 { top: 15%; left: 10%; animation-delay: 0s; }
.atom-2 { top: 25%; left: 85%; animation-delay: 0.2s; }
.atom-3 { top: 35%; left: 20%; animation-delay: 0.4s; }
.atom-4 { top: 45%; left: 75%; animation-delay: 0.6s; }
.atom-5 { top: 55%; left: 15%; animation-delay: 0.8s; }
.atom-6 { top: 65%; left: 80%; animation-delay: 1s; }
.atom-7 { top: 75%; left: 25%; animation-delay: 1.2s; }
.atom-8 { top: 85%; left: 70%; animation-delay: 1.4s; }
.atom-9 { top: 20%; left: 50%; animation-delay: 1.6s; }
.atom-10 { top: 30%; left: 90%; animation-delay: 1.8s; }
.atom-11 { top: 40%; left: 5%; animation-delay: 2s; }
.atom-12 { top: 50%; left: 60%; animation-delay: 2.2s; }
.atom-13 { top: 60%; left: 35%; animation-delay: 2.4s; }
.atom-14 { top: 70%; left: 95%; animation-delay: 2.6s; }
.atom-15 { top: 80%; left: 45%; animation-delay: 2.8s; }

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Responsive adjustments for atoms */
@media (max-width: 768px) {
    .atom {
        width: 3px;
        height: 3px;
    }
}

/* Ensure background classes work properly */
.bg-background {
    background-color: hsl(var(--background)) !important;
}

.bg-section {
    background: linear-gradient(135deg, hsl(240 10% 3.9%) 0%, hsl(240 8% 6%) 50%, hsl(240 10% 3.9%) 100%);
}

/* Ensure text colors work properly */
.text-foreground {
    color: hsl(var(--foreground)) !important;
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground)) !important;
}

.text-carbon-healthy {
    color: hsl(var(--carbon-healthy)) !important;
}

.text-carbon-warning {
    color: hsl(var(--carbon-warning)) !important;
}

.text-carbon-critical {
    color: hsl(var(--carbon-critical)) !important;
}

/* Card styling */
.card-carbon {
    background: linear-gradient(145deg, hsl(240 10% 4.5%) 0%, hsl(240 8% 6%) 100%);
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px -10px hsl(0 0% 0% / 0.4);
    backdrop-filter: blur(8px);
    padding: 24px;
}

.card-carbon:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px hsl(142 76% 36% / 0.3);
}

/* Button styling */
.btn-carbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
    box-shadow: 0 10px 40px -10px hsl(0 0% 0% / 0.4);
    background: linear-gradient(135deg, hsl(142 76% 36%) 0%, hsl(142 86% 46%) 100%);
    color: hsl(355 7% 97%);
    border: 1px solid hsl(142 76% 36% / 0.3);
}

.btn-carbon:hover {
    box-shadow: 0 0 40px hsl(142 76% 36% / 0.3);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-outline-carbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
    background: transparent;
    color: hsl(142 76% 36%);
    border: 2px solid hsl(142 76% 36% / 0.5);
}

.btn-outline-carbon:hover {
    background: hsl(142 76% 36% / 0.1);
    border-color: hsl(142 76% 36%);
    box-shadow: 0 0 40px hsl(142 76% 36% / 0.3);
}

/* Border utilities */
.border-carbon-healthy\/20 {
    border-color: hsl(142 76% 36% / 0.2) !important;
}

.hover\:border-carbon-healthy\/40:hover {
    border-color: hsl(142 76% 36% / 0.4) !important;
}

.border-carbon-healthy\/30 {
    border-color: hsl(142 76% 36% / 0.3) !important;
}

/* Background utilities */
.bg-carbon-healthy\/10 {
    background-color: hsl(142 76% 36% / 0.1) !important;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, hsl(142 76% 36%) 0%, hsl(142 86% 46%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-native {
    background: linear-gradient(135deg, hsl(54, 76%, 36%) 0%, hsl(0, 86%, 46%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.animate-radiation {
    animation: radiation 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% { 
        filter: drop-shadow(0 0 5px hsl(142 76% 36% / 0.3)); 
    }
    100% { 
        filter: drop-shadow(0 0 20px hsl(142 76% 36% / 0.8)); 
    }
}

@keyframes radiation {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.1) rotate(180deg); 
        opacity: 0.8; 
    }
}

/* Transition utilities */
.transition-all {
    transition: all 0.3s ease;
}

.duration-300 {
    transition-duration: 0.3s;
}

/* Leading utilities */
.leading-relaxed {
    line-height: 1.625;
}

/* Gradient utilities */
.bg-gradient-to-br {
    background: linear-gradient(to bottom right, var(--gradient-start), var(--gradient-end));
}

/* Hero section green gradient */
.bg-gradient-to-br.from-carbon-healthy\/15.via-carbon-healthy\/8.to-transparent {
    background: linear-gradient(to bottom right, hsl(142 76% 36% / 0.6), hsl(142 76% 36% / 0.4), transparent) !important;
}

.from-carbon-healthy\/5 {
    background: linear-gradient(to right, hsl(142 76% 36% / 0.05), transparent);
}

.from-carbon-healthy\/15 {
    background: linear-gradient(to bottom right, hsl(142 76% 36% / 0.15), transparent);
}

.via-carbon-healthy\/8 {
    background: linear-gradient(to bottom right, transparent, hsl(142 76% 36% / 0.08), transparent);
}

.to-carbon-warning\/5 {
    background: linear-gradient(to right, transparent, hsl(38 92% 50% / 0.05));
}

.from-background\/90 {
    background: linear-gradient(to right, hsl(240 10% 3.9% / 0.9), transparent);
}

.via-background\/70 {
    background: linear-gradient(to right, transparent, hsl(240 10% 3.9% / 0.7), transparent);
}

.to-background\/90 {
    background: linear-gradient(to right, transparent, hsl(240 10% 3.9% / 0.9));
}

.from-carbon-healthy\/10 {
    background: linear-gradient(to right, hsl(142 76% 36% / 0.1), transparent);
}

.to-carbon-warning\/10 {
    background: linear-gradient(to right, transparent, hsl(38 92% 50% / 0.1));
}

.to-transparent {
    background: linear-gradient(to right, transparent, transparent);
}

/* Additional utility classes */
.flex-shrink-0 {
    flex-shrink: 0;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.space-y-2 {
    margin-top: 0.5rem;
}

.space-y-6 {
    margin-top: 1.5rem;
}

.space-y-8 {
    margin-top: 2rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.w-2 {
    width: 0.5rem;
}

.w-3 {
    width: 0.75rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-sm {
    font-size: 0.875rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

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

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.bottom-4 {
    bottom: 1rem;
}

.left-4 {
    left: 1rem;
}

.right-4 {
    right: 1rem;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.overflow-hidden {
    overflow: hidden;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-b-2 {
    border-bottom-width: 2px;
}

.border-transparent {
    border-color: transparent;
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-60 {
    opacity: 0.6;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:translate-x-1:hover {
    transform: translateX(0.25rem);
}

.hover\:text-carbon-healthy:hover {
    color: hsl(142 76% 36%) !important;
}

.hover\:text-foreground:hover {
    color: hsl(var(--foreground)) !important;
}

.hover\:border-border:hover {
    border-color: hsl(var(--border)) !important;
}

/* Responsive utilities */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:text-2xl {
        font-size: 1.5rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:text-7xl {
        font-size: 4.5rem;
    }
    
    .md\:block {
        display: block;
    }
    
    .md\:hidden {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}