/* ================================================================
   NebulaSite.css
   Standalone CSS design system matching the Nebula myfrontend.
   Used by landing.html, newroom.html — replaces landing.css.
   ================================================================ */

/* ── Variables ───────────────────────────────────────────── */

:root {
    --bg: #0f1018;
    --bg-deep: #0a0b0f;
    --fg: rgba(255, 255, 255, 0.92);
    --fg-muted: rgba(255, 255, 255, 0.55);
    --fg-subtle: rgba(255, 255, 255, 0.38);

    --primary: #6366f1;
    --primary-2: #8b5cf6;
    --cyan: #22d3ee;

    --border: rgba(255, 255, 255, 0.08);
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-aurora: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #22d3ee 100%);
    --gradient-surface: linear-gradient(180deg, rgba(36, 37, 58, 0.85), rgba(20, 21, 35, 0.7));

    --glow-primary: 0 0 30px rgba(99, 102, 241, 0.45), 0 0 60px rgba(99, 102, 241, 0.2);
    --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.5);

    --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-float: 0 20px 50px -20px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.06) inset;

    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 999px;
}

/* ── Reset / Base ────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    background: var(--bg-deep);
    color: var(--fg);
    font-family: ui-sans-serif, system-ui, -apple-system, 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:hover {
    text-decoration: none;
}

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

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

/* ── Body ambient orbs ───────────────────────────────────── */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60rem 40rem at 10% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(50rem 35rem at 110% 10%, rgba(139, 92, 246, 0.14), transparent 60%),
        radial-gradient(40rem 30rem at 50% 110%, rgba(34, 211, 238, 0.1), transparent 60%);
    z-index: 0;
}

/* ── Utility Classes ─────────────────────────────────────── */

.nbl-glass {
    background: var(--gradient-surface);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.nbl-glass-strong {
    background: linear-gradient(180deg, rgba(36, 37, 58, 0.88), rgba(20, 21, 35, 0.78));
    backdrop-filter: blur(28px) saturate(170%);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-float);
}

.nbl-gradient-primary {
    background: var(--gradient-primary);
}

.nbl-gradient-aurora {
    background: var(--gradient-aurora);
}

.nbl-text-gradient {
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nbl-glow-primary {
    box-shadow: var(--glow-primary);
}

.nbl-grid-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ── Animations ──────────────────────────────────────────── */

@keyframes nbl-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nbl-floaty {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes nbl-pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes nbl-dot-bounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.nbl-fade-up {
    animation: nbl-fade-up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.nbl-fade-up-2 {
    animation: nbl-fade-up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both;
}

.nbl-floaty {
    animation: nbl-floaty 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .nbl-fade-up,
    .nbl-fade-up-2,
    .nbl-floaty {
        animation: none;
    }
}

/* ── Layout ──────────────────────────────────────────────── */

.nbl-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

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

@media (min-width: 640px) {
    .nbl-container { padding: 0 24px; }
}

/* ── Navigation ──────────────────────────────────────────── */

.nbl-nav {
    position: relative;
    z-index: 30;
    padding: 16px 20px 0;
}

@media (min-width: 640px) {
    .nbl-nav { padding: 16px 24px 0; }
}

.nbl-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 16px;
}

.nbl-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
    text-decoration: none;
}

.nbl-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: var(--glow-primary);
    font-size: 14px;
    color: #fff;
}

.nbl-logo-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
}

.nbl-nav-links {
    display: none;
    align-items: center;
    gap: 2px;
}

@media (min-width: 768px) {
    .nbl-nav-links { display: flex; }
}

.nbl-nav-links a {
    font-size: 13px;
    color: var(--fg-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}

.nbl-nav-links a:hover {
    color: var(--fg);
    background: var(--surface);
}

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

/* ── Buttons ─────────────────────────────────────────────── */

.nbl-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--glow-primary);
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    cursor: pointer;
}

.nbl-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nbl-btn-primary.nbl-btn-lg {
    font-size: 15px;
    padding: 13px 24px;
}

.nbl-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    color: var(--fg);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.nbl-btn-glass:hover {
    background: var(--surface-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.nbl-btn-glass.nbl-btn-lg {
    font-size: 15px;
    padding: 13px 24px;
}

.nbl-btn-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.nbl-btn-icon:hover {
    background: rgba(99, 102, 241, 0.22);
    color: #a5b4fc;
}

/* ── Badge ───────────────────────────────────────────────── */

.nbl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cyan);
}

.nbl-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: var(--glow-cyan);
    flex-shrink: 0;
}

.nbl-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cyan);
}

/* ── Form ────────────────────────────────────────────────── */

.nbl-input {
    width: 100%;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--fg);
    font-size: 15px;
    padding: 0 14px;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    outline: none;
}

.nbl-input:focus {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.nbl-input::placeholder {
    color: var(--fg-subtle);
}

.nbl-input-row {
    display: flex;
    gap: 8px;
}

/* ── Hero Section ────────────────────────────────────────── */

.nbl-hero {
    position: relative;
    padding: 64px 0 48px;
}

.nbl-hero-ambient-1 {
    position: absolute;
    top: -10rem;
    left: -10rem;
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    background: var(--gradient-aurora);
    opacity: 0.12;
    filter: blur(80px);
    pointer-events: none;
}

.nbl-hero-ambient-2 {
    position: absolute;
    top: 30%;
    right: -10rem;
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    filter: blur(80px);
    pointer-events: none;
}

.nbl-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
}

.nbl-hero-inner {
    position: relative;
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .nbl-hero-inner {
        grid-template-columns: 1fr 1fr;
    }
}

.nbl-hero-copy h1 {
    margin-top: 20px;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--fg);
}

.nbl-hero-copy p {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--fg-muted);
    max-width: 480px;
}

.nbl-hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* ── Join Card (hero right panel) ────────────────────────── */

.nbl-join-card-wrap {
    position: relative;
}

.nbl-join-card-glow {
    position: absolute;
    inset: -24px;
    background: var(--gradient-aurora);
    opacity: 0.18;
    filter: blur(48px);
    border-radius: 2rem;
    pointer-events: none;
}

.nbl-join-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 28px;
}

.nbl-join-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nbl-join-card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--fg-muted);
}

.nbl-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.nbl-join-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 20px;
}

.nbl-join-card-section {
    margin-bottom: 16px;
}

.nbl-join-card-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.nbl-join-card-bottom {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nbl-last-room {
    font-size: 13px;
    color: var(--fg-subtle);
    display: none;
    gap: 6px;
    align-items: center;
}

.nbl-last-room.is-visible {
    display: flex;
}

.nbl-last-room a {
    color: #818cf8;
    font-weight: 500;
    transition: color 0.15s;
}

.nbl-last-room a:hover {
    color: #a5b4fc;
}

/* ── Logos row ───────────────────────────────────────────── */

.nbl-logos {
    padding: 40px 0;
}

.nbl-logos-label {
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--fg-subtle);
    margin-bottom: 24px;
}

.nbl-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    opacity: 0.6;
}

@media (min-width: 640px) {
    .nbl-logos-grid { grid-template-columns: repeat(6, 1fr); }
}

.nbl-logos-grid span {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg-muted);
}

/* ── Features ────────────────────────────────────────────── */

.nbl-section {
    padding: 80px 0;
    position: relative;
}

.nbl-section-head {
    max-width: 600px;
}

.nbl-section-head h2 {
    margin-top: 12px;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--fg);
}

.nbl-section-head p {
    margin-top: 12px;
    color: var(--fg-muted);
    font-size: 16px;
    line-height: 1.65;
}

.nbl-features-grid {
    margin-top: 40px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .nbl-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .nbl-features-grid { grid-template-columns: repeat(3, 1fr); }
}

.nbl-feature-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s;
}

.nbl-feature-card:hover {
    transform: translateY(-3px);
}

.nbl-feature-card:hover .nbl-feature-glow {
    opacity: 1;
}

.nbl-feature-glow {
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.6;
    transition: opacity 0.3s;
    pointer-events: none;
}

.nbl-feature-glow-purple { background: rgba(139, 92, 246, 0.35); }
.nbl-feature-glow-blue { background: rgba(99, 102, 241, 0.35); }
.nbl-feature-glow-cyan { background: rgba(34, 211, 238, 0.3); }

.nbl-feature-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--fg-muted);
}

.nbl-feature-title {
    position: relative;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.01em;
}

.nbl-feature-desc {
    position: relative;
    margin-top: 6px;
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.6;
}

/* ── Stats bar ───────────────────────────────────────────── */

.nbl-stats-bar {
    padding: 48px 0;
}

.nbl-stats-inner {
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .nbl-stats-inner { grid-template-columns: repeat(4, 1fr); }
}

.nbl-stats-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
}

.nbl-stat {
    position: relative;
    text-align: center;
}

.nbl-stat-value {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.03em;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nbl-stat-label {
    margin-top: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fg-subtle);
}

/* ── CTA section ─────────────────────────────────────────── */

.nbl-cta {
    padding: 80px 0;
}

.nbl-cta-inner {
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .nbl-cta-inner { padding: 64px 56px; }
}

.nbl-cta-ambient {
    position: absolute;
    top: -8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    background: var(--gradient-aurora);
    opacity: 0.16;
    filter: blur(80px);
    pointer-events: none;
}

.nbl-cta-icon {
    font-size: 32px;
    color: var(--cyan);
    position: relative;
}

.nbl-cta h2 {
    position: relative;
    margin-top: 16px;
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--fg);
}

.nbl-cta p {
    position: relative;
    margin-top: 12px;
    font-size: 16px;
    color: var(--fg-muted);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.nbl-cta-actions {
    position: relative;
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ── Footer ──────────────────────────────────────────────── */

.nbl-footer {
    padding: 0 0 48px;
}

.nbl-footer-inner {
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .nbl-footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.nbl-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nbl-footer-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--gradient-aurora);
    display: grid;
    place-items: center;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
}

.nbl-footer-brand-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
}

.nbl-footer-brand-sub {
    font-size: 11px;
    color: var(--fg-subtle);
}

.nbl-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nbl-footer-links a {
    font-size: 13px;
    color: var(--fg-subtle);
    transition: color 0.15s;
}

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

/* ── Schedule meeting btn (hidden by default, shown by JS) ─ */

#scheduleMeetingBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    transition: background 0.15s;
}

#scheduleMeetingBtn:hover {
    background: rgba(99, 102, 241, 0.18);
}

/* ── Two-column layout helper ────────────────────────────── */

.nbl-two-col {
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .nbl-two-col {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Responsive tweaks ───────────────────────────────────── */

@media (max-width: 640px) {
    .nbl-hero { padding: 40px 0 32px; }
    .nbl-btn-primary.nbl-btn-lg,
    .nbl-btn-glass.nbl-btn-lg {
        width: 100%;
        justify-content: center;
    }
}

/* ─────────────────────────────────────────────────────────────
   LIGHT MODE
   Applied when html[data-theme="light"].
   Every token listed below overrides the :root dark default.
───────────────────────────────────────────────────────────── */

html[data-theme="light"] {
    --bg: #f5f5ff;
    --bg-deep: #ededfc;
    --fg: rgba(15, 16, 24, 0.95);
    --fg-muted: rgba(15, 16, 24, 0.70);
    --fg-subtle: rgba(15, 16, 24, 0.50);

    --border: rgba(99, 102, 241, 0.14);
    --surface: rgba(99, 102, 241, 0.06);
    --surface-hover: rgba(99, 102, 241, 0.10);

    --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,245,255,0.88));

    --glow-primary: 0 0 20px rgba(99, 102, 241, 0.22), 0 0 48px rgba(99, 102, 241, 0.1);

    --shadow-soft: 0 1px 0 rgba(255,255,255,0.95) inset, 0 4px 16px -6px rgba(99,102,241,0.14);
    --shadow-float: 0 12px 36px -12px rgba(99,102,241,0.22), 0 1px 0 rgba(255,255,255,0.95) inset;
}

html[data-theme="light"] body,
html[data-theme="light"] {
    background-color: var(--bg-deep);
    color: var(--fg);
}

html[data-theme="light"] body::before {
    background:
        radial-gradient(60rem 40rem at 10% -10%, rgba(99,102,241,0.1), transparent 60%),
        radial-gradient(50rem 35rem at 110% 10%, rgba(139,92,246,0.08), transparent 60%),
        radial-gradient(40rem 30rem at 50% 110%, rgba(34,211,238,0.06), transparent 60%);
}

/* Grid lines in light mode */
html[data-theme="light"] .nbl-grid-bg {
    background-image:
        linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
}

/* Glass surfaces */
html[data-theme="light"] .nbl-glass {
    background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(245,245,255,0.84));
    border-color: rgba(99,102,241,0.13);
    box-shadow: 0 1px 0 rgba(255,255,255,1) inset, 0 4px 20px -8px rgba(99,102,241,0.1);
}

html[data-theme="light"] .nbl-glass-strong {
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,248,255,0.93));
    border-color: rgba(99,102,241,0.15);
    box-shadow: 0 1px 0 rgba(255,255,255,1) inset, 0 8px 32px -12px rgba(99,102,241,0.14);
}

/* Nav */
html[data-theme="light"] .nbl-nav-links a {
    color: rgba(15,16,24,0.58);
}

html[data-theme="light"] .nbl-nav-links a:hover {
    color: rgba(15,16,24,0.9);
    background: rgba(99,102,241,0.07);
}

/* Inputs */
html[data-theme="light"] .nbl-input {
    background: rgba(255,255,255,0.85);
    border-color: rgba(99,102,241,0.18);
    color: rgba(15,16,24,0.9);
}

html[data-theme="light"] .nbl-input:focus {
    border-color: rgba(99,102,241,0.5);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

html[data-theme="light"] .nbl-input::placeholder {
    color: rgba(15,16,24,0.32);
}

/* Glass button */
html[data-theme="light"] .nbl-btn-glass {
    background: rgba(255,255,255,0.75);
    border-color: rgba(99,102,241,0.18);
    color: rgba(15,16,24,0.8);
}

html[data-theme="light"] .nbl-btn-glass:hover {
    background: rgba(255,255,255,0.92);
    border-color: rgba(99,102,241,0.3);
}

/* Feature cards */
html[data-theme="light"] .nbl-feature-card {
    background: rgba(255,255,255,0.72);
    border-color: rgba(99,102,241,0.1);
}

/* Footer */
html[data-theme="light"] .nbl-footer-inner {
    border-color: rgba(99,102,241,0.1);
}

/* Badge */
html[data-theme="light"] .nbl-badge {
    background: rgba(99,102,241,0.07);
    border-color: rgba(99,102,241,0.16);
}

/* ── Theme toggle button (NebulaSite pages) ─────────────── */

#nebulaThemeToggle {
    position: fixed;
    bottom: 24px;
    right: 18px;
    z-index: 9999;
}

html[data-theme="light"] #nebulaThemeToggle {
    background: rgba(99,102,241,0.1) !important;
    border-color: rgba(99,102,241,0.2) !important;
    color: #6366f1 !important;
}
