/* =========================================================
   QUANTUMEZON Q-BCI RESEARCH
   GLOBAL STYLES
========================================================= */

:root {

    --bg: #020711;
    --bg-soft: #050d1a;

    --cyan: #00e5ff;
    --cyan-soft: rgba(0, 229, 255, 0.12);

    --violet: #7957ff;
    --violet-soft: rgba(121, 87, 255, 0.12);

    --green: #00ffb2;

    --text: #f5f8ff;
    --muted: #8d9aae;

    --border: rgba(255, 255, 255, 0.09);

    --glass: rgba(5, 13, 26, 0.67);

    --radius: 22px;

}


/* =========================================================
   RESET
========================================================= */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    background: var(--bg);

    color: var(--text);

    font-family: "Inter", sans-serif;

    overflow-x: hidden;

}


button,
a {

    font-family: inherit;

}


button {

    cursor: pointer;

}


a {

    color: inherit;
    text-decoration: none;

}


/* =========================================================
   PHOTONIC BACKGROUND
========================================================= */

#photonicCanvas {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: -10;

    pointer-events: none;

    opacity: 0.58;

}


.background-grid {

    position: fixed;

    inset: 0;

    z-index: -9;

    pointer-events: none;

    opacity: 0.16;

    background-image:

        linear-gradient(
            rgba(0, 229, 255, 0.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(0, 229, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

}


.ambient-glow {

    position: fixed;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    filter: blur(120px);

    pointer-events: none;

    z-index: -8;

}


.glow-one {

    background: rgba(0, 229, 255, 0.035);

    top: -250px;
    left: -200px;

}


.glow-two {

    background: rgba(121, 87, 255, 0.035);

    bottom: -300px;
    right: -200px;

}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {

    position: relative;

    width: 100%;

    padding: 25px 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid rgba(255,255,255,.04);

    background: rgba(2,7,17,.48);

    backdrop-filter: blur(18px);

    z-index: 50;

}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    font-family: "Space Grotesk";

    font-weight: 700;

    letter-spacing: 2px;

}


.brand-mark {

    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border: 1px solid rgba(0,229,255,.5);

    border-radius: 10px;

    color: var(--cyan);

    box-shadow: inset 0 0 15px rgba(0,229,255,.08);

}


.nav-links {

    display: flex;

    gap: 30px;

}


.nav-links a {

    color: #aeb8c9;

    font-size: 14px;

    transition: .25s;

}


.nav-links a:hover {

    color: var(--cyan);

}


.nav-button {

    background: transparent;

    border: 1px solid rgba(0,229,255,.35);

    color: var(--cyan);

    padding: 10px 18px;

    border-radius: 30px;

}


/* =========================================================
   HERO
========================================================= */

.hero {

    min-height: 82vh;

    max-width: 1400px;

    margin: auto;

    padding: 100px 6% 70px;

    display: grid;

    grid-template-columns: 1.3fr .7fr;

    gap: 80px;

    align-items: center;

}


.research-status {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 8px 14px;

    border-radius: 30px;

    background: rgba(0,229,255,.06);

    border: 1px solid rgba(0,229,255,.16);

    color: #80efff;

    font-size: 11px;

    letter-spacing: 1.5px;

}


.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow: 0 0 12px var(--green);

}


.hero h1 {

    margin-top: 28px;

    max-width: 850px;

    font-family: "Space Grotesk";

    font-size: clamp(48px, 6vw, 82px);

    line-height: .98;

    letter-spacing: -3px;

}


.hero h1 span {

    color: var(--cyan);

}


.hero-description {

    max-width: 720px;

    margin-top: 28px;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.8;

}


.hero-actions {

    display: flex;

    gap: 14px;

    margin-top: 35px;

}


.primary-button,
.secondary-button {

    padding: 14px 22px;

    border-radius: 30px;

    font-size: 14px;

    transition: .3s;

}


.primary-button {

    border: 1px solid rgba(0,229,255,.45);

    background: linear-gradient(
        110deg,
        rgba(0,229,255,.16),
        rgba(121,87,255,.16)
    );

    color: white;

}


.primary-button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 35px rgba(0,229,255,.12);

}


.secondary-button {

    background: rgba(255,255,255,.035);

    border: 1px solid var(--border);

    color: #bbc4d2;

}


.hero-equation {

    margin-top: 55px;

    display: flex;

    gap: 28px;

    color: rgba(255,255,255,.22);

    font-family: "Space Grotesk";

    font-size: 14px;

}


/* =========================================================
   HERO CONSOLE
========================================================= */

.hero-console {

    border: 1px solid rgba(255,255,255,.1);

    background: rgba(4,12,25,.65);

    backdrop-filter: blur(20px);

    border-radius: 26px;

    overflow: hidden;

    box-shadow:
        0 25px 80px rgba(0,0,0,.25);

}


.console-header {

    display: flex;

    justify-content: space-between;

    padding: 16px 20px;

    border-bottom: 1px solid var(--border);

    color: #6f7d91;

    font-size: 10px;

    letter-spacing: 1.5px;

}


.console-header div {

    display: flex;

    align-items: center;

    gap: 8px;

}


.console-indicator {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

}


.console-visual {

    position: relative;

    height: 350px;

    display: grid;

    place-items: center;

    overflow: hidden;

}


.core-node {

    width: 90px;
    height: 90px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    border: 1px solid rgba(0,229,255,.5);

    color: var(--cyan);

    font-family: "Space Grotesk";

    font-size: 32px;

    box-shadow:
        0 0 40px rgba(0,229,255,.1),
        inset 0 0 30px rgba(0,229,255,.08);

}


.orbital {

    position: absolute;

    border: 1px solid rgba(0,229,255,.12);

    border-radius: 50%;

}


.orbital-one {

    width: 190px;
    height: 190px;

}


.orbital-two {

    width: 280px;
    height: 140px;

    transform: rotate(35deg);

}


.orbital-three {

    width: 280px;
    height: 140px;

    transform: rotate(-35deg);

}


.console-line {

    position: absolute;

    width: 100px;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--cyan),
        transparent
    );

    opacity: .4;

}


.line-a {

    transform: rotate(30deg);

    top: 100px;

    right: 40px;

}


.line-b {

    transform: rotate(-25deg);

    bottom: 100px;

    left: 30px;

}


.line-c {

    transform: rotate(90deg);

    bottom: 20px;

    right: 50%;

}


.console-data {

    display: grid;

    grid-template-columns: repeat(3,1fr);

    border-top: 1px solid var(--border);

}


.console-data div {

    padding: 17px;

    border-right: 1px solid var(--border);

}


.console-data span {

    display: block;

    color: #68758a;

    font-size: 9px;

    letter-spacing: 1px;

}


.console-data strong {

    display: block;

    margin-top: 5px;

    font-size: 12px;

}


.active-text {

    color: var(--green);

}


/* =========================================================
   METRICS
========================================================= */

.metrics-section {

    max-width: 1300px;

    margin: auto;

    padding: 0 6% 80px;

    display: grid;

    grid-template-columns: repeat(4,1fr);

}


.metric-card {

    padding: 28px;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    border-right: 1px solid var(--border);

}


.metric-card:first-child {

    border-left: 1px solid var(--border);

}


.metric-number {

    display: block;

    font-family: "Space Grotesk";

    font-size: 38px;

    color: white;

}


.metric-label {

    color: var(--muted);

    font-size: 13px;

}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {

    max-width: 1400px;

    margin: auto;

    padding: 110px 6%;

}


.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 50px;

    margin-bottom: 45px;

}


.section-heading > p {

    max-width: 460px;

    color: var(--muted);

    line-height: 1.7;

    font-size: 14px;

}


.eyebrow {

    color: var(--cyan);

    font-size: 10px;

    letter-spacing: 2px;

    font-weight: 600;

}


.section-heading h2 {

    margin-top: 12px;

    font-family: "Space Grotesk";

    font-size: clamp(32px,4vw,52px);

    letter-spacing: -1.5px;

}


/* =========================================================
   RESEARCH DOMAINS
========================================================= */

.domain-grid {

    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 16px;

}


.domain-card {

    min-height: 190px;

    padding: 28px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: rgba(255,255,255,.025);

    position: relative;

    overflow: hidden;

    transition: .35s;

}


.domain-card::after {

    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background: rgba(0,229,255,.05);

    filter: blur(50px);

    right: -70px;
    bottom: -70px;

}


.domain-card:hover {

    transform: translateY(-5px);

    border-color: rgba(0,229,255,.28);

}


.domain-number {

    color: rgba(255,255,255,.2);

    font-family: "Space Grotesk";

    font-size: 12px;

}


.domain-card h3 {

    margin-top: 45px;

    font-family: "Space Grotesk";

    font-size: 21px;

}


.domain-card p {

    margin-top: 10px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;

}


/* =========================================================
   PROJECTS
========================================================= */

.project-grid {

    display: grid;

    grid-template-columns: repeat(2,1fr);

    gap: 18px;

}


.project-card {

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 28px;

    background: rgba(255,255,255,.025);

    transition: .35s;

}


.project-card:hover {

    border-color: rgba(0,229,255,.3);

    transform: translateY(-4px);

}


.project-top {

    display: flex;

    justify-content: space-between;

    gap: 20px;

}


.project-id {

    color: var(--cyan);

    font-size: 10px;

    letter-spacing: 1px;

}


.project-status {

    padding: 5px 10px;

    border-radius: 20px;

    background: rgba(0,255,178,.07);

    color: var(--green);

    font-size: 10px;

}


.project-card h3 {

    margin-top: 20px;

    font-family: "Space Grotesk";

    font-size: 23px;

}


.project-description {

    color: var(--muted);

    line-height: 1.7;

    font-size: 14px;

    margin-top: 10px;

}


.project-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 20px;

}


.project-tags span {

    padding: 6px 9px;

    border-radius: 7px;

    background: rgba(255,255,255,.04);

    color: #98a4b7;

    font-size: 10px;

}


.project-progress {

    margin-top: 25px;

}


.progress-header {

    display: flex;

    justify-content: space-between;

    font-size: 10px;

    color: #68758a;

}


.progress-bar {

    height: 3px;

    background: rgba(255,255,255,.06);

    margin-top: 8px;

    border-radius: 10px;

    overflow: hidden;

}


.progress-fill {

    height: 100%;

    background: linear-gradient(
        90deg,
        var(--cyan),
        var(--violet)
    );

}


/* =========================================================
   PAPERS
========================================================= */

.papers-section {

    border-top: 1px solid rgba(255,255,255,.04);

}


.papers-grid {

    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 18px;

}


.paper-card {

    padding: 26px;

    min-height: 290px;

    display: flex;

    flex-direction: column;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: rgba(255,255,255,.025);

    transition: .35s;

}


.paper-card:hover {

    transform: translateY(-5px);

    border-color: rgba(121,87,255,.35);

}


.paper-type {

    color: var(--violet);

    font-size: 10px;

    letter-spacing: 1.5px;

}


.paper-card h3 {

    margin-top: 25px;

    font-family: "Space Grotesk";

    font-size: 20px;

}


.paper-authors {

    margin-top: 10px;

    color: #778398;

    font-size: 11px;

}


.paper-abstract {

    margin-top: 18px;

    color: var(--muted);

    line-height: 1.65;

    font-size: 13px;

}


.paper-footer {

    margin-top: auto;

    padding-top: 25px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.paper-year {

    color: #6e7b8f;

    font-size: 11px;

}


.paper-open {

    color: var(--cyan);

    font-size: 12px;

}


/* =========================================================
   REPOSITORIES
========================================================= */

.repo-grid {

    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 18px;

}


.repo-card {

    padding: 25px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: rgba(255,255,255,.025);

    transition: .35s;

}


.repo-card:hover {

    transform: translateY(-5px);

    border-color: rgba(0,229,255,.28);

}


.repo-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.repo-icon {

    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background: rgba(0,229,255,.07);

    color: var(--cyan);

    font-family: "Space Grotesk";

}


.repo-language {

    color: #78869b;

    font-size: 10px;

}


.repo-card h3 {

    margin-top: 22px;

    font-family: "Space Grotesk";

    font-size: 19px;

}


.repo-description {

    margin-top: 10px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;

}


.repo-footer {

    margin-top: 24px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.repo-status {

    color: var(--green);

    font-size: 10px;

}


.repo-link {

    color: var(--cyan);

    font-size: 12px;

}


/* =========================================================
   EXPERIMENT LOG
========================================================= */

.experiment-log {

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

}


.log-entry {

    display: grid;

    grid-template-columns: 130px 1fr auto;

    gap: 30px;

    padding: 22px 25px;

    border-bottom: 1px solid var(--border);

    align-items: center;

}


.log-entry:last-child {

    border-bottom: none;

}


.log-date {

    color: #69768a;

    font-size: 11px;

}


.log-title {

    font-size: 14px;

}


.log-description {

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;

}


.log-state {

    color: var(--cyan);

    font-size: 10px;

}


.live-pill {

    padding: 7px 12px;

    border-radius: 20px;

    color: var(--green);

    background: rgba(0,255,178,.05);

    border: 1px solid rgba(0,255,178,.12);

    font-size: 10px;

}


/* =========================================================
   PIPELINE
========================================================= */

.centered {

    display: block;

    text-align: center;

}


.centered h2 {

    margin-bottom: 0;

}


.pipeline {

    position: relative;

    display: grid;

    grid-template-columns: repeat(5,1fr);

    gap: 25px;

    margin-top: 70px;

}


.pipeline-line {

    position: absolute;

    top: 20px;

    left: 10%;

    right: 10%;

    height: 1px;

    background: linear-gradient(
        90deg,
        var(--cyan),
        var(--violet),
        rgba(255,255,255,.1)
    );

}


.pipeline-step {

    position: relative;

    text-align: center;

}


.pipeline-node {

    position: relative;

    z-index: 2;

    width: 40px;
    height: 40px;

    margin: auto;

    display: grid;

    place-items: center;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.15);

    background: var(--bg);

    color: #657287;

    font-size: 10px;

}


.pipeline-step.active .pipeline-node {

    border-color: var(--cyan);

    color: var(--cyan);

    box-shadow: 0 0 20px rgba(0,229,255,.15);

}


.pipeline-step h3 {

    margin-top: 22px;

    font-family: "Space Grotesk";

    font-size: 16px;

}


.pipeline-step p {

    margin-top: 8px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.5;

}


/* =========================================================
   VAULT
========================================================= */

.vault-section {

    max-width: 1250px;

    margin: 60px auto 120px;

    padding: 70px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

    border: 1px solid rgba(0,229,255,.12);

    border-radius: 30px;

    background:
        linear-gradient(
            120deg,
            rgba(0,229,255,.035),
            rgba(121,87,255,.035)
        );

}


.vault-content h2 {

    margin-top: 15px;

    font-family: "Space Grotesk";

    font-size: 45px;

    line-height: 1.05;

}


.vault-content h2 span {

    color: var(--cyan);

}


.vault-content p {

    margin-top: 20px;

    max-width: 550px;

    color: var(--muted);

    line-height: 1.7;

    font-size: 14px;

}


.vault-content button {

    margin-top: 28px;

}


.vault-visual {

    position: relative;

    height: 300px;

    display: grid;

    place-items: center;

}


.vault-layer {

    position: absolute;

    width: 220px;

    height: 130px;

    display: grid;

    place-items: center;

    border: 1px solid rgba(0,229,255,.2);

    background: rgba(0,229,255,.025);

    border-radius: 18px;

    color: rgba(255,255,255,.25);

    font-size: 10px;

    letter-spacing: 2px;

}


.layer-one {

    transform:
        translate(-35px,35px)
        rotate(-8deg);

}


.layer-two {

    transform:
        translate(35px,-15px)
        rotate(7deg);

}


.layer-three {

    transform:
        translate(0,-50px);

}


.vault-core {

    position: relative;

    z-index: 5;

    width: 70px;
    height: 70px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--bg);

    border: 1px solid var(--cyan);

    color: var(--cyan);

    box-shadow: 0 0 40px rgba(0,229,255,.15);

}


/* =========================================================
   FOOTER
========================================================= */

footer {

    border-top: 1px solid rgba(255,255,255,.06);

    padding: 60px 6% 30px;

}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    font-family: "Space Grotesk";

    font-weight: 700;

}


footer > p {

    margin-top: 15px;

    color: var(--muted);

    font-size: 12px;

}


.footer-links {

    display: flex;

    gap: 25px;

    margin-top: 30px;

}


.footer-links a {

    color: #738095;

    font-size: 12px;

}


.footer-bottom {

    display: flex;

    justify-content: space-between;

    margin-top: 60px;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.05);

    color: #536074;

    font-size: 10px;

}


/* =========================================================
   MODAL
========================================================= */

.modal {

    position: fixed;

    inset: 0;

    z-index: 100;

    display: none;

    place-items: center;

    background: rgba(0,0,0,.75);

    backdrop-filter: blur(15px);

    padding: 25px;

}


.modal.show {

    display: grid;

}


.modal-content {

    width: min(750px,100%);

    max-height: 80vh;

    overflow-y: auto;

    padding: 40px;

    border: 1px solid rgba(0,229,255,.18);

    border-radius: 25px;

    background: #06101f;

    position: relative;

}


.modal-close {

    position: absolute;

    top: 15px;
    right: 18px;

    background: none;

    border: none;

    color: white;

    font-size: 28px;

}


.modal-content h2 {

    font-family: "Space Grotesk";

}


.modal-content p {

    margin-top: 15px;

    color: var(--muted);

    line-height: 1.8;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1050px) {

    .nav-links {

        display: none;

    }


    .hero {

        grid-template-columns: 1fr;

    }


    .hero-console {

        max-width: 600px;

    }


    .domain-grid,
    .papers-grid,
    .repo-grid {

        grid-template-columns: repeat(2,1fr);

    }

}


@media(max-width:700px) {

    .hero {

        padding-top: 70px;

    }


    .hero h1 {

        letter-spacing: -2px;

    }


    .hero-equation {

        flex-wrap: wrap;

    }


    .metrics-section {

        grid-template-columns: repeat(2,1fr);

    }


    .metric-card:nth-child(3) {

        border-left: 1px solid var(--border);

    }


    .domain-grid,
    .project-grid,
    .papers-grid,
    .repo-grid {

        grid-template-columns: 1fr;

    }


    .section {

        padding: 80px 6%;

    }


    .section-heading {

        display: block;

    }


    .section-heading > p {

        margin-top: 20px;

    }


    .pipeline {

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .pipeline-line {

        left: 50%;

        top: 20px;

        bottom: 20px;

        width: 1px;

        height: auto;

    }


    .vault-section {

        margin: 30px 6% 80px;

        padding: 35px 25px;

        grid-template-columns: 1fr;

    }


    .vault-content h2 {

        font-size: 35px;

    }


    .log-entry {

        grid-template-columns: 1fr;

        gap: 10px;

    }


    .footer-bottom {

        flex-direction: column;

        gap: 12px;

    }

}