/* Prevent FOUT - font fallback stack */
:root {
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-brand: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* QUANT AI — COSMIC PROFESSIONAL SKIN */

:root {
    --cos-base: #050611;
    --cos-surface: rgba(10, 14, 26, 0.55);
    --cos-glass: rgba(10, 14, 26, 0.45);
    --cos-text: rgba(245, 248, 255, 0.92);
    --cos-text-muted: rgba(245, 248, 255, 0.72);
    --cos-border: rgba(255, 255, 255, 0.10);

    --cos-cyan: #22d3ee;
    --cos-magenta: #d946ef;

    --cos-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --cos-glow-cyan: 0 0 24px rgba(34, 211, 238, 0.25);
    --cos-glow-magenta: 0 0 24px rgba(217, 70, 239, 0.25);
}

/* Fixed starfield background plate (content scrolls above) */
body.cosmic-pro {
    background: var(--cos-base);
    padding-top: 80px;
}

/* Light Theme - Override cosmic-pro background */
body.cosmic-pro[data-theme="light"],
[data-theme="light"] body.cosmic-pro,
body[data-theme="light"].cosmic-pro {
    background: url('../images/lighttheme-1920x1080-compressed.webp') center center / cover no-repeat fixed !important;
}

/* Light Theme - Override cosmic-pro pseudo-elements */
body.cosmic-pro[data-theme="light"]::before,
[data-theme="light"] body.cosmic-pro::before,
body[data-theme="light"].cosmic-pro::before,
body.cosmic-pro[data-theme="light"]::after,
[data-theme="light"] body.cosmic-pro::after,
body[data-theme="light"].cosmic-pro::after {
    display: none !important;
}

body.cosmic-pro::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: url('../images/starfield-1920x1080-compressed.webp') center center / cover no-repeat;
}

body.cosmic-pro::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1100px 700px at 58% 52%, rgba(5, 6, 17, 0.25), transparent 70%),
        radial-gradient(1200px 800px at 50% 60%, rgba(255, 255, 255, 0.04), transparent 68%),
        linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.18) 52%, rgba(0,0,0,0.74));
}

/* Defensive: prohibit colored text inside NAV + HERO (accents allowed only via borders/glows/backgrounds) */
body.cosmic-pro header,
body.cosmic-pro header *,
body.cosmic-pro .hero,
body.cosmic-pro .hero * {
    color: inherit;
}

body.cosmic-pro header,
body.cosmic-pro .hero {
    color: var(--cos-text);
}

body.cosmic-pro header a,
body.cosmic-pro .hero a {
    color: var(--cos-text) !important;
}

body.cosmic-pro header a:hover,
body.cosmic-pro .hero a:hover {
    color: var(--cos-text) !important;
}

/* Keep text silver/white only within NAV + HERO */
body.cosmic-pro header,
body.cosmic-pro .hero {
    color: var(--cos-text);
}

body.cosmic-pro header a,
body.cosmic-pro .hero a {
    color: inherit;
}

/* NAV */
body.cosmic-pro header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 6, 17, 0.50);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
}

body.cosmic-pro nav {
    min-height: 72px;
    padding: 0;
}

body.cosmic-pro header .container {
    max-width: 1200px;
    padding-left: 28px;
    padding-right: 28px;
}

body.cosmic-pro .logo {
    letter-spacing: 0.02em;
    color: var(--cos-text) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1;
}

body.cosmic-pro .logo-quant {
    font-size: 0.92em;
    letter-spacing: 0.06em;
}

body.cosmic-pro .logo-ai {
    font-size: 0.92em;
    letter-spacing: 0.06em;
    margin-left: 0.14em;
}

body.cosmic-pro header nav a.logo {
    display: inline-flex;
    align-items: baseline;
    padding: 8px 0;
}

body.cosmic-pro .nav-links a {
    color: var(--cos-text) !important;
    opacity: 0.90;
    transition: opacity 180ms ease, text-shadow 180ms ease;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

body.cosmic-pro .nav-links a:hover {
    opacity: 1;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

body.cosmic-pro #signInButton {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Navbar CTA: Magenta pill */
body.cosmic-pro .launch-button {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.30), rgba(217, 70, 239, 0.14));
    border: 1px solid rgba(217, 70, 239, 0.86);
    color: rgba(255, 255, 255, 0.92) !important;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.9rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

body.cosmic-pro .launch-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.42), rgba(217, 70, 239, 0.18));
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.36), 0 18px 36px rgba(0, 0, 0, 0.40), var(--cos-glow-magenta);
}

/* HERO */
body.cosmic-pro .hero {
    background: transparent;
    padding-top: calc(4rem + 18px);
    padding-bottom: clamp(6rem, 10vh, 9rem);
    min-height: calc(100vh - 80px);
}

/* Localized readability veil (hero only) */
body.cosmic-pro .hero::before {
    content: '';
    position: absolute;
    inset: -40px -10vw -60px;
    background:
        radial-gradient(900px 520px at 28% 35%, rgba(5, 6, 17, 0.70), transparent 65%),
        radial-gradient(900px 520px at 70% 50%, rgba(5, 6, 17, 0.55), transparent 68%),
        linear-gradient(180deg, rgba(5, 6, 17, 0.40), rgba(5, 6, 17, 0.10) 55%, rgba(5, 6, 17, 0.35));
    z-index: -1;
    pointer-events: none;
}

body.cosmic-pro .hero-content {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 1.8rem;
    align-items: center;
}

body.cosmic-pro .hero-chat {
    margin-top: 4.5rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(26px);
    animation: cosHeroChatIn 720ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 6s;
}

body.cosmic-pro.hero-chat-seen .hero-chat {
    animation: none;
    opacity: 1;
    transform: none;
}

@keyframes cosHeroChatIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.cosmic-pro .hero-chat {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

body.cosmic-pro .hero-chat-form {
    width: min(820px, 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(34, 211, 238, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.16), 0 18px 46px rgba(0, 0, 0, 0.32);
}

body.cosmic-pro .hero-chat-input {
    flex: 1;
    min-height: 48px;
    padding: 0 10px;
    border: 0;
    outline: none;
    background: transparent;
    color: rgba(8, 10, 22, 0.92);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}

body.cosmic-pro .hero-chat-input::placeholder {
    color: rgba(8, 10, 22, 0.46);
}

body.cosmic-pro .hero-chat-send {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 211, 238, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.75);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.14), var(--cos-glow-cyan);
    cursor: pointer;
    padding: 0;
}

body.cosmic-pro .hero-chat-send svg {
    width: 18px;
    height: 18px;
    stroke: rgba(8, 10, 22, 0.82);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.cosmic-pro .hero-chat-send:hover {
    background: rgba(34, 211, 238, 0.22);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.24), 0 0 26px rgba(34, 211, 238, 0.22);
}

body.cosmic-pro .hero-chat-form:focus-within {
    border-color: rgba(34, 211, 238, 0.75);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22), 0 18px 46px rgba(0, 0, 0, 0.32);
}

body.cosmic-pro .hero-chat-suggestions {
    width: min(820px, 100%);
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

body.cosmic-pro .hero-suggestion {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 14, 26, 0.42);
    color: rgba(245, 248, 255, 0.88);
    border-radius: 999px;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.cosmic-pro .hero-suggestion:active {
    transform: translateY(0);
}

body.cosmic-pro .hero-suggestion:hover {
    transform: translateY(-1px);
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.14), 0 14px 28px rgba(0, 0, 0, 0.34);
}

body.cosmic-pro .hero-suggestion:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22), 0 14px 28px rgba(0, 0, 0, 0.34);
}

 body.cosmic-pro .hero-signup {
    align-self: center;
    justify-content: flex-end;
 }

body.cosmic-pro .hero-title-section {
    margin-bottom: 1.75rem;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
}

body.cosmic-pro .hero h1 {
    font-family: 'Poppins', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 100 !important;
    color: rgba(245, 248, 255, 0.92);
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.08;
    margin-bottom: 0.8rem;
    white-space: nowrap;
}

body.cosmic-pro .hero .hero-subtitle,
body.cosmic-pro .hero h2 {
    color: rgba(245, 248, 255, 0.96);
    letter-spacing: 0.02em;
    font-size: clamp(1.05rem, 2.0vw, 1.35rem);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

body.cosmic-pro .hero .hero-subtitle {
    text-align: left;
    font-style: normal;
    font-size: clamp(1.15rem, 2.15vw, 1.5rem);
    margin-top: 0.25rem;
    margin-left: clamp(120px, 14vw, 220px);
}

body.cosmic-pro .hero p {
    color: var(--cos-text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
    max-width: 36rem;
    line-height: 1.75;
    margin-bottom: 2.25rem;
}

body.cosmic-pro .title-underline {
    height: 2px;
    width: 100%;
    min-width: 100%;
    background:
        radial-gradient(40px 6px at 22% 50%, rgba(217, 70, 239, 0.95) 0%, rgba(217, 70, 239, 0.55) 45%, rgba(217, 70, 239, 0) 80%),
        linear-gradient(90deg, rgba(217, 70, 239, 0.0) 0%, rgba(217, 70, 239, 0.85) 12%, rgba(217, 70, 239, 0.38) 45%, rgba(217, 70, 239, 0.0) 100%);
    opacity: 1;
    border-radius: 2px;
    box-shadow: 
        0 0 10px rgba(217, 70, 239, 0.45),
        0 0 22px rgba(217, 70, 239, 0.22);
    margin: 0.85rem 0 0.85rem;
}

body.cosmic-pro .legal-header .title-underline {
    width: 100%;
    max-width: 320px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #d946ef 20%, #d946ef 80%, transparent 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: none;
}

body.cosmic-pro .legal-header h1 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.92);
    font-size: clamp(2.25rem, 3.2vw, 3rem);
    line-height: 1.08;
}

body.cosmic-pro .legal-content {
    background: var(--cos-base, #050611);
    border: 1px solid rgba(34, 211, 238, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.cosmic-pro .region-toggle .toggle-switch {
    display: inline-flex;
    background: rgba(10, 14, 26, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50px;
    padding: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.cosmic-pro .region-toggle .toggle-option {
    padding: 12px 24px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(245, 248, 255, 0.60);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.cosmic-pro .region-toggle .toggle-option:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(34, 211, 238, 0.05));
    border-color: rgba(34, 211, 238, 0.30);
    color: rgba(245, 248, 255, 0.90);
}

body.cosmic-pro .region-toggle .toggle-switch input[type="radio"]:checked + label.toggle-option {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(34, 211, 238, 0.10));
    border: 1px solid rgba(34, 211, 238, 0.50);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.20);
    transform: none;
}

body.cosmic-pro .legal-content h2,
body.cosmic-pro .legal-content h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: rgba(245, 248, 255, 0.92) !important;
    border: none !important;
    border-image: none !important;
}

body.cosmic-pro .legal-content h2 {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--cos-magenta, #d946ef), transparent) 1;
}

body.cosmic-pro .hero-buttons {
    gap: 1.1rem;
}

/* Hero buttons */
body.cosmic-pro .cta-button {
    background: rgba(8, 10, 22, 0.35);
    border: 1px solid rgba(34, 211, 238, 0.70);
    color: rgba(255, 255, 255, 0.90) !important;
    border-radius: 999px;
    box-shadow: 
        0 0 18px rgba(34, 211, 238, 0.20),
        0 0 34px rgba(34, 211, 238, 0.12),
        0 10px 26px rgba(0, 0, 0, 0.30);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    padding: 12px 26px;
    min-height: 44px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

body.cosmic-pro .cta-button:hover {
    transform: translateY(-2px);
    background: rgba(34, 211, 238, 0.10);
    box-shadow: 
        0 0 24px rgba(34, 211, 238, 0.30),
        0 0 46px rgba(34, 211, 238, 0.16),
        0 12px 30px rgba(0, 0, 0, 0.34);
}

body.cosmic-pro .demo-button {
    background: rgba(8, 10, 22, 0.35);
    border: 1px solid rgba(217, 70, 239, 0.86);
    color: rgba(255, 255, 255, 0.86) !important;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    padding: 12px 26px;
    min-height: 44px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

body.cosmic-pro .demo-button:hover {
    transform: translateY(-1px);
    background: rgba(217, 70, 239, 0.10);
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.36), 0 0 26px rgba(217, 70, 239, 0.22);
}

/* Waiting list card: glass blur + subtle cyan→magenta rim glow */
body.cosmic-pro .signup-box {
    position: relative;
    background: rgba(10, 12, 28, 0.92);
    border: none;
    border-radius: 4px;
    max-width: 420px;
    padding: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible;
    isolation: isolate;
    box-shadow: 
        0 0 15px rgba(34, 211, 238, 0.2),
        0 0 15px rgba(217, 70, 239, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.4);
}

body.cosmic-pro .signup-box::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: 4px;
    background: linear-gradient(
        135deg, 
        #22d3ee 0%,
        #a855f7 50%,
        #d946ef 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 3px rgba(34, 211, 238, 0.4)) drop-shadow(0 0 3px rgba(217, 70, 239, 0.4));
}

body.cosmic-pro .signup-box::after {
    display: none;
}

body.cosmic-pro .hero-signup .signup-box {
    background: transparent;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-width: 560px;
}

body.cosmic-pro .hero-signup .signup-box::before {
    display: none;
}

body.cosmic-pro .signup-content {
    position: relative;
    z-index: 2;
    background: transparent;
}

body.cosmic-pro .signup-title,
body.cosmic-pro .signup-description {
    color: rgba(245, 248, 255, 0.90);
}

body.cosmic-pro .signup-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

body.cosmic-pro .signup-description {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    color: var(--cos-text-muted);
}

body.cosmic-pro .signup-waitlist {
    display: none;
}

body.cosmic-pro .signup-points {
    margin: 0 0 1.25rem;
    padding: 14px 14px 12px;
    background: rgba(8, 10, 22, 0.28);
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 12px;
}

body.cosmic-pro .signup-points-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(245, 248, 255, 0.90);
    margin-bottom: 10px;
}

body.cosmic-pro .signup-points-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

body.cosmic-pro .signup-points-list li {
    position: relative;
    padding-left: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: rgba(245, 248, 255, 0.82);
}

body.cosmic-pro .signup-points-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.95);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.26);
}

body.cosmic-pro .signup-form {
    gap: 0.9rem;
}

body.cosmic-pro .email-input {
    background: rgba(5, 6, 17, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(245, 248, 255, 0.90);
    border-radius: 12px;
    height: 44px;
    padding: 0 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

body.cosmic-pro .email-input:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

body.cosmic-pro .email-input::placeholder {
    color: rgba(245, 248, 255, 0.55);
}

body.cosmic-pro .signup-button {
    background: rgba(217, 70, 239, 0.22);
    border: 1px solid rgba(217, 70, 239, 0.86);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

body.cosmic-pro .signup-button:hover {
    transform: translateY(-1px);
    background: rgba(217, 70, 239, 0.30);
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.32), var(--cos-glow-magenta);
}

/* ===== Alternating Section Framework (scoped) ===== */
body.cosmic-pro .section--transparent {
    background: transparent;
}

body.cosmic-pro .section--solid {
    position: relative;
    background: #050611;
}

body.cosmic-pro .section--solid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #050611;
    pointer-events: none;
}

body.cosmic-pro .section--solid > * {
    position: relative;
}

/* ===== Core Features (index.html only) ===== */
body.cosmic-pro section.features {
    padding: 5.25rem 0;
}

body.cosmic-pro section.features h2 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.92);
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 2.5rem;
    text-align: center;
}

body.cosmic-pro section.features .features-grid {
    gap: 1.5rem;
}

body.cosmic-pro section.features .feature-card {
    position: relative;
    background: rgba(10, 14, 26, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 26px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

body.cosmic-pro section.features .feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.55), rgba(217, 70, 239, 0.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.38;
}

body.cosmic-pro section.features .features-grid .feature-card:nth-child(1)::before {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.86), rgba(217, 70, 239, 0.86));
    opacity: 0.55;
}

body.cosmic-pro section.features .features-grid .feature-card:nth-child(2)::before {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.62), rgba(34, 211, 238, 0.62));
}

body.cosmic-pro section.features .features-grid .feature-card:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.86), rgba(217, 70, 239, 0.86));
    opacity: 0.55;
}

body.cosmic-pro section.features .features-grid .feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.30), rgba(34, 211, 238, 0.10));
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.10), 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.cosmic-pro section.features .features-grid .feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.30), rgba(217, 70, 239, 0.10));
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.10), 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.cosmic-pro section.features .features-grid .feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.30), rgba(34, 211, 238, 0.10));
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.10), 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.cosmic-pro section.features .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(217, 70, 239, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.06), 0 12px 30px rgba(0, 0, 0, 0.28);
    margin-bottom: 16px;
}

body.cosmic-pro section.features .feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: rgba(245, 248, 255, 0.92);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

body.cosmic-pro section.features .feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(245, 248, 255, 0.92);
    margin-bottom: 10px;
}

body.cosmic-pro section.features .feature-card p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.72);
    line-height: 1.7;
    margin: 0;
}

body.cosmic-pro section.stats .stat-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: rgba(34, 211, 238, 0.92);
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
}

/* ===== ABOUT (index.html only) ===== */
body.cosmic-pro section.about {
    padding: 5.5rem 0;
}

body.cosmic-pro section.about h2 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.92);
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

body.cosmic-pro section.about .about-intro {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.74);
    line-height: 1.75;
}

body.cosmic-pro section.about .about-details {
    margin-top: 1.75rem;
    display: grid;
    gap: 1rem;
}

body.cosmic-pro section.about .about-item {
    position: relative;
    background: rgba(10, 14, 26, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 18px 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

body.cosmic-pro section.about .about-item::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.86), rgba(217, 70, 239, 0.86));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.55;
}

body.cosmic-pro section.about .about-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(245, 248, 255, 0.92);
    margin-bottom: 0.45rem;
}

body.cosmic-pro section.about .about-item p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.72);
    line-height: 1.7;
}

body.cosmic-pro section.about .whitepaper-circle {
    background: rgba(10, 14, 26, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.cosmic-pro section.about .whitepaper-summary {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.72);
}

body.cosmic-pro section.about .whitepaper-button {
    background: rgba(8, 10, 22, 0.35);
    border: 1px solid rgba(34, 211, 238, 0.70);
    color: rgba(255, 255, 255, 0.90) !important;
    border-radius: 999px;
    box-shadow:
        0 0 18px rgba(34, 211, 238, 0.20),
        0 0 34px rgba(34, 211, 238, 0.12),
        0 10px 26px rgba(0, 0, 0, 0.30);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    padding: 12px 26px;
    min-height: 44px;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

body.cosmic-pro section.about .whitepaper-button:hover {
    transform: translateY(-2px);
    background: rgba(34, 211, 238, 0.10);
    box-shadow:
        0 0 24px rgba(34, 211, 238, 0.30),
        0 0 46px rgba(34, 211, 238, 0.16),
        0 12px 30px rgba(0, 0, 0, 0.34);
}

/* ===== MEET QAI (index.html only) ===== */
body.cosmic-pro section.meet-qai.section--transparent {
    padding: 5.5rem 0;
    background: transparent;
}

body.cosmic-pro section.meet-qai h2 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.92);
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

body.cosmic-pro section.meet-qai .qai-intro {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.74);
    line-height: 1.75;
    max-width: 46rem;
}

body.cosmic-pro section.meet-qai .qai-features {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
}

body.cosmic-pro section.meet-qai .qai-feature {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(10, 14, 26, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.30);
    overflow: hidden;
}

body.cosmic-pro section.meet-qai .qai-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.45), rgba(217, 70, 239, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.28;
}

body.cosmic-pro section.meet-qai .qai-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(217, 70, 239, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.06), 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.cosmic-pro section.meet-qai .qai-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: rgba(245, 248, 255, 0.92);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

body.cosmic-pro section.meet-qai .qai-feature-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(245, 248, 255, 0.92);
    margin-bottom: 0.45rem;
}

body.cosmic-pro section.meet-qai .qai-feature-content p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.72);
    line-height: 1.7;
    margin: 0;
}

body.cosmic-pro section.quant-agi.section--solid {
    padding: 5.5rem 0;
}

body.cosmic-pro section.quant-agi h2 {
    font-family: 'Outfit', sans-serif;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.92);
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

body.cosmic-pro section.quant-agi .agi-intro {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.74);
    line-height: 1.75;
    max-width: 46rem;
}

body.cosmic-pro section.quant-agi .agi-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), var(--cos-glow-cyan);
    margin-bottom: 16px;
}

body.cosmic-pro section.quant-agi.quant-agi--coming .container {
    position: relative;
}

body.cosmic-pro section.quant-agi.quant-agi--coming .container > .agi-soon-badge {
    position: absolute;
    top: 68px;
    left: 0;
    margin-bottom: 0;
}

body.cosmic-pro section.quant-agi.quant-agi--coming .container > .agi-content {
    padding-top: 0;
}

body.cosmic-pro section.quant-agi .agi-soon-badge span {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(245, 248, 255, 0.92);
}

body.cosmic-pro section.quant-agi .agi-soon-badge svg {
    width: 18px;
    height: 18px;
    stroke: rgba(245, 248, 255, 0.92);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Quant-IDE Coming Soon Badge (right-aligned mirror of AGI badge) */
body.cosmic-pro section.quant-ide .ide-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), var(--cos-glow-cyan);
    margin-bottom: 16px;
}

body.cosmic-pro section.quant-ide.quant-ide--coming .container {
    position: relative;
}

body.cosmic-pro section.quant-ide.quant-ide--coming .container > .ide-soon-badge {
    position: absolute;
    top: 68px;
    right: 0;
    margin-bottom: 0;
}

body.cosmic-pro section.quant-ide .ide-soon-badge span {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(245, 248, 255, 0.92);
}

body.cosmic-pro section.quant-agi .agi-brain-sketch {
    position: relative;
    width: min(520px, 100%);
    margin: 0 auto;
    opacity: 0.95;
}

body.cosmic-pro section.quant-agi .agi-brain-img {
    visibility: visible;
}

body.cosmic-pro section.quant-agi .agi-brain-sketch::after {
    content: none;
}

body.cosmic-pro section.quant-agi .agi-brain-sketch::before {
    content: '';
    position: absolute;
    inset: 10% 12% 18% 12%;
    background: radial-gradient(circle at 50% 50%, rgba(245, 248, 255, 0.10), rgba(245, 248, 255, 0.04) 46%, transparent 72%);
    filter: blur(22px);
    pointer-events: none;
    z-index: 1;
}

body.cosmic-pro section.quant-agi .agi-brain-sketch svg,
body.cosmic-pro section.quant-agi .agi-brain-sketch img {
    position: relative;
}

body.cosmic-pro section.quant-agi .agi-capabilities {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
}

body.cosmic-pro section.quant-agi .agi-capability {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(10, 14, 26, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.30);
    overflow: hidden;
}

body.cosmic-pro section.quant-agi .agi-capability::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.45), rgba(217, 70, 239, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.28;
}

body.cosmic-pro section.quant-agi .capability-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(217, 70, 239, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.06), 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.cosmic-pro section.quant-agi .capability-icon svg {
    width: 22px;
    height: 22px;
    stroke: rgba(217, 70, 239, 0.95);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

body.cosmic-pro section.quant-agi .capability-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(245, 248, 255, 0.92);
    margin-bottom: 0.45rem;
}

body.cosmic-pro section.quant-agi .capability-content p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.72);
    line-height: 1.7;
    margin: 0;
}

body.cosmic-pro section.quant-agi .agi-status {
    position: relative;
    margin-top: 1.5rem;
    padding: 18px;
    border-radius: 18px;
    background: rgba(10, 14, 26, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

body.cosmic-pro section.quant-agi .agi-status::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.40), rgba(217, 70, 239, 0.40));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.22;
}

body.cosmic-pro section.quant-agi .agi-status > * {
    position: relative;
}

body.cosmic-pro section.quant-agi .status-text {
    color: rgba(245, 248, 255, 0.86) !important;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body.cosmic-pro section.quant-agi .status-description {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: rgba(245, 248, 255, 0.72);
    line-height: 1.7;
}

body.cosmic-pro section.quant-agi .orbit-element svg {
    width: 20px;
    height: 20px;
    stroke: rgba(245, 248, 255, 0.92);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.92;
}

body.cosmic-pro section.quant-ide {
    padding: 5.5rem 0;
}

body.cosmic-pro section.quant-ide h2 {
    font-family: 'Outfit', sans-serif;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.92);
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

body.cosmic-pro section.quant-ide .ide-intro {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.74);
    line-height: 1.75;
    max-width: 46rem;
}

body.cosmic-pro section.quant-ide .ide-features {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
}

body.cosmic-pro section.quant-ide .ide-feature {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(10, 14, 26, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.30);
    overflow: hidden;
}

body.cosmic-pro section.quant-ide .ide-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.45), rgba(217, 70, 239, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.28;
}

body.cosmic-pro section.quant-ide .ide-feature > * {
    position: relative;
}

body.cosmic-pro section.quant-ide .ide-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(217, 70, 239, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.06), 0 12px 30px rgba(0, 0, 0, 0.28);
    color: rgba(245, 248, 255, 0.92);
    font-size: 1.1rem;
}

body.cosmic-pro section.quant-ide .ide-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: rgba(34, 211, 238, 0.92);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

body.cosmic-pro section.quant-ide .ide-feature-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(245, 248, 255, 0.92);
    margin-bottom: 0.45rem;
}

body.cosmic-pro section.quant-ide .ide-feature-content p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.72);
    line-height: 1.7;
    margin: 0;
}

body.cosmic-pro section.quant-ide .ide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(217, 70, 239, 0.22);
    border: 1px solid rgba(217, 70, 239, 0.86);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    min-height: 44px;
    padding: 0 26px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    text-decoration: none;
}

body.cosmic-pro section.quant-ide .ide-button:hover {
    transform: translateY(-1px);
    background: rgba(217, 70, 239, 0.30);
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.32), var(--cos-glow-magenta);
}

body.cosmic-pro section.quant-ide .ide-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.32), var(--cos-glow-magenta);
}

body.cosmic-pro section.contact.section--transparent {
    padding: 5.5rem 0;
    background: transparent;
}

body.cosmic-pro section.contact h2 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.92);
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

body.cosmic-pro section.contact .contact-intro {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.74);
    line-height: 1.75;
    max-width: 46rem;
}

body.cosmic-pro section.contact .contact-content {
    gap: 2rem;
    align-items: stretch;
}

body.cosmic-pro section.contact .contact-info,
body.cosmic-pro section.contact .contact-form-container {
    position: relative;
    background: rgba(10, 14, 26, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 22px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.cosmic-pro section.contact .contact-info::before,
body.cosmic-pro section.contact .contact-form-container::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.42), rgba(217, 70, 239, 0.42));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.20;
}

body.cosmic-pro section.contact .contact-info > *,
body.cosmic-pro section.contact .contact-form-container > * {
    position: relative;
}

body.cosmic-pro section.contact .contact-info p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.72);
    line-height: 1.7;
}

body.cosmic-pro section.contact .contact-info a,
body.cosmic-pro section.contact .contact-info a:visited {
    color: rgba(245, 248, 255, 0.90);
    text-decoration: underline;
    text-decoration-color: rgba(245, 248, 255, 0.28);
    text-underline-offset: 3px;
}

body.cosmic-pro section.contact .contact-info a:hover {
    text-decoration-color: rgba(34, 211, 238, 0.55);
}

body.cosmic-pro section.contact .contact-methods {
    margin-top: 1.5rem;
}

body.cosmic-pro section.contact .contact-method {
    position: relative;
    padding: 14px 14px;
    border-radius: 16px;
    background: rgba(5, 6, 17, 0.22);
    border: 1px solid rgba(34, 211, 238, 0.38);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08), 0 14px 36px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

body.cosmic-pro section.contact .contact-method::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(34, 211, 238, 0.78);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.18), 0 0 22px rgba(34, 211, 238, 0.18);
    pointer-events: none;
    opacity: 0.85;
}

body.cosmic-pro section.contact .contact-method:hover {
    border-color: rgba(34, 211, 238, 0.78);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.22), var(--cos-glow-cyan);
}

body.cosmic-pro section.contact .contact-method > * {
    position: relative;
}

body.cosmic-pro section.contact .contact-method + .contact-method {
    margin-top: 0.75rem;
}

body.cosmic-pro section.contact .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.18), rgba(217, 70, 239, 0.06));
    border: 1px solid rgba(217, 70, 239, 0.55);
}

body.cosmic-pro section.contact .contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: rgba(217, 70, 239, 0.95);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

body.cosmic-pro section.contact .contact-details h3,
body.cosmic-pro section.contact .contact-form h3 {
    font-family: 'Outfit', sans-serif;
    color: rgba(245, 248, 255, 0.92);
    font-weight: 400;
    letter-spacing: 0.06em;
}

body.cosmic-pro section.contact .contact-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.cosmic-pro section.contact .contact-form .form-group:last-of-type {
    flex: 1;
}

body.cosmic-pro section.contact .contact-form textarea {
    min-height: 180px;
    height: 100%;
    resize: vertical;
}

body.cosmic-pro section.contact .contact-form .contact-submit {
    margin-top: auto;
}

body.cosmic-pro section.contact .contact-details p {
    color: rgba(245, 248, 255, 0.72);
}

body.cosmic-pro section.contact .contact-form input,
body.cosmic-pro section.contact .contact-form select,
body.cosmic-pro section.contact .contact-form textarea {
    background: rgba(5, 6, 17, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(245, 248, 255, 0.90);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

body.cosmic-pro section.contact .contact-form input,
body.cosmic-pro section.contact .contact-form select {
    height: 44px;
}

body.cosmic-pro section.contact .contact-form select {
    background: rgba(5, 6, 17, 0.35) !important;
    background-color: rgba(5, 6, 17, 0.35) !important;
    padding: 0 44px 0 18px;
    line-height: 44px;
}

body.cosmic-pro section.contact .contact-form select option {
    background-color: #050611;
    color: rgba(245, 248, 255, 0.92);
}

body.cosmic-pro section.contact .contact-form input:-webkit-autofill,
body.cosmic-pro section.contact .contact-form input:-webkit-autofill:hover,
body.cosmic-pro section.contact .contact-form input:-webkit-autofill:focus,
body.cosmic-pro section.contact .contact-form textarea:-webkit-autofill,
body.cosmic-pro section.contact .contact-form textarea:-webkit-autofill:hover,
body.cosmic-pro section.contact .contact-form textarea:-webkit-autofill:focus,
body.cosmic-pro section.contact .contact-form select:-webkit-autofill,
body.cosmic-pro section.contact .contact-form select:-webkit-autofill:hover,
body.cosmic-pro section.contact .contact-form select:-webkit-autofill:focus {
    -webkit-text-fill-color: rgba(245, 248, 255, 0.90);
    caret-color: rgba(245, 248, 255, 0.90);
    -webkit-box-shadow: 0 0 0 1000px rgba(5, 6, 17, 0.35) inset;
    box-shadow: 0 0 0 1000px rgba(5, 6, 17, 0.35) inset;
    transition: background-color 9999s ease-in-out 0s;
}

body.cosmic-pro section.contact .contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

body.cosmic-pro section.contact .contact-form input::placeholder,
body.cosmic-pro section.contact .contact-form textarea::placeholder {
    color: rgba(245, 248, 255, 0.55);
}

body.cosmic-pro section.contact .contact-form input:focus,
body.cosmic-pro section.contact .contact-form select:focus,
body.cosmic-pro section.contact .contact-form textarea:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

body.cosmic-pro section.contact .contact-submit {
    background: rgba(217, 70, 239, 0.22);
    border: 1px solid rgba(217, 70, 239, 0.86);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

body.cosmic-pro section.contact .contact-submit:hover {
    transform: translateY(-1px);
    background: rgba(217, 70, 239, 0.30);
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.32), var(--cos-glow-magenta);
}

body.cosmic-pro footer.section--solid {
    position: relative;
    background: #050611;
    padding: 3.25rem 0;
}

body.cosmic-pro footer.section--solid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #050611;
    pointer-events: none;
}

body.cosmic-pro footer.section--solid::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.35), rgba(217, 70, 239, 0.35));
    opacity: 0.55;
    pointer-events: none;
}

body.cosmic-pro footer.section--solid > * {
    position: relative;
}

body.cosmic-pro footer .logo {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.02em;
    font-weight: 400;
    color: rgba(245, 248, 255, 0.92);
}

body.cosmic-pro footer .footer-heading {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 400;
    color: rgba(245, 248, 255, 0.92);
}

body.cosmic-pro footer,
body.cosmic-pro footer .footer-section,
body.cosmic-pro footer .footer-section div,
body.cosmic-pro footer .footer-theme-toggle,
body.cosmic-pro footer .theme-label,
body.cosmic-pro footer .theme-option,
body.cosmic-pro footer .theme-divider {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.72);
}

body.cosmic-pro footer .footer-links a,
body.cosmic-pro footer .footer-links a:visited {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.78);
    text-decoration: none;
}

body.cosmic-pro footer .footer-links a:hover {
    color: rgba(245, 248, 255, 0.78);
    text-decoration: underline;
    text-decoration-color: rgba(34, 211, 238, 0.55);
    text-underline-offset: 3px;
}

body.cosmic-pro footer .footer-links a:focus-visible {
    outline: none;
    border-radius: 6px;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

body.cosmic-pro footer .footer-theme-toggle {
    background: rgba(5, 6, 17, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 10px 12px;
}

body.cosmic-pro #cookieBanner.cookie-banner {
    background: rgba(10, 14, 26, 0.58);
    border: 1px solid rgba(34, 211, 238, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 0 34px rgba(34, 211, 238, 0.18);
}

body.cosmic-pro #cookieBanner .banner-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.74);
}

body.cosmic-pro #cookieBanner .banner-text a,
body.cosmic-pro #cookieBanner .banner-text a:visited {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(34, 211, 238, 0.92);
    text-decoration: underline;
    text-decoration-color: rgba(34, 211, 238, 0.45);
    text-underline-offset: 3px;
}

body.cosmic-pro #cookieBanner .banner-text a:hover {
    color: rgba(34, 211, 238, 0.92);
    text-decoration-color: rgba(34, 211, 238, 0.70);
}

body.cosmic-pro #cookieBanner .banner-actions .btn {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
}

body.cosmic-pro #cookieBanner .banner-actions .btn.btn-primary {
    background: #0891b2;
    border: none;
    color: #ffffff;
    font-weight: 600;
    box-shadow: none;
}

body.cosmic-pro #cookieBanner .banner-actions .btn.btn-primary:hover {
    background: #0e7490;
    transform: translateY(-1px);
    box-shadow: none;
}

body.cosmic-pro #cookieBanner .banner-actions .btn.btn-tertiary {
    background: rgba(8, 10, 22, 0.35);
    border: 1px solid rgba(34, 211, 238, 0.60);
    color: rgba(245, 248, 255, 0.95);
    box-shadow: none;
}

body.cosmic-pro #cookieBanner .banner-actions .btn.btn-tertiary:hover {
    background: rgba(34, 211, 238, 0.10);
    border-color: rgba(34, 211, 238, 0.78);
    color: #ffffff;
}

body.cosmic-pro #cookieOverlay .cookie-popup {
    background: rgba(10, 14, 26, 0.62);
    border: 1px solid rgba(34, 211, 238, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.10), 0 0 46px rgba(34, 211, 238, 0.16);
    max-height: calc(100vh - 80px);
    overflow: hidden;
}

body.cosmic-pro #cookieOverlay .cookie-title,
body.cosmic-pro #cookieOverlay .category-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: rgba(245, 248, 255, 0.92);
}

body.cosmic-pro #cookieOverlay .cookie-description,
body.cosmic-pro #cookieOverlay .category-desc,
body.cosmic-pro #cookieOverlay .banner-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(245, 248, 255, 0.72);
}

body.cosmic-pro body.cookie-modal-open {
    overflow: hidden;
}

body.cosmic-pro #cookieOverlay .cookie-content {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body.cosmic-pro #cookieOverlay .cookie-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body.cosmic-pro #cookieOverlay .cookie-content::-webkit-scrollbar-track {
    background: rgba(10, 14, 26, 0.35);
    border-radius: 999px;
}

body.cosmic-pro #cookieOverlay .cookie-content::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.70);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.22);
}

body.cosmic-pro #cookieOverlay .cookie-content::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.92);
}

body.cosmic-pro #cookieOverlay .required-badge {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(217, 70, 239, 0.26);
    border: 1px solid rgba(217, 70, 239, 0.86);
    color: rgba(245, 248, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.20), 0 0 28px rgba(217, 70, 239, 0.22);
}

body.cosmic-pro #cookieOverlay .cookie-links a,
body.cosmic-pro #cookieOverlay .cookie-links a:visited {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(34, 211, 238, 0.92);
}

body.cosmic-pro #cookieOverlay .cookie-links a:hover {
    color: rgba(34, 211, 238, 0.92);
    text-decoration: underline;
    text-decoration-color: rgba(34, 211, 238, 0.70);
    text-underline-offset: 3px;
}

body.cosmic-pro #cookieOverlay .cookie-actions .btn {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
}

body.cosmic-pro #cookieOverlay .cookie-actions .btn.btn-secondary {
    background: rgba(34, 211, 238, 0.78);
    border: 1px solid rgba(34, 211, 238, 1.0);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.36), 0 0 60px rgba(34, 211, 238, 0.36);
}

body.cosmic-pro #cookieOverlay .cookie-actions .btn.btn-secondary:hover {
    background: rgba(34, 211, 238, 0.88);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.55), 0 0 90px rgba(34, 211, 238, 0.42);
}

body.cosmic-pro #cookieOverlay .cookie-actions .btn.btn-primary {
    background: rgba(8, 10, 22, 0.35);
    border: 1px solid rgba(34, 211, 238, 0.92);
    color: rgba(245, 248, 255, 0.78);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.10);
}

body.cosmic-pro #cookieOverlay .cookie-actions .btn.btn-primary:hover {
    background: rgba(34, 211, 238, 0.18);
    color: rgba(245, 248, 255, 0.86);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.22), 0 0 28px rgba(34, 211, 238, 0.18);
}

body.cosmic-pro #cookieOverlay .cookie-actions .btn.btn-tertiary {
    background: rgba(8, 10, 22, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(245, 248, 255, 0.70);
}

body.cosmic-pro #cookieOverlay .cookie-actions .btn.btn-tertiary:hover {
    border-color: rgba(34, 211, 238, 0.40);
    color: rgba(245, 248, 255, 0.82);
}

@media (max-width: 768px) {
    body.cosmic-pro section.features {
        padding: 4.25rem 0;
    }

    body.cosmic-pro section.features h2 {
        margin-bottom: 2rem;
    }

    body.cosmic-pro section.about {
        padding: 4.75rem 0;
    }

    body.cosmic-pro section.meet-qai.section--transparent {
        padding: 4.75rem 0;
    }

    body.cosmic-pro section.quant-agi.section--solid {
        padding: 4.75rem 0;
    }

    body.cosmic-pro section.contact.section--transparent {
        padding: 4.75rem 0;
    }
}

@media (max-width: 768px) {
    body.cosmic-pro .title-underline {
        width: 140px;
    }
}

/* =============================================
   LIGHT THEME — COSMIC PROFESSIONAL OVERRIDES
   =============================================
   Mapping: white text → dark, dark bg → light grey/white
   Cyan & Magenta liquid glass buttons: UNCHANGED
   ============================================= */

/* --- Light theme CSS variables --- */
[data-theme="light"] {
    --cos-base: #f1f5f9;
    --cos-surface: rgba(255, 255, 255, 0.70);
    --cos-glass: rgba(255, 255, 255, 0.60);
    --cos-text: #0f172a;
    --cos-text-muted: #475569;
    --cos-border: rgba(15, 23, 42, 0.12);
    --cos-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
    --cos-glow-cyan: 0 0 24px rgba(34, 211, 238, 0.18);
    --cos-glow-magenta: 0 0 24px rgba(217, 70, 239, 0.18);
}

/* --- NAV / HEADER --- */
[data-theme="light"] body.cosmic-pro header {
    background: rgba(241, 245, 249, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

[data-theme="light"] body.cosmic-pro header,
[data-theme="light"] body.cosmic-pro header * {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro .logo {
    color: #1e293b !important;
    -webkit-text-stroke: 0px;
    text-shadow: none;
    font-weight: 300;
}

[data-theme="light"] body.cosmic-pro .nav-links a {
    color: #334155 !important;
    opacity: 1;
    font-weight: 500;
}

[data-theme="light"] body.cosmic-pro .nav-links a:hover {
    color: #0f172a !important;
    text-shadow: none;
}

[data-theme="light"] body.cosmic-pro header a,
[data-theme="light"] body.cosmic-pro header a:hover {
    color: #0f172a !important;
}

[data-theme="light"] body.cosmic-pro #signInButton,
[data-theme="light"] body.cosmic-pro .account-button {
    font-weight: 500;
}

/* Magenta liquid glass buttons — stronger opacity on light theme to match dark */
[data-theme="light"] body.cosmic-pro .launch-button {
    color: #0f172a !important;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.45), rgba(217, 70, 239, 0.22));
    border: 1px solid rgba(217, 70, 239, 0.90);
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.22), 0 10px 24px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] body.cosmic-pro .launch-button:hover {
    color: #0f172a !important;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.55), rgba(217, 70, 239, 0.30));
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.50), 0 18px 36px rgba(0, 0, 0, 0.22), var(--cos-glow-magenta);
}

[data-theme="light"] body.cosmic-pro .demo-button {
    color: #0f172a !important;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.45), rgba(217, 70, 239, 0.22));
    border: 1px solid rgba(217, 70, 239, 0.90);
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.22), 0 10px 24px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] body.cosmic-pro .demo-button:hover {
    color: #0f172a !important;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.55), rgba(217, 70, 239, 0.30));
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.50), 0 0 26px rgba(217, 70, 239, 0.28);
}

/* --- HERO --- */
[data-theme="light"] body.cosmic-pro .hero {
    background: transparent;
}

[data-theme="light"] body.cosmic-pro .hero::before {
    background: none;
}

[data-theme="light"] body.cosmic-pro .hero,
[data-theme="light"] body.cosmic-pro .hero * {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro .hero h1 {
    color: rgba(15, 23, 42, 0.9) !important;
}

[data-theme="light"] body.cosmic-pro .hero .hero-subtitle,
[data-theme="light"] body.cosmic-pro .hero h2 {
    color: #1e293b;
}

[data-theme="light"] body.cosmic-pro .hero p {
    color: rgba(15, 23, 42, 0.65) !important;
}

[data-theme="light"] body.cosmic-pro .hero .hero-emphasis {
    color: rgba(15, 23, 42, 0.95) !important;
}

body.cosmic-pro[data-theme="light"] .hero h1 {
    color: rgba(15, 23, 42, 0.9) !important;
}

body.cosmic-pro[data-theme="light"] .hero p {
    color: rgba(15, 23, 42, 0.65) !important;
}

body.cosmic-pro[data-theme="light"] .hero .hero-emphasis {
    color: rgba(15, 23, 42, 0.95) !important;
}

[data-theme="light"] body.cosmic-pro .title-underline {
    opacity: 0.85;
}

/* Hero suggestion pills — dark glass on light */
[data-theme="light"] body.cosmic-pro .hero-suggestion {
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body.cosmic-pro .hero-suggestion:hover {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.55);
    color: #0f172a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Hero signup box — keep transparent in hero context */
[data-theme="light"] body.cosmic-pro .signup-box {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] body.cosmic-pro .hero-signup .signup-box {
    background: transparent;
    box-shadow: none;
}

/* SIGN UP CTA — magenta pill on light theme (cyan too faint on light bg) */
[data-theme="light"] body.cosmic-pro .cta-button {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.30), rgba(217, 70, 239, 0.14));
    border: 1px solid rgba(217, 70, 239, 0.86);
    color: #0f172a !important;
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.18), 0 10px 26px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] body.cosmic-pro .cta-button:hover {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.42), rgba(217, 70, 239, 0.18));
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.36), 0 18px 36px rgba(0, 0, 0, 0.22), var(--cos-glow-magenta);
    color: #0f172a !important;
}

/* Auth buttons — magenta with black text on light theme */
[data-theme="light"] .auth-button {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.30), rgba(217, 70, 239, 0.14)) !important;
    border: 1px solid rgba(217, 70, 239, 0.86) !important;
    color: #0f172a !important;
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.18), 0 10px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .auth-button:hover {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.42), rgba(217, 70, 239, 0.22)) !important;
    border-color: rgba(217, 70, 239, 0.95) !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.50), 0 18px 36px rgba(0, 0, 0, 0.18), 0 0 24px rgba(217, 70, 239, 0.25);
}

[data-theme="light"] .auth-button.secondary {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.30), rgba(217, 70, 239, 0.14)) !important;
    border: 1px solid rgba(217, 70, 239, 0.86) !important;
    color: #0f172a !important;
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.18), 0 10px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .auth-button.secondary:hover {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.42), rgba(217, 70, 239, 0.22)) !important;
    border-color: rgba(217, 70, 239, 0.95) !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.50), 0 18px 36px rgba(0, 0, 0, 0.18), 0 0 24px rgba(217, 70, 239, 0.25);
}

/* Cyan glass pills → magenta on light theme for readability */
[data-theme="light"] body.cosmic-pro .btn-glass-cyan,
[data-theme="light"] .btn-glass-cyan {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.20), rgba(217, 70, 239, 0.08));
    border: 1px solid rgba(217, 70, 239, 0.70);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.15);
}

[data-theme="light"] body.cosmic-pro .btn-glass-cyan:hover,
[data-theme="light"] .btn-glass-cyan:hover {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.32), rgba(217, 70, 239, 0.14));
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.3);
    border-color: rgba(217, 70, 239, 0.85);
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro .signup-title,
[data-theme="light"] body.cosmic-pro .signup-description {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro .signup-description {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro .signup-points {
    background: rgba(241, 245, 249, 0.80);
    border: 1px solid rgba(34, 211, 238, 0.20);
}

[data-theme="light"] body.cosmic-pro .signup-points-title {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro .signup-points-list li {
    color: #334155;
}

[data-theme="light"] body.cosmic-pro .email-input {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro .email-input::placeholder {
    color: #94a3b8;
}

/* --- SECTION BACKGROUNDS --- */
/* Solid sections: light grey instead of black */
[data-theme="light"] body.cosmic-pro .section--solid {
    background: #eef2f7 !important;
}

[data-theme="light"] body.cosmic-pro .section--solid::before {
    background: #eef2f7 !important;
}

/* Transparent sections — keep transparent so light-theme background shows through */
[data-theme="light"] body.cosmic-pro .section--transparent {
    background: transparent !important;
}

/* --- CORE FEATURES --- */
[data-theme="light"] body.cosmic-pro section.features {
    background: #eef2f7;
}

[data-theme="light"] body.cosmic-pro section.features h2 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.features .feature-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] body.cosmic-pro section.features .feature-card h3 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.features .feature-card p {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro section.features .feature-icon {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(217, 70, 239, 0.08));
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body.cosmic-pro section.features .feature-icon svg {
    stroke: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.stats .stat-number {
    color: rgba(34, 211, 238, 0.92);
    text-shadow: none;
}

/* --- ABOUT --- */
[data-theme="light"] body.cosmic-pro section.about {
    background: transparent;
}

[data-theme="light"] body.cosmic-pro section.about h2 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.about .about-intro {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro section.about .about-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body.cosmic-pro section.about .about-item h3 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.about .about-item p {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro section.about .whitepaper-circle {
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

[data-theme="light"] body.cosmic-pro section.about .whitepaper-summary {
    color: #475569;
}

/* --- MEET QAI --- */
[data-theme="light"] body.cosmic-pro section.meet-qai {
    background: transparent !important;
}

[data-theme="light"] body.cosmic-pro section.meet-qai.section--transparent {
    background: transparent !important;
}

[data-theme="light"] body.cosmic-pro section.meet-qai h2 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.meet-qai .qai-intro {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro section.meet-qai .qai-feature {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body.cosmic-pro section.meet-qai .qai-feature-icon {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(217, 70, 239, 0.08));
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body.cosmic-pro section.meet-qai .qai-feature-icon svg {
    stroke: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.meet-qai .qai-feature-content h3 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.meet-qai .qai-feature-content p {
    color: #475569;
}

/* --- QUANT AGI --- */
[data-theme="light"] body.cosmic-pro section.quant-agi {
    background: transparent !important;
}

[data-theme="light"] body.cosmic-pro section.quant-agi.section--solid {
    background: #eef2f7 !important;
}

[data-theme="light"] body.cosmic-pro section.quant-agi.section--solid::before {
    background: #eef2f7 !important;
}

[data-theme="light"] body.cosmic-pro section.quant-agi h2 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.quant-agi .agi-intro {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro section.quant-agi .agi-capability {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body.cosmic-pro section.quant-agi .capability-icon {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(217, 70, 239, 0.08));
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body.cosmic-pro section.quant-agi .capability-icon svg {
    stroke: rgba(217, 70, 239, 0.95);
}

[data-theme="light"] body.cosmic-pro section.quant-agi .capability-content h3 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.quant-agi .capability-content p {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro section.quant-agi .agi-status {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body.cosmic-pro section.quant-agi .status-text {
    color: #0f172a !important;
}

[data-theme="light"] body.cosmic-pro section.quant-agi .status-description {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro section.quant-agi .agi-soon-badge {
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.45);
}

[data-theme="light"] body.cosmic-pro section.quant-agi .agi-soon-badge span {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.quant-agi .agi-brain-sketch::before {
    background: none;
}

/* Swap AGI brain to black version on light theme + remove chequered bg */
[data-theme="light"] body.cosmic-pro section.quant-agi .agi-brain-img {
    content: url('../images/LightTheme_AGIBRAIN_02_22_38PM.png');
    background: transparent !important;
}

[data-theme="light"] body.cosmic-pro section.quant-agi .agi-brain-sketch {
    background: transparent !important;
}

[data-theme="light"] body.cosmic-pro section.quant-agi .orbit-element svg {
    stroke: #334155;
}

[data-theme="light"] body.cosmic-pro section.quant-ide .ide-soon-badge {
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.45);
}

[data-theme="light"] body.cosmic-pro section.quant-ide .ide-soon-badge span {
    color: #0f172a;
}

/* --- QUANT IDE --- */
[data-theme="light"] body.cosmic-pro section.quant-ide {
    background: transparent;
}

[data-theme="light"] body.cosmic-pro section.quant-ide h2 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.quant-ide .ide-intro {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro section.quant-ide .ide-feature {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body.cosmic-pro section.quant-ide .ide-feature-icon {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(217, 70, 239, 0.08));
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.quant-ide .ide-feature-icon svg {
    stroke: rgba(34, 211, 238, 0.92);
}

[data-theme="light"] body.cosmic-pro section.quant-ide .ide-feature-content h3 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.quant-ide .ide-feature-content p {
    color: #475569;
}

/* --- CONTACT --- */
[data-theme="light"] body.cosmic-pro section.contact {
    background: #eef2f7 !important;
}

[data-theme="light"] body.cosmic-pro section.contact.section--transparent {
    background: #eef2f7 !important;
}

[data-theme="light"] body.cosmic-pro section.contact h2 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.contact .contact-intro {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro section.contact .contact-info,
[data-theme="light"] body.cosmic-pro section.contact .contact-form-container {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body.cosmic-pro section.contact .contact-info p {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro section.contact .contact-info a,
[data-theme="light"] body.cosmic-pro section.contact .contact-info a:visited {
    color: #0f172a;
    text-decoration-color: rgba(15, 23, 42, 0.28);
}

[data-theme="light"] body.cosmic-pro section.contact .contact-details h3,
[data-theme="light"] body.cosmic-pro section.contact .contact-form h3 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.contact .contact-details p {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro section.contact .contact-method {
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(34, 211, 238, 0.30);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] body.cosmic-pro section.contact .contact-method::before {
    border: 1px solid rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 0 14px rgba(34, 211, 238, 0.10);
}

[data-theme="light"] body.cosmic-pro section.contact .contact-form input,
[data-theme="light"] body.cosmic-pro section.contact .contact-form select,
[data-theme="light"] body.cosmic-pro section.contact .contact-form textarea {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.contact .contact-form input::placeholder,
[data-theme="light"] body.cosmic-pro section.contact .contact-form textarea::placeholder {
    color: #94a3b8;
}

/* SEND MESSAGE button — dark text on light theme */
[data-theme="light"] body.cosmic-pro section.contact .contact-submit {
    color: #0f172a !important;
}

[data-theme="light"] body.cosmic-pro section.contact .contact-submit:hover {
    color: #0f172a !important;
}

[data-theme="light"] body.cosmic-pro section.contact .contact-form select {
    background: rgba(255, 255, 255, 0.90) !important;
    background-color: rgba(255, 255, 255, 0.90) !important;
    border: 1px solid rgba(15, 23, 42, 0.18) !important;
    border-radius: 8px;
}

[data-theme="light"] body.cosmic-pro section.contact .contact-form select option {
    background-color: #ffffff;
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro section.contact .contact-form input:-webkit-autofill,
[data-theme="light"] body.cosmic-pro section.contact .contact-form input:-webkit-autofill:hover,
[data-theme="light"] body.cosmic-pro section.contact .contact-form input:-webkit-autofill:focus,
[data-theme="light"] body.cosmic-pro section.contact .contact-form textarea:-webkit-autofill,
[data-theme="light"] body.cosmic-pro section.contact .contact-form textarea:-webkit-autofill:hover,
[data-theme="light"] body.cosmic-pro section.contact .contact-form textarea:-webkit-autofill:focus,
[data-theme="light"] body.cosmic-pro section.contact .contact-form select:-webkit-autofill,
[data-theme="light"] body.cosmic-pro section.contact .contact-form select:-webkit-autofill:hover,
[data-theme="light"] body.cosmic-pro section.contact .contact-form select:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a;
    caret-color: #0f172a;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.90) inset;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.90) inset;
}

/* ============================================================
 * DEFAULT THEME — Contact section (mirrors Light theme above but
 * with #f4f4f5 cards on the dark starfield page. Uses the same
 * body.cosmic-pro section.contact prefix to match the base rules'
 * specificity (theme.css:1546 etc.). Section h2 + intro stay white
 * since they sit outside the cards on the dark page.
 * ============================================================ */
[data-theme="default"] body.cosmic-pro section.contact .contact-info,
[data-theme="default"] body.cosmic-pro section.contact .contact-form-container {
    background: #f4f4f5;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* GET IN TOUCH heading + intro paragraph sit INSIDE .contact-info (off-white card)
 * — must be dark text to be readable. */
[data-theme="default"] body.cosmic-pro section.contact h2 {
    color: #0f172a;
}

[data-theme="default"] body.cosmic-pro section.contact .contact-intro {
    color: #475569;
}

[data-theme="default"] body.cosmic-pro section.contact .contact-info::before,
[data-theme="default"] body.cosmic-pro section.contact .contact-form-container::before {
    opacity: 0;
}

[data-theme="default"] body.cosmic-pro section.contact .contact-info p {
    color: #475569;
}

[data-theme="default"] body.cosmic-pro section.contact .contact-info a,
[data-theme="default"] body.cosmic-pro section.contact .contact-info a:visited {
    color: #0f172a;
    text-decoration-color: rgba(15, 23, 42, 0.28);
}

[data-theme="default"] body.cosmic-pro section.contact .contact-details h3,
[data-theme="default"] body.cosmic-pro section.contact .contact-form h3 {
    color: #0f172a;
}

[data-theme="default"] body.cosmic-pro section.contact .contact-details p {
    color: #475569;
}

[data-theme="default"] body.cosmic-pro section.contact .contact-method {
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

[data-theme="default"] body.cosmic-pro section.contact .contact-icon {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #0f172a;
}

[data-theme="default"] body.cosmic-pro section.contact .contact-form input,
[data-theme="default"] body.cosmic-pro section.contact .contact-form select,
[data-theme="default"] body.cosmic-pro section.contact .contact-form textarea {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: #0f172a;
}

[data-theme="default"] body.cosmic-pro section.contact .contact-form input::placeholder,
[data-theme="default"] body.cosmic-pro section.contact .contact-form textarea::placeholder {
    color: #94a3b8;
}

[data-theme="default"] body.cosmic-pro section.contact .contact-submit {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.18);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

[data-theme="default"] body.cosmic-pro section.contact .contact-submit:hover {
    color: #0f172a !important;
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.30);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

[data-theme="default"] body.cosmic-pro section.contact .contact-form select,
[data-theme="default"] body.cosmic-pro section.contact #contactForm select {
    background: rgba(255, 255, 255, 0.90) !important;
    background-color: rgba(255, 255, 255, 0.90) !important;
    border: 1px solid rgba(15, 23, 42, 0.18) !important;
    color: #0f172a !important;
    border-radius: 8px;
}

/* Native <option> bg/colour — must include #contactForm in selector since the base
 * rule (#contactForm select option) is ID-specific (1,0,2) and beats class-only. */
[data-theme="default"] body.cosmic-pro section.contact .contact-form select option,
[data-theme="default"] body.cosmic-pro section.contact #contactForm select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* --- FOOTER --- */
[data-theme="light"] body.cosmic-pro footer.section--solid {
    background: #e2e8f0 !important;
}

[data-theme="light"] body.cosmic-pro footer.section--solid::before {
    background: #e2e8f0 !important;
}

[data-theme="light"] body.cosmic-pro footer.section--solid::after {
    opacity: 0.35;
}

[data-theme="light"] body.cosmic-pro footer .logo {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro footer .footer-heading {
    color: #0f172a;
    font-weight: 500;
    letter-spacing: 0.04em;
}

[data-theme="light"] body.cosmic-pro footer,
[data-theme="light"] body.cosmic-pro footer .footer-section,
[data-theme="light"] body.cosmic-pro footer .footer-section div,
[data-theme="light"] body.cosmic-pro footer .footer-theme-toggle,
[data-theme="light"] body.cosmic-pro footer .theme-label,
[data-theme="light"] body.cosmic-pro footer .theme-option,
[data-theme="light"] body.cosmic-pro footer .theme-divider {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro footer .footer-links a,
[data-theme="light"] body.cosmic-pro footer .footer-links a:visited {
    color: #334155;
}

[data-theme="light"] body.cosmic-pro footer .footer-links a:hover {
    color: #0f172a;
    text-decoration-color: rgba(34, 211, 238, 0.55);
}

[data-theme="light"] body.cosmic-pro footer .footer-theme-toggle {
    background: rgba(255, 255, 255, 0.50);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

/* --- LEGAL PAGES --- */
[data-theme="light"] body.cosmic-pro .legal-content {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

[data-theme="light"] body.cosmic-pro .legal-header h1 {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro .legal-content h2,
[data-theme="light"] body.cosmic-pro .legal-content h3 {
    color: var(--cos-cyan) !important;
}

[data-theme="light"] body.cosmic-pro .legal-content p,
[data-theme="light"] body.cosmic-pro .legal-content ul,
[data-theme="light"] body.cosmic-pro .legal-content li {
    color: #334155;
}

/* --- DEFAULT THEME LEGAL PAGES (off-white card per Phase 1 rule) --- */
[data-theme="default"] body.cosmic-pro .legal-content {
    background: #f4f4f5;
    border: 1px solid rgba(15, 23, 42, 0.10);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

[data-theme="default"] body.cosmic-pro .legal-content h2,
[data-theme="default"] body.cosmic-pro .legal-content h3 {
    color: #0f172a !important;
}

[data-theme="default"] body.cosmic-pro .legal-content h2 {
    border-bottom: 2px solid rgba(15, 23, 42, 0.12) !important;
    border-image: none !important;
}

[data-theme="default"] body.cosmic-pro .legal-content p,
[data-theme="default"] body.cosmic-pro .legal-content ul,
[data-theme="default"] body.cosmic-pro .legal-content li {
    color: #334155;
}

[data-theme="default"] body.cosmic-pro .legal-content a {
    color: #0891b2;
}

[data-theme="default"] body.cosmic-pro .legal-content a:hover {
    color: #a21caf;
}

/* --- REGION TOGGLE --- */
[data-theme="light"] body.cosmic-pro .region-toggle .toggle-switch {
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

[data-theme="light"] body.cosmic-pro .region-toggle .toggle-option {
    color: #64748b;
}

[data-theme="light"] body.cosmic-pro .region-toggle .toggle-option:hover {
    color: #0f172a;
}

/* --- COOKIE BANNER & POPUP --- */
[data-theme="light"] body.cosmic-pro #cookieBanner.cookie-banner {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(34, 211, 238, 0.55);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body.cosmic-pro #cookieBanner .banner-text {
    color: #475569;
}

[data-theme="light"] body.cosmic-pro #cookieOverlay .cookie-popup {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(34, 211, 238, 0.55);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] body.cosmic-pro #cookieOverlay .cookie-title,
[data-theme="light"] body.cosmic-pro #cookieOverlay .category-name {
    color: #0f172a;
}

[data-theme="light"] body.cosmic-pro #cookieOverlay .cookie-description,
[data-theme="light"] body.cosmic-pro #cookieOverlay .category-desc,
[data-theme="light"] body.cosmic-pro #cookieOverlay .banner-text {
    color: #475569;
}

/* --- SECTION BORDERS (light theme) — faded accent line, bolder in middle --- */
[data-theme="light"] body.cosmic-pro .features,
[data-theme="light"] body.cosmic-pro .about,
[data-theme="light"] body.cosmic-pro .contact,
[data-theme="light"] body.cosmic-pro .meet-qai,
[data-theme="light"] body.cosmic-pro .quant-agi,
[data-theme="light"] body.cosmic-pro .quant-ide {
    border-top: none;
    position: relative;
}

[data-theme="light"] body.cosmic-pro .features::before,
[data-theme="light"] body.cosmic-pro .about::before,
[data-theme="light"] body.cosmic-pro .contact::before,
[data-theme="light"] body.cosmic-pro .meet-qai::before,
[data-theme="light"] body.cosmic-pro .quant-agi::before,
[data-theme="light"] body.cosmic-pro .quant-ide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    background: radial-gradient(50% 100% at 50% 50%, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.0) 100%);
    pointer-events: none;
    z-index: 1;
}
