:root {
    --color-primary: #1B5E20;
    --color-accent: #00C853;
    --color-accent-bright: #4ADE80;
    --color-accent-teal: #00E5A8;
    --color-bg: #030705;
    --color-bg-elevated: #071009;
    --color-bg-card: rgba(255, 255, 255, 0.025);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(0, 200, 83, 0.35);
    --color-text-heading: #f2f5f3;
    --color-text-body: #a8b3ab;
    --color-text-muted: #6b756e;
    --gradient-accent: linear-gradient(120deg, #00C853, #4ADE80 50%, #00E5A8);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --nav-height: 68px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img, svg {
    display: block;
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ========== AMBIENT BACKGROUND ========== */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    will-change: transform;
}

.aurora-a {
    width: 55vw;
    height: 55vw;
    top: -25vw;
    right: -15vw;
    background: radial-gradient(circle at 40% 60%, rgba(0, 200, 83, 0.16), rgba(0, 229, 168, 0.05) 55%, transparent 70%);
    animation: aurora-drift-a 26s ease-in-out infinite alternate;
}

.aurora-b {
    width: 45vw;
    height: 45vw;
    bottom: -20vw;
    left: -12vw;
    background: radial-gradient(circle at 60% 40%, rgba(27, 94, 32, 0.28), rgba(0, 200, 83, 0.06) 55%, transparent 70%);
    animation: aurora-drift-b 32s ease-in-out infinite alternate;
}

@keyframes aurora-drift-a {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-8vw, 10vh) scale(1.15); }
}

@keyframes aurora-drift-b {
    from { transform: translate(0, 0) scale(1.1); }
    to   { transform: translate(9vw, -8vh) scale(0.95); }
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 10%, transparent 75%);
}

/* Everything above the ambient layer */
.navbar, .page-view, .footer, .marquee {
    position: relative;
    z-index: 1;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(3, 7, 5, 0.65);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-wordmark {
    height: 40px;
    width: auto;
    color: var(--color-text-heading);
}

.logo-wordmark .wordmark-leaf {
    filter: drop-shadow(0 0 3px rgba(0, 200, 83, 0.5));
    transform-origin: 13.5px 23.5px;
    transition: transform 0.3s ease;
}

.nav-logo:hover .wordmark-leaf {
    transform: scale(1.12);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-heading);
    letter-spacing: -0.02em;
}

.logo-tech {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    position: relative;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 8px 16px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
    color: var(--color-text-heading);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--color-accent-bright);
    background: rgba(0, 200, 83, 0.1);
    box-shadow: inset 0 0 0 1px rgba(0, 200, 83, 0.25);
}

/* Donate CTA in the nav */
.nav-links a.nav-donate {
    margin-left: 8px;
    color: #02150a;
    font-weight: 600;
    background: var(--gradient-accent);
    background-size: 150% auto;
    box-shadow: 0 2px 14px rgba(0, 200, 83, 0.3);
    transition: background-position 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.nav-links a.nav-donate:hover {
    color: #02150a;
    background-position: right center;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.45);
}

.nav-links a.nav-donate.active {
    color: #02150a;
    box-shadow: 0 2px 14px rgba(0, 200, 83, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-text-heading);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== PAGE VIEWS ========== */
.page-view {
    display: none;
    min-height: calc(100vh - var(--nav-height));
    padding-top: var(--nav-height);
}

.page-view.active {
    display: block;
    animation: page-in 0.5s ease both;
}

@keyframes page-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== HERO / HOME ========== */
.hero {
    position: relative;
    min-height: calc(92vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.13) 0%, rgba(0, 229, 168, 0.04) 45%, transparent 70%);
    pointer-events: none;
    will-change: transform;
}

.hero-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background:
        radial-gradient(circle, transparent 34.8%, rgba(0, 200, 83, 0.10) 35%, transparent 35.4%),
        radial-gradient(circle, transparent 49.8%, rgba(0, 200, 83, 0.06) 50%, transparent 50.4%),
        radial-gradient(circle, transparent 64.8%, rgba(0, 200, 83, 0.04) 65%, transparent 65.4%);
    animation: rings-breathe 8s ease-in-out infinite;
}

@keyframes rings-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50%      { transform: translate(-50%, -50%) scale(1.05); opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    max-width: 960px;
}

/* Staggered entrance */
.hero-badge, .hero-brand, .hero-tagline, .hero-subtitle, .hero-cta {
    animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge    { animation-delay: 0.1s; }
.hero-brand    { animation-delay: 0.25s; }
.hero-tagline  { animation-delay: 0.45s; }
.hero-subtitle { animation-delay: 0.6s; }
.hero-cta      { animation-delay: 0.75s; }

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll-cue {
    animation: cue-in 1s ease 1.4s both;
}

@keyframes cue-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-accent-bright);
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(0, 200, 83, 0.07);
    border: 1px solid rgba(0, 200, 83, 0.22);
    box-shadow: 0 0 24px rgba(0, 200, 83, 0.12), inset 0 0 12px rgba(0, 200, 83, 0.05);
    margin-bottom: 32px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-badge-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent-bright);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: badge-pulse 2.4s ease-out infinite;
}

@keyframes badge-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-brand {
    font-family: var(--font-heading);
    font-size: clamp(2.9rem, 11vw, 8rem);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 12px;
    letter-spacing: -0.04em;
    text-shadow: 0 0 80px rgba(0, 200, 83, 0.25);
}

.hero-brand .dot-tech {
    background: var(--gradient-accent);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 5s ease-in-out infinite alternate;
}

@keyframes gradient-shift {
    from { background-position: 0% center; }
    to   { background-position: 100% center; }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    color: var(--color-text-body);
    margin-bottom: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.tagline-highlight {
    position: relative;
    color: var(--color-accent-bright);
    white-space: nowrap;
}

.tagline-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-accent);
    box-shadow: 0 0 12px rgba(0, 200, 83, 0.6);
    transform-origin: left;
    animation: underline-grow 1s ease 1.2s both;
}

@keyframes underline-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    color: var(--color-text-muted);
    margin-bottom: 44px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-cue-line {
    display: block;
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, transparent, var(--color-accent));
    position: relative;
    overflow: hidden;
}

.scroll-cue-line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, #fff);
    animation: scroll-drip 2.2s ease-in-out infinite;
}

@keyframes scroll-drip {
    to { top: 110%; }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient-accent);
    background-size: 150% auto;
    color: #02150a;
    box-shadow: 0 4px 24px rgba(0, 200, 83, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-position: right center;
    box-shadow: 0 8px 32px rgba(0, 200, 83, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-heading);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-hover);
    background: rgba(0, 200, 83, 0.06);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-heading);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-card);
    border-color: var(--color-border-hover);
}

.btn-accent {
    background: var(--color-accent);
    color: #000;
}

.btn-accent:hover {
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
}

/* ========== MARQUEE ========== */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.015);
    padding: 18px 0;
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-group span {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 0 28px;
    white-space: nowrap;
}

.marquee-group i {
    font-style: normal;
    color: var(--color-accent);
    opacity: 0.8;
    font-size: 0.8rem;
}

@keyframes marquee-scroll {
    to { transform: translateX(-50%); }
}

/* ========== SECTION COMMON ========== */
.section {
    padding: 110px 0;
}

.page-section {
    padding-top: 80px;
}

.home-services {
    padding-top: 56px;
    padding-bottom: 110px;
}

.section-header {
    margin-bottom: 48px;
}

.eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent-bright);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gradient-accent);
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.6);
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-body);
    max-width: 560px;
}

/* ========== SCROLL REVEAL ========== */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ========== HOME MISSION ========== */
.home-mission {
    padding-bottom: 0;
}

.mission-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-text-heading);
    max-width: 940px;
    letter-spacing: -0.02em;
}

.mission-tech {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mission-glow {
    color: var(--color-accent-bright);
    text-shadow: 0 0 32px rgba(0, 200, 83, 0.45);
}

.mission-sub {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-muted);
    margin-top: 20px;
    max-width: 900px;
}

/* ========== SERVICES (bento grid) ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card.card-featured {
    grid-column: span 2;
}

.service-card {
    position: relative;
    padding: 34px 30px;
    border-radius: 18px;
    background:
        linear-gradient(var(--color-bg-card), var(--color-bg-card)) padding-box,
        linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 45%, rgba(0, 200, 83, 0.12)) border-box;
    border: 1px solid transparent;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Cursor spotlight (coordinates set from JS) */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 200, 83, 0.1), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 200, 83, 0.18);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, rgba(0, 200, 83, 0.16), rgba(0, 229, 168, 0.05));
    border: 1px solid rgba(0, 200, 83, 0.22);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-card-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 0 32px rgba(0, 200, 83, 0.3);
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent-bright);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 46ch;
}

/* ========== DONATE ========== */
.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
}

.donate-cta {
    text-align: center;
    margin-top: 48px;
}

.donate-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ========== APPS ========== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.app-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-accent-bright);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0, 200, 83, 0.08);
    border: 1px solid rgba(0, 200, 83, 0.25);
    box-shadow: 0 0 16px rgba(0, 200, 83, 0.1);
}

.app-coming-soon::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-bright);
    animation: badge-pulse 2.4s ease-out infinite;
}

.app-suggest-card {
    background:
        linear-gradient(rgba(5, 11, 7, 0.94), rgba(5, 11, 7, 0.94)) padding-box,
        repeating-linear-gradient(45deg, rgba(0, 200, 83, 0.45) 0 6px, rgba(0, 200, 83, 0.08) 6px 12px) border-box;
}

.app-suggest-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-bright);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-suggest-link:hover {
    opacity: 0.85;
    transform: translateX(3px);
}

.blogs-upcoming {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.blog-teaser {
    padding: 24px;
    border-radius: 14px;
    background: var(--color-bg-card);
    border: 1px dashed var(--color-border);
    transition: border-color 0.2s ease;
}

.blog-teaser:hover {
    border-color: var(--color-border-hover);
}

.blog-teaser-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-accent);
    background: rgba(0, 200, 83, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.blog-teaser h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.blog-teaser p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ========== PAPERS ========== */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.paper-card {
    padding: 24px;
    border-radius: 14px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: border-color 0.2s ease;
}

.paper-card:hover {
    border-color: var(--color-border-hover);
}

.paper-card-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paper-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 8px;
}

.paper-card-summary {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 14px;
}

.paper-card-link {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
}

.paper-card-link:hover {
    opacity: 0.8;
}

.paper-card-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.paper-card:hover .paper-card-link::after {
    transform: translateX(3px);
}

/* ========== CONTACT ========== */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: border-color 0.2s ease;
}

.contact-item:hover {
    border-color: var(--color-border-hover);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-text-muted);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.contact-item:hover svg {
    stroke: var(--color-accent);
}

.contact-item span {
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--color-text-body);
}

/* ========== FOOTER ========== */
.footer {
    position: relative;
    padding: 44px 0;
    margin-top: 90px;
    background: rgba(255, 255, 255, 0.012);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 83, 0.45), transparent);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo .logo-wordmark {
    height: 32px;
    color: var(--color-text-body);
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-accent-bright);
}

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

/* ========== SELECTION ========== */
::selection {
    background: rgba(0, 200, 83, 0.25);
    color: #fff;
}

/* ========== FOCUS ========== */
button:focus-visible, a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .hero-canvas {
        display: none;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card.card-featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px 20px 24px;
        background: rgba(3, 7, 5, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        display: block;
        text-align: center;
        font-size: 1rem;
        padding: 12px;
    }

    .nav-links a.nav-donate {
        margin-left: 0;
        margin-top: 6px;
    }

    .section {
        padding: 72px 0;
    }

    .hero {
        min-height: calc(88vh - var(--nav-height));
    }

    .hero-brand {
        letter-spacing: -0.03em;
    }

    .hero-rings {
        width: 560px;
        height: 560px;
    }

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

    .service-card.card-featured {
        grid-column: span 1;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
