@font-face {
    font-family: Orbitron;
    src: url("assets/fonts/Orbitron[wght].ttf") format("truetype");
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bg: #f7f9fc;
    --surface: #fff;
    --surface-soft: #eef3fa;
    --text: #101827;
    --muted: #62728c;
    --rule: #dfe6f0;
    --cyan: #19ddeb;
    --blue: #2878ff;
    --link: #2468d8;
    --glow: rgb(40 120 255 / 16%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #080d19;
        --surface: #101827;
        --surface-soft: #172338;
        --text: #eef4ff;
        --muted: #9aaac2;
        --rule: #26354d;
        --link: #77c9ff;
        --glow: rgb(25 221 235 / 14%);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    position: relative;
    isolation: isolate;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5.2vw;
    color: var(--text);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
}

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

a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--rule);
}

.wordmark {
    color: var(--text);
    font-family: Orbitron, var(--sans);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.06em;
}

.wordmark span {
    background: linear-gradient(105deg, var(--cyan), var(--blue));
    background-clip: text;
    color: transparent;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.8rem);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-header nav a:hover,
.text-link:hover {
    color: var(--text);
}

.site-header .nav-cta {
    padding: 0.58rem 0.9rem;
    border: 1px solid var(--rule);
    border-radius: 8px;
    color: var(--text);
}

.nav-cta span,
.button span {
    margin-left: 0.55rem;
    color: var(--cyan);
}

.hero {
    position: relative;
    display: grid;
    min-height: 650px;
    align-items: center;
    grid-template-columns: minmax(370px, 0.85fr) minmax(480px, 1.15fr);
    gap: 2vw;
    padding: 5.5rem 0 5rem;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 590px;
}

.eyebrow,
.section-label,
.card-kicker {
    margin: 0;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero .eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
    color: var(--muted);
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 18px var(--cyan);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 1.3rem;
    font-size: clamp(3.2rem, 6.2vw, 5.9rem);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -0.065em;
}

.lede {
    max-width: 490px;
    margin-bottom: 1.9rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.65vw, 1.28rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--rule);
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    border-color: transparent;
    color: #07111e;
    background: linear-gradient(105deg, var(--cyan), #79c8ff 48%, #78a4ff);
    box-shadow: 0 10px 32px var(--glow);
}

.button-primary span {
    color: #17325a;
}

.text-link {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-note {
    margin: 2rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.hero-art {
    position: relative;
    min-height: 470px;
    perspective: 1000px;
}

.hero-art::before {
    position: absolute;
    inset: 12% 4% 10%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, var(--glow), transparent 68%);
    content: "";
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72%;
    height: 47%;
    border: 1px solid rgb(72 162 255 / 20%);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-24deg);
}

.orbit-two {
    width: 91%;
    height: 64%;
    border-color: rgb(25 221 235 / 13%);
    transform: translate(-50%, -50%) rotate(28deg);
}

.float-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 24px 64px rgb(5 13 28 / 16%);
    backdrop-filter: blur(16px);
}

.card-main {
    z-index: 1;
    top: 14%;
    left: 18%;
    width: 67%;
    height: 70%;
    overflow: hidden;
    border-radius: 15px;
    transform: rotateY(-7deg) rotateX(3deg);
}

.window-bar {
    display: flex;
    height: 42px;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    border-bottom: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.55rem;
}

.window-bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rule);
}

.window-bar i:first-child {
    background: #ff6472;
}

.window-bar i:nth-child(2) {
    background: #f7c94b;
}

.window-bar i:nth-child(3) {
    margin-right: 10px;
    background: #32ce7a;
}

.window-content {
    display: grid;
    height: calc(100% - 82px);
    grid-template-columns: 25% 1fr;
}

.window-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 12px;
    border-right: 1px solid var(--rule);
    background: var(--surface-soft);
}

.window-sidebar span {
    height: 7px;
    border-radius: 5px;
    background: var(--rule);
}

.window-sidebar span:first-child {
    width: 90%;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.window-sidebar span:nth-child(2) {
    width: 68%;
}

.window-sidebar span:nth-child(3) {
    width: 78%;
}

.window-sidebar span:nth-child(4) {
    width: 54%;
}

.window-document {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px;
}

.doc-heading {
    width: 54%;
    height: 13px;
    margin-bottom: 7px;
    border-radius: 4px;
    background: var(--text);
    opacity: 0.75;
}

.card-line {
    display: block;
    width: 80%;
    height: 6px;
    border-radius: 3px;
    background: var(--rule);
}

.line-wide {
    width: 94%;
}

.line-short {
    width: 58%;
}

.highlight-line {
    width: 74%;
    height: 11px;
    margin: 1px 0;
    border-radius: 3px;
    background: linear-gradient(90deg, rgb(25 221 235 / 60%), rgb(40 120 255 / 20%));
}

.doc-link {
    width: 46%;
    height: 8px;
    margin-top: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    opacity: 0.8;
}

.window-footer {
    display: flex;
    height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border-top: 1px solid var(--rule);
}

.window-footer span {
    width: 16px;
    height: 16px;
    border: 1px solid var(--rule);
    border-radius: 5px;
}

.window-footer b {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.55rem;
    font-weight: 500;
}

.card-left,
.card-right {
    z-index: 2;
    width: 30%;
    padding: 16px;
}

.card-left {
    top: 11%;
    left: 0;
    gap: 12px;
    transform: rotate(-5deg);
}

.card-right {
    right: 0;
    bottom: 12%;
    gap: 13px;
    transform: rotate(4deg);
}

.card-kicker {
    font-size: 0.52rem;
}

.card-title {
    font-size: 0.84rem;
    font-weight: 650;
}

.annotation-chip {
    width: max-content;
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid rgb(25 221 235 / 36%);
    border-radius: 5px;
    color: var(--text);
    background: rgb(25 221 235 / 12%);
    font-size: 0.62rem;
}

.card-left .card-line,
.card-right .card-line {
    height: 5px;
}

.connection {
    position: absolute;
    z-index: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
    opacity: 0.8;
    transform-origin: left center;
}

.connection-one {
    top: 30%;
    left: 20%;
    width: 67%;
    transform: rotate(16deg);
}

.connection-two {
    top: 68%;
    left: 15%;
    width: 73%;
    transform: rotate(-13deg);
}

.connection-three {
    top: 18%;
    left: 58%;
    width: 50%;
    transform: rotate(66deg);
}

.graph-node {
    position: absolute;
    z-index: 3;
    width: 8px;
    height: 8px;
    border: 2px solid var(--bg);
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan);
}

.node-a {
    top: 30%;
    right: 8%;
}

.node-b {
    bottom: 19%;
    left: 20%;
    background: var(--blue);
    box-shadow: 0 0 14px var(--blue);
}

.node-c {
    top: 13%;
    left: 46%;
}

.signal-row {
    display: grid;
    padding: 1.3rem 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    grid-template-columns: repeat(3, 1fr);
}

.signal-row > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.signal-icon,
.platform-index {
    color: var(--blue);
    font-family: Orbitron, var(--sans);
    font-size: 0.67rem;
    font-weight: 700;
}

.section {
    padding: 8rem 0;
}

.intro {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 2rem;
}

.section-label {
    padding-top: 0.55rem;
}

h2 {
    margin-bottom: 1.1rem;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.section-lede {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
    gap: 1rem;
}

.feature-card {
    min-height: 440px;
    padding: 1.4rem;
    border: 1px solid var(--rule);
    border-radius: 14px;
    background: var(--surface);
}

.feature-card h3 {
    margin: 0.55rem 0 0.65rem;
    font-size: 1.27rem;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.feature-card > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.91rem;
}

.feature-art {
    position: relative;
    display: flex;
    height: 215px;
    align-items: center;
    justify-content: center;
    margin: -0.6rem -0.6rem 1.25rem;
    overflow: hidden;
    border-radius: 10px;
    background: radial-gradient(ellipse at 50% 45%, var(--glow), transparent 70%), var(--surface-soft);
}

.reading-page {
    display: flex;
    width: 45%;
    height: 78%;
    flex-direction: column;
    gap: 11px;
    padding: 22px 18px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 30px rgb(5 13 28 / 12%);
    transform: rotate(-3deg);
}

.reading-page > span:not(.page-highlight) {
    width: 85%;
    height: 5px;
    border-radius: 3px;
    background: var(--rule);
}

.reading-page > span:nth-child(3) {
    width: 72%;
}

.reading-page > span:nth-child(5) {
    width: 92%;
}

.reading-page .page-heading {
    width: 48%;
    height: 12px;
    margin-bottom: 5px;
    background: var(--text);
    opacity: 0.65;
}

.reading-page .page-highlight {
    width: 78%;
    height: 9px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cyan), rgb(40 120 255 / 25%));
}

.reading-page .page-link {
    width: 53%;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.reading-side {
    display: flex;
    width: 18%;
    flex-direction: column;
    gap: 12px;
    padding: 18px 12px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--surface);
    transform: translate(12px, 20px) rotate(4deg);
}

.reading-side i {
    height: 6px;
    border-radius: 4px;
    background: var(--rule);
}

.reading-side i:first-child {
    background: var(--blue);
}

.chat-art {
    flex-direction: column;
    gap: 13px;
}

.chat-bubble {
    width: 65%;
    height: 50px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--surface);
}

.user-bubble {
    width: 42%;
    align-self: flex-end;
    margin-right: 14%;
    background: linear-gradient(110deg, rgb(25 221 235 / 20%), rgb(40 120 255 / 14%));
}

.assistant-bubble {
    display: flex;
    height: 90px;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    padding: 15px;
}

.assistant-bubble i,
.assistant-bubble b {
    width: 87%;
    height: 5px;
    border-radius: 4px;
    background: var(--rule);
}

.assistant-bubble i:nth-child(2) {
    width: 75%;
}

.assistant-bubble b {
    width: 48%;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.kb-art {
    flex-direction: column;
    gap: 9px;
    padding: 25px 28px;
}

.kb-tab {
    display: flex;
    width: 100%;
    height: 37px;
    align-items: center;
    gap: 10px;
    padding: 0 11px;
    border: 1px solid var(--rule);
    border-radius: 7px;
    background: var(--surface);
}

.kb-tab i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
}

.kb-tab.active i {
    background: #21c783;
}

.kb-tab span {
    width: 57%;
    height: 6px;
    border-radius: 3px;
    background: var(--rule);
}

.kb-plus {
    position: absolute;
    right: 19%;
    bottom: 25%;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--rule);
    border-radius: 7px;
    color: var(--blue);
    background: var(--surface);
}

.principles {
    display: grid;
    align-items: center;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8vw;
}

.principles-art {
    position: relative;
    min-height: 370px;
    border: 1px solid var(--rule);
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 48%, var(--glow), transparent 66%), var(--surface);
}

.principle-doc {
    position: absolute;
    display: flex;
    width: 42%;
    height: 53%;
    flex-direction: column;
    gap: 13px;
    padding: 22px;
    border: 1px solid var(--rule);
    border-radius: 9px;
    background: var(--surface);
    box-shadow: 0 18px 40px rgb(5 13 28 / 12%);
}

.principle-doc span,
.principle-doc b {
    width: 85%;
    height: 6px;
    border-radius: 4px;
    background: var(--rule);
}

.principle-doc span:first-child {
    width: 53%;
    height: 12px;
    margin-bottom: 5px;
    background: var(--text);
    opacity: 0.65;
}

.principle-doc b {
    width: 75%;
    height: 11px;
    background: linear-gradient(90deg, var(--cyan), rgb(40 120 255 / 30%));
}

.doc-one {
    top: 16%;
    left: 9%;
    transform: rotate(-8deg);
}

.doc-two {
    right: 8%;
    bottom: 14%;
    transform: rotate(7deg);
}

.principle-link {
    position: absolute;
    top: 49%;
    left: 35%;
    width: 35%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transform: rotate(29deg);
}

.principle-dot {
    position: absolute;
    top: 54%;
    left: 53%;
    width: 12px;
    height: 12px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan);
}

.principles-copy h2 {
    max-width: 520px;
    margin: 1rem 0;
}

.principles-copy > p:not(.section-label) {
    max-width: 570px;
    color: var(--muted);
}

.principle-list {
    margin: 1.6rem 0 0;
    padding: 0;
    border-top: 1px solid var(--rule);
    list-style: none;
}

.principle-list li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9rem;
}

.principle-list span {
    color: var(--blue);
    font-family: Orbitron, var(--sans);
    font-size: 0.66rem;
}

.platforms {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 0.9fr;
    gap: 10vw;
    padding: 5rem 5vw;
    border: 1px solid var(--rule);
    border-radius: 16px;
    background: var(--surface);
}

.platform-copy h2 {
    max-width: 520px;
    margin: 1rem 0;
}

.platform-copy p:not(.section-label) {
    max-width: 530px;
    margin-bottom: 1.6rem;
    color: var(--muted);
}

.platform-list > div {
    display: grid;
    min-height: 62px;
    align-items: center;
    border-bottom: 1px solid var(--rule);
    grid-template-columns: 2.5rem 1fr auto;
    gap: 0.75rem;
}

.platform-list > div:first-child {
    border-top: 1px solid var(--rule);
}

.platform-state {
    color: var(--muted);
    font-size: 0.75rem;
}

.platform-state.available {
    color: #168858;
}

.site-footer {
    display: flex;
    min-height: 130px;
    align-items: center;
    gap: 1.3rem;
    margin-top: 6rem;
    border-top: 1px solid var(--rule);
}

.site-footer .wordmark {
    font-size: 0.95rem;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.83rem;
}

.footer-note {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.78rem;
}

.backdrop {
    position: fixed;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .float-card {
        box-shadow: 0 24px 64px rgb(0 0 0 / 42%);
    }

    .platform-state.available {
        color: #6bd6a8;
    }
}

@media (max-width: 920px) {
    body {
        padding-right: 6vw;
        padding-left: 6vw;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 5rem 0 3rem;
    }

    .hero-copy {
        max-width: 700px;
    }

    .hero-art {
        width: min(100%, 690px);
        min-height: 420px;
        margin: 0 auto;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-large {
        grid-column: span 2;
    }

    .principles {
        gap: 4vw;
    }

    .platforms {
        gap: 5vw;
        padding-right: 4vw;
        padding-left: 4vw;
    }
}

@media (max-width: 620px) {
    body {
        padding-right: 1.15rem;
        padding-left: 1.15rem;
        font-size: 15px;
    }

    .site-header {
        min-height: 74px;
    }

    .wordmark {
        font-size: 0.98rem;
    }

    .site-header nav {
        gap: 1rem;
        font-size: 0.77rem;
    }

    .site-header nav a:nth-child(2) {
        display: none;
    }

    .site-header .nav-cta {
        padding: 0.48rem 0.64rem;
    }

    .hero {
        padding: 4rem 0 2.5rem;
    }

    h1 {
        font-size: clamp(2.75rem, 12vw, 4rem);
    }

    .hero-art {
        min-height: 330px;
        margin-top: 0.5rem;
    }

    .card-main {
        top: 16%;
        left: 13%;
        width: 75%;
        height: 68%;
    }

    .card-left,
    .card-right {
        width: 34%;
        padding: 11px;
    }

    .card-left {
        top: 12%;
    }

    .card-right {
        bottom: 8%;
    }

    .card-title {
        font-size: 0.72rem;
    }

    .signal-row {
        gap: 0.75rem;
        grid-template-columns: 1fr;
    }

    .signal-row > div {
        justify-content: flex-start;
    }

    .section {
        padding: 5rem 0;
    }

    .intro,
    .principles,
    .platforms {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro {
        gap: 0.8rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-large {
        grid-column: auto;
    }

    .feature-card {
        min-height: 390px;
    }

    .feature-art {
        height: 195px;
    }

    .principles-art {
        min-height: 290px;
    }

    .platforms {
        padding: 2rem 1.25rem;
    }

    .site-footer {
        flex-wrap: wrap;
        gap: 0.8rem;
        padding: 1.5rem 0;
    }

    .footer-note {
        width: 100%;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
