:root {
    --bg: #f4efe8;
    --panel: rgba(255, 252, 247, 0.9);
    --panel-alt: rgba(239, 229, 215, 0.68);
    --text: #1d2430;
    --muted: #5b6472;
    --line: rgba(24, 47, 64, 0.14);
    --accent: #006d77;
    --accent-strong: #00545c;
    --accent-soft: rgba(0, 109, 119, 0.1);
    --highlight: #d97706;
    --shadow: 0 24px 80px rgba(17, 31, 43, 0.12);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --anchor-offset: 180px;
}

* {
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    scroll-padding-top: var(--anchor-offset);
}

body {
    margin: 0;
    font-family: "Segoe UI Variable", "Aptos", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(0, 109, 119, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.16), transparent 22%),
        linear-gradient(180deg, #f7f1e8 0%, #f2ece3 40%, #eee6d9 100%);
}

img {
    max-width: 100%;
    display: block;
}

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

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 40px;
}

.topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    background: rgba(255, 250, 243, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 16px;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand__mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #0ea5a4);
    color: #fff;
    font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand__title,
.brand__subtitle,
.section-heading__eyebrow,
.eyebrow,
.download-card__platform,
.download-card__format,
.tip-card__label,
.hero-preview__eyebrow,
.preview-mock__title,
.preview-mock__section-label {
    margin: 0;
}

.brand__title {
    font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.brand__subtitle {
    color: var(--muted);
    font-size: 0.85rem;
}

.nav,
.language-switcher,
.hero__actions,
.hero__badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.nav a,
.language-switcher {
    font-size: 0.95rem;
}

.nav a {
    padding: 8px 12px;
    white-space: nowrap;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
    background: var(--accent-soft);
    color: var(--accent-strong);
    transform: translateY(-1px);
}

.language-switcher {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.language-switcher__select {
    min-width: 122px;
    min-height: 42px;
    padding: 0 42px 0 16px;
    border: 1px solid rgba(24, 47, 64, 0.12);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 237, 229, 0.92)),
        linear-gradient(135deg, rgba(0, 109, 119, 0.08), rgba(217, 119, 6, 0.06));
    color: var(--accent-strong);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--accent-strong) 50%),
        linear-gradient(135deg, var(--accent-strong) 50%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 237, 229, 0.92));
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px),
        0 0;
    background-size:
        6px 6px,
        6px 6px,
        100% 100%;
    background-repeat: no-repeat;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.language-switcher__select:hover,
.language-switcher__select:focus {
    border-color: rgba(0, 109, 119, 0.25);
    box-shadow: 0 0 0 4px rgba(0, 109, 119, 0.08);
    outline: none;
}

.hero,
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr);
    gap: 24px;
}

.hero {
    margin-top: 24px;
    padding: 36px;
    background: linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(255, 245, 234, 0.8));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.eyebrow,
.section-heading__eyebrow,
.hero-preview__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--highlight);
    font-weight: 700;
}

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

.version-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0, 109, 119, 0.1);
    border: 1px solid rgba(0, 109, 119, 0.14);
    color: var(--accent-strong);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero h1,
.section-heading h2,
.feature-card h3,
.download-card h3,
.timeline__item h3 {
    font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
}

.hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(2.8rem, 6vw, 4.7rem);
    line-height: 0.94;
    max-width: 10ch;
}

.hero__text,
.section-heading p,
.feature-card p,
.download-card p,
.timeline__item p,
.tip-card p,
.footer p,
.check-item p,
.hero-preview__caption {
    color: var(--muted);
    line-height: 1.65;
}

.hero__text {
    max-width: 62ch;
    font-size: 1.05rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--accent-strong);
}

.button--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.button--ghost:hover {
    background: rgba(255, 255, 255, 0.8);
}

.button--card {
    width: 100%;
    margin-top: 10px;
}

.button--disabled {
    background: #d7ddd9;
    color: #41505d;
    cursor: default;
}

.button--disabled:hover {
    background: #d7ddd9;
    transform: none;
}

.hero__badges {
    margin-top: 24px;
}

.hero__badges span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: #31404b;
    font-size: 0.92rem;
}

.hero-preview,
.feature-card,
.download-card,
.tip-card,
.timeline__item {
    background: var(--panel);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.hero-preview {
    padding: 22px;
}

.preview-shell {
    margin-top: 12px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(12, 25, 36, 0.08);
    background: #dfe8eb;
}

.preview-shell__bar {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    background: linear-gradient(180deg, #f9f7f2, #ede7de);
    border-bottom: 1px solid rgba(12, 25, 36, 0.08);
}

.preview-shell__bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d6c7b4;
}

.preview-shell__image {
    width: 100%;
    aspect-ratio: 1.28;
    object-fit: cover;
    background: #d7dde0;
}

.preview-mock {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 360px;
}

.preview-mock__sidebar {
    padding: 18px 16px;
    background: linear-gradient(180deg, #223241, #182432);
    color: #f0f7fa;
}

.preview-mock__title,
.preview-mock__section-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.preview-mock__title {
    color: rgba(240, 247, 250, 0.7);
}

.preview-mock__item {
    display: block;
    height: 10px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(240, 247, 250, 0.18);
}

.preview-mock__item--wide {
    width: 92%;
}

.preview-mock__item--short {
    width: 56%;
}

.preview-mock__main {
    display: grid;
    grid-template-rows: 54px minmax(0, 1fr) 120px;
    background: #f8f6f1;
}

.preview-mock__toolbar {
    background:
        linear-gradient(90deg, rgba(0, 109, 119, 0.16) 12%, transparent 12% 16%, rgba(0, 109, 119, 0.12) 16% 22%, transparent 22% 100%),
        linear-gradient(180deg, #f9f8f4, #ece6dc);
    border-bottom: 1px solid rgba(12, 25, 36, 0.08);
}

.preview-mock__editor,
.preview-mock__results {
    padding: 18px 20px;
}

.preview-mock__section-label {
    color: #6b7684;
}

.preview-mock__line {
    display: block;
    height: 10px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 109, 119, 0.5), rgba(0, 109, 119, 0.18));
}

.preview-mock__line--title {
    width: 82%;
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.7), rgba(217, 119, 6, 0.18));
}

.preview-mock__line--medium {
    width: 64%;
}

.preview-mock__results {
    background: #eef1f2;
    border-top: 1px solid rgba(12, 25, 36, 0.08);
}

.preview-mock__table {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.preview-mock__table span {
    display: block;
    height: 16px;
    border-radius: 6px;
    background: rgba(42, 62, 78, 0.12);
}

.hero-preview__caption {
    margin: 14px 0 0;
}

.section {
    margin-top: 24px;
    padding: 30px;
    background: rgba(255, 250, 243, 0.72);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
}

.section--alt {
    background: var(--panel-alt);
}

.section--final {
    margin-bottom: 24px;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.feature-grid,
.download-grid,
.check-grid {
    display: grid;
    gap: 18px;
}

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

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

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

.download-grid--addons {
    grid-template-columns: minmax(280px, 360px);
}

.split-layout--addons {
    grid-template-columns: minmax(280px, 360px) minmax(320px, 520px);
    justify-content: start;
    align-items: start;
}

.feature-card,
.download-card,
.tip-card {
    padding: 22px;
}

.feature-card h3,
.download-card h3,
.timeline__item h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.download-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.download-card__platform {
    font-weight: 700;
}

.download-card__format {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 700;
}

.download-card__artifact {
    margin: -2px 0 12px;
    color: #45606d;
    font-family: "Consolas", "Cascadia Mono", monospace;
    font-size: 0.88rem;
}

.download-card__summary {
    margin-bottom: 8px;
}

.download-card__notes,
.download-card__pending {
    font-size: 0.9rem;
}

.download-card__pending {
    margin-bottom: 0;
    color: #8a5a1f;
}

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

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.check-item__dot {
    width: 12px;
    height: 12px;
    margin-top: 7px;
    border-radius: 999px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--highlight), #f59e0b);
    box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.12);
}

.timeline {
    display: grid;
    gap: 16px;
    counter-reset: item;
}

.timeline__item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    align-items: flex-start;
}

.timeline__item::before {
    counter-increment: item;
    content: counter(item);
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), #1ca4a2);
    color: #fff;
    font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.timeline__index {
    display: none;
}

.tip-card {
    align-self: start;
    background: linear-gradient(180deg, rgba(255, 248, 235, 0.95), rgba(255, 243, 221, 0.88));
}

.tip-card__label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--highlight);
}

.footer {
    padding: 0 8px 12px;
    text-align: center;
}

@media (max-width: 1040px) {
    :root {
        --anchor-offset: 32px;
    }

    .hero,
    .split-layout,
    .feature-grid,
    .download-grid,
    .download-grid--compact,
    .download-grid--addons,
    .check-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .language-switcher {
        justify-content: flex-start;
    }

    .split-layout--addons {
        grid-template-columns: 1fr;
    }

    .preview-mock {
        grid-template-columns: 1fr;
    }

    .preview-mock__sidebar {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 20px, 1180px);
        margin: 10px auto 24px;
    }

    .hero,
    .section {
        padding: 22px;
    }

    .hero h1 {
        max-width: 100%;
    }

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

    .timeline__item::before {
        margin-bottom: 4px;
    }
}
