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

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #1a936f;
    --accent: #f7b32b;
    --dark: #0a1628;
    --dark-light: #162040;
    --text: #e0e0e0;
    --text-muted: #8892a4;
    --card-bg: rgba(22, 32, 64, 0.6);
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --gradient-1: linear-gradient(135deg, #ff6b35, #f7b32b);
    --gradient-2: linear-gradient(135deg, #1a936f, #1184ab);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: var(--glass);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.15), transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(26, 147, 111, 0.12), transparent 50%),
                var(--dark);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-title .highlight {
    font-size: clamp(3rem, 8vw, 6rem);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: var(--glass);
    color: #fff;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.temperature-display {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.temp-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
    }
}

.temp-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.temp-unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.temp-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0 16px;
    margin-top: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

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

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-suffix {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 8px 0 16px;
}

.stat-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Earth Section */
.earth-section {
    background: radial-gradient(ellipse at 50% 20%, rgba(26, 147, 111, 0.1), transparent 60%);
}

.earth-hero-card {
    display: flex;
    align-items: center;
    gap: 48px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    margin-bottom: 48px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.earth-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 50%, rgba(26, 147, 111, 0.08), transparent 50%);
    pointer-events: none;
}

.earth-visual {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.earth-planet {
    position: relative;
    width: 150px;
    height: 150px;
}

.earth-surface {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(34, 139, 34, 0.7) 0%, transparent 30%),
        radial-gradient(circle at 65% 40%, rgba(34, 100, 34, 0.6) 0%, transparent 25%),
        radial-gradient(circle at 50% 70%, rgba(34, 139, 34, 0.5) 0%, transparent 20%),
        radial-gradient(circle at 20% 60%, rgba(0, 91, 187, 0.8) 0%, transparent 35%),
        radial-gradient(circle at 70% 25%, rgba(0, 71, 171, 0.9) 0%, transparent 30%),
        radial-gradient(circle at 80% 65%, rgba(0, 81, 167, 0.7) 0%, transparent 25%),
        radial-gradient(circle at 45% 45%, #1a6b3c 0%, #0e5a8a 40%, #0a4d7a 100%);
    box-shadow: inset -15px -10px 30px rgba(0, 0, 0, 0.4), 0 0 40px rgba(26, 147, 111, 0.3);
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: earth-rotate 30s linear infinite;
}

@keyframes earth-rotate {
    0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 150px 0, -100px 0, 80px 0, 150px 0, -120px 0, 90px 0, 0 0; }
}

.earth-clouds {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 35% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 18%),
        radial-gradient(ellipse at 60% 35%, rgba(255, 255, 255, 0.2) 0%, transparent 15%),
        radial-gradient(ellipse at 25% 55%, rgba(255, 255, 255, 0.15) 0%, transparent 12%),
        radial-gradient(ellipse at 75% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 14%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 10%);
    z-index: 3;
    animation: clouds-drift 20s linear infinite;
}

@keyframes clouds-drift {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.earth-atmosphere-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(100, 180, 255, 0.2);
    z-index: 1;
    animation: earth-atmo-pulse 5s ease-in-out infinite;
}

@keyframes earth-atmo-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); border-color: rgba(100, 180, 255, 0.2); }
    50% { opacity: 0.6; transform: scale(1.03); border-color: rgba(100, 180, 255, 0.35); }
}

.earth-glow {
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 147, 111, 0.15), transparent 70%);
    z-index: 0;
}

.earth-hero-text {
    flex: 1;
}

.earth-hero-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.earth-hero-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.earth-hero-text strong {
    color: var(--secondary);
}

/* Earth Pillars Grid */
.earth-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.earth-pillar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.earth-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.earth-pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(26, 147, 111, 0.3);
    box-shadow: 0 8px 30px rgba(26, 147, 111, 0.12);
}

.pillar-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pillar-atmo {
    background: rgba(79, 195, 247, 0.12);
}

.pillar-atmo .pillar-icon {
    color: #4fc3f7;
}

.pillar-water {
    background: rgba(0, 131, 214, 0.12);
}

.pillar-water .pillar-icon {
    color: #29b6f6;
}

.pillar-mag {
    background: rgba(171, 71, 188, 0.12);
}

.pillar-mag .pillar-icon {
    color: #ab47bc;
}

.pillar-bio {
    background: rgba(26, 147, 111, 0.12);
}

.pillar-bio .pillar-icon {
    color: var(--secondary);
}

.pillar-icon {
    width: 28px;
    height: 28px;
}

.earth-pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.earth-pillar-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.earth-pillar-card strong {
    color: var(--secondary);
}

/* Atmosphere Layer Bars */
.pillar-layer-bars {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layer-bar {
    display: grid;
    grid-template-columns: 90px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.layer-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

.layer-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.layer-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.5s ease;
}

.layer-pct {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Ocean Stats */
.ocean-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.ocean-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 131, 214, 0.1);
    border-radius: 10px;
    flex: 1;
}

.ocean-stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #29b6f6;
}

.ocean-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

/* Tipping Points */
.earth-tipping-points {
    text-align: center;
}

.tipping-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.tipping-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 650px;
    margin: 0 auto 32px;
}

.tipping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    text-align: left;
}

.tipping-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.tipping-card:hover {
    transform: translateY(-3px);
}

.tipping-critical {
    border-left: 3px solid #e53935;
}

.tipping-warning {
    border-left: 3px solid #f7b32b;
}

.tipping-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.tipping-critical .tipping-status {
    background: rgba(229, 57, 53, 0.15);
    color: #e53935;
}

.tipping-warning .tipping-status {
    background: rgba(247, 179, 43, 0.15);
    color: #f7b32b;
}

.tipping-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.tipping-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.tipping-card strong {
    color: var(--primary);
}

.tipping-progress {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.tipping-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s ease;
}

.tipping-critical .tipping-fill {
    background: linear-gradient(90deg, #e53935, #ff5252);
}

.tipping-warning .tipping-fill {
    background: linear-gradient(90deg, #f7b32b, #ffc107);
}

.tipping-pct {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Causes */
.causes-section {
    background: radial-gradient(ellipse at 50% 0%, rgba(26, 147, 111, 0.08), transparent 60%);
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.cause-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cause-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.cause-card:hover {
    transform: translateY(-4px);
    border-color: rgba(26, 147, 111, 0.3);
    box-shadow: 0 8px 30px rgba(26, 147, 111, 0.15);
}

.cause-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(26, 147, 111, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cause-icon {
    width: 32px;
    height: 32px;
    color: var(--secondary);
}

.cause-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.cause-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.cause-stat {
    padding: 12px 16px;
    background: rgba(26, 147, 111, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cause-stat strong {
    color: var(--secondary);
    font-size: 1rem;
}

/* Effects Timeline */
.effects-section {
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 107, 53, 0.06), transparent 60%);
}

.effects-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.effects-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--dark);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateX(4px);
}

.effect-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary);
}

.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Solutions */
.solutions-section {
    background: radial-gradient(ellipse at 50% 0%, rgba(247, 179, 43, 0.06), transparent 60%);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.solution-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(247, 179, 43, 0.3);
    box-shadow: 0 8px 30px rgba(247, 179, 43, 0.15);
}

.solution-number {
    font-size: 3rem;
    font-weight: 800;
    position: absolute;
    top: 16px;
    right: 20px;
    opacity: 0.06;
    color: #fff;
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.solution-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.solution-list {
    list-style: none;
    padding: 0;
}

.solution-list li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.solution-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Sun Section */
.sun-section {
    background: radial-gradient(ellipse at 50% 20%, rgba(247, 179, 43, 0.1), transparent 60%);
}

.sun-hero-card {
    display: flex;
    align-items: center;
    gap: 48px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    margin-bottom: 48px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.sun-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 50%, rgba(247, 179, 43, 0.08), transparent 50%);
    pointer-events: none;
}

.sun-visual {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-orb {
    position: relative;
    width: 100px;
    height: 100px;
}

.sun-core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #f7b32b 30%, #ff8c00 60%, #ff6b35 100%);
    box-shadow: 0 0 40px rgba(247, 179, 43, 0.6), 0 0 80px rgba(247, 179, 43, 0.3), 0 0 120px rgba(255, 107, 53, 0.15);
    animation: sun-pulse 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes sun-pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(247, 179, 43, 0.6), 0 0 80px rgba(247, 179, 43, 0.3); }
    50% { box-shadow: 0 0 60px rgba(247, 179, 43, 0.8), 0 0 100px rgba(247, 179, 43, 0.4); }
}

.sun-ray {
    position: absolute;
    width: 4px;
    height: 30px;
    background: linear-gradient(to top, rgba(247, 179, 43, 0.5), transparent);
    border-radius: 2px;
    left: 50%;
    top: -20px;
    transform-origin: center 70px;
    animation: ray-pulse 3s ease-in-out infinite;
}

.ray-1 { transform: translateX(-50%) rotate(0deg); }
.ray-2 { transform: translateX(-50%) rotate(45deg); }
.ray-3 { transform: translateX(-50%) rotate(90deg); }
.ray-4 { transform: translateX(-50%) rotate(135deg); }
.ray-5 { transform: translateX(-50%) rotate(180deg); }
.ray-6 { transform: translateX(-50%) rotate(225deg); }
.ray-7 { transform: translateX(-50%) rotate(270deg); }
.ray-8 { transform: translateX(-50%) rotate(315deg); }

.sun-ray:nth-child(odd) { animation-delay: 0.5s; }

@keyframes ray-pulse {
    0%, 100% { opacity: 0.3; height: 25px; }
    50% { opacity: 0.7; height: 35px; }
}

.sun-hero-text {
    flex: 1;
}

.sun-hero-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.sun-hero-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.sun-hero-text strong {
    color: var(--accent);
}

.sun-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.sun-fact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sun-fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.sun-fact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(247, 179, 43, 0.3);
    box-shadow: 0 8px 30px rgba(247, 179, 43, 0.12);
}

.sun-fact-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.sun-fact-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.sun-fact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.sun-fact-card strong {
    color: var(--accent);
}

.sun-fact-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.comparison-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.5s ease;
}

.solar-bar {
    background: var(--gradient-1);
}

.co2-bar {
    background: var(--gradient-2);
}

/* Solar vs Temperature Chart */
.sun-timeline-chart {
    margin-top: 16px;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.chart-label {
    width: 44px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-bar {
    height: 10px;
    border-radius: 4px;
    transition: width 1.2s ease;
}

.sun-decline {
    background: linear-gradient(90deg, #ff6b35, #f7b32b);
}

.temp-rise {
    background: linear-gradient(90deg, #e53935, #ff6b35);
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.legend-dot.sun-decline {
    background: linear-gradient(90deg, #ff6b35, #f7b32b);
}

.legend-dot.temp-rise {
    background: linear-gradient(90deg, #e53935, #ff6b35);
}

/* Mars Section */
.mars-section {
    background: radial-gradient(ellipse at 50% 20%, rgba(193, 68, 14, 0.1), transparent 60%);
}

.mars-hero-card {
    display: flex;
    align-items: center;
    gap: 48px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    margin-bottom: 48px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.mars-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(193, 68, 14, 0.08), transparent 50%);
    pointer-events: none;
}

.mars-visual {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mars-planet {
    position: relative;
    width: 140px;
    height: 140px;
}

.mars-surface {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #e8734a, #c44d18 40%, #8b3010 70%, #5a1e08 100%);
    box-shadow: inset -12px -8px 24px rgba(0, 0, 0, 0.5), 0 0 30px rgba(193, 68, 14, 0.3);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.mars-surface::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    top: 30px;
    right: 35px;
    box-shadow: 15px 20px 0 8px rgba(0, 0, 0, 0.1), -20px 35px 0 4px rgba(0, 0, 0, 0.08);
}

.mars-surface::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: rgba(139, 48, 16, 0.4);
    border-radius: 50%;
    bottom: 40px;
    left: 20px;
    box-shadow: 8px -15px 0 2px rgba(139, 48, 16, 0.3);
}

.mars-atmosphere {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(232, 115, 74, 0.15);
    z-index: 1;
    animation: mars-atmo-pulse 4s ease-in-out infinite;
}

@keyframes mars-atmo-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.04); }
}

.mars-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(193, 68, 14, 0.15), transparent 70%);
    z-index: 0;
}

.mars-hero-text {
    flex: 1;
}

.mars-hero-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.mars-hero-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.mars-hero-text strong {
    color: var(--primary);
}

/* Mars Comparison Table */
.mars-comparison-table {
    margin-bottom: 48px;
}

.table-title {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    color: #fff;
}

.comparison-grid {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.header-row {
    background: rgba(255, 255, 255, 0.03);
}

.header-row .comparison-cell {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.comparison-cell {
    padding: 14px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.label-cell {
    color: #fff;
    font-weight: 500;
}

.earth-cell {
    color: var(--secondary);
}

.mars-cell {
    color: var(--primary);
}

.strong-yes {
    color: var(--secondary);
    font-weight: 600;
}

.strong-no {
    color: var(--primary);
    font-weight: 600;
}

/* Mars Lessons Grid */
.mars-lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.mars-lesson-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mars-lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c44d18, #e8734a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.mars-lesson-card:hover {
    transform: translateY(-4px);
    border-color: rgba(193, 68, 14, 0.3);
    box-shadow: 0 8px 30px rgba(193, 68, 14, 0.12);
}

.lesson-number {
    font-size: 3rem;
    font-weight: 800;
    position: absolute;
    top: 16px;
    right: 20px;
    opacity: 0.05;
    color: #fff;
}

.mars-lesson-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.mars-lesson-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.mars-lesson-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mars-lesson-card strong {
    color: var(--primary);
}

.mars-lesson-card em {
    color: var(--text);
    font-style: italic;
}

/* Actions */
.actions-section {
    background: radial-gradient(ellipse at 50% 100%, rgba(26, 147, 111, 0.08), transparent 60%);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(26, 147, 111, 0.4);
    box-shadow: 0 8px 30px rgba(26, 147, 111, 0.15);
}

.action-card.pledged {
    border-color: var(--secondary);
    background: rgba(26, 147, 111, 0.1);
}

.action-card.pledged::after {
    content: '✓ Pledged';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.action-card {
    position: relative;
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.action-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.action-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA */
.cta-section {
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    padding: 60px 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.1), transparent 70%);
    pointer-events: none;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

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

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #fff;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #fff;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.carbon-counter {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.counter-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        transition: right 0.3s ease;
        gap: 4px;
    }

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

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .temperature-display {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 40px;
    }

    .temp-circle {
        width: 140px;
        height: 140px;
    }

    .temp-value {
        font-size: 2rem;
    }

    .hero {
        flex-direction: column;
        padding-top: 100px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .earth-hero-card {
        flex-direction: column;
        padding: 32px 24px;
        gap: 32px;
    }

    .earth-visual {
        width: 170px;
        height: 170px;
    }

    .earth-pillars-grid {
        grid-template-columns: 1fr;
    }

    .ocean-stats {
        flex-direction: column;
        gap: 10px;
    }

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

    .sun-hero-card {
        flex-direction: column;
        padding: 32px 24px;
        gap: 32px;
    }

    .sun-visual {
        width: 150px;
        height: 150px;
    }

    .sun-facts-grid {
        grid-template-columns: 1fr;
    }

    .mars-hero-card {
        flex-direction: column;
        padding: 32px 24px;
        gap: 32px;
    }

    .mars-visual {
        width: 160px;
        height: 160px;
    }

    .mars-lessons-grid {
        grid-template-columns: 1fr;
    }

    .comparison-row {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .comparison-cell {
        padding: 10px 8px;
        font-size: 0.75rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.5);
}

/* Selection */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: #fff;
}
