/* ===== Properties ===== */
:root {
    --bg: #ffffff;
    --bg-tint: #f6f8fb;
    --bg-dark: #0a1626;
    --surface: #ffffff;
    --surface-tint: #f0f4fa;
    --border: #e3e8ef;
    --border-strong: #cdd5e0;
    --text: #0e1a2b;
    --text-soft: #38465c;
    --text-muted: #6b7a90;
    --accent: #0a6dc2;
    --accent-hover: #075aab;
    --accent-soft: #e5f0fb;
    --earth: #176d4d;
    --earth-soft: #e3f1e9;
    --amber: #b8651b;
    --danger: #b3261e;
    --max-w: 1180px;
    --max-w-narrow: 820px;
    --nav-h: 72px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(10, 22, 38, 0.04), 0 1px 1px rgba(10, 22, 38, 0.03);
    --shadow-md: 0 4px 12px rgba(10, 22, 38, 0.06), 0 1px 3px rgba(10, 22, 38, 0.04);
    --shadow-lg: 0 14px 40px rgba(10, 22, 38, 0.10), 0 4px 12px rgba(10, 22, 38, 0.06);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;
    --t-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

.skip-link {
    position: absolute;
    left: 8px;
    top: -40px;
    z-index: 1000;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
}
.skip-link:focus { top: 8px; color: #fff; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
p { color: var(--text-soft); }

::selection { background: var(--accent-soft); color: var(--text); }

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    width: 100%;
    max-width: var(--max-w-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

main { padding-top: var(--nav-h); }

section { padding: 80px 0; }
section.section-tight { padding: 56px 0; }
section.section-tint { background: var(--bg-tint); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header { margin-bottom: 48px; max-width: 760px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header p { font-size: 1.1rem; margin-top: 12px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: var(--font);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(7, 90, 171, 0.25);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(7, 90, 171, 0.25); }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover { color: var(--accent); border-color: var(--accent); }

.btn-ghost {
    background: transparent;
    color: var(--text);
}
.btn-ghost:hover { color: var(--accent); }

.btn-lg { padding: 14px 26px; font-size: 1.02rem; }

.btn .arrow {
    display: inline-block;
    transition: transform 0.2s var(--t-ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Nav ===== */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s, background 0.25s;
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-color: var(--border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.nav-brand-mark {
    width: 38px;
    height: 38px;
    flex: none;
    display: block;
}

.nav-brand-text {
    white-space: nowrap;
    display: inline-block;
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s;
}
.nav-link:hover { color: var(--accent); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-menu-mobile {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: 90;
    background: var(--bg);
    padding: 24px;
    transform: translateY(-100%);
    transition: transform 0.3s var(--t-ease);
    border-bottom: 1px solid var(--border);
    display: none;
}
.nav-menu-mobile.open { transform: translateY(0); }
.nav-menu-mobile .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
}
.nav-menu-mobile .btn { margin-top: 20px; width: 100%; }

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    color: #fff;
    padding: 96px 0 120px;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1100px 700px at 80% 20%, rgba(10, 109, 194, 0.55) 0%, rgba(10, 109, 194, 0) 60%),
        radial-gradient(900px 600px at 20% 90%, rgba(23, 109, 77, 0.45) 0%, rgba(23, 109, 77, 0) 65%),
        linear-gradient(180deg, #061224 0%, #0a1626 60%, #081421 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6) 50%, transparent 51%),
        radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.4) 50%, transparent 51%),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.5) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 80% 80%, rgba(255,255,255,0.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 12% 85%, rgba(255,255,255,0.45) 50%, transparent 51%),
        radial-gradient(1px 1px at 75% 45%, rgba(255,255,255,0.35) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 30% 10%, rgba(255,255,255,0.4) 50%, transparent 51%);
    opacity: 0.7;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.hero h1 {
    color: #fff;
    margin-bottom: 22px;
    text-wrap: balance;
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero .btn-primary {
    background: #fff;
    color: var(--bg-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.hero .btn-primary:hover { background: #fff; color: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.hero .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); color: #fff; }

/* ===== Hero globe ===== */
.hero-globe-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin: 0 auto;
}

.hero-globe {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
    overflow: visible;
}

/* Dotted continents — subtle staggered twinkle on a subset of dots */
.hero-globe .globe-dots .twinkle {
    transform-origin: center;
    transform-box: fill-box;
    animation: dot-twinkle 5.5s ease-in-out infinite;
}
.hero-globe .globe-dots .twinkle:nth-child(7n)   { animation-delay: 0s;    animation-duration: 5.5s; }
.hero-globe .globe-dots .twinkle:nth-child(7n+1) { animation-delay: 0.8s;  animation-duration: 6.5s; }
.hero-globe .globe-dots .twinkle:nth-child(7n+2) { animation-delay: 1.6s;  animation-duration: 7.2s; }
.hero-globe .globe-dots .twinkle:nth-child(7n+3) { animation-delay: 2.4s;  animation-duration: 5.8s; }
.hero-globe .globe-dots .twinkle:nth-child(7n+4) { animation-delay: 3.1s;  animation-duration: 6.8s; }
.hero-globe .globe-dots .twinkle:nth-child(7n+5) { animation-delay: 3.9s;  animation-duration: 7.5s; }
.hero-globe .globe-dots .twinkle:nth-child(7n+6) { animation-delay: 4.6s;  animation-duration: 6s; }
@keyframes dot-twinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

/* Outer ring — slow breathing */
.hero-globe .globe-ring {
    transform-origin: 200px 200px;
    transform-box: view-box;
    animation: ring-breathe 8s ease-in-out infinite;
}
@keyframes ring-breathe {
    0%, 100% { stroke-opacity: 0.45; }
    50%      { stroke-opacity: 0.7; }
}

/* Accent dots orbit the ring (echoes the logo's static accent dots, set in motion) */
.hero-globe .globe-orbit {
    animation: globe-orbit-spin 30s linear infinite;
    will-change: transform;
}
@keyframes globe-orbit-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Data-flow arcs — dash flows like a transmission */
.hero-globe .data-arc {
    stroke-linecap: round;
    opacity: 0.55;
}
.hero-globe .data-arc-1 { animation: data-flow-1 4s linear infinite; }
.hero-globe .data-arc-2 { animation: data-flow-2 5s linear infinite reverse; }
@keyframes data-flow-1 { to { stroke-dashoffset: -70; } }
@keyframes data-flow-2 { to { stroke-dashoffset: -70; } }

/* Beacon pulses */
.hero-globe .beacon-ring {
    transform-origin: center;
    transform-box: fill-box;
    animation: beacon-pulse 3.6s ease-out infinite;
}
.hero-globe .beacon-a .beacon-ring { animation-delay: 0s; }
.hero-globe .beacon-b .beacon-ring { animation-delay: 0.7s; }
.hero-globe .beacon-c .beacon-ring { animation-delay: 1.4s; }
.hero-globe .beacon-d .beacon-ring { animation-delay: 2.1s; }
.hero-globe .beacon-e .beacon-ring { animation-delay: 2.8s; }
.hero-globe .beacon-f .beacon-ring { animation-delay: 3.2s; }
@keyframes beacon-pulse {
    0%   { transform: scale(1); opacity: 0.9; stroke-width: 1.4; }
    85%  { transform: scale(6); opacity: 0; stroke-width: 0.3; }
    100% { transform: scale(6); opacity: 0; stroke-width: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-globe .twinkle,
    .hero-globe .globe-ring,
    .hero-globe .globe-orbit,
    .hero-globe .data-arc,
    .hero-globe .beacon-ring { animation: none; }
}

.hero-globe-glow {
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(10, 109, 194, 0.35) 0%, rgba(10, 109, 194, 0) 70%);
    z-index: -1;
}

/* ===== Stats strip ===== */
.stats {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 28px 0;
}

.stat {
    text-align: center;
    padding: 12px 16px;
    border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ===== Mission ===== */
.mission {
    background: var(--bg);
}
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}
.mission-body {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-soft);
}

/* ===== Categories ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.category-icon svg { width: 22px; height: 22px; }

.category-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.category-card p { font-size: 0.95rem; color: var(--text-soft); }
.category-card .count {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Featured datasets ===== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.dataset-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    color: var(--text);
}
.dataset-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.dataset-card .badge {
    align-self: flex-start;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 16px;
}
.dataset-card .badge.climate { background: #fff1e0; color: #c66614; }
.dataset-card .badge.biodiversity { background: var(--earth-soft); color: var(--earth); }
.dataset-card .badge.atmosphere { background: #ece7fb; color: #5e44b8; }
.dataset-card .badge.ocean { background: #e0f1f6; color: #146a87; }
.dataset-card .badge.other { background: var(--surface-tint); color: var(--text-soft); }

.dataset-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.25;
}
.dataset-card p {
    font-size: 0.96rem;
    color: var(--text-soft);
    margin-bottom: 18px;
    flex: 1;
}
.dataset-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.84rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: auto;
}
.dataset-card .meta span { display: inline-flex; align-items: center; gap: 5px; }

.featured-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ===== How it works ===== */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: step;
}

.how-step {
    position: relative;
    padding: 32px 28px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.how-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -20px;
    left: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(7, 90, 171, 0.3);
}

.how-step h3 {
    margin: 12px 0 8px;
    font-size: 1.2rem;
}
.how-step p { color: var(--text-soft); font-size: 0.98rem; }

/* ===== Licence summary ===== */
.licence-summary {
    background: linear-gradient(140deg, var(--accent-soft) 0%, var(--earth-soft) 100%);
}

.licence-summary-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: center;
}

.licence-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    font-size: 1.05rem;
}
.licence-badge svg { width: 28px; height: 28px; color: var(--accent); }

.licence-summary p { font-size: 1.1rem; margin-bottom: 22px; }

/* ===== Catalogue page ===== */
.page-header {
    padding: 96px 0 40px;
    border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 14px; text-wrap: balance; }
.page-header p { font-size: 1.15rem; max-width: 720px; }

.catalog-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 32px;
    border-bottom: 1px solid var(--border);
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    color: var(--text-soft);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    font-family: var(--font);
}
.filter-chip:hover { color: var(--accent); border-color: var(--accent); }
.filter-chip.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.catalog-search {
    position: relative;
    min-width: 240px;
}
.catalog-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.catalog-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.catalog-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.catalog-count {
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 20px 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding-bottom: 80px;
}

.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

/* ===== Dataset detail page ===== */
.dataset-detail {
    padding: 56px 0 80px;
}

.dataset-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: start;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}
.back-link:hover { color: var(--accent); }

.dataset-detail h1 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.8rem); margin-bottom: 14px; }
.dataset-detail .lede { font-size: 1.2rem; color: var(--text-soft); margin-bottom: 32px; }

.dataset-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-soft);
}
.dataset-body h2 {
    font-size: 1.5rem;
    margin: 40px 0 14px;
    color: var(--text);
}
.dataset-body h3 {
    font-size: 1.2rem;
    margin: 32px 0 10px;
    color: var(--text);
}
.dataset-body p { margin-bottom: 16px; }
.dataset-body ul, .dataset-body ol { padding-left: 22px; margin-bottom: 16px; }
.dataset-body ul li { list-style: disc; margin-bottom: 6px; }
.dataset-body ol li { list-style: decimal; margin-bottom: 6px; }
.dataset-body a { font-weight: 500; }
.dataset-body code {
    background: var(--surface-tint);
    color: var(--accent-hover);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: var(--font-mono);
}

.dataset-aside {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.facts-card,
.cta-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.facts-card h3,
.cta-card h3 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.facts-list {
    display: grid;
    gap: 12px;
}
.facts-list dt {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}
.facts-list dd {
    font-size: 0.96rem;
    color: var(--text);
    font-weight: 500;
}

.cta-card.cta-card-accent {
    background: var(--bg-dark);
    color: #fff;
    border-color: transparent;
}
.cta-card.cta-card-accent h3 { color: rgba(255, 255, 255, 0.65); }
.cta-card.cta-card-accent p { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; margin-bottom: 18px; }
.cta-card.cta-card-accent .btn {
    background: #fff;
    color: var(--bg-dark);
    width: 100%;
}
.cta-card.cta-card-accent .btn:hover { color: var(--accent); }

.attribution-block {
    background: var(--surface-tint);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text);
    word-break: break-word;
    margin-top: 12px;
}

.related-section { padding: 56px 0 80px; background: var(--bg-tint); }

/* ===== License page ===== */
.license-hero { padding: 96px 0 56px; }
.license-section { padding: 24px 0; }
.license-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 24px;
}
.license-card h2 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.license-card h2 .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.license-card h2 .icon svg { width: 18px; height: 18px; }
.license-card p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 14px; }
.license-card ul { padding-left: 22px; margin-bottom: 8px; }
.license-card ul li { list-style: disc; margin-bottom: 10px; color: var(--text-soft); font-size: 1.02rem; }
.license-card .attribution-block { font-size: 0.95rem; }

/* ===== Request form ===== */
.request-page { padding: 96px 0 80px; }
.request-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: start;
}

.request-intro h1 { margin-bottom: 16px; }
.request-intro p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 20px; }

.request-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.form-row { margin-bottom: 20px; }
.form-row.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-row label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-row .field-help {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg);
    font-family: var(--font);
    font-size: 0.98rem;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row textarea { min-height: 130px; resize: vertical; }

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-tint);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}
.form-checkbox input { margin-top: 3px; }
.form-checkbox label {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-soft);
    font-weight: 400;
    margin: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.form-error {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fdecea;
    color: var(--danger);
    border-radius: var(--radius);
    font-size: 0.95rem;
    border: 1px solid #f6c2c1;
}

.request-sent {
    text-align: center;
    padding: 96px 24px 120px;
}
.request-sent .check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--earth-soft);
    color: var(--earth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.request-sent h1 { margin-bottom: 14px; }
.request-sent p { font-size: 1.15rem; max-width: 540px; margin: 0 auto 32px; }

/* ===== About page ===== */
.about-page { padding: 96px 0 80px; }
.about-page .container-narrow > * { margin-bottom: 22px; }
.about-page h1 { margin-bottom: 14px; }
.about-page p { font-size: 1.15rem; line-height: 1.75; color: var(--text-soft); }

/* ===== News page ===== */
.news-section { padding: 16px 0 96px; }
.news-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-item {
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.news-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.news-meta .badge {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.news-meta time { font-variant-numeric: tabular-nums; }
.news-item h2 { font-size: 1.7rem; margin-bottom: 14px; text-wrap: balance; }
.news-body { color: var(--text-soft); line-height: 1.75; font-size: 1.05rem; }
.news-body > * + * { margin-top: 18px; }
.news-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Contact page ===== */
.contact-page { padding: 96px 0 80px; }
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-top: 32px;
}
.contact-card dl { display: grid; gap: 20px; }
.contact-card dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.contact-card dd { font-size: 1.1rem; }
.contact-card dd a { font-weight: 500; }

/* ===== Partners band ===== */
.partners {
    background: #f6f8fa;
    padding: 56px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.partners-label {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 32px;
}
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 56px;
    row-gap: 32px;
}
.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s var(--t-ease), filter 0.2s var(--t-ease), transform 0.2s var(--t-ease);
    filter: grayscale(1);
    opacity: 0.65;
}
.partner-link:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-2px);
}
.partner-logo {
    height: 38px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}
.partner-link--white .partner-logo {
    filter: brightness(0);
}
.partner-link--white:hover .partner-logo {
    filter: brightness(0);
}
.partner-logo--tall { height: 44px; }
.partner-logo--short { height: 30px; }
@media (max-width: 640px) {
    .partners-grid { gap: 36px; row-gap: 24px; }
    .partner-logo { height: 32px; }
    .partner-logo--tall { height: 36px; }
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 64px 0 32px;
}
.footer a { color: rgba(255, 255, 255, 0.8); }
.footer a:hover { color: #fff; }

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.footer-brand-mark {
    width: 32px;
    height: 32px;
    flex: none;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 280px;
}

.footer h4 {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

/* ===== Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--t-ease), transform 0.7s var(--t-ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .hero { padding: 80px 0 96px; }
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-globe-wrap { max-width: 340px; order: -1; }
    .mission-grid { grid-template-columns: 1fr; gap: 24px; }
    .licence-summary-inner { grid-template-columns: 1fr; gap: 32px; }
    .categories-grid,
    .featured-grid,
    .how-grid,
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .dataset-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .dataset-aside { position: static; }
    .request-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
    .stat:nth-child(2n) { border-right: none; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); padding-bottom: 24px; }
    .stat:nth-child(n+3) { padding-top: 24px; }
}

@media (max-width: 720px) {
    section { padding: 60px 0; }
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu-mobile { display: block; }
    .hero { padding: 72px 0 80px; }
    .hero h1 { font-size: clamp(1.95rem, 7vw, 2.7rem); }
    .hero-sub { font-size: 1.02rem; }
    .categories-grid,
    .featured-grid,
    .how-grid,
    .catalog-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .form-row.row-2 { grid-template-columns: 1fr; }
    .page-header { padding: 72px 0 32px; }
    .request-page { padding: 72px 0 56px; }
    .request-card { padding: 24px; }
    .license-card { padding: 24px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .catalog-controls { flex-direction: column; align-items: stretch; }
    .catalog-search { width: 100%; }
}
