/* Badger Cloud — shared visual system
   Used by the home page and all content/article pages.
   Keep this in sync with the look-and-feel of the landing hero. */

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

:root {
    --accent: #667eea;
    --accent-2: #764ba2;
    --ink: #ffffff;
    --ink-soft: rgba(255, 255, 255, 0.85);
    --ink-faint: rgba(255, 255, 255, 0.6);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-strong: rgba(255, 255, 255, 0.15);
    --line: rgba(255, 255, 255, 0.2);
    --maxw: 1000px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background: #0a0a0a;
    color: var(--ink);
    line-height: 1.6;
}

/* ---------- Animated background ---------- */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(30px); }
    50% { transform: translateY(-60px) translateX(-30px); }
    75% { transform: translateY(-30px) translateX(30px); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 20, 0.25);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--ink);
}

/* ---------- Generic centered hero (home) ---------- */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.content {
    max-width: 900px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.logo {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    animation: pulse 3s ease-in-out infinite;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--ink-soft);
    font-weight: 300;
    letter-spacing: 1px;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--ink-soft);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Stat cards ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: var(--glass-strong);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Buttons ---------- */
.cta {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: #ffffff;
    color: var(--accent);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    background: #f0f0f0;
}

.cta-secondary {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    background: var(--glass-strong);
    color: var(--ink);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

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

/* ---------- Tech badges ---------- */
.tech-stack {
    margin-top: 4rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.tech-badge {
    background: var(--glass-strong);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

/* ---------- Content / article pages ---------- */
.page {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--ink-faint);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--ink-soft);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.page-hero {
    margin-bottom: 2.5rem;
}

.page-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--ink-faint);
    margin-bottom: 0.75rem;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.page-hero .lead {
    font-size: 1.25rem;
    color: var(--ink-soft);
    font-weight: 300;
    max-width: 720px;
}

.panel {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2.25rem;
    margin-bottom: 1.75rem;
}

.prose h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.5px;
}

.prose h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.75rem 0 0.6rem;
}

.prose p {
    color: var(--ink-soft);
    margin-bottom: 1rem;
}

.prose ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.prose li {
    color: var(--ink-soft);
    padding-left: 1.6rem;
    position: relative;
    margin-bottom: 0.6rem;
}

.prose li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--ink);
    opacity: 0.7;
}

.prose a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    transition: text-decoration-color 0.2s ease;
}

.prose a:hover {
    text-decoration-color: #fff;
}

.prose strong {
    color: #fff;
}

.meta {
    font-size: 0.85rem;
    color: var(--ink-faint);
    margin-bottom: 1.75rem;
}

/* ---------- Card grids (features / products / articles) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0 2rem;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--glass-strong);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.feature-card .icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.feature-card .more {
    display: inline-block;
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

/* ---------- Highlight figures (sustainability) ---------- */
.figure-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.figure {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.figure .big {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
}

.figure .cap {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 0.35rem;
}

/* ---------- Sources / citations ---------- */
.sources {
    font-size: 0.85rem;
    color: var(--ink-faint);
}

.sources h2 {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin-bottom: 0.75rem;
}

.sources ol {
    padding-left: 1.25rem;
}

.sources li {
    margin-bottom: 0.5rem;
}

.sources a {
    color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.footer {
    max-width: var(--maxw);
    margin: 2rem auto 0;
    padding: 2.5rem 1.5rem 3rem;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 0.9rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer p {
    margin-top: 0.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .logo { font-size: 2.5rem; }
    .tagline { font-size: 1.2rem; }
    .stats { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 2.1rem; }
    .page-hero .lead { font-size: 1.1rem; }
    .panel { padding: 1.5rem; }
    .nav-links { gap: 0.9rem; }
    .nav-links a { font-size: 0.85rem; }
}
