:root {
    --bg: #050807;
    --bg-soft: #09100d;
    --panel: #0b120f;
    --panel-light: #0e1713;
    --border: #1a2a22;
    --border-strong: #254237;

    --green: #29f3d5;
    --green-soft: #79f7df;
    --green-dark: #0b8d78;

    --text: #edf6f2;
    --text-soft: #aabbb4;
    --text-muted: #71817b;

    --danger: #e6a9a9;

    --max-width: 1180px;
    --radius: 14px;
    --radius-small: 9px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(
            circle at 78% 4%,
            rgba(41, 243, 213, 0.07),
            transparent 28rem
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

button,
textarea {
    font: inherit;
}

.site-shell {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}

.site-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(41, 243, 213, 0.1);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-nav a {
    position: relative;
    padding: 9px 13px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: rgba(41, 243, 213, 0.055);
}

.site-nav a.active::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 1px;
    background: var(--green);
}

.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    align-items: center;
    gap: 60px;
    padding: 80px 0;
}

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

.eyebrow {
    margin: 0 0 15px;
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 750px;
    font-size: clamp(3rem, 7vw, 5.9rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 760;
}

.hero h1 span {
    color: var(--green);
}

.hero-description {
    max-width: 610px;
    margin: 30px 0 0;
    color: var(--text-soft);
    font-size: 1.12rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 18px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 650;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 243, 213, 0.5);
}

.button-primary {
    background: var(--green);
    border-color: var(--green);
    color: #04100c;
}

.button-primary:hover {
    background: var(--green-soft);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.015);
    color: var(--text);
}

.hero-emblem {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 400px;
}

.hero-emblem img {
    position: relative;
    z-index: 1;
    width: min(390px, 80%);
    height: auto;
    filter:
        drop-shadow(0 0 20px rgba(41, 243, 213, 0.18))
        drop-shadow(0 25px 60px rgba(0, 0, 0, 0.6));
}

.emblem-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(41, 243, 213, 0.08);
    filter: blur(70px);
}

.section {
    padding: 90px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 35px;
}

.section-heading h2,
.model-panel h2,
.cta-card h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-heading p:not(.eyebrow) {
    margin: 15px 0 0;
    color: var(--text-soft);
}

.release-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-card {
    min-height: 165px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.025),
        rgba(255, 255, 255, 0.008)
    );
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.stat-card strong {
    margin-top: 20px;
    color: var(--green);
    font-size: 1.65rem;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.stat-note {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.model-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    padding: 45px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(
            130deg,
            rgba(41, 243, 213, 0.035),
            transparent 50%
        ),
        var(--panel);
}

.model-copy {
    color: var(--text-soft);
    font-size: 1rem;
}

.model-copy p {
    margin: 0 0 22px;
}

.model-copy p:last-child {
    margin-bottom: 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.principle {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.principle-number {
    display: block;
    margin-bottom: 28px;
    color: var(--green);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.principle h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.principle p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cta-section {
    padding-bottom: 100px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 38px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background:
        linear-gradient(
            120deg,
            rgba(41, 243, 213, 0.06),
            transparent 60%
        ),
        var(--panel);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    color: var(--text-muted);
    font-size: 0.76rem;
}

/* Shared page introduction */

.page-intro {
    padding: 85px 0 55px;
    max-width: 800px;
}

.page-intro h1 {
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-intro > p:last-child {
    max-width: 650px;
    margin: 23px 0 0;
    color: var(--text-soft);
    font-size: 1.05rem;
}

/* Chat */

.chat-page {
    max-width: 920px;
    margin: 0 auto;
}

.notice {
    margin: 0 0 15px;
    padding: 13px 16px;
    border: 1px solid rgba(41, 243, 213, 0.2);
    border-radius: var(--radius-small);
    background: rgba(41, 243, 213, 0.045);
    color: var(--text-soft);
    font-size: 0.86rem;
}

.hidden {
    display: none !important;
}

.chat-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.chat-window {
    height: 510px;
    overflow-y: auto;
    padding: 25px;
    scroll-behavior: smooth;
}

.message {
    max-width: 82%;
    margin-bottom: 19px;
}

.message:last-child {
    margin-bottom: 0;
}

.message-user {
    margin-left: auto;
}

.message-label {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.message-user .message-label {
    text-align: right;
}

.message-body {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg-soft);
    color: var(--text-soft);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.message-model .message-body {
    border-color: rgba(41, 243, 213, 0.13);
}

.message-user .message-body {
    background: rgba(41, 243, 213, 0.075);
    color: var(--text);
}

.chat-status {
    min-height: 32px;
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.chat-status.working {
    color: var(--green);
}

.chat-status.error {
    color: var(--danger);
}

.chat-form {
    padding: 15px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.12);
}

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

textarea {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    padding: 13px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

textarea::placeholder {
    color: #53635d;
}

textarea:focus {
    border-color: rgba(41, 243, 213, 0.55);
    box-shadow: 0 0 0 3px rgba(41, 243, 213, 0.06);
}

#send-button {
    align-self: stretch;
    min-width: 88px;
    padding: 0 16px;
    border: 1px solid var(--green);
    border-radius: 9px;
    background: var(--green);
    color: #04100c;
    cursor: pointer;
    font-weight: 700;
    transition:
        opacity 160ms ease,
        background 160ms ease;
}

#send-button:hover:not(:disabled) {
    background: var(--green-soft);
}

#send-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.input-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.demo-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 35px 0 90px;
}

.info-block {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.info-label {
    display: block;
    margin-bottom: 8px;
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.14em;
}

.info-block p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

/* Benchmarks */

.benchmark-intro {
    max-width: 820px;
}

.record-list {
    display: grid;
    gap: 12px;
    padding-bottom: 25px;
}

.run-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.run-card.run-current {
    border-color: rgba(41, 243, 213, 0.3);
    background:
        linear-gradient(
            135deg,
            rgba(41, 243, 213, 0.045),
            transparent 55%
        ),
        var(--panel);
}

.run-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.run-tag {
    display: block;
    margin-bottom: 7px;
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.16em;
}

.run-header h2 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.025em;
}

.run-result {
    color: var(--green);
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.run-description {
    max-width: 850px;
    margin: 22px 0;
    color: var(--text-soft);
}

.run-detail {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.run-detail span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.run-detail strong {
    color: var(--text);
    font-size: 0.92rem;
}

.run-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 25px;
}

.run-split .run-detail {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.benchmark-section,
.trajectory-section,
.methodology-section {
    padding-top: 75px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

td {
    color: var(--text-soft);
    font-size: 0.9rem;
}

td:last-child {
    color: var(--green);
    font-weight: 650;
    text-align: right;
}

th:last-child {
    text-align: right;
}

tr:last-child td {
    border-bottom: 0;
}

.trajectory {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.trajectory-row {
    display: grid;
    grid-template-columns: 110px minmax(80px, 1fr) 70px;
    align-items: center;
    gap: 15px;
}

.trajectory-row > span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.trajectory-row strong {
    color: var(--green);
    font-size: 0.84rem;
    text-align: right;
}

.trajectory-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #15221d;
}

.trajectory-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.note-card {
    padding: 25px;
    border-left: 2px solid var(--green);
    background: rgba(41, 243, 213, 0.035);
}

.note-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* Scrollbars */

* {
    scrollbar-width: thin;
    scrollbar-color: #263b32 transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #263b32;
    border-radius: 999px;
}

/* Responsive */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 70px 0;
    }

    .hero-emblem {
        min-height: 300px;
        order: -1;
    }

    .hero-emblem img {
        width: min(300px, 65%);
    }

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

    .model-panel {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .cta-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .site-shell {
        width: min(calc(100% - 24px), var(--max-width));
    }

    .site-header {
        min-height: 72px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        padding: 12px 0;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        padding: 7px 9px;
        font-size: 0.8rem;
    }

    .site-nav a.active::after {
        left: 9px;
        right: 9px;
    }

    .hero {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 14vw, 4rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-emblem {
        min-height: 220px;
    }

    .hero-emblem img {
        width: 220px;
    }

    .section {
        padding: 65px 0;
    }

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

    .stat-card {
        min-height: 145px;
        padding: 17px;
    }

    .stat-card strong {
        font-size: 1.3rem;
    }

    .model-panel {
        padding: 25px;
    }

    .cta-card {
        padding: 25px;
    }

    .site-footer {
        padding: 25px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .page-intro {
        padding: 60px 0 40px;
    }

    .page-intro h1 {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }

    .chat-window {
        height: 470px;
        padding: 17px;
    }

    .message {
        max-width: 94%;
    }

    .input-row {
        flex-direction: column;
    }

    #send-button {
        min-height: 45px;
    }

    .demo-notes {
        grid-template-columns: 1fr;
        padding-bottom: 65px;
    }

    .run-card {
        padding: 21px;
    }

    .run-header {
        flex-direction: column;
        gap: 10px;
    }

    .run-result {
        font-size: 1.65rem;
    }

    .run-split {
        grid-template-columns: 1fr;
    }

    .trajectory {
        padding: 18px;
    }

    .trajectory-row {
        grid-template-columns: 82px minmax(50px, 1fr) 58px;
        gap: 9px;
    }

    th,
    td {
        padding: 13px 14px;
    }
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}