.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
    padding: 16px 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.navbar[data-scrolled] {
    --nav-bg: rgba(255,255,255,0.6);
    border-bottom-color: rgba(203,213,225,0.2);
}
[data-theme="dark"] .navbar[data-scrolled] {
    --nav-bg: rgba(15,23,38,0.75);
    border-bottom-color: rgba(42,58,92,0.3);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(
        130deg,
        var(--apex-sage-purple-dark, #5b21b6),
        var(--apex-janet-purple, #a78bfa),
        var(--apex-janet-cyan, #5eead4)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.logo a { text-decoration: none; color: inherit; }
.logo span { color: var(--primary); background: none; }
.nav-links { display: flex; gap: 2.8rem; font-weight: 500; }
.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.2s ease;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}
.dark-mode-toggle {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gray-mid);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.dark-mode-toggle:hover { border-color: var(--primary); color: var(--primary); }
.dark-mode-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
@media (max-width: 640px) {
    .nav-container { flex-direction: column; gap: 12px; }
    .nav-links { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
}
.hero {
    padding: 90px 0 110px;
    border-bottom: 1px solid var(--hero-border);
    background-image:
        radial-gradient(ellipse 120% 85% at 50% -15%, rgba(124, 58, 237, 0.11), transparent 52%),
        radial-gradient(ellipse 90% 55% at 100% 45%, rgba(94, 234, 212, 0.07), transparent 48%),
        radial-gradient(ellipse 70% 50% at 0% 55%, rgba(167, 139, 250, 0.08), transparent 45%),
        var(--prism-gradient-subtle),
        var(--gradient-bg);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}
.hero-content h1 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
    background: var(--prism-gradient-text-light, linear-gradient(145deg, #1e1b2e, #7c3aed));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}
[data-theme="dark"] .hero-content h1 {
    background: var(--prism-gradient-text-dark, linear-gradient(145deg, #ffffff, #60a5fa));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content .highlight { color: var(--primary); background: none; display: inline-block; }
[data-theme="dark"] .hero-content .highlight { color: var(--apex-janet-cyan, #5eead4); }
.hero-content p { font-size: 1.3rem; color: var(--text-light); max-width: 500px; margin-bottom: 32px; }
[data-theme="dark"] .hero-content p { color: #e2e8f0; }
.btn {
    display: inline-block;
    background-color: transparent;
    background-image: var(--prism-gradient-cta, linear-gradient(135deg, var(--apex-sage-purple), #6366f1));
    color: white;
    font-weight: 600;
    padding: 16px 44px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 1.15rem;
    box-shadow: 0 10px 24px -8px rgba(124, 58, 237, 0.45), var(--prism-glow-soft, none);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn:hover {
    filter: brightness(1.06) saturate(1.05);
    transform: translateY(-4px);
    box-shadow: 0 20px 28px -8px rgba(124, 58, 237, 0.5), var(--prism-glow-soft, none);
}
[data-theme="dark"] .btn {
    background-image: var(--prism-gradient-cta-dark, linear-gradient(135deg, #2563eb, #0a84ff));
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn {
        background-image: var(--prism-gradient-cta-dark, linear-gradient(135deg, #2563eb, #0a84ff));
    }
}
.glasses-campaign-meta {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-gold, var(--apex-sage-gold, #d4a857));
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 1.05rem;
    border: 2px solid var(--primary);
    box-shadow: none;
    transition: background 0.25s ease, transform 0.25s ease;
}
.btn-secondary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual-stack { flex-direction: column; gap: 1.75rem; align-items: center; }
.glasses-janet-stage {
    position: relative;
    width: 100%;
    max-width: 300px;
}
/* Same portrait frame as janet-hero-loop.mp4 (1604×2110) — still and video align */
.glasses-janet-stage .hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1604 / 2110;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(255,255,255,0.8);
    animation: gentle-float 9s infinite alternate ease-in-out;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}
.glasses-janet-stage .hero-image-wrap:hover { box-shadow: var(--shadow-hover); }
.glasses-janet-stage .hero-image-wrap:focus {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}
.glasses-janet-stage .hero-image-wrap img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
}
.glasses-janet-video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.35s ease;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow-sm);
}
.glasses-janet-stage.is-playing .glasses-janet-video {
    opacity: 1;
    pointer-events: auto;
}
.glasses-janet-stage.is-playing .hero-image-wrap {
    opacity: 0;
    pointer-events: none;
    animation: none;
}
.glasses-janet-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 10px;
    line-height: 1.4;
}
.hero-you-play-trigger {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
}
.hero-you-play-trigger:focus {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
    .glasses-janet-stage .hero-image-wrap { animation: none; }
    .glasses-janet-hint { display: none; }
}
.hero-visual .carousel-wrap {
    width: 100%;
    max-width: 380px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(255,255,255,0.8);
    animation: gentle-float 9s infinite alternate ease-in-out;
}
.hero-visual .carousel-wrap img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero-visual .carousel-wrap { animation: none; } }
@keyframes gentle-float { 0% { transform: translateY(0); } 100% { transform: translateY(-18px); } }
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-content h1 { font-size: 3rem; }
    .hero-cta-row { justify-content: center; }
    .glasses-campaign-meta { text-align: center; }
}
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    background: var(--prism-gradient-text-light, linear-gradient(135deg, #1e1b2e, #5b21b6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}
[data-theme="dark"] .section-header h2 {
    background: var(--prism-gradient-text-dark, linear-gradient(135deg, #e2e8f0, #60a5fa));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero-content h1 {
        background: var(--prism-gradient-text-dark, linear-gradient(145deg, #ffffff, #60a5fa));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    :root:not([data-theme="light"]) .section-header h2 {
        background: var(--prism-gradient-text-dark, linear-gradient(135deg, #e2e8f0, #60a5fa));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}
.section-header p { color: var(--text-light); font-size: 1.25rem; max-width: 600px; margin: 0 auto; }
[data-theme="dark"] .section-header p { color: #e2e8f0; }
.sage-traits { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.trait {
    background: var(--bg-card);
    padding: 20px 16px;
    border-radius: 30px;
    flex: 1;
    min-width: 140px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-card);
    transition: all 0.2s;
}
.trait:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}
.trait i { font-size: 2.4rem; color: var(--primary); margin-bottom: 10px; }
.trait h3 { font-size: 1.3rem; margin-bottom: 6px; color: var(--text); }
.trait p { font-size: 0.9rem; margin: 0; color: var(--text-light); }
[data-theme="dark"] .trait h3 { color: #f1f5f9; }
[data-theme="dark"] .trait p { color: #cbd5e1; }
.vision-wrapper {
    background: linear-gradient(135deg, #201c3a 0%, #312b5a 100%);
    border-radius: 70px;
    padding: 80px 64px;
    color: white;
    box-shadow: 0 30px 40px -20px #312b5a;
}
[data-theme="dark"] .vision-wrapper {
    background: linear-gradient(135deg, #152033 0%, #1e2d4a 100%);
    box-shadow: 0 30px 40px -20px #1e2d4a;
}
.vision-text h2 { font-size: 2.8rem; font-weight: 700; margin-bottom: 24px; color: white; }
.vision-text p { font-size: 1.25rem; opacity: 0.85; margin-bottom: 30px; max-width: 100%; }
.vision-text p:last-child { margin-bottom: 0; }
.vision-text a { color: #c7b0ff; text-decoration: underline; }
.vision-text a:hover { color: white; }
.gfm-section {
    background: var(--bg-card);
    border-radius: 40px;
    padding: 48px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-card);
}
.campaign-links {
    margin-top: 24px;
    font-size: 1.05rem;
    color: var(--text-light);
}
.campaign-links p { margin-bottom: 12px; }
.campaign-links a { color: var(--primary); font-weight: 600; text-decoration: none; }
.campaign-links a:hover { text-decoration: underline; }
[data-theme="dark"] .campaign-links { color: #e2e8f0; }
.footer {
    background: #1e1b2e;
    color: #b7b0d4;
    padding: 56px 0 28px;
    border-radius: 60px 60px 0 0;
    margin-top: 40px;
}
[data-theme="dark"] .footer {
    background: #0f1726;
    color: #94a3b8;
}
[data-theme="dark"] .footer h4 { color: #e2e8f0; }
[data-theme="dark"] .footer-links a { color: #94a3b8; }
[data-theme="dark"] .footer-links a:hover { color: white; }
[data-theme="dark"] .social-icons a { background: #1e293b; }
[data-theme="dark"] .copyright { border-top-color: #1e293b; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-col p { margin: 20px 0 0; line-height: 1.6; }
.footer-col h4 { color: white; font-size: 1.2rem; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #b7b0d4; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.social-icons { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.social-icons a {
    color: white;
    background: #2d2b4e;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.social-icons a:hover { background: var(--primary); transform: translateY(-4px); }
.donate-links { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.donate-links a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}
.donate-links a:hover { background: var(--primary); border-color: var(--primary); }
.copyright { text-align: center; border-top: 1px solid #3f3a60; padding-top: 24px; font-size: 0.9rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.goto-top {
    position: fixed;
    bottom: 30px; right: 30px;
    background: var(--bg-card);
    color: var(--primary);
    width: 52px; height: 52px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-card);
    transition: 0.2s;
    opacity: 0.85;
    text-decoration: none;
    font-size: 1.5rem;
    backdrop-filter: blur(4px);
}
.goto-top:hover { opacity: 1; transform: scale(1.1); background: var(--primary); color: white; }
.carousel-wrap {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-card);
    background: var(--bg-card);
}
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { flex: 0 0 100%; min-width: 100%; }
.carousel-slide img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.carousel-dots { display: flex; justify-content: center; gap: 12px; padding: 16px 0; }
.carousel-dots button {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--gray-mid);
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-dots button[aria-selected="true"] { background: var(--primary); }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.wcjd-section { background: var(--gray-light); }
.wcjd-panel {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    border-radius: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
}
.wcjd-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 2.75rem;
    text-decoration: none;
    box-shadow: 0 16px 40px -12px rgba(124, 58, 237, 0.55), 0 0 0 4px rgba(124, 58, 237, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.wcjd-icon-link:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 24px 48px -10px rgba(124, 58, 237, 0.65), 0 0 0 6px rgba(124, 58, 237, 0.18);
}
.wcjd-icon-link:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 4px;
}
[data-theme="dark"] .wcjd-icon-link {
    box-shadow: 0 16px 40px -12px rgba(10, 132, 255, 0.45), 0 0 0 4px rgba(10, 132, 255, 0.15);
}
[data-theme="dark"] .wcjd-icon-link:hover {
    box-shadow: 0 24px 48px -10px rgba(10, 132, 255, 0.55), 0 0 0 6px rgba(10, 132, 255, 0.22);
}
.wcjd-panel h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 16px;
}
.wcjd-panel > p {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.wcjd-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
}
.wcjd-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}
.wcjd-links a:hover { border-bottom-color: var(--primary); }
.wcjd-repo-hint {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.9;
}
.glasses-promise-block {
    margin: 1rem 0 1.25rem;
    max-width: 560px;
}
.glasses-promise-equation {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}
.glasses-promise-w {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.35rem;
    border-radius: var(--apex-radius-pill, 999px);
    background: var(--apex-tagline-w-bg, linear-gradient(135deg, #5eead4, #38bdf8));
    color: var(--apex-tagline-w-fg, #0f1726);
    font-weight: 800;
    margin-left: 0.15rem;
    vertical-align: middle;
}
.glasses-promise-gloss {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}
.glasses-promise-nocap {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
    .glasses-janet-video { display: none !important; }
}
