:root {
    --bg-dark: #000000;
    --brand-blue: #6dacc8;
    --brand-blue-soft: #a4cfd9;
    --brand-orange: #fb9126;
    --brand-warm: #e5deb3;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --panel-top: rgba(10, 16, 24, 0.04);
    --panel-bottom: rgba(6, 10, 16, 0.015);
    --panel-border: rgba(164, 207, 217, 0.22);
    --panel-border-strong: rgba(164, 207, 217, 0.32);
    --shadow: 0 20px 58px rgba(0, 0, 0, 0.32);
    --focus-ring: 0 0 0 3px rgba(109, 172, 200, 0.22);
    --page-width: min(1220px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
}

figure {
    margin: 0;
}

#app {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 18% 18%, rgba(251, 145, 38, 0.08), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(109, 172, 200, 0.1), transparent 30%),
        radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.03), transparent 36%);
}

.site-shell {
    position: relative;
    z-index: 1;
    width: var(--page-width);
    margin: 0 auto;
    padding: 20px 0 48px;
}

.site-header {
    position: sticky;
    top: 12px;
    z-index: 5;
    padding-bottom: 14px;
}

.glass-panel {
    background:
        linear-gradient(180deg, var(--panel-top), var(--panel-bottom)),
        radial-gradient(circle at top left, rgba(109, 172, 200, 0.045), transparent 48%),
        radial-gradient(circle at bottom right, rgba(251, 145, 38, 0.035), transparent 42%);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(2px) saturate(115%);
    -webkit-backdrop-filter: blur(2px) saturate(115%);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 22px;
}

.site-nav.glass-panel {
    background:
        linear-gradient(180deg, rgba(10, 16, 24, 0.42), rgba(6, 10, 16, 0.28)),
        radial-gradient(circle at top left, rgba(109, 172, 200, 0.08), transparent 48%),
        radial-gradient(circle at bottom right, rgba(251, 145, 38, 0.05), transparent 42%);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 58px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.brand-mobile-title {
    display: none;
}

.brand-kicker,
.eyebrow,
.section-kicker,
.value-kicker,
.contrast-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-blue-soft);
}

.brand-wordmark {
    font-size: 1.1rem;
    letter-spacing: 0.34em;
    font-weight: 700;
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 12px;
    color: var(--text-muted);
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-primary {
    background: rgba(109, 172, 200, 0.14);
    border-color: rgba(164, 207, 217, 0.34);
    color: #eef9ff;
}

.btn-secondary,
.btn-nav {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.site-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-grid,
.story-grid,
.platforms-grid,
.office-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 22px;
}

.hero-copy,
.story-copy,
.platform-copy,
.office-copy,
.contrast-panel,
.final-cta {
    padding: 30px;
    border-radius: 28px;
}

.hero-copy h1,
.story-copy h2,
.platform-copy h2,
.office-copy h2,
.contrast-panel h2,
.final-cta h2,
.section-heading h2,
.value-card h2 {
    margin: 0;
    line-height: 1;
    color: var(--text-main);
}

.hero-copy h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    max-width: 10ch;
    margin-top: 14px;
}

.hero-lead,
.hero-support,
.story-copy p,
.platform-copy p,
.office-copy p,
.workspace-card p,
.value-card p,
.contrast-list,
.final-cta p,
.site-footer p,
.placeholder-note {
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-lead {
    max-width: 58ch;
    font-size: 1.07rem;
    margin: 18px 0 10px;
}

.hero-support {
    max-width: 54ch;
    margin: 0 0 22px;
}

.hero-actions,
.platform-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.proof-strip,
.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.proof-pill,
.story-tag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(164, 207, 217, 0.18);
    background: rgba(109, 172, 200, 0.08);
    color: #edf6ff;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.image-panel {
    display: flex;
    align-items: stretch;
    padding: 14px;
    border-radius: 28px;
    overflow: hidden;
}

.placeholder-image {
    display: block;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    object-fit: cover;
    border-radius: 22px;
}

.value-strip,
.workspace-grid,
.contrast-grid {
    display: grid;
    gap: 18px;
}

.value-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-card,
.workspace-card {
    padding: 22px;
    border-radius: 24px;
}

.value-card h2 {
    font-size: 1.1rem;
    margin-top: 12px;
    margin-bottom: 10px;
}

.section-heading {
    padding: 0 4px;
}

.section-heading h2 {
    margin-top: 10px;
    font-size: clamp(2rem, 5vw, 3.1rem);
}

.workspace-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.workspace-card h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.office-points,
.contrast-list {
    margin: 16px 0 0;
    padding-left: 18px;
}

.office-points li,
.contrast-list li {
    margin-bottom: 10px;
}

.contrast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

.is-negative li::marker {
    color: var(--brand-orange);
}

.is-positive li::marker {
    color: var(--brand-blue-soft);
}

.final-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 26px 10px 4px;
    font-size: 0.92rem;
}

.landing-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.landing-auth-overlay.hidden {
    display: none;
}

.landing-auth-modal {
    position: relative;
    width: min(450px, calc(100vw - 48px));
    min-height: 530px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 9, 11, 0.96);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.landing-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.landing-auth-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    object-fit: contain;
}

.landing-auth-title-block {
    min-width: 0;
}

.landing-auth-kicker {
    margin: 0 0 5px;
    color: var(--brand-blue-soft);
    font: 700 0.68rem/1.2 "JetBrains Mono", monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.landing-auth-header h2 {
    margin: 0;
    color: var(--brand-blue-soft);
    font-size: 1.2rem;
}

.landing-auth-close {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(164, 207, 217, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-main);
    font: 400 1.35rem/1 "Inter", sans-serif;
    cursor: pointer;
}

.landing-auth-close:hover,
.landing-auth-close:focus-visible {
    border-color: rgba(164, 207, 217, 0.42);
    box-shadow: var(--focus-ring);
    outline: none;
}

.landing-auth-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-auth-status {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(109, 172, 200, 0.18);
    background: rgba(10, 16, 24, 0.68);
}

.landing-auth-status.hidden {
    display: none;
}

.landing-auth-status p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.landing-auth-spinner {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid rgba(164, 207, 217, 0.2);
    border-top-color: var(--brand-blue-soft);
    animation: landing-auth-spin 0.9s linear infinite;
}

@keyframes landing-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.landing-auth-frame {
    display: block;
    width: 100%;
    height: 390px;
    min-height: 390px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    overflow: hidden;
}

.landing-auth-frame.hidden {
    display: none;
}

.landing-auth-error {
    margin: 0;
    min-height: 20px;
    color: #fb7185;
    text-align: center;
    font-size: 0.9rem;
}

.landing-auth-error:empty {
    display: none;
}

@media (max-width: 1100px) {
    .value-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 860px) {
    .site-shell {
        width: min(100vw - 20px, 1220px);
        padding-top: 12px;
    }

    .nav-actions,
    .hero-actions,
    .platform-actions,
    .site-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-grid,
    .story-grid,
    .platforms-grid,
    .office-grid,
    .contrast-grid,
    .value-strip,
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: flex-start;
    }

    .hero-copy,
    .story-copy,
    .platform-copy,
    .office-copy,
    .contrast-panel,
    .final-cta {
        padding: 24px;
    }

    .site-header {
        top: 8px;
        padding-bottom: 8px;
    }

    .site-nav {
        padding: 10px 12px;
        border-radius: 18px;
    }

    .brand-lockup {
        gap: 10px;
        width: 100%;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .brand-copy {
        display: none;
    }

    .brand-mobile-title {
        display: inline-flex;
        align-items: baseline;
        gap: 10px;
        min-width: 0;
        font-family: "JetBrains Mono", monospace;
        font-weight: 700;
        line-height: 1.1;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-mobile-wordmark {
        flex: 0 0 auto;
        font-size: clamp(1rem, 4.8vw, 1.22rem);
        letter-spacing: 0.26em;
        color: var(--text-main);
    }

    .brand-mobile-kicker {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: clamp(0.69rem, 3vw, 0.86rem);
        letter-spacing: 0.12em;
        color: var(--brand-blue-soft);
    }

    .site-nav .nav-actions {
        display: none;
    }
}

@media (max-width: 540px) {
    .brand-wordmark {
        letter-spacing: 0.24em;
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 14vw, 3.6rem);
    }

    .proof-pill,
    .story-tag {
        width: 100%;
        justify-content: center;
    }

    .landing-auth-overlay {
        padding: 14px;
    }

    .landing-auth-modal {
        width: 100%;
        min-height: 548px;
        padding: 24px;
        border-radius: 16px;
    }

    .landing-auth-frame {
        height: 420px;
        min-height: 420px;
    }
}
