:root {
    --bg: #070b12;
    --panel: #101827;
    --panel-2: #151f32;
    --accent: #f6a23a;
    --accent-strong: #ffcf66;
    --secondary: #59d9ff;
    --purple: #b952ff;
    --text: #edf7ff;
    --muted: #8fa7b8;
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

.site-header {
    background: rgba(7, 11, 18, 0.92);
    border-bottom: 1px solid rgba(246, 162, 58, 0.24);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-shell {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--text);
    font-weight: 900;
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links button {
    color: var(--muted);
    background: transparent;
    border: 0;
    padding: 0;
}

.nav-user {
    color: var(--accent-strong);
    font-weight: 700;
}

.hero-band {
    padding: 96px 0 48px;
    background: linear-gradient(180deg, #101827 0%, #120b12 52%, var(--bg) 100%);
}

.hero-grid,
.store-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 44px;
    align-items: center;
}

.hero-shot,
.purchase-card img,
.screenshot-grid img {
    width: 100%;
    border: 1px solid rgba(246, 162, 58, 0.28);
}

h1 {
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
}

h2 {
    font-size: 2rem;
    font-weight: 850;
}

.lead {
    color: #c8d9e6;
    font-size: 1.25rem;
    max-width: 680px;
}

.eyebrow {
    color: var(--accent-strong);
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.btn {
    border-radius: 6px;
    font-weight: 800;
    padding: 11px 18px;
}

.btn-accent {
    background: var(--accent);
    color: #071019;
}

.btn-accent:hover {
    background: var(--accent-strong);
    color: #071019;
}

.btn-secondary-accent {
    background: var(--secondary);
    color: #071019;
}

.btn-secondary-accent:hover {
    background: var(--purple);
    color: #fff;
}

.content-band,
.page-band {
    padding: 72px 0;
}

.wide-copy {
    color: #c8d9e6;
    font-size: 1.1rem;
    max-width: 960px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding-bottom: 62px;
}

.metro-card,
.metro-panel,
.purchase-card {
    background: var(--panel);
    border: 1px solid rgba(246, 162, 58, 0.2);
    border-radius: 8px;
    padding: 22px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    padding-bottom: 74px;
}

.store-cta {
    background: var(--panel-2);
    border-top: 1px solid rgba(246, 162, 58, 0.2);
    border-bottom: 1px solid rgba(185, 82, 255, 0.18);
    padding: 42px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

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

.price-pill {
    color: var(--accent-strong);
    font-weight: 900;
    font-size: 1.35rem;
}

.page-band.narrow {
    max-width: 620px;
}

.purchase-card .price {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent-strong);
    margin: 18px 0;
}

.feature-list {
    color: #c8d9e6;
    line-height: 1.9;
}

.microcopy {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

label {
    display: block;
    margin: 14px 0;
    color: #c8d9e6;
}

.form-control {
    background: #0b1220;
    border: 1px solid rgba(246, 162, 58, 0.25);
    color: var(--text);
    border-radius: 6px;
}

.form-control:focus {
    background: #0b1220;
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(246, 162, 58, 0.14);
}

.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-wrap {
    border: 1px solid rgba(246, 162, 58, 0.18);
    border-radius: 8px;
    overflow: hidden;
}

.site-footer {
    padding: 28px 0;
    border-top: 1px solid rgba(246, 162, 58, 0.12);
}

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

@media (max-width: 900px) {

    .hero-grid,
    .store-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 3.2rem;
    }
}

/* Newsletter / News Hub */
.news-page {
    --news-cyan: #43cfff;
    --news-cyan-bright: #8be7ff;
    --news-panel: rgba(2, 11, 21, 0.92);
    --news-panel-soft: rgba(5, 18, 31, 0.82);
    --news-border: rgba(67, 207, 255, 0.34);
    position: relative;
    min-height: calc(100vh - 68px);
    color: #edf7ff;
    background:
        linear-gradient(180deg, rgba(0, 5, 11, 0.72), rgba(0, 7, 14, 0.94)),
        url("../assets/newsletter/background.png") center / cover fixed;
    isolation: isolate;
}

.news-page::before {
    content: "";
    position: fixed;
    inset: 68px 0 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 20%, rgba(22, 105, 150, 0.16), transparent 48%), linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 24% 76%, rgba(0, 0, 0, 0.36));
}

.news-hero {
    min-height: 330px;
    display: grid;
    place-items: center;
    padding: 72px 24px 54px;
    text-align: center;
    border-bottom: 1px solid var(--news-border);
}

.news-hero-content {
    max-width: 760px;
}

.news-envelope {
    display: inline-block;
    width: 54px;
    height: 38px;
    margin-bottom: 12px;
    border: 2px solid var(--news-cyan);
    border-radius: 4px;
    box-shadow: 0 0 22px rgba(67, 207, 255, 0.42);
    position: relative;
}

.news-envelope::before,
.news-envelope::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 2px;
    top: 14px;
    background: var(--news-cyan);
}

.news-envelope::before {
    left: -1px;
    transform: rotate(34deg);
}

.news-envelope::after {
    right: -1px;
    transform: rotate(-34deg);
}

.news-page h1,
.news-page h2,
.news-page h3 {
    color: #f5fbff;
}

.news-hero h1 {
    margin: 0;
    font-size: clamp(3.2rem, 3vw, 6.5rem);
    line-height: 0.9;
    letter-spacing: 0.035em;
    text-shadow: 0 0 28px rgba(67, 207, 255, 0.28);
}

.news-hero>div>p:not(.news-kicker):not(.news-intro) {
    margin: 18px 0 0;
    color: #b9daeb;
    font-size: 1.35rem;
}

.news-intro {
    max-width: 660px;
    margin: 12px auto 0;
    color: #8faabc;
}

.news-kicker {
    margin: 0 0 8px;
    color: var(--news-cyan);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.news-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 86px;
}

.news-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    margin: -1px 0 28px;
    overflow-x: auto;
    border: 1px solid var(--news-border);
    background: rgba(0, 7, 14, 0.88);
}

.news-tabs button {
    min-height: 54px;
    border: 0;
    border-right: 1px solid rgba(67, 207, 255, 0.14);
    color: #a9bfce;
    background: transparent;
    font-weight: 900;
    letter-spacing: 0.045em;
}

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

.news-tabs button:hover,
.news-tabs button:focus-visible,
.news-tabs button.is-active {
    color: #fff;
    outline: none;
    background: linear-gradient(180deg, rgba(23, 126, 178, 0.48), rgba(8, 53, 80, 0.48));
    box-shadow: inset 0 -2px var(--news-cyan), 0 0 22px rgba(67, 207, 255, 0.13);
}

.news-hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.news-feature,
.news-recent {
    min-width: 0;
    border: 1px solid var(--news-border);
    background: var(--news-panel);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35), inset 0 0 50px rgba(67, 207, 255, 0.025);
}

.news-feature-card[hidden],
.news-recent-row[hidden] {
    display: none !important;
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 0.88rem;
    margin: 22px 0 15px;
    color: #aeeaff;
    font-weight: 400;
    letter-spacing: .08em;
}

.news-pagination[hidden] {
    display: none;
}

.news-pagination button {
    border: 1px solid var(--news-border);
    border-radius: 4px;
    padding: 5px 15px;
    color: #eafaff;
    background: var(--news-panel);
    cursor: pointer;
}

.news-pagination button:disabled {
    opacity: .4;
    cursor: default;
}

.news-feature-image,
.news-article-hero {
    position: relative;
    display: block;
    aspect-ratio: 16 / 7.5;
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, #183e55, #050b12 68%);
}

.news-feature-image::after,
.news-article-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(1, 7, 14, 0.82));
}

.news-feature-image img,
.news-article-hero img,
.news-row-image img,
.news-content-image img,
.news-dev-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feature-image .news-badge {
    position: absolute;
    z-index: 1;
    top: 18px;
    left: 18px;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 10px;
    color: #e9faff;
    background: #087caf;
    border: 1px solid #4ad5ff;
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(67, 207, 255, 0.35);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.055em;
}

.news-feature-copy {
    padding: 26px 28px 30px;
}

.news-feature-copy time,
.news-row-copy time,
.news-byline {
    color: #91aabe;
}

.news-feature-copy h2 {
    margin: 7px 0 10px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 850;
}

.news-feature-copy h2 a {
    color: inherit;
}

.news-feature-copy p {
    color: #bfd0dc;
    font-size: 1.03rem;
}

.news-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    min-width: 180px;
    min-height: 48px;
    margin-top: 8px;
    padding: 10px 20px;
    color: #fff;
    border: 1px solid var(--news-cyan);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(18, 104, 148, 0.5), rgba(5, 39, 61, 0.65));
    font-weight: 900;
    letter-spacing: 0.04em;
}

.news-button:hover,
.news-button:focus-visible {
    color: #fff;
    background: #126f9b;
    box-shadow: 0 0 18px rgba(67, 207, 255, 0.3);
    outline: none;
}

.news-carousel-controls {
    min-height: 34px;
    display: flex;
    justify-content: center;
    gap: 9px;
    padding: 2px 0 18px;
}

.news-carousel-dot {
    width: 30px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #223847;
}

.news-carousel-dot[aria-current="true"] {
    background: var(--news-cyan);
    box-shadow: 0 0 10px var(--news-cyan);
}

.news-section-heading {
    min-height: 96px;
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--news-border);
}

.news-section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.045em;
}

.news-recent-row {
    min-height: 112px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 18px;
    padding: 12px;
    color: inherit;
    border-bottom: 1px solid rgba(67, 207, 255, 0.18);
    background: rgba(5, 18, 31, 0.42);
}

.news-recent-row:hover,
.news-recent-row:focus-visible {
    color: inherit;
    outline: none;
    border-color: var(--news-cyan);
    background: rgba(12, 46, 67, 0.72);
    box-shadow: inset 0 0 22px rgba(67, 207, 255, 0.07);
}

.news-row-image {
    width: 112px;
    height: 78px;
    overflow: hidden;
    background: #08131d;
    border: 1px solid rgba(67, 207, 255, 0.2);
}

.news-row-image img {
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
}

.news-row-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.news-row-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #edf7ff;
    font-size: 0.88rem;
}

.news-row-copy time {
    font-size: 0.88rem;
}

.news-chevron {
    color: #cfeeff;
    font-size: 2rem;
}

.news-empty {
    min-height: 170px;
    display: grid;
    place-content: center;
    gap: 7px;
    padding: 30px;
    text-align: center;
    color: #8faabc;
}

.news-empty[hidden] {
    display: none;
}

.news-empty strong {
    color: var(--news-cyan);
    letter-spacing: 0.08em;
}

.news-image-fallback.is-missing::before {
    content: "HC";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(139, 231, 255, 0.36);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.news-article-page {
    padding: 46px 20px 90px;
}

.news-article-shell {
    width: min(1220px, 100%);
    margin: 0 auto;
    border: 1px solid var(--news-border);
    background: rgba(1, 8, 16, 0.95);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.news-back {
    display: inline-block;
    margin: 24px 30px 0;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.news-article-header {
    padding: 24px 30px 28px;
}

.news-article-header h1 {
    max-width: 1040px;
    margin: 15px 0 18px;
    font-size: clamp(2.5rem, 2vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.news-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.news-article-hero {
    width: calc(100% - 60px);
    margin: 0 30px;
    aspect-ratio: 16 / 6.5;
    border: 1px solid var(--news-border);
}

.news-reading-column {
    width: min(100% - 60px, 1000px);
    margin: 0 auto;
    padding: 44px 0 70px;
    color: #c5d5df;
    font-size: 1.06rem;
    line-height: 1.75;
}

.news-article-summary {
    color: #eef7fc;
    font-size: clamp(1.0rem, 2.3vw, 1.75rem);
    font-weight: 450;
    line-height: 1.35;
}

.news-content-heading {
    margin: 52px 0 14px;
    font-size: 2rem;
}

.news-content-subheading {
    margin: 36px 0 12px;
    color: var(--news-cyan-bright) !important;
    font-size: 1.35rem;
}

.news-reading-column li {
    margin: 8px 0;
}

.news-reading-column hr {
    margin: 44px 0;
    border-color: var(--news-border);
    opacity: 1;
}

.news-reading-column blockquote {
    margin: 34px 0;
    padding: 24px 26px;
    border-left: 3px solid var(--news-cyan);
    background: rgba(67, 207, 255, 0.07);
}

.news-reading-column blockquote p {
    color: #e9f7ff;
    font-size: 1.2rem;
    font-style: italic;
}

.news-reading-column cite {
    color: #8faabc;
    font-style: normal;
}

.news-callout,
.news-dev-note,
.news-patch-section,
.news-challenge {
    margin: 32px 0;
    padding: 24px;
    border: 1px solid var(--news-border);
    background: var(--news-panel-soft);
}

.news-callout>strong,
.news-dev-note strong,
.news-challenge-grid strong {
    color: var(--news-cyan);
    letter-spacing: 0.055em;
}

.news-dev-note {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.news-dev-avatar {
    position: relative;
    width: 104px;
    height: 104px;
    overflow: hidden;
    border: 1px solid var(--news-border);
    background: #08131d;
}

.news-dev-note p {
    margin: 8px 0;
    font-style: italic;
}

.news-dev-note span {
    color: #94aebe;
}

.news-patch-section h3,
.news-challenge h3 {
    color: #f4fbff;
}

.news-patch-section li::marker {
    color: var(--news-cyan);
}

.news-challenge {
    box-shadow: inset 3px 0 var(--news-cyan);
}

.news-challenge-dates {
    color: var(--news-cyan-bright);
    font-weight: 750;
}

.news-challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 22px;
}

.news-challenge-grid ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.news-challenge-grid li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(67, 207, 255, 0.12);
}

.news-content-image {
    position: relative;
    margin: 34px 0;
    min-height: 220px;
    overflow: hidden;
    background: #08131d;
}

.news-content-image figcaption {
    padding: 8px 0;
    color: #8faabc;
    font-size: 0.85rem;
}

.news-not-found {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 68px);
    padding: 40px 20px;
}

.news-not-found-panel {
    width: min(680px, 100%);
    padding: 48px;
    text-align: center;
    border: 1px solid var(--news-border);
    background: var(--news-panel);
}

.news-not-found-panel h1 {
    font-size: clamp(2.2rem, 7vw, 4.8rem);
}

@media (max-width: 980px) {
    .news-hub-grid {
        grid-template-columns: 1fr;
    }

    .news-recent-row {
        grid-template-columns: 128px minmax(0, 1fr) 22px;
    }

    .news-row-image {
        width: 128px;
    }
}

@media (max-width: 640px) {
    .news-hero {
        min-height: 270px;
        padding-top: 52px;
    }

    .news-shell {
        width: min(100% - 20px, 1320px);
    }

    .news-tabs {
        grid-template-columns: repeat(5, 140px);
    }

    .news-feature-copy {
        padding: 20px;
    }

    .news-feature-image {
        aspect-ratio: 16 / 9;
    }

    .news-recent-row {
        min-height: 92px;
        grid-template-columns: 88px minmax(0, 1fr) 16px;
        gap: 12px;
        padding: 10px;
    }

    .news-row-image {
        width: 88px;
        height: 66px;
    }

    .news-article-page {
        padding: 20px 10px 60px;
    }

    .news-back {
        margin: 20px 18px 0;
    }

    .news-article-header {
        padding: 20px 18px 24px;
    }

    .news-article-hero {
        width: calc(100% - 36px);
        margin: 0 18px;
        aspect-ratio: 16 / 9;
    }

    .news-reading-column {
        width: calc(100% - 36px);
        padding: 30px 0 48px;
    }

    .news-dev-note {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 14px;
        padding: 17px;
    }

    .news-dev-avatar {
        width: 68px;
        height: 68px;
    }

    .news-challenge-grid {
        grid-template-columns: 1fr;
    }
}