:root {
    --bg: #0b0d10;
    --panel: #111419;
    --panel-2: #0f1217;
    --border: #242a33;
    --border-soft: #1b2028;
    --text: #d9dde5;
    --muted: #8f98a8;
    --accent: #8aa8ff;
    --accent-weak: #9fb5ef;
    --mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 58px;
    padding: 0 24px;
    background: #0b0d10;
    border-bottom: 1px solid var(--border-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
}

.brand-name {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: 13px;
}

.site-nav a,
.login-link,
.text-link {
    padding: 6px 8px;
    border: 1px solid transparent;
}

.site-nav a:hover,
.login-link:hover,
.text-link:hover {
    color: var(--text);
    border-color: var(--border);
    background: var(--panel-2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switch {
    display: inline-flex;
    border: 1px solid var(--border);
}

.language-button {
    height: 28px;
    padding: 0 9px;
    border: 0;
    border-right: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
}

.language-button:last-child {
    border-right: 0;
}

.language-button:hover,
.language-button.is-active {
    background: var(--panel);
    color: var(--text);
}

.login-link {
    color: var(--muted);
    font-size: 13px;
}

.section-wrap {
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
    gap: 46px;
    align-items: center;
    padding: 72px 0 34px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--accent-weak);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1 {
    max-width: 720px;
    margin-bottom: 20px;
    font-size: clamp(36px, 3.8vw, 54px);
    line-height: 1.12;
    letter-spacing: 0.018em;
    font-weight: 800;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.14;
    letter-spacing: 0.014em;
    font-weight: 750;
}

h3 {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.32;
    letter-spacing: 0.01em;
    font-weight: 700;
}

.hero-text {
    max-width: 560px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 15px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 650;
}

.button.primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.button.secondary {
    background: transparent;
    color: var(--text);
}

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

.terminal-card,
.table-shell,
.api-strip {
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: none;
}

.terminal-card {
    overflow: hidden;
}

.terminal-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
}

pre {
    margin: 0;
    overflow-x: auto;
}

code {
    font-family: var(--mono);
    font-size: 12px;
}

.terminal-card pre,
.api-strip pre {
    padding: 18px;
    color: #cdd3df;
}

.stats {
    display: grid;
    grid-template-columns: 0.7fr 1.2fr 0.7fr;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.stat-item {
    padding: 18px 20px;
    border-right: 1px solid var(--border-soft);
}

.stat-item:last-child {
    border-right: 0;
}

.stat-value {
    display: block;
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 13px;
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
}

.split-section {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 36px;
    padding: 64px 0;
}

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

.feature-card {
    min-height: 126px;
    padding: 18px;
    border: 1px solid var(--border);
    background: var(--panel-2);
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.table-section {
    padding-bottom: 64px;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.text-link {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.table-shell {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

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

th {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

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

.file-name {
    font-family: var(--mono);
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid var(--border);
    background: #101622;
    color: var(--accent-weak);
    font-family: var(--mono);
    font-size: 11px;
}

.badge.muted {
    background: transparent;
    color: var(--muted);
}

.price-card .badge {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.api-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 64px;
    padding: 22px;
}

.api-strip pre {
    border: 1px solid var(--border-soft);
    background: var(--bg);
}


.pricing-preview {
    padding-bottom: 64px;
}

.pricing-copy {
    max-width: 640px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.price-card.featured {
    border-color: var(--accent);
}

.price-card h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.price-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.pricing-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    font-size: 13px;
}

.pricing-list li + li {
    margin-top: 8px;
}


.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    padding: 0 24px;
    border-top: 1px solid var(--border-soft);
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

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

@media (max-width: 880px) {
    .site-header {
        position: static;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .site-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .section-wrap {
        width: min(100% - 32px, 1080px);
    }

    .hero,
    .split-section,
    .api-strip,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 48px;
    }

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

    .stat-item {
        border-right: 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .stat-item:last-child {
        border-bottom: 0;
    }

    .section-heading-row,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    h1 {
        font-size: 34px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .terminal-card pre,
    .api-strip pre {
        padding: 14px;
    }

}
/* --- Pixel Stream extra page styles --- */
.page {
    padding: 58px 0 72px;
}

.page-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.page-heading.compact {
    max-width: 680px;
}

.page-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 15px;
}

.upload-layout,
.docs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.upload-box,
.side-panel,
.doc-block,
.price-card,
.auth-card,
.legal-box,
.toolbar {
    border: 1px solid var(--border);
    background: var(--panel);
}

.upload-drop {
    display: grid;
    place-items: center;
    min-height: 260px;
    margin: 18px;
    border: 1px dashed #3b4350;
    background: var(--panel-2);
    text-align: center;
}

.upload-drop span {
    font-family: var(--mono);
    font-size: 34px;
    color: var(--accent-weak);
}

.upload-drop p {
    color: var(--muted);
}

.upload-settings {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px;
    color: var(--muted);
}

.side-panel,
.doc-block,
.price-card,
.legal-box {
    padding: 18px;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-soft);
}

.meta-list dt {
    color: var(--muted);
}

.meta-list dd {
    margin: 0;
    font-family: var(--mono);
}

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
}

.toolbar input,
.toolbar select,
.auth-card input {
    min-height: 38px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    padding: 0 10px;
    font: inherit;
}

.toolbar input {
    flex: 1;
}

.table-button {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
}

.docs-nav {
    position: sticky;
    top: 74px;
    align-self: start;
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 10px;
}

.docs-nav a {
    padding: 8px 10px;
    color: var(--muted);
}

.docs-nav a:hover {
    color: var(--text);
    background: var(--panel-2);
}

.docs-content {
    min-width: 0;
}

.doc-block {
    margin-bottom: 14px;
}

.doc-block pre {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--border-soft);
    background: var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.price-card.featured {
    border-color: var(--accent);
}

.price {
    margin: 12px 0;
    font-size: 34px;
    font-weight: 800;
}

.price-card ul {
    padding-left: 18px;
    color: var(--muted);
}

.auth-page {
    display: grid;
    min-height: calc(100vh - 58px);
    place-items: center;
    padding: 24px;
}

.auth-card {
    display: grid;
    gap: 14px;
    width: min(420px, 100%);
    padding: 24px;
}

.auth-card label {
    display: grid;
    gap: 6px;
    color: var(--muted);
}

.auth-copy {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    color: var(--muted);
    font-size: 13px;
}

.checkbox-label input {
    width: auto;
    min-height: auto;
}

.alert-error {
    border: 1px solid #6d3030;
    background: #1b1010;
    color: #ffb4b4;
    padding: 12px;
    font-size: 13px;
}

.legal-page {
    padding: 72px 0;
    max-width: 760px;
}

.legal-page p:not(.eyebrow) {
    color: var(--muted);
    font-size: 16px;
}

.legal-box {
    margin-top: 18px;
}

.legal-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 21px;
}

.legal-box p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

@media (max-width: 880px) {
    .upload-layout,
    .docs-layout,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .docs-nav {
        position: static;
    }

    .toolbar {
        flex-direction: column;
    }
}