:root {
    --primary: #2d5a27; /* Dark green for livestock/nature */
    --livestock: #4caf50;
    --cars: #2196f3;
    --shipping: #008080;
    --aviation: #9c27b0;
    --warning: #f44336;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.lang-toggle {
    display: flex;
    gap: 0.5rem;
    background: #e2e8f0;
    padding: 0.25rem;
    border-radius: 2rem;
    cursor: pointer;
    user-select: none;
}

.lang-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

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

section {
    padding: 6rem 0;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #f0f9ff, transparent);
    padding-top: 8rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.hero-text p.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-note {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    font-style: italic;
    font-size: 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 2rem;
    /* box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); */
}

/* Charts Section */
.charts-section {
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.chart-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    align-items: center;
}

.donut-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

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

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.chart-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin: 1rem 0 0.5rem;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.chart-info {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Matrix Section */
.matrix-container {
    overflow-x: auto;
    margin-top: 3rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.5rem;
}

th, td {
    padding: 1.5rem;
    text-align: center;
    border-radius: 0.5rem;
}

th {
    background: #f1f5f9;
    font-weight: 700;
}

.row-label {
    text-align: left;
    font-weight: 700;
    background: #fff;
}

.rating {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.rating-very-high { background: #fee2e2; color: #991b1b; }
.rating-high { background: #ffedd5; color: #9a3412; }
.rating-medium { background: #fef9c3; color: #854d0e; }
.rating-low { background: #f0fdf4; color: #166534; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.tag {
    font-size: 0.75rem;
    background: #e2e8f0;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

/* Sector Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-content {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 1.5rem;
    align-items: start;
}

.card-img {
    width: 100%;
    border-radius: 1rem;
}

.science-spotlight {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fdf2f8; /* Light purple tint */
    border-left: 4px solid var(--aviation);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.science-spotlight strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--aviation);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

/* Color Coding */
.card-livestock { border-top: 8px solid var(--livestock); }
.card-cars { border-top: 8px solid var(--cars); }
.card-shipping { border-top: 8px solid var(--shipping); }
.card-aviation { border-top: 8px solid var(--aviation); }

/* Takeaway Section */
.takeaway {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    border-radius: 3rem;
    padding: 5rem 3rem;
    text-align: center;
}

.takeaway h2 {
    color: white;
    margin-bottom: 2rem;
}

.takeaway p {
    font-size: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
}

/* FAQ / Discussion */
.discussion-section {
    background: #f1f5f9;
}

.questions-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

details {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
}

summary {
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
}

.q-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    color: var(--text-muted);
}

/* Sources */
footer {
    padding: 4rem 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

sup {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    margin-left: 1px;
    cursor: default;
    user-select: none;
}

.ref-list {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    line-height: 1.4;
}

.ref-list li {
    margin-bottom: 0.5rem;
}

.sources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.source-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.5rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .card-content { grid-template-columns: 1fr; }
}
