:root {
    color-scheme: light;
    --bg: #f7f6f2;
    --bg-2: #efece2;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.82);
    --text: #152033;
    --muted: #5f6b7a;
    --line: #d8d3c2;
    --brand: #136f63;
    --brand-2: #f08a24;
    --brand-3: #1e88b8;
    --radius: 18px;
    --shadow-soft: 0 10px 30px rgba(17, 40, 60, 0.08);
    --shadow-deep: 0 24px 60px rgba(17, 40, 60, 0.12);
    --nav-bg: rgba(247, 246, 242, 0.82);
    --footer-bg: rgba(255, 255, 255, 0.64);
    --orb-a: #ffd59f;
    --orb-b: #a9e8d8;
    --pill-bg: rgba(19, 111, 99, 0.11);
    --pill-line: rgba(19, 111, 99, 0.26);
    --btn-ghost-bg: rgba(255, 255, 255, 0.7);
    --btn-ghost-text: var(--text);
    --req-row-bg: rgba(239, 236, 226, 0.65);
    --theme-btn-bg: rgba(255, 255, 255, 0.72);
    --theme-btn-active-bg: var(--text);
    --theme-btn-active-text: #ffffff;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d141c;
    --bg-2: #121d2a;
    --surface: #172332;
    --surface-soft: rgba(23, 35, 50, 0.84);
    --text: #edf3fa;
    --muted: #adc0d1;
    --line: #294056;
    --brand: #57c0b2;
    --brand-2: #ffb257;
    --brand-3: #63b7ff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.34);
    --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.45);
    --nav-bg: rgba(13, 20, 28, 0.84);
    --footer-bg: rgba(13, 20, 28, 0.76);
    --orb-a: #9e5c16;
    --orb-b: #195e57;
    --pill-bg: rgba(87, 192, 178, 0.14);
    --pill-line: rgba(87, 192, 178, 0.3);
    --btn-ghost-bg: rgba(23, 35, 50, 0.74);
    --btn-ghost-text: #edf3fa;
    --req-row-bg: rgba(10, 17, 24, 0.5);
    --theme-btn-bg: rgba(23, 35, 50, 0.9);
    --theme-btn-active-bg: var(--brand);
    --theme-btn-active-text: #091015;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    overflow-x: clip;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, var(--orb-a) 0%, transparent 35%),
        radial-gradient(circle at 90% 20%, var(--orb-b) 0%, transparent 40%),
        linear-gradient(170deg, var(--bg), var(--bg-2));
    line-height: 1.55;
    transition: background 0.25s ease, color 0.25s ease;
}

h1,
h2,
h3,
.brand span {
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    letter-spacing: -0.02em;
}

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

.bg-orb {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    filter: blur(30px);
    opacity: 0.65;
}

.orb-a {
    width: 220px;
    height: 220px;
    top: 8vh;
    left: -60px;
    background: var(--orb-a);
    animation: driftA 12s ease-in-out infinite;
}

.orb-b {
    width: 280px;
    height: 280px;
    right: -90px;
    top: 34vh;
    background: var(--orb-b);
    animation: driftB 14s ease-in-out infinite;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: saturate(150%) blur(8px);
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(21, 32, 51, 0.08);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.9rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.brand span {
    font-size: 1.15rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
}

.theme-switcher legend {
    float: left;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.theme-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-btn:hover {
    transform: translateY(-1px);
    color: var(--text);
}

.theme-btn[aria-pressed="true"] {
    background: var(--theme-btn-active-bg);
    color: var(--theme-btn-active-text);
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.94rem;
    transition: color 0.2s ease;
}

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

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 4.2rem 1.2rem;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: center;
    min-height: min(80vh, 860px);
    padding-top: 3rem;
}

.eyebrow {
    display: inline-block;
    background: var(--pill-bg);
    border: 1px solid var(--pill-line);
    color: var(--brand);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin-top: 1rem;
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.04;
}

.hero-line {
    display: block;
    white-space: nowrap;
}

.hero-text {
    margin-top: 1.2rem;
    color: var(--muted);
    max-width: 56ch;
}

.hero-ctas {
    margin-top: 1.6rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    border-radius: 12px;
    padding: 0.78rem 1.15rem;
    font-weight: 700;
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--brand), var(--brand-3));
    box-shadow: 0 10px 20px rgba(19, 111, 99, 0.28);
}

.btn-ghost {
    border: 1px solid var(--line);
    background: var(--btn-ghost-bg);
    color: var(--btn-ghost-text);
}

.hero-badges {
    margin-top: 1.2rem;
    list-style: none;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-badges i {
    color: var(--brand);
}

.hero-status-badges {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
}

.hero-status-badges a {
    display: inline-flex;
    align-items: center;
}

.hero-status-badges img {
    display: block;
    max-width: 100%;
    height: 20px;
}

.hero-media {
    position: relative;
}

.screen-frame {
    border: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.screen-frame img {
    width: 100%;
    border-radius: 0;
    display: block;
    box-shadow: var(--shadow-deep);
}

.section-head {
    margin-bottom: 1.4rem;
}

.section-head h2 {
    font-size: clamp(1.55rem, 2.6vw, 2.5rem);
    margin-top: 0.75rem;
}

.release-grid,
.feature-grid,
.import-grid {
    display: grid;
    gap: 0.9rem;
}

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

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

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

.release-card,
.feature-card,
.import-grid article,
.req-panel {
    background: var(--surface-soft);
    border: 1px solid rgba(21, 32, 51, 0.08);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.release-card i,
.feature-card i,
.import-grid i {
    font-size: 1.25rem;
    color: var(--brand-3);
}

.release-card h3,
.feature-card h3,
.import-grid h3 {
    margin-top: 0.65rem;
    font-size: 1.03rem;
}

.release-card p,
.feature-card p,
.import-grid p {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.import-grid a {
    margin-top: 0.7rem;
    display: inline-block;
    color: var(--brand);
    font-weight: 700;
    font-size: 0.9rem;
}

.section-requirements .req-panel {
    padding: 1.15rem;
}

.req-intro {
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.req-panel ul {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.req-panel li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.68rem;
    border-radius: 12px;
    background: var(--req-row-bg);
}

.req-panel li i {
    color: var(--brand);
    min-width: 18px;
}

.section-cta {
    text-align: center;
    padding-bottom: 5rem;
}

.section-cta p {
    color: var(--muted);
    margin-top: 0.5rem;
}

.section-cta .hero-ctas {
    justify-content: center;
}

.footer {
    border-top: 1px solid rgba(21, 32, 51, 0.1);
    background: var(--footer-bg);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes driftA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(22px); }
}

@keyframes driftB {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-28px); }
}

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

    .screen-frame {
        transform: none;
    }

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


@media (max-width: 680px) {
    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        gap: 0.75rem;
        padding-top: 0.3rem;
    }

    .theme-switcher {
        order: 10;
    }

    .section {
        padding-top: 3.2rem;
        padding-bottom: 3.2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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