:root {
    --bg: #050505;
    --panel: #0f0f0f;
    --panel-2: #151515;
    --line: #242424;
    --text: #f7f2ea;
    --muted: #b5aaa0;
    --dim: #807061;
    --accent: #c83a18;
    --accent-hot: #e45b21;
    --accent-2: #f4b275;
    --danger: #ff6b6b;
}

@font-face {
    font-family: QubeText;
    src: url("../fonts/Lato-Regular.ttf");
}

@font-face {
    font-family: QubeDisplay;
    src: url("../fonts/LiberationSans.ttf");
}

@font-face {
    font-family: QubeNav;
    src: url("../fonts/Abel-Regular.ttf");
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: QubeText, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.home-page {
    color: #2b2d31;
    background: #d6d3cf;
}

.light-page {
    color: #25262a;
    background: #f2f0ec;
}

a {
    color: inherit;
}

.shell {
    position: relative;
    z-index: 20;
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.home-page .shell {
    width: min(1680px, calc(100% - 48px));
}

.topbar,
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-family: QubeNav, QubeText, sans-serif;
}

.home-page .topbar {
    min-height: 96px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.home-page .topbar,
.home-page .footer,
.light-page .topbar,
.light-page .footer {
    color: #2b2d31;
}

.brand,
.nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.home-page .brand,
.light-page .brand {
    color: #2b2d31;
}

.brand em {
    color: var(--dim);
    font-style: normal;
    font-weight: 700;
}

.home-page .brand em,
.light-page .brand em {
    color: #6a625c;
}

.brand-mark {
    width: 118px;
    height: auto;
    object-fit: contain;
}

.typhon-mark {
    transform: translateY(-1px);
}

.nav a {
    text-decoration: none;
    padding: 8px 10px;
    border: 1px solid transparent;
}

.nav a:hover {
    border-color: var(--line);
    color: var(--text);
}

.home-page .nav a:hover,
.light-page .nav a:hover {
    color: #111;
}

.home-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.home-bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: grayscale(1) brightness(1.16) contrast(0.9);
    pointer-events: none;
    user-select: none;
}

.home-page::after {
    position: fixed;
    inset: 0;
    z-index: 1;
    content: "";
    background: #d8d5d0;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.home-page .shell {
    z-index: 20;
}

.home-hero {
    min-height: min(760px, calc(100vh - 150px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 56px;
    align-items: center;
    padding: 58px 0 42px;
}

.create-hero {
    grid-template-columns: minmax(0, 0.95fr) 500px;
    align-items: start;
}

.create-hero .login-panel {
    margin-top: 28px;
}

.home-statement {
    max-width: 920px;
}

.home-statement h1 {
    margin: 0;
    color: #2c2d31;
    font-family: QubeDisplay, Arial, sans-serif;
    font-size: clamp(64px, 7vw, 124px);
    line-height: 1.02;
    font-weight: 900;
    text-transform: uppercase;
}

.home-statement h1 span {
    color: var(--accent);
}

.home-statement p {
    margin: clamp(80px, 14vh, 150px) 0 0;
    color: #35363a;
    font-size: clamp(18px, 1.35vw, 25px);
    font-style: italic;
}

.hero,
.product {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: stretch;
    padding: 56px 0 36px;
}

.hero-copy,
.product-copy,
.panel {
    background: var(--panel);
    border: 0;
    box-shadow: none;
}

.home-page .panel {
    color: #f7f2ea;
    background: #4c4c4c;
}

.light-page .product-copy,
.light-page .panel {
    color: #25262a;
    background: #ffffff;
}

.light-page .panel-title,
.light-page .grid-stats,
.light-page .footer {
    border-color: #ded8d1;
}

.hero-copy,
.product-copy {
    padding: clamp(28px, 5vw, 58px);
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eyebrow,
.meta-label {
    color: var(--accent);
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 12px;
    text-transform: uppercase;
}

.image-title {
    max-width: 760px;
    margin: 22px 0 28px;
    line-height: 0;
}

.title-mark {
    display: block;
    width: min(100%, 680px);
    height: auto;
    object-fit: contain;
}

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

h1 {
    max-width: 820px;
    margin-bottom: 22px;
    font-size: clamp(58px, 10vw, 132px);
    line-height: 0.86;
    font-weight: 900;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 6vw, 84px);
    line-height: 0.92;
    text-transform: uppercase;
}

h3 {
    margin-bottom: 8px;
    font-size: 16px;
    text-transform: uppercase;
}

.lede {
    max-width: 700px;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    margin-top: 42px;
}

.stat {
    padding: 18px 18px 0 0;
}

.stat strong {
    display: block;
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 24px;
}

.stat span {
    color: var(--dim);
    font-size: 12px;
    text-transform: uppercase;
}

.panel {
    padding: 26px;
}

.login-panel,
.reset-panel {
    align-self: start;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.panel-title span {
    color: var(--dim);
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 12px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--text);
    background: #080808;
    border: 1px solid var(--line);
    border-radius: 0;
    font: inherit;
}

input:focus {
    outline: 1px solid var(--accent);
    border-color: var(--accent);
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.button.secondary {
    color: var(--text);
    background: #242424;
    border-color: var(--line);
}

.light-page .button.secondary {
    color: #25262a;
    background: #fff;
    border-color: #d8d2ca;
}

.button.disabled {
    color: var(--dim);
    background: #121212;
    border-color: var(--line);
    pointer-events: none;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

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

.notice,
.error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: #0b0b0b;
    color: var(--muted);
}

.home-page .notice {
    color: #f7f2ea;
    background: #303030;
    border-color: #303030;
}

.error {
    border-color: rgba(255, 107, 107, 0.45);
    color: var(--danger);
}

.notice strong {
    color: var(--text);
}

.product {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
}

.status-card,
.download-card {
    padding: 22px;
    background: var(--panel-2);
    border: 0;
}

.status-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.download-grid {
    display: grid;
    gap: 16px;
}

.product-list {
    display: grid;
    gap: 18px;
}

.product-row {
    display: grid;
    gap: 16px;
    padding: 22px;
    background: #f4f1ed;
}

.product-row-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: start;
}

.product-price {
    display: grid;
    gap: 6px;
    min-width: 90px;
    text-align: right;
}

.product-price span {
    color: var(--dim);
    font-family: QubeNav, QubeText, sans-serif;
    text-transform: uppercase;
}

.product-price strong {
    color: var(--accent);
    font-size: 22px;
}

.download-card.compact {
    background: #ffffff;
}

.locked-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #5f5a55;
}

.download-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}

.release-actions {
    display: grid;
    gap: 8px;
    justify-items: stretch;
}

.small-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

.download-card p,
.status-card p,
.panel p {
    color: var(--muted);
    line-height: 1.55;
}

.light-page .download-card p,
.light-page .status-card p,
.light-page .panel p,
.light-page .lede {
    color: #5f5a55;
}

.mono {
    font-family: "Consolas", "SFMono-Regular", monospace;
}

.free-band {
    margin-top: 22px;
    padding: 18px;
    border: 0;
    color: var(--accent-2);
    background: #20170d;
}

.light-page .status-card,
.light-page .download-card {
    background: #f4f1ed;
}

.light-page .free-band {
    color: #6d2a16;
    background: #f7dfcf;
}

.footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
    .topbar,
    .footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .product,
    .home-hero {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

    .home-hero {
        gap: 28px;
        align-items: start;
    }

    .home-statement p {
        margin-top: 42px;
    }

    .hero-copy,
    .product-copy {
        min-height: auto;
    }

    .grid-stats,
    .status-card,
    .download-card,
    .product-row-head {
        grid-template-columns: 1fr;
    }

    .product-price {
        text-align: left;
    }

    .locked-product {
        align-items: flex-start;
        flex-direction: column;
    }
}
