:root {
    color-scheme: light;
    --ink: #141414;
    --paper: #f7f4ec;
    --muted: #67645c;
    --line: #d8d0bf;
    --charcoal: #161713;
    --charcoal-2: #24251f;
    --green: #1f7a62;
    --green-soft: #dcefe8;
    --coral: #d86045;
    --amber: #c29a3d;
    --white: #fffdf8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
    letter-spacing: 0;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 12px clamp(18px, 5vw, 56px);
    color: var(--white);
    background: rgba(20, 20, 20, 0.78);
    border-bottom: 1px solid rgba(255, 253, 248, 0.14);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    font-weight: 760;
    line-height: 1;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 253, 248, 0.16);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.4vw, 28px);
    font-size: 14px;
    color: rgba(255, 253, 248, 0.78);
}

.site-nav a {
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--white);
}

.hero {
    position: relative;
    min-height: 84svh;
    display: grid;
    align-items: center;
    padding: 112px clamp(20px, 6vw, 72px) 56px;
    color: var(--white);
    overflow: hidden;
    background: var(--charcoal);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(16, 17, 14, 0.38);
}

.hero-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 253, 248, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 253, 248, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.ide-window {
    position: absolute;
    right: clamp(-160px, -8vw, -60px);
    top: clamp(96px, 18vh, 160px);
    width: min(900px, 72vw);
    min-width: 620px;
    border: 1px solid rgba(255, 253, 248, 0.12);
    background: #202119;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(-2deg);
}

.ide-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 253, 248, 0.1);
    color: rgba(255, 253, 248, 0.72);
    font-size: 12px;
}

.ide-titlebar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--coral);
}

.ide-titlebar span:nth-child(2) {
    background: var(--amber);
}

.ide-titlebar span:nth-child(3) {
    background: var(--green);
}

.ide-titlebar strong {
    margin-left: 8px;
    font-weight: 620;
}

.ide-body {
    display: grid;
    grid-template-columns: 180px minmax(260px, 1fr) 238px;
    min-height: 450px;
}

.ide-sidebar,
.ide-editor,
.ide-ai {
    padding: 18px;
}

.ide-sidebar {
    border-right: 1px solid rgba(255, 253, 248, 0.09);
    color: rgba(255, 253, 248, 0.56);
    background: rgba(255, 253, 248, 0.025);
}

.ide-label {
    margin-bottom: 18px;
    color: var(--amber);
    font-size: 12px;
    text-transform: uppercase;
}

.ide-sidebar p {
    margin: 10px 0;
    font-size: 13px;
}

.ide-sidebar .selected {
    color: var(--white);
    background: rgba(31, 122, 98, 0.22);
    border-left: 3px solid var(--green);
    padding: 6px 8px;
}

.ide-editor {
    background: #171812;
}

.tab-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tab-row span {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(255, 253, 248, 0.1);
    color: rgba(255, 253, 248, 0.72);
    font-size: 12px;
}

.code-line {
    height: 12px;
    margin: 14px 0;
    background: rgba(255, 253, 248, 0.16);
}

.code-line.strong {
    width: 74%;
    background: rgba(255, 253, 248, 0.36);
}

.code-line.medium {
    width: 62%;
}

.code-line.short {
    width: 38%;
}

.code-line.long {
    width: 86%;
}

.code-line.accent {
    background: rgba(216, 96, 69, 0.82);
}

.diff-row {
    width: fit-content;
    margin-top: 26px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 253, 248, 0.12);
    color: rgba(255, 253, 248, 0.8);
    font-size: 12px;
}

.diff-row.warn {
    margin-top: 10px;
    color: #f0d39b;
}

.diff-row.add {
    color: #bce8d9;
}

.ide-ai {
    border-left: 1px solid rgba(255, 253, 248, 0.09);
    background: rgba(31, 122, 98, 0.12);
}

.ai-mode {
    width: fit-content;
    margin-bottom: 18px;
    padding: 6px 10px;
    color: #c7f1e2;
    border: 1px solid rgba(188, 232, 217, 0.28);
    font-size: 12px;
    font-weight: 700;
}

.ide-ai p {
    margin: 0 0 14px;
    color: rgba(255, 253, 248, 0.7);
    font-size: 13px;
    line-height: 1.55;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-icon {
    display: block;
    width: 72px;
    height: 72px;
    margin-bottom: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 253, 248, 0.18);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 760;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(56px, 9vw, 116px);
    line-height: 0.92;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 680px;
    margin: 26px 0 0;
    color: rgba(255, 253, 248, 0.86);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.62;
}

.hero-actions,
.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 720;
    line-height: 1;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.button.primary {
    color: var(--white);
    background: var(--green);
}

.button.primary:hover {
    background: #249071;
}

.button.secondary {
    color: var(--white);
    border-color: rgba(255, 253, 248, 0.28);
    background: rgba(255, 253, 248, 0.08);
}

.button.secondary:hover {
    border-color: rgba(255, 253, 248, 0.52);
    background: rgba(255, 253, 248, 0.14);
}

.availability {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 760px;
    margin-top: 24px;
}

.availability span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: rgba(255, 253, 248, 0.8);
    border: 1px solid rgba(255, 253, 248, 0.18);
    background: rgba(255, 253, 248, 0.06);
    font-size: 13px;
}

.section,
.intro-band,
.download-section {
    padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 72px);
}

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.intro-band {
    color: var(--ink);
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.intro-grid,
.download-inner,
.workflow-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.82fr) minmax(320px, 1.18fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: start;
}

.intro-grid h2,
.section-heading h2,
.download-inner h2 {
    margin: 0;
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.06;
    letter-spacing: 0;
}

.intro-grid p,
.section-heading p,
.download-inner p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.84;
}

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

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

.feature-card {
    min-height: 248px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.feature-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    margin-bottom: 26px;
    color: var(--green);
    border: 1px solid var(--green-soft);
    background: var(--green-soft);
    font-size: 12px;
    font-weight: 800;
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.25;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.76;
}

.workflow-section {
    color: var(--white);
    background: var(--charcoal);
}

.workflow-section .section-heading p {
    color: rgba(255, 253, 248, 0.7);
}

.workflow-list {
    counter-reset: step;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.workflow-list li {
    counter-increment: step;
    position: relative;
    min-height: 96px;
    padding: 20px 20px 20px 72px;
    border: 1px solid rgba(255, 253, 248, 0.13);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.045);
}

.workflow-list li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #c7f1e2;
    border: 1px solid rgba(199, 241, 226, 0.28);
    font-size: 12px;
    font-weight: 800;
}

.workflow-list strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.workflow-list span {
    display: block;
    color: rgba(255, 253, 248, 0.72);
    line-height: 1.65;
}

.download-section {
    background: #e8e1d1;
}

.download-inner {
    align-items: center;
}

.download-lede {
    max-width: 720px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.84;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 250px;
    padding: 24px;
    border: 1px solid rgba(20, 20, 20, 0.16);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.62);
}

.download-card h2,
.download-card h3 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.2;
}

.download-card p {
    flex: 1;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.download-card small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.platform-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 22px;
    padding: 0 10px;
    color: var(--green);
    border: 1px solid rgba(31, 122, 98, 0.2);
    background: var(--green-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.support-card .text-link {
    margin-top: 12px;
}

.text-link {
    color: var(--green);
    font-weight: 720;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.download-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.compact-actions {
    justify-content: flex-start;
    margin-top: 18px;
}

.download-section .button.secondary {
    color: var(--ink);
    border-color: rgba(20, 20, 20, 0.22);
    background: rgba(255, 253, 248, 0.36);
}

.download-section .button.secondary:hover {
    border-color: rgba(20, 20, 20, 0.38);
    background: rgba(255, 253, 248, 0.62);
}

.download-hero {
    padding: 128px clamp(20px, 6vw, 72px) 72px;
    color: var(--white);
    background:
        linear-gradient(rgba(22, 23, 19, 0.82), rgba(22, 23, 19, 0.92)),
        linear-gradient(90deg, rgba(31, 122, 98, 0.28), rgba(216, 96, 69, 0.18));
}

.download-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.96;
}

.download-grid-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
}

.download-hero .download-card {
    color: var(--ink);
    background: var(--white);
}

.download-hero .download-actions {
    justify-content: flex-start;
    margin-top: 18px;
}

.primary-download {
    min-height: 286px;
}

.two-column,
.deepseek-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: clamp(28px, 6vw, 72px);
}

.instruction-list {
    counter-reset: instruction;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.instruction-list li {
    counter-increment: instruction;
    position: relative;
    min-height: 82px;
    padding: 18px 18px 18px 68px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.instruction-list li::before {
    content: counter(instruction);
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--green);
    border: 1px solid var(--green-soft);
    background: var(--green-soft);
    font-size: 13px;
    font-weight: 800;
}

.instruction-list strong,
.instruction-list span {
    display: block;
}

.instruction-list strong {
    margin-bottom: 5px;
    font-size: 18px;
}

.instruction-list span {
    color: var(--muted);
    line-height: 1.65;
}

.deepseek-section {
    padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 72px);
    background: #e8e1d1;
}

.deepseek-grid {
    align-items: start;
}

.deepseek-grid h2 {
    margin: 0;
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.06;
}

.deepseek-grid p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.84;
}

.deepseek-notes {
    padding: 24px;
    border: 1px solid rgba(20, 20, 20, 0.16);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.62);
}

.deepseek-notes h3 {
    margin: 0 0 16px;
    font-size: 22px;
}

.deepseek-notes p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.65;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    min-height: 72px;
    padding: 20px;
    color: rgba(255, 253, 248, 0.72);
    background: var(--charcoal);
    border-top: 1px solid rgba(255, 253, 248, 0.12);
    font-size: 14px;
}

.site-footer a {
    color: var(--white);
    text-decoration: none;
}

@media (max-width: 920px) {
    .site-header {
        position: absolute;
    }

    .site-nav {
        gap: 12px;
        font-size: 13px;
    }

    .site-nav a:nth-child(2) {
        display: none;
    }

    .hero {
        min-height: 88svh;
        padding-top: 104px;
    }

    .ide-window {
        right: -360px;
        top: 180px;
        opacity: 0.52;
        transform: rotate(-3deg) scale(0.9);
    }

    .intro-grid,
    .download-inner,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

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

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

    .two-column,
    .deepseek-grid {
        grid-template-columns: 1fr;
    }

    .download-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 58px;
        padding: 10px 16px;
    }

    .brand span {
        font-size: 15px;
    }

    .site-nav a:nth-child(1),
    .site-nav a:nth-child(4) {
        display: none;
    }

    .download-page .site-nav a:nth-child(1) {
        display: inline;
    }

    .download-page .site-nav a:nth-child(3) {
        display: none;
    }

    .hero {
        min-height: 90svh;
        padding: 92px 18px 40px;
    }

    .hero-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 22px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero-lede {
        font-size: 17px;
        line-height: 1.68;
    }

    .button {
        width: 100%;
    }

    .availability span {
        width: 100%;
    }

    .section,
    .intro-band,
    .download-section,
    .download-hero,
    .deepseek-section {
        padding: 52px 18px;
    }

    .download-hero {
        padding-top: 92px;
    }

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

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

    .workflow-list li {
        padding-right: 16px;
    }

    .instruction-list li {
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}
