/* --- BIOPHOTONS PREMIUM LIGHT THEME --- */

:root {
    /* Brand Colors Inspired by Biohealing Logo */
    --primary: #1a1c20;
    --body-text: #4a4d55;
    
    /* Vibrant Logo Gradients */
    --accent-magenta: #e91e63;
    --accent-cyan: #00bcd4;
    --accent-yellow: #ffc107;
    --accent-green: #4caf50;
    
    /* Blended Glows */
    --glow-magenta: rgba(233, 30, 99, 0.4);
    --glow-cyan: rgba(0, 188, 212, 0.4);
    --glow-yellow: rgba(255, 193, 7, 0.4);
    --glow-green: rgba(76, 175, 80, 0.4);
    
    /* Deep Glassmorphism Tokens */
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    --glass-bg-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 10px 30px rgba(31, 38, 135, 0.08), 0 1px 3px rgba(0,0,0,0.02);
    --glass-shadow-hover: 0 15px 40px rgba(31, 38, 135, 0.15), 0 0 40px var(--glow-cyan);

    /* Legacy aliases (pages migrated from home.css still reference these in markup) */
    --neon-cyan: var(--accent-cyan);
    --neon-gold: var(--accent-yellow);
    --neon-purple: #ab47bc;
    --neon-green: var(--accent-green);

    --footer-bg: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    --footer-border: rgba(0, 0, 0, 0.06);
    --footer-text-muted: #64748b;

    /* Single homepage column — matches .hero-glass-card / .contact-glass-card */
    --home-content-max: 800px;

    /* Rainbow rim — shared by hero, Meet Matt card, and contact glass */
    --glass-rim-gradient: linear-gradient(
        90deg,
        var(--accent-magenta),
        #9c27b0,
        var(--accent-cyan),
        var(--accent-green),
        var(--accent-yellow)
    );
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    /* Static gradient — animated background-position repainted the full page every frame (scroll jank). */
    background: linear-gradient(160deg, #f0f4f8 0%, #e8f4f3 22%, #ffffff 45%, #fdf2f6 72%, #fff8e1 100%);
    color: var(--body-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* --- AMBIENT FLOATING GLOWS --- */
/* Smaller blur + no motion: huge blur(100px) + infinite transform killed scroll/composite on modest GPUs. */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(56px);
    z-index: -1;
    pointer-events: none;
    contain: strict;
    will-change: auto;
}

.glow-magenta {
    background: radial-gradient(circle, var(--glow-magenta) 0%, transparent 72%);
    width: 48vw;
    height: 48vw;
    top: -8%;
    right: -8%;
    opacity: 0.75;
}

.glow-cyan {
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 72%);
    width: 52vw;
    height: 52vw;
    bottom: -18%;
    left: -8%;
    opacity: 0.7;
}

.glow-yellow {
    background: radial-gradient(circle, var(--glow-yellow) 0%, transparent 72%);
    width: 40vw;
    height: 40vw;
    top: 38%;
    left: 28%;
    opacity: 0.45;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .heading-font {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
}

/* First homepage hero sits under fixed nav — scroll button sits between nav and hero, so use a dedicated class */
body.page-home .profile-hero--home-top {
    margin-top: calc(clamp(80px, 11vw, 104px) + env(safe-area-inset-top, 0px));
}

/* --- PREMIUM HERO SECTION --- */
.profile-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 60px 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.hero-glass-card {
    position: relative;
    width: 100%;
    max-width: var(--home-content-max);
    padding: 80px 40px;
    border-radius: 40px;
    text-align: center;
    overflow: visible;

    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 28px 56px -14px rgba(31, 38, 135, 0.2),
        0 14px 32px rgba(106, 27, 154, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 0 48px rgba(0, 188, 212, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Rainbow rim — homepage hero + profile contact card (see .hero-glass--rim on markup) */
.hero-glass-card.hero-glass--rim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-radius: 40px 40px 0 0;
    background: var(--glass-rim-gradient);
    z-index: 6;
    pointer-events: none;
}

/* Clip rim + glass to shared radius (avoids rainbow strip reading “square” past curved corners) */
.hero-glass-card.hero-glass--rim {
    overflow: hidden;
}

.hero-glass-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 36px 64px -12px rgba(31, 38, 135, 0.24),
        0 18px 40px rgba(0, 188, 212, 0.16),
        0 0 0 1px rgba(0, 0, 0, 0.07),
        0 0 56px rgba(233, 30, 99, 0.12);
}

.hero-intro h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, var(--accent-magenta), var(--accent-cyan), var(--accent-yellow), var(--accent-green));
    background-size: 280% auto;
    background-position: 0% center;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerText 14s linear infinite;
    text-transform: uppercase;
    letter-spacing: -1px;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-intro h1 {
        animation: none;
        background-size: 100% auto;
    }
}

.hero-intro h2 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 600;
    color: var(--body-text);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.hero-logos-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 10px auto 0;
    padding: 10px 0 14px;
}

/* Row wraps logos; light side padding so outward wedges aren’t clipped by the glass card */
.hero-logos-row {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 0 clamp(10px, 2.5vw, 18px);
}

.hero-prism-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.hero-logos-inline {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 4vw, 28px);
    z-index: 1;
    padding: 14px min(24px, 3vw) 18px;
}

.hero-logos-inline .inline-logo {
    position: relative;
    z-index: 1;
}

.hero-divider {
    height: 3px;
    width: 120px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    margin: 0 auto 40px;
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

/* --- PRODUCT CARDS (PROMO BLOCKS) --- */
.links-container {
    width: 100%;
    max-width: var(--home-content-max);
    margin-inline: auto;
    align-self: center;
    padding: 0 0 60px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.home-rail-divider {
    width: 100%;
    height: 1px;
    margin: 36px 0 8px;
    border: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 188, 212, 0.35) 22%,
        rgba(233, 30, 99, 0.35) 50%,
        rgba(171, 71, 188, 0.3) 78%,
        transparent
    );
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.section-title {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    position: relative;
    display: block;
    width: 100%;
    align-self: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--accent-magenta);
    border-radius: 2px;
}

.promo-block {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    perspective: 1000px;
}

/* Stream + Eluumis promos: same image frame height (learn grid uses its own compact tiles) */
.promo-block.home-promo-tall .product-card-image {
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 268px;
}

/* Homepage: three-up row for “Learn About Biophotons” on wide screens */
.home-learn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
}

@media (min-width: 1024px) {
    .home-learn-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        align-items: stretch;
    }

    .home-learn-grid .product-card-image {
        height: 200px;
    }
}

/* --- Homepage product promo cards (light-native glass, mirrors dark-site structure) --- */
.product-card-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0;
    gap: 0;
    border-radius: 26px;
    overflow: hidden;
    text-decoration: none;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(0, 188, 212, 0.38);
    box-shadow:
        0 4px 24px rgba(31, 38, 135, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card-container:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 188, 212, 0.55);
    box-shadow:
        0 20px 48px rgba(31, 38, 135, 0.14),
        0 0 36px rgba(0, 188, 212, 0.18);
}

/* Default Eluumis rows (cyan frame — matches dark-site “device” cards) */
.product-card-container:not(.purple-theme):not(.green-theme) {
    border-color: rgba(0, 188, 212, 0.42);
}

.product-card-container:not(.purple-theme):not(.green-theme):hover {
    border-color: rgba(0, 151, 167, 0.65);
    box-shadow:
        0 22px 52px rgba(31, 38, 135, 0.13),
        0 0 40px rgba(0, 188, 212, 0.2);
}

/* Purple frame — Biohealing Stream promos */
.product-card-container.purple-theme {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(171, 71, 188, 0.48);
    box-shadow:
        0 4px 28px rgba(106, 27, 154, 0.14),
        0 0 48px rgba(171, 71, 188, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.product-card-container.purple-theme:hover {
    border-color: rgba(171, 71, 188, 0.68);
    box-shadow:
        0 22px 52px rgba(106, 27, 154, 0.22),
        0 0 56px rgba(233, 30, 99, 0.18),
        0 0 72px rgba(171, 71, 188, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

/* Green frame — Learn row */
.product-card-container.green-theme {
    background: rgba(255, 255, 255, 0.52);
    border-color: rgba(46, 125, 50, 0.42);
    box-shadow:
        0 4px 26px rgba(46, 125, 50, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.product-card-container.green-theme:hover {
    border-color: rgba(46, 125, 50, 0.62);
    box-shadow:
        0 22px 48px rgba(46, 125, 50, 0.14),
        0 0 38px rgba(76, 175, 80, 0.2);
}

.product-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: inset 0 -12px 32px rgba(15, 23, 42, 0.12);
}

/* Stream promos: taller frame + violet tray (fixed short height was flattening the art) */
.product-card-container.purple-theme .product-card-image {
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 260px;
    background: radial-gradient(120% 100% at 50% 38%, #3d1f5c 0%, #16081f 100%);
    box-shadow: inset 0 -36px 64px rgba(106, 27, 154, 0.55);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s ease;
}

.product-card-container:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-container.purple-theme .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    transform: scale(1.12);
    transform-origin: center center;
}

.product-card-container.purple-theme:hover .product-card-image img {
    transform: scale(1.18);
}

/* Lead Stream promo: crop top letterbox — pull art up + zoom from bottom (overflow clips) */
.page-home .home-promo-lead .product-card-container.purple-theme .product-card-image {
    background: #120818;
}

.page-home .home-promo-lead .product-card-container.purple-theme .product-card-image img {
    object-fit: cover;
    object-position: center center;
    transform: scale(2.2);
    transform-origin: center center;
}

.page-home .home-promo-lead .product-card-container.purple-theme:hover .product-card-image img {
    transform: scale(2.25);
    transform-origin: center center;
}

/* Fade promo art into the CTA band (cyan default — matches Eluumis footer tint) */
.product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 118, 134, 0.52) 0%,
        rgba(0, 151, 167, 0.12) 46%,
        transparent 76%
    );
    pointer-events: none;
}

/* Violet mist toward footer — footer overlaps image so this mostly paints mid frame */
.product-card-container.purple-theme .product-card-image::after {
    background: linear-gradient(
        to top,
        rgba(248, 237, 255, 0.55) 0%,
        rgba(214, 166, 235, 0.35) 14%,
        rgba(123, 31, 162, 0.55) 38%,
        rgba(45, 21, 72, 0.35) 62%,
        transparent 90%
    );
}

.product-card-container.green-theme .product-card-image::after {
    background: linear-gradient(
        to top,
        rgba(27, 94, 32, 0.35) 0%,
        rgba(27, 94, 32, 0.06) 45%,
        transparent 75%
    );
}

/* CTA strip below image (tinted glass slab — parent of badge + .link-card) */
.product-card-container > .product-card-image + div {
    position: relative;
    width: 100%;
    margin-top: 0;
    padding: 22px 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.65);
}

/* Extra head-room when a pill badge overlaps the seam */
.product-card-container > .product-card-image + div:has(.promo-badge) {
    padding-top: 36px;
}

.product-card-container:not(.purple-theme):not(.green-theme) > .product-card-image + div {
    background: linear-gradient(180deg, rgba(224, 247, 250, 0.92) 0%, rgba(178, 235, 242, 0.65) 100%);
}

/* Slide CTA glass over the artwork — kills the hard horizontal seam */
.product-card-container.purple-theme > .product-card-image + div {
    margin-top: clamp(-44px, -11vw, -36px);
    padding: 26px 20px 22px;
    border-top: none;
    border-radius: 22px 22px 0 0;
    z-index: 4;
    background:
        linear-gradient(
            180deg,
            rgba(255, 254, 255, 0.52) 0%,
            rgba(246, 232, 255, 0.78) 35%,
            rgba(228, 196, 248, 0.92) 100%
        );
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(171, 71, 188, 0.14),
        0 -20px 50px rgba(106, 27, 154, 0.28),
        0 -4px 24px rgba(233, 30, 99, 0.12);
}

.product-card-container.purple-theme > .product-card-image + div:has(.promo-badge) {
    padding-top: 44px;
}

@media (max-width: 820px) {
    .links-container {
        padding: 0 20px 60px;
    }
}

@media (max-width: 768px) {
    .promo-block.home-promo-tall .product-card-container.purple-theme .product-card-image {
        aspect-ratio: 4 / 3;
        min-height: 220px;
    }

    .product-card-container.purple-theme > .product-card-image + div {
        margin-top: -36px;
    }

    .product-card-container.purple-theme .product-card-image img {
        transform: scale(1.08);
    }

    .product-card-container.purple-theme:hover .product-card-image img {
        transform: scale(1.14);
    }

    .page-home .home-promo-lead .product-card-container.purple-theme .product-card-image img {
        transform: scale(2.4);
        transform-origin: center center;
    }

    .page-home .home-promo-lead .product-card-container.purple-theme:hover .product-card-image img {
        transform: scale(2.45);
        transform-origin: center center;
    }
}

.product-card-container.green-theme > .product-card-image + div {
    background: linear-gradient(180deg, rgba(232, 245, 233, 0.96) 0%, rgba(200, 230, 201, 0.72) 100%);
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 18px 16px;
    text-align: center;
    position: relative;
    z-index: 2;
    border-radius: 18px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.card-main-text {
    display: block;
    width: 100%;
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--primary);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
}

.learn-subtext {
    display: block;
    font-size: 0.9rem;
    color: rgba(26, 28, 32, 0.72);
    margin-top: 8px;
    font-weight: 600;
    text-align: center;
}

/* Homepage promo CTAs — solid theme fills, white type (no white “pill on tint”) */
.stream-card,
.stream-sub-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(135deg, #5e1594 0%, #7b1fa2 38%, #ab47bc 72%, #8e24aa 100%);
    border: 1px solid rgba(74, 20, 120, 0.55);
    box-shadow: 0 10px 32px rgba(106, 27, 154, 0.45);
}

.stream-card:hover,
.stream-sub-card:hover {
    background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 45%, #c2185b 100%);
    border-color: rgba(106, 27, 154, 0.65);
    box-shadow: 0 14px 40px rgba(106, 27, 154, 0.55);
    transform: scale(1.01);
}

.product-card-container.purple-theme .stream-card .card-main-text,
.product-card-container.purple-theme .stream-sub-card .card-main-text {
    color: #fff !important;
}

.eluumis-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(135deg, #006064 0%, #00838f 40%, #00acc1 100%);
    border: 1px solid rgba(0, 77, 83, 0.55);
    box-shadow: 0 10px 32px rgba(0, 131, 143, 0.4);
}

.eluumis-card:hover {
    background: linear-gradient(135deg, #00838f 0%, #00bcd4 55%, #0097a7 100%);
    border-color: rgba(0, 96, 100, 0.7);
    box-shadow: 0 14px 40px rgba(0, 151, 167, 0.45);
    transform: scale(1.01);
}

.product-card-container:not(.purple-theme):not(.green-theme) .eluumis-card .card-main-text {
    color: #fff !important;
}

.green-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 45%, #43a047 100%) !important;
    border: 1px solid rgba(13, 59, 16, 0.55) !important;
    box-shadow: 0 10px 32px rgba(27, 94, 32, 0.38) !important;
}

.green-card:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 50%, #66bb6a 100%) !important;
    border-color: rgba(27, 94, 32, 0.75) !important;
    box-shadow: 0 14px 40px rgba(46, 125, 50, 0.42) !important;
    transform: scale(1.01);
}

.product-card-container.green-theme .green-card .card-main-text,
.product-card-container.green-theme .green-card .learn-subtext {
    color: #fff !important;
}

.product-card-container.green-theme .green-card .learn-subtext {
    opacity: 0.92;
    font-weight: 600;
}

/* Pill badges — centered on CTA band top edge */
.promo-badge {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5rem;
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 28px rgba(31, 38, 135, 0.18);
}

.promo-badge.purple-pop {
    background: linear-gradient(135deg, #ab47bc 0%, #e91e63 100%);
    box-shadow:
        0 10px 28px rgba(31, 38, 135, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.55) inset,
        0 0 24px rgba(233, 30, 99, 0.35);
    font-size: 0.85rem;
}

.promo-badge.blue-pop {
    background: linear-gradient(135deg, #00acc1 0%, #0288d1 100%);
    color: #fff;
    font-size: 0.85rem;
}

.green-theme {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-title.purple-text {
    color: #6a1b9a;
}

.section-title.purple-text::after {
    background: linear-gradient(90deg, #ab47bc, #e91e63);
}

.section-title.green-text {
    color: #2e7d32;
}

.section-title.green-text::after {
    background: linear-gradient(90deg, #43a047, #66bb6a);
}

/* Meet Matt nested card */
.learn-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(0, 188, 212, 0.38);
    border-radius: 22px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    color: var(--primary);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.learn-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(0, 188, 212, 0.55);
    box-shadow: 0 18px 44px rgba(31, 38, 135, 0.14), 0 0 32px rgba(0, 188, 212, 0.15);
}

.learn-img-wrapper {
    width: 100%;
    overflow: hidden;
}

.learn-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s ease;
}

.learn-card:hover .learn-img-wrapper img {
    transform: scale(1.04);
}

.learn-card .learn-text {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    padding: 18px 16px 4px;
    color: var(--primary);
}

.learn-card .learn-subtext {
    display: block;
    text-align: center;
    padding: 0 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--body-text);
}

.blue-glass-effect {
    border-color: rgba(0, 188, 212, 0.45);
}

/* Meet Matt card — same rainbow rim as contact / hero */
.learn-card.blue-glass-effect {
    position: relative;
}

.learn-card.blue-glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-radius: 22px 22px 0 0;
    background: var(--glass-rim-gradient);
    z-index: 4;
    pointer-events: none;
}

.home-profile-nested {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.home-profile-nested .learn-card {
    min-height: 320px;
}

.learn-img-wrapper--meet {
    height: 280px;
}

.learn-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.learn-text--plain {
    color: var(--primary);
    text-shadow: none;
}

/* Meet Matt — text band under art (blue panel, white type) */
.learn-card-foot--meet {
    background: linear-gradient(165deg, #0277bd 0%, #00838f 48%, #006064 100%);
}

.learn-card-foot--meet .learn-text {
    color: #fff !important;
    padding: 20px 16px 6px;
}

.learn-card-foot--meet .learn-subtext {
    color: rgba(255, 255, 255, 0.92) !important;
    padding: 0 16px 22px;
}

@media (max-width: 768px) {
    .learn-img-wrapper--meet {
        height: 220px;
    }

    .home-profile-nested .learn-card {
        min-height: 280px;
    }

    .product-card-container:hover {
        transform: translateY(-3px);
    }

    .product-card-image {
        height: 220px;
    }
}

/* --- PROFILE SECTION --- */
.profile-img-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
    z-index: 1;
    opacity: 0.85;
}

.hero-name {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title--spaced {
    margin-bottom: 30px;
}

/* --- SOCIAL ICONS --- */
.social-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-row--profile {
    margin-top: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.1);
    background: var(--accent-cyan);
    color: white;
    box-shadow: 0 15px 25px var(--glow-cyan);
    border-color: transparent;
}

/* --- Shared demo contact form (/contact + /balls) --- */
.demo-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.demo-contact-honeypot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.demo-contact-field {
    position: relative;
}

.demo-contact-field > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00bcd4;
    opacity: 0.75;
    z-index: 1;
    pointer-events: none;
}

.demo-contact-input,
.demo-contact-textarea {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color: var(--primary);
    outline: none;
    box-sizing: border-box;
    font: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.demo-contact-textarea {
    padding: 14px;
    resize: none;
}

.demo-contact-input:focus,
.demo-contact-textarea:focus {
    border-color: rgba(8, 145, 178, 0.45);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.demo-contact-turnstile {
    min-height: 65px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    margin: 4px 0;
}

.demo-contact-turnstile--error {
    min-height: auto;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(229, 57, 53, 0.35);
    background: rgba(255, 235, 238, 0.95);
}

.demo-contact-turnstile-msg {
    margin: 0;
    color: #b71c1c;
    font-size: 0.92rem;
    line-height: 1.45;
}

.demo-contact-btn {
    background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
    color: #fff;
    font-weight: 800;
    border: none;
    padding: 15px 18px;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
    font-size: 0.95rem;
    width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.demo-contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(236, 64, 122, 0.28);
}

/* --- CONTACT SECTION --- */
.contact-section {
    width: 100%;
    padding: 80px 20px;
    position: relative;
    z-index: 10;
}

.contact-glass-card {
    max-width: var(--home-content-max);
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 28px 56px -14px rgba(31, 38, 135, 0.2),
        0 14px 32px rgba(106, 27, 154, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.07),
        0 0 48px rgba(0, 188, 212, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-radius: 40px 40px 0 0;
    background: var(--glass-rim-gradient);
}

.contact-title {
    font-size: clamp(1.85rem, 4.5vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--body-text);
    margin-bottom: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.stunning-form input,
.stunning-form textarea {
    width: 100%;
    padding: 20px 25px;
    background: rgba(248, 250, 252, 0.98);
    border: 2px solid rgba(26, 28, 32, 0.12);
    border-radius: 16px;
    font-size: 1.1rem;
    color: var(--primary);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    box-shadow:
        inset 0 1px 4px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.95);
}

.stunning-form textarea {
    min-height: 150px;
    resize: vertical;
}

.stunning-form input:focus,
.stunning-form textarea:focus {
    background: white;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px var(--glow-cyan), inset 0 2px 5px rgba(0,0,0,0.01);
}

.stunning-form label {
    position: absolute;
    top: 20px;
    left: 25px;
    color: #888;
    font-size: 1.1rem;
    pointer-events: none;
    transition: 0.3s ease all;
}

.stunning-form .demo-contact-turnstile {
    min-height: 65px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    margin: 4px 0 8px;
}

.stunning-form input:focus ~ label,
.stunning-form input:not(:placeholder-shown) ~ label,
.stunning-form textarea:focus ~ label,
.stunning-form textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    left: 20px;
    font-size: 0.85rem;
    padding: 2px 10px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 700;
}

.btn-submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 22px;
    background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    box-shadow: 0 10px 20px var(--glow-magenta);
}

.btn-submit__label {
    position: relative;
    z-index: 1;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transition: left 0.55s ease;
    pointer-events: none;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--glow-cyan);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
}

.btn-submit:hover::after {
    left: 100%;
}

/* --- Contact flash (light theme, no duplicate dark-neon blocks) --- */
.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.flash-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.06);
}

.flash-banner__icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.flash-banner__text {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--primary);
}

.flash-banner--error {
    border-color: rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.9));
}

.flash-banner--error .flash-banner__icon {
    color: #dc2626;
}

.flash-banner--success {
    border-color: rgba(46, 125, 50, 0.35);
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.95), rgba(255, 255, 255, 0.92));
}

.flash-banner--success .flash-banner__icon {
    color: #2e7d32;
}

/* --- UTILITIES --- */
.inline-logo {
    max-width: 140px;
    height: auto;
    margin: 0 10px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
    .hero-glass-card {
        padding: 50px 20px;
    }
    .contact-glass-card {
        padding: 40px 20px;
    }
}

/* --- Layout utility (Stream page + shared sections) --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Optional cosmic backdrop (Contact, Learn, Balls, etc.) --- */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(circle at 30% 20%, rgba(0, 188, 212, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(233, 30, 99, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
}

/* --- Unified hero strips (replaces dark overlays from home.css) --- */
.unified-hero {
    min-height: 58vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-learn {
    background-image: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.72)),
        url('../images/learn_hero_science.png');
}

.bg-affiliate {
    background-image: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.7)),
        url('../images/affiliates/network_hero.png');
}

.bg-monica {
    background-image: linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.65)),
        url('../images/monicapics/photo_2026-05-23_17-15-57.jpg');
}

.bg-contact {
    background-image: linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.65)),
        url('../images/monicapics/photo_2026-05-23_17-15-57.jpg');
}

.unified-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--primary);
}

.unified-hero h1.text-cyan {
    background: linear-gradient(to right, var(--primary), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.unified-hero h1.text-gold {
    background: linear-gradient(to right, var(--primary), var(--accent-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.unified-hero p {
    font-size: 1.35rem;
    color: var(--body-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.65;
}

/* --- Site navigation (light glass bar) --- */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px 0;
    box-shadow: 0 4px 24px rgba(31, 38, 135, 0.06);
    transition: box-shadow 0.3s ease;
}

@media (min-width: 901px) {
    .site-nav {
        border-bottom: none;
    }

    .site-nav::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background: var(--glass-rim-gradient);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
        pointer-events: none;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 0 20px;
}

.page-home .nav-container {
    max-width: var(--home-content-max);
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-link__icon {
    font-size: 0.92rem;
    width: 1.15em;
    flex-shrink: 0;
    text-align: center;
    opacity: 0.88;
    line-height: 1;
}

.nav-link__text {
    line-height: 1.2;
}

.nav-link:hover .nav-link__icon,
.nav-link.active .nav-link__icon {
    opacity: 1;
}

.nav-link:hover {
    background: rgba(0, 188, 212, 0.12);
    color: var(--accent-cyan);
    border-color: rgba(0, 188, 212, 0.35);
    box-shadow: 0 4px 18px rgba(0, 188, 212, 0.15);
}

.nav-link.active {
    background: rgba(0, 188, 212, 0.18);
    color: var(--accent-cyan);
    border-color: rgba(0, 188, 212, 0.45);
    box-shadow: 0 4px 22px rgba(0, 188, 212, 0.2);
}

/* --- Mobile Menu Energy Weave (Hidden on Desktop) --- */
.energy-canvas {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.energy-path {
    fill: none;
    stroke: url(#weaveGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0.8;
}

.energy-path.animate-draw {
    animation: drawEnergy 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards, glowPulse 3s infinite alternate;
}

@keyframes drawEnergy {
    to { stroke-dashoffset: 0; }
}

@keyframes glowPulse {
    0% { opacity: 0.6; stroke-width: 2.5; }
    100% { opacity: 1; stroke-width: 3.5; }
}

.nav-node {
    display: none;
}

.mobile-menu-toggle {
    display: none;
}

.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 188, 212, 0.45);
    border-radius: 50%;
    color: var(--accent-cyan);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
}

.scroll-top-btn:hover {
    background: var(--accent-cyan);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 188, 212, 0.35);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 900px) {
    .site-nav {
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        pointer-events: none;
        padding: 32px 0 !important;
    }

    .nav-container {
        pointer-events: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 31px 20px 28px;
        border-bottom: 1px solid rgba(0, 188, 212, 0.25);
        box-shadow: 0 18px 48px rgba(31, 38, 135, 0.12);
        text-align: center;
        gap: 16px;
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--glass-rim-gradient);
        pointer-events: none;
    }

    .nav-links.mobile-active {
        display: flex;
        animation: fadeInDown 0.28s ease forwards;
    }
    
    .energy-canvas {
        display: block;
    }
    
    .nav-link {
        position: relative;
        z-index: 2;
        justify-content: flex-start;
        padding-left: 28%;
        min-height: 56px;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .nav-link:hover, .nav-link.active {
        background: transparent !important;
        box-shadow: none !important;
        color: var(--primary);
    }
    
    .nav-node {
        display: block;
        position: absolute;
        left: 15%;
        top: 50%;
        transform: translateY(-50%);
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #fff;
        z-index: 3;
    }
    
    /* Rainbow colors for nodes */
    .nav-link:nth-of-type(1) .nav-node { background: #00acc1; box-shadow: 0 0 10px 2px #00acc1, 0 0 20px 5px rgba(0,172,193,0.4); }
    .nav-link:nth-of-type(2) .nav-node { background: #f9a825; box-shadow: 0 0 10px 2px #f9a825, 0 0 20px 5px rgba(249,168,37,0.4); }
    .nav-link:nth-of-type(3) .nav-node { background: #8bc34a; box-shadow: 0 0 10px 2px #8bc34a, 0 0 20px 5px rgba(139,195,74,0.4); }
    .nav-link:nth-of-type(4) .nav-node { background: #e91e63; box-shadow: 0 0 10px 2px #e91e63, 0 0 20px 5px rgba(233,30,99,0.4); }
    .nav-link:nth-of-type(5) .nav-node { background: #9c27b0; box-shadow: 0 0 10px 2px #9c27b0, 0 0 20px 5px rgba(156,39,176,0.4); }
    .nav-link:nth-of-type(6) .nav-node { background: #0288d1; box-shadow: 0 0 10px 2px #0288d1, 0 0 20px 5px rgba(2,136,209,0.4); }
    
    /* Make the active text and icon glow */
    .nav-link:nth-of-type(1).active { color: #00acc1 !important; text-shadow: 0 0 12px rgba(0,172,193,0.6); }
    .nav-link:nth-of-type(2).active { color: #f9a825 !important; text-shadow: 0 0 12px rgba(249,168,37,0.6); }
    .nav-link:nth-of-type(3).active { color: #8bc34a !important; text-shadow: 0 0 12px rgba(139,195,74,0.6); }
    .nav-link:nth-of-type(4).active { color: #e91e63 !important; text-shadow: 0 0 12px rgba(233,30,99,0.6); }
    .nav-link:nth-of-type(5).active { color: #9c27b0 !important; text-shadow: 0 0 12px rgba(156,39,176,0.6); }
    .nav-link:nth-of-type(6).active { color: #0288d1 !important; text-shadow: 0 0 12px rgba(2,136,209,0.6); }

    /* Make the active node bigger and brighter */
    .nav-link.active .nav-node {
        transform: translateY(-50%) scale(1.6);
    }
    
    .nav-link:nth-of-type(1).active .nav-node { box-shadow: 0 0 15px 4px #00acc1, 0 0 30px 8px rgba(0,172,193,0.6); }
    .nav-link:nth-of-type(2).active .nav-node { box-shadow: 0 0 15px 4px #f9a825, 0 0 30px 8px rgba(249,168,37,0.6); }
    .nav-link:nth-of-type(3).active .nav-node { box-shadow: 0 0 15px 4px #8bc34a, 0 0 30px 8px rgba(139,195,74,0.6); }
    .nav-link:nth-of-type(4).active .nav-node { box-shadow: 0 0 15px 4px #e91e63, 0 0 30px 8px rgba(233,30,99,0.6); }
    .nav-link:nth-of-type(5).active .nav-node { box-shadow: 0 0 15px 4px #9c27b0, 0 0 30px 8px rgba(156,39,176,0.6); }
    .nav-link:nth-of-type(6).active .nav-node { box-shadow: 0 0 15px 4px #0288d1, 0 0 30px 8px rgba(2,136,209,0.6); }

    /* And let's add a subtle glowing line from the node to the text! */
    .nav-link.active::after {
        content: '';
        position: absolute;
        left: calc(15% + 14px); /* start right after the node */
        top: 50%;
        transform: translateY(-50%);
        height: 2px;
        width: 15px;
        z-index: 1;
        opacity: 0.8;
    }
    
    .nav-link:nth-of-type(1).active::after { background: linear-gradient(90deg, #00acc1, transparent); box-shadow: 0 0 8px #00acc1; }
    .nav-link:nth-of-type(2).active::after { background: linear-gradient(90deg, #f9a825, transparent); box-shadow: 0 0 8px #f9a825; }
    .nav-link:nth-of-type(3).active::after { background: linear-gradient(90deg, #8bc34a, transparent); box-shadow: 0 0 8px #8bc34a; }
    .nav-link:nth-of-type(4).active::after { background: linear-gradient(90deg, #e91e63, transparent); box-shadow: 0 0 8px #e91e63; }
    .nav-link:nth-of-type(5).active::after { background: linear-gradient(90deg, #9c27b0, transparent); box-shadow: 0 0 8px #9c27b0; }
    .nav-link:nth-of-type(6).active::after { background: linear-gradient(90deg, #0288d1, transparent); box-shadow: 0 0 8px #0288d1; }
    
    .nav-link__icon {
        margin-right: 12px;
        font-size: 1.15rem;
    }

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

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        overflow: visible;
        /* Crisp white background for better contrast */
        background: #ffffff;
        border: 1px solid rgba(0, 188, 212, 0.4);
        padding: 8px 16px;
        border-radius: 30px;
        cursor: pointer;
        transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
        margin-left: auto;
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.1),
            0 8px 24px rgba(0, 188, 212, 0.15);
        width: fit-content;
        pointer-events: auto;
    }

    .mobile-menu-toggle:hover {
        border-color: rgba(0, 188, 212, 0.65);
        box-shadow:
            0 4px 12px rgba(0, 0, 0, 0.15),
            0 12px 28px rgba(0, 188, 212, 0.25);
        transform: scale(1.03);
    }

    .menu-label {
        font-family: 'Outfit', sans-serif;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 2px;
        color: #12151a;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    }

    .toggle-icon-box {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(0, 188, 212, 0.14);
        border-radius: 50%;
        transition: all 0.3s ease;
        box-shadow: inset 0 0 0 1px rgba(0, 148, 162, 0.28);
    }

    .mobile-menu-toggle:hover .toggle-icon-box {
        background: var(--accent-cyan);
        box-shadow: 0 4px 14px rgba(0, 188, 212, 0.35);
    }

    .mobile-menu-toggle i {
        font-size: 1.15rem;
        color: var(--accent-cyan);
        transition: color 0.3s ease;
    }

    .mobile-menu-toggle:hover i {
        color: #fff;
    }
}

@media (max-width: 768px) {
    .nav-link {
        font-size: 1rem;
        padding: 12px 20px 12px 28%;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.55rem;
    }
}

/* --- Button resets (match nav markup) --- */
button.mobile-menu-toggle,
button.scroll-top-btn {
    font-family: 'Outfit', sans-serif;
    color: inherit;
    cursor: pointer;
}

button.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 30px;
}

@media (max-width: 900px) {
    button.mobile-menu-toggle {
        display: flex;
    }
}

button.scroll-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

/* --- Site footer + Phat Stack widget (light) --- */
.site-footer {
    width: 100%;
    background: var(--footer-bg);
    padding: 56px 20px 40px;
    text-align: center;
    border-top: 1px solid var(--footer-border);
    position: relative;
    overflow: hidden;
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 36px;
}

.site-footer-copy {
    color: var(--footer-text-muted);
    font-size: 0.88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.interactive-logo {
    display: flex;
    align-items: center;
    position: relative;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    transition: transform 0.3s ease;
}

.interactive-logo:hover {
    transform: scale(1.04);
}

.mascot-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    margin-right: -2px;
    margin-bottom: 6px;
    z-index: 2;
    transform-origin: bottom right;
    filter: drop-shadow(0 4px 12px rgba(0, 188, 212, 0.25));
    animation: mascot-place 4s infinite ease-in-out;
}

.interactive-logo:hover .mascot-img {
    filter: drop-shadow(0 6px 18px rgba(0, 188, 212, 0.4));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    z-index: 1;
    padding-top: 4px;
    text-align: left;
}

.brand-main {
    font-size: 1.85rem;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

.brand-sub {
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--body-text);
    text-transform: uppercase;
    margin-left: 2px;
    margin-top: 4px;
    animation: sub-pulse-light 4s infinite ease-in-out;
}

.powered-p {
    display: inline-block;
    position: relative;
    color: var(--primary);
    animation: power-pulse-light 4s infinite ease-in-out;
}

.powered-p::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -2px;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    opacity: 0;
    animation: electric-spark 4s infinite ease-in-out;
    z-index: 3;
}

.powered-p::after {
    content: '';
    position: absolute;
    top: 8px;
    left: -14px;
    width: 14px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan));
    opacity: 0;
    transform-origin: right center;
    transform: rotate(-15deg);
    animation: energy-beam 4s infinite ease-in-out;
}

.stack-highlight {
    color: var(--accent-cyan);
    position: relative;
    display: inline-block;
}

.stack-highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-cyan);
    filter: blur(18px);
    opacity: 0;
    animation: stack-glow 4s infinite ease-in-out;
}

@keyframes mascot-place {
    0%, 45% { transform: translateY(0) rotate(0deg); }
    50%, 53% { transform: translateY(10px) translateX(2px) rotate(5deg); }
    60%, 100% { transform: translateY(0) rotate(0deg); }
}

@keyframes power-pulse-light {
    0%, 48% {
        text-shadow: none;
        color: var(--primary);
    }
    50% {
        text-shadow: 0 0 18px rgba(0, 188, 212, 0.45);
        color: #006064;
    }
    55% { text-shadow: 0 0 10px rgba(0, 188, 212, 0.35); }
    60%, 100% {
        text-shadow: none;
        color: var(--primary);
    }
}

@keyframes electric-spark {
    0%, 48% { opacity: 0; transform: scale(0.5); }
    49% { opacity: 1; transform: scale(1.5); }
    51% { opacity: 0.8; transform: scale(1); }
    53% { opacity: 0; transform: scale(0.2); }
    100% { opacity: 0; }
}

@keyframes energy-beam {
    0%, 48% { opacity: 0; width: 0; }
    50% { opacity: 1; width: 16px; }
    53% { opacity: 0.8; width: 14px; }
    55% { opacity: 0; width: 0; }
    100% { opacity: 0; }
}

@keyframes stack-glow {
    0%, 50% { opacity: 0; }
    52% { opacity: 0.45; }
    60% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes sub-pulse-light {
    0%, 50% {
        color: var(--body-text);
        letter-spacing: 3px;
    }
    52% {
        color: var(--accent-cyan);
        letter-spacing: 4px;
    }
    60%, 100% {
        color: var(--body-text);
        letter-spacing: 3px;
    }
}

/* --- Mobile width containment (from home.css, neutralized for light) --- */
@media (max-width: 900px) {
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .learn-container,
    .learn-section,
    .learn-hero,
    .affiliate-hero,
    .affiliate-service-section,
    .programs-section,
    .ball-section-container,
    .ball-section,
    .balls-hero,
    section,
    header,
    footer {
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mascot-img,
    .brand-sub,
    .powered-p,
    .powered-p::before,
    .powered-p::after,
    .stack-highlight::after {
        animation: none !important;
    }
}
