:root {
    --primary: #2e7d32;
    --primary-light: #4caf50;
    --dark: #121212;
    --light: #ffffff;
    --gray: #f5f5f5;
    --text-dark: #333333;
    --text-light: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --nav-height: 56px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Background Animation */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.3;
    animation: move 20s infinite alternate;
}

.blob-1 { top: -100px; right: -100px; animation-delay: 0s; }
.blob-2 { bottom: -100px; left: -100px; background: radial-gradient(circle, #1b5e20 0%, transparent 70%); animation-delay: -5s; }

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

/* Top navigation */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.site-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    min-width: 0;
}

.site-nav-brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex-shrink: 0;
}

.site-nav-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.site-nav-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.site-nav-link-muted {
    color: rgba(255, 255, 255, 0.5);
}

.github-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 4px;
    padding: 6px 10px 6px 11px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.github-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.github-pill-icon {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

.github-pill-count {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
    min-width: 1.5ch;
    text-align: center;
}

/* Header */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
}

.hero {
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

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

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p.subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-sm {
    padding: 11px 22px;
    font-size: 0.9375rem;
    border-radius: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.6);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--glass);
    transform: translateY(-3px);
}

.web-links {
    margin-top: 24px;
    font-size: 0.95rem;
    color: #999;
}

.web-links a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

.web-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.web-links-legacy {
    color: #888 !important;
}

.web-links-legacy:hover {
    color: #bbb !important;
}

.web-links-sep {
    margin: 0 10px;
    color: #555;
}

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

#support {
    padding-top: 0;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    margin-top: 40px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

/* About / citizen science sections */
.about-section {
    padding-top: 0;
}

.section-lead {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.0625rem;
    max-width: 640px;
    margin: -12px auto 0;
    line-height: 1.65;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    margin-top: 0;
    padding: 28px;
    text-align: left;
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.info-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.publish-card {
    margin-top: 40px;
    padding: 32px;
}

.publish-rules {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.publish-rule {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.publish-rule-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(76, 175, 80, 0.12);
    color: var(--primary-light);
    font-size: 1rem;
}

.publish-rule h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.35);
    border-radius: 999px;
    vertical-align: middle;
}

.publish-rule p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.publish-rule a,
.publish-footnote a {
    color: var(--primary-light);
    text-decoration: none;
}

.publish-rule a:hover,
.publish-footnote a:hover {
    text-decoration: underline;
}

.publish-footnote {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-align: center;
}

/* Support banner */
.support-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 0;
    text-align: left;
}

.support-banner-text h2 {
    font-size: 1.375rem;
    margin-bottom: 8px;
    text-align: left;
}

.support-banner-text p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    max-width: 42ch;
}

.support-banner-text a {
    color: var(--primary-light);
    text-decoration: none;
}

.support-banner-text a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

.copyright-sub {
    margin-top: 5px;
}

/* Policy Page */
.policy-content {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: calc(var(--nav-height) + 40px) 20px 0;
}

.policy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: left;
    background: none;
    -webkit-text-fill-color: var(--text-light);
    color: var(--text-light);
}

.policy-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    text-align: left;
}

.policy-content p {
    margin-bottom: 15px;
    color: #ccc;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-light);
    text-decoration: none;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    p.subtitle { font-size: 1.2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .web-links { display: flex; flex-direction: column; gap: 8px; }
    .web-links-sep { display: none; }
    .site-nav-link-muted { display: none; }
    .support-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }
    .support-banner .btn-sm {
        width: 100%;
        text-align: center;
    }
    .publish-card {
        padding: 24px;
    }
    .publish-rule {
        gap: 14px;
    }
}
