:root {
    color-scheme: dark;

    /* Backgrounds */
    --bg: #070B14;
    --bg-soft: #0B1423;
    --surface: #0F1F38;
    --surface-2: #162A47;

    /* Borders */
    --border: rgba(24, 214, 210, .16);
    --border-hover: rgba(76, 244, 232, .35);

    /* Typography */
    --text: #F4F8FB;
    --muted: #9CB2C8;

    /* Brand */
    --accent: #18D6D2;
    --accent-soft: #4CF4E8;
    --blue: #1594D3;

    --max-width: 1540px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 82% 12%, rgba(24, 214, 210, .09), transparent 32rem),
        radial-gradient(circle at 12% 38%, rgba(21, 148, 211, .07), transparent 28rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-header,
.hero,
.section,
footer {
    width: min(calc(100% - clamp(32px, 5vw, 96px)), var(--max-width));
    margin-inline: auto;
}

.site-header {
    min-height: 88px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 12px;
    background: rgba(7, 11, 20, .88);
    border-bottom: 1px solid rgba(24, 214, 210, .10);
    backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
    font-weight: 760;
    letter-spacing: -0.03em;
}

.brand img,
.footer-brand img {
    display: block;
    object-fit: contain;
}

.brand img {
    display: block;
    width: auto;
    height: 58px;
    max-width: none;
    border-radius: 0;
    object-fit: contain;
}

.footer-brand img {
    border-radius: 8px;
}

.brand {
    width: auto;
    height: auto;
    overflow: visible;
    flex: 0 0 auto;
    font-size: 1.08rem;
}

nav,
.footer-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

nav a,
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

nav a:hover,
.footer-links a:hover {
    color: var(--accent-soft);
}

.hero {
    min-height: calc(100vh - 88px);
    padding: clamp(72px, 7vw, 116px) 0;
    display: grid;
    grid-template-columns: minmax(420px, .82fr) minmax(620px, 1.18fr);
    align-items: center;
    gap: clamp(56px, 5vw, 92px);
}

.hero-copy {
    min-width: 0;
    max-width: 640px;
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

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

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(3.25rem, 5vw, 5.9rem);
    line-height: .96;
    letter-spacing: -.06em;
    font-weight: 780;
}

h1 span {

    background: linear-gradient(
            90deg,
            #4CF4E8,
            #18D6D2,
            #1594D3
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    max-width: 580px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

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

.button {
    min-height: 48px;
    padding: 0 21px;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 750;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {

    background: linear-gradient(
            135deg,
            #4CF4E8,
            #18D6D2,
            #1594D3
    );

    color: #071018;

    border: none;

    box-shadow: 0 10px 35px rgba(24, 214, 210, .25);
}

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

.button-secondary {
    background: rgba(7, 24, 39, 0.68);
}

.button-secondary:hover {
    border-color: var(--border-hover);
}

.release-line {
    margin: 24px 0 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.86rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(33, 228, 220, 0.8);
}

.hero-visual {
    min-width: 0;
    width: 100%;
    max-width: 860px;
    justify-self: end;
}

.brand-image-card {
    width: 100%;
    margin: 0;
    padding: clamp(18px, 2vw, 32px);
    overflow: hidden;
    border: 1px solid rgba(24, 214, 210, .20);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 50%, rgba(24, 214, 210, .045), transparent 65%),
        var(--bg);
    box-shadow:
        0 28px 80px rgba(0, 2, 12, .38),
        0 0 48px rgba(24, 214, 210, .07);
}

.brand-image-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
}

.section {
    padding: clamp(76px, 9vw, 116px) 0;
    border-top: 1px solid var(--border);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 44px;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.18rem;
}

.section-description,
.feature-card p,
.project-card p,
.download-card p,
footer p {
    color: var(--muted);
}

footer p {
    color: var(--muted);
}

.feature-grid,
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
}

.feature-card,
.download-card,
.download-placeholder {
    min-width: 0;
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(11, 32, 49, 0.88), rgba(3, 13, 24, 0.92));
}

.feature-card {
    min-height: 218px;
}

.feature-card,
.project-card,
.download-card {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.feature-card:hover,
.project-card:hover,
.download-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow:
        0 18px 48px rgba(0, 2, 12, .3),
        0 0 28px rgba(24, 214, 210, .07);
}

.feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 38px;
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--accent);
    font: 700 0.78rem/1 monospace;
}

.project-grid {
    display: grid;
    gap: 24px;
}

.project-card {
    min-width: 0;
    padding: clamp(25px, 3vw, 42px);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    background: linear-gradient(135deg, rgba(11, 32, 49, 0.92), rgba(3, 13, 24, 0.96));
}

.project-card-console {
    border-color: rgba(33, 228, 220, 0.32);
    box-shadow: 0 20px 60px rgba(0, 2, 12, 0.22);
}

.project-card-copy {
    min-width: 0;
}

.project-label {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font: 700 0.72rem/1 monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-number {
    width: 31px;
    height: 31px;
    border: 1px solid var(--border-hover);
    border-radius: 8px;
    display: grid;
    place-items: center;
    letter-spacing: 0;
}

.project-card h3 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    letter-spacing: -0.045em;
}

.project-card p {
    max-width: 540px;
    margin-bottom: 26px;
}

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

.project-link {
    color: var(--accent-soft);
    text-decoration: none;
    font-weight: 760;
}

.project-link::after {
    content: " →";
}

.project-link-secondary {
    color: var(--muted);
}

.project-link:hover {
    color: var(--text);
}

.project-code,
.console-preview {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    background: #020b14;
    box-shadow: 0 22px 48px rgba(0, 2, 12, 0.38);
}

.project-code {
    padding: 25px 27px;
    overflow-x: auto;
    color: var(--text);
    white-space: nowrap;
}

.project-code code {
    font-size: clamp(0.75rem, 1.25vw, 0.9rem);
}

.terminal-prompt {
    margin-right: 10px;
    color: var(--accent);
}

.console-preview {
    margin: 0;
    overflow: hidden;
    line-height: 0;
    background: #000;
}

.console-preview img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.release-group + .release-group {
    margin-top: clamp(42px, 7vw, 72px);
}

.release-group {
    scroll-margin-top: 110px;
}

.release-group-heading {
    margin-bottom: 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.release-group-heading h3 {
    margin-top: 4px;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.release-group-heading > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: right;
}

.release-project-label {
    margin: 0;
    color: var(--accent);
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.download-card {
    min-height: 205px;
    display: flex;
    flex-direction: column;
}

.download-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.download-card h3 {
    overflow-wrap: anywhere;
}

.asset-size {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.8rem;
}

.asset-kind {
    margin-bottom: 22px;
    font-family: monospace;
    font-size: 0.8rem;
}

.download-link {
    margin-top: auto;
    color: var(--accent-soft);
    text-decoration: none;
    font-weight: 760;
}

.download-link::after {
    content: " ↓";
}

.download-placeholder {
    grid-column: 1 / -1;
    min-height: 130px;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.release-error {
    padding: 18px 20px;
    border: 1px solid rgba(255, 184, 102, 0.3);
    border-radius: 12px;
    color: #ffd2a0;
    background: rgba(120, 67, 14, 0.12);
}

@media (max-width: 620px) {
    .release-group-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .release-group-heading > p {
        text-align: left;
    }
}

.quick-start {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
    gap: clamp(34px, 6vw, 70px);
}

.code-block {
    min-width: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #020b14;
}

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

.code-block pre {
    padding: 30px;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88rem;
    line-height: 1.8;
}

.copy-button {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
}

.copy-button:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

footer {
    min-height: 140px;
    padding: 38px 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(32px, 5vw, 72px);
}

footer p {
    margin: 0;
    font-size: 0.88rem;
}

.footer-brand {
    flex: 0 0 auto;
    align-items: flex-start;
}

.footer-brand span {
    display: block;
    font-weight: 700;
}

.footer-brand p {
    margin-top: 0.25rem;
}

.footer-projects {
    display: flex;
    justify-content: flex-end;
    gap: clamp(32px, 5vw, 64px);
}

.footer-project {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-project strong {
    color: var(--text);
    font-size: 0.95rem;
}

.footer-links {
    gap: 18px;
}

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

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: minmax(360px, .86fr) minmax(520px, 1.14fr);
        gap: 44px;
    }

    .hero-visual {
        width: 100%;
        max-width: none;
    }

    h1 {
        font-size: clamp(3.2rem, 6vw, 5.2rem);
    }

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

@media (max-width: 980px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .hero-visual {
        width: min(100%, 760px);
        justify-self: center;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 68px;
    }

    nav {
        gap: 15px;
    }

    .hero {
        padding: 54px 0 76px;
        gap: 40px;
    }

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

    .hero-visual {
        width: min(88vw, 500px);
        max-width: 100%;
        justify-self: center;
    }

    .quick-start {
        grid-template-columns: 1fr;
    }

    footer {

        background: linear-gradient(
                180deg,
                transparent,
                rgba(15, 31, 56, .55)
        );

        border-top: 1px solid rgba(24, 214, 210, .12);
    }

    .footer-projects {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 540px) {
    .site-header,
    .hero,
    .section,
    footer {
        width: min(calc(100% - 24px), var(--max-width));
    }

    nav a:not(:last-child) {
        display: none;
    }

    h1 {
        font-size: clamp(2.75rem, 15vw, 4rem);
    }

    .lead {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        width: 100%;
    }

    .brand-image-card {
        border-radius: 17px;
    }

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

    .feature-card,
    .download-card {
        min-height: auto;
    }

    .project-card {
        padding: 22px;
        border-radius: 16px;
    }

    .footer-projects {
        flex-direction: column;
        gap: 24px;
    }

    .code-block pre {
        padding: 54px 20px 22px;
    }

    code {
        font-size: 0.8rem;
    }
}

::selection {
    color: #001416;
    background: var(--accent);
}


@media (max-width: 380px) {
    .hero-visual {
        width: 100%;
    }

    .brand-image-card {
        border-radius: 14px;
    }
}

@media (max-width: 540px) {
    .site-header {
        gap: 12px;
    }

    .brand {
        min-width: 0;
        max-width: calc(100% - 74px);
    }

    .brand img {
        width: auto;
        height: 42px;
        max-width: 100%;
        transform: none;
    }

    .brand-image-card img {
        aspect-ratio: 16 / 9;
    }
}
