:root {
    --bg: #0c1220;
    --bg-soft: #121a2c;
    --panel: rgba(17, 25, 44, 0.84);
    --panel-strong: #18233b;
    --line: rgba(255, 255, 255, 0.08);
    --text: #edf2f7;
    --muted: #97a4ba;
    --accent: #a855f7;
    --accent-deep: #7e22ce;
    --signal: #d8b4fe;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --radius: 22px;
    --radius-sm: 14px;
    --transition: 220ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.18), transparent 32%),
        radial-gradient(circle at 80% 20%, rgba(216, 180, 254, 0.16), transparent 28%),
        linear-gradient(180deg, #09111d 0%, #0c1220 38%, #101828 100%);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

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

button {
    font: inherit;
}

.page-lines {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
}

.page-glow {
    position: fixed;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.34;
    z-index: -1;
    pointer-events: none;
}

.page-glow--left {
    top: -8rem;
    left: -10rem;
    background: rgba(168, 85, 247, 0.26);
}

.page-glow--right {
    top: 18rem;
    right: -10rem;
    background: rgba(216, 180, 254, 0.2);
}

.hero-shell,
.support-section,
.site-footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    margin-top: 20px;
    position: sticky;
    top: 16px;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background: rgba(8, 14, 24, 0.88);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
}

.nav-side {
    display: flex;
    align-items: center;
    gap: 14px;
}

.navbar.is-scrolled {
    background: rgba(7, 12, 22, 0.94);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: none;
}

.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text,
.nav-links a,
.panel-label,
.metric-label,
.eyebrow,
.card-index,
.card-status,
.footer-inner a,
.footer-inner p {
    font-family: 'IBM Plex Mono', monospace;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(12, 18, 32, 0.85);
    color: var(--text);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.lang-button {
    min-width: 42px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

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

.lang-button.is-active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(216, 180, 254, 0.95));
    color: #101828;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition);
}

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

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: end;
    padding: 92px 0 78px;
}

.hero-copy,
.hero-panel,
.support-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-copy {
    padding: 36px;
    border-radius: 32px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--signal);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-copy h1,
.section-heading h2 {
    margin: 0;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(3.4rem, 7vw, 6.3rem);
}

.hero-lead,
.section-heading p,
.panel-copy {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.hero-lead {
    max-width: 34rem;
    margin: 22px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #d8b4fe 100%);
    color: #1b1f2a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line);
    color: var(--text);
}

.hero-panel {
    border-radius: 28px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    flex-direction: column;
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--signal));
}

.panel-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    position: relative;
    z-index: 2;
}

.panel-stage {
    position: relative;
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.panel-slides {
    position: absolute;
    inset: 0;
}

.panel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.8s ease, transform 4.8s ease;
}

.panel-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.panel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.panel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 17, 29, 0.18) 0%, rgba(9, 17, 29, 0.58) 58%, rgba(9, 17, 29, 0.95) 100%),
        linear-gradient(90deg, rgba(12, 18, 32, 0.88) 0%, rgba(12, 18, 32, 0.22) 100%);
}

.panel-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px;
    z-index: 1;
}

.stage-kicker {
    margin: 0 0 10px;
    color: var(--signal);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: 'IBM Plex Mono', monospace;
}

.stage-title {
    margin: 0;
    max-width: 10ch;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.stage-meta {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.panel-marquee {
    position: relative;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.panel-marquee__track {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    padding: 12px 18px;
    animation: marqueeScroll 28s linear infinite;
}

.panel-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.panel-marquee__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--signal));
    flex: none;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.support-section {
    padding: 30px 0 100px;
}

.section-heading {
    max-width: 620px;
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-heading p {
    margin: 16px 0 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.support-card {
    border-radius: 24px;
    overflow: hidden;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.55s ease, opacity 0.55s ease, border-color var(--transition), box-shadow var(--transition);
}

.support-card.has-features {
    cursor: pointer;
}

.support-card.has-features:active {
    transform: translateY(0) scale(0.985);
}

.support-card.has-features:focus-visible {
    outline: 2px solid rgba(216, 180, 254, 0.9);
    outline-offset: 4px;
}

.support-card.visible,
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.support-card:hover {
    border-color: rgba(168, 85, 247, 0.42);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.card-media {
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: #101828;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.support-card:hover .card-media img {
    transform: scale(1.06);
}

.card-media::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 42%;
    background: linear-gradient(180deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.42) 62%, transparent 100%);
    z-index: 1;
}

.card-media::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 32, 0.96) 100%);
}

.card-topline {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.card-index,
.card-status {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(7, 11, 20, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
    font-weight: 600;
}

.card-status {
    color: var(--text);
}

.card-status.is-supported {
    background: rgba(7, 11, 20, 0.86);
    border-color: rgba(255, 255, 255, 0.22);
}

.card-status.is-developing {
    background: rgba(74, 29, 109, 0.8);
    border-color: rgba(216, 180, 254, 0.46);
}

.card-status.is-discontinued {
    background: rgba(115, 115, 115, 0.28);
    border-color: rgba(255, 255, 255, 0.22);
    color: #f1f5f9;
}

.card-copy {
    padding: 18px 18px 20px;
}

.card-copy h3 {
    margin: 0;
    font-size: 1.28rem;
    letter-spacing: -0.04em;
}

.card-copy p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 0;
    color: var(--signal);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-action::after {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(216, 180, 254, 0.3);
    background:
        linear-gradient(var(--text), var(--text)) center / 8px 1.5px no-repeat,
        linear-gradient(var(--text), var(--text)) center / 1.5px 8px no-repeat;
    flex: none;
}

.feature-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
}

.feature-modal[hidden] {
    display: none;
}

.feature-modal:not([hidden]) .feature-modal__backdrop {
    animation: featureBackdropIn 180ms ease-out;
}

.feature-modal:not([hidden]) .feature-modal__dialog {
    animation: featureDialogIn 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, 0.78);
    backdrop-filter: blur(12px);
}

.feature-modal__dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: min(86vh, 820px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(14, 14, 18, 0.97);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
}

.feature-modal__dialog::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--signal));
}

.feature-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 28px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-modal__eyebrow {
    margin: 0 0 10px;
    color: rgba(216, 180, 254, 0.9);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-modal__header-main {
    min-width: 0;
}

.feature-modal__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-modal__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.feature-modal__status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(216, 180, 254, 0.22);
    background: rgba(216, 180, 254, 0.08);
    color: var(--signal);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-modal__status.is-supported {
    border-color: rgba(216, 180, 254, 0.28);
    background: rgba(216, 180, 254, 0.08);
    color: var(--signal);
}

.feature-modal__status.is-developing {
    border-color: rgba(168, 85, 247, 0.34);
    background: rgba(168, 85, 247, 0.12);
    color: #d8b4fe;
}

.feature-modal__status.is-discontinued {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
}

.feature-modal__count {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.feature-modal__close {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.feature-modal__close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    transform: translateY(-1px);
}

.feature-modal__toolbar {
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-modal__search {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(216, 180, 254, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    outline: none;
}

.feature-modal__search::placeholder {
    color: var(--muted);
}

.feature-modal__search:focus {
    border-color: rgba(216, 180, 254, 0.46);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.feature-modal__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 24px 28px 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(216, 180, 254, 0.58) rgba(255, 255, 255, 0.04);
}

.feature-modal__body::-webkit-scrollbar {
    width: 12px;
}

.feature-modal__body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.feature-modal__body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.95), rgba(216, 180, 254, 0.82));
    border: 2px solid rgba(10, 16, 28, 0.92);
    border-radius: 999px;
}

.feature-modal__body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(192, 132, 252, 0.98), rgba(233, 213, 255, 0.88));
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 42px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list__item {
    position: relative;
    min-height: 30px;
    padding-left: 20px;
    color: var(--text);
    line-height: 1.55;
}

.feature-list__item::before {
    content: '';
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.feature-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

@keyframes featureBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes featureDialogIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.975);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.site-footer {
    padding: 0 0 28px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
}

.footer-inner p,
.footer-inner a {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .navbar {
        align-items: center;
        padding: 14px 16px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 22px;
        padding: 18px;
        background: rgba(10, 16, 28, 0.96);
    }

    .nav-side {
        margin-left: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .hero-shell,
    .support-section,
    .site-footer {
        width: min(1180px, calc(100% - 24px));
    }

    .hero {
        padding: 76px 0 56px;
    }

    .hero-copy,
    .hero-panel {
        padding: 24px;
        border-radius: 24px;
    }

    .hero-panel {
        min-height: 470px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .panel-stage {
        min-height: 320px;
    }

    .stage-title {
        max-width: none;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-modal {
        padding: 12px;
    }

    .feature-modal__dialog {
        border-radius: 24px;
    }

    .feature-modal__header,
    .feature-modal__toolbar,
    .feature-modal__body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .feature-modal__close {
        width: 36px;
        height: 36px;
    }

    .feature-modal__header {
        align-items: flex-start;
    }

    .feature-modal__title-row {
        align-items: flex-start;
    }

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