:root {
    color-scheme: light;
    --ink: #141414;
    --muted: #52545a;
    --subtle: #767a84;
    --paper: #fbfaf7;
    --panel: #ffffff;
    --line: #ded8cc;
    --charcoal: #242424;
    --brick: #9f2f24;
    --brick-dark: #721f18;
    --gold: #b7832f;
    --green: #2f6f58;
    --blue: #285d8f;
    --shadow: 0 24px 60px rgba(40, 32, 20, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(251, 250, 247, 0.98), rgba(244, 240, 232, 0.98)),
        repeating-linear-gradient(90deg, rgba(20, 20, 20, 0.025) 0, rgba(20, 20, 20, 0.025) 1px, transparent 1px, transparent 84px);
    line-height: 1.55;
}

a {
    color: var(--brick-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

h1,
h2,
h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.02;
    letter-spacing: 0;
}

p {
    margin: 0;
}

nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 250, 247, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-container,
.section-container,
.hero-inner,
.footer-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.nav-container {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo svg {
    color: var(--brick);
}

.nav-toggle {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.95rem;
    font-weight: 700;
}

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

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

.nav-toggle:focus-visible,
.nav-links a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.download-card,
.download-card code,
.section-header,
.section-header code {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nav-btn-primary,
.button.primary {
    background: var(--brick);
    color: #fff !important;
    border: 1px solid var(--brick);
    box-shadow: 0 12px 26px rgba(159, 47, 36, 0.22);
}

.nav-btn-primary {
    padding: 10px 14px;
    border-radius: 8px;
}

.hero {
    min-height: 88vh;
    display: grid;
    align-items: center;
    padding: 70px 0 54px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(115deg, rgba(255,255,255,0.74), rgba(255,255,255,0.2)),
        radial-gradient(circle at 82% 18%, rgba(183, 131, 47, 0.18), transparent 32%),
        radial-gradient(circle at 12% 82%, rgba(47, 111, 88, 0.14), transparent 28%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: 54px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--brick-dark);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(48px, 7vw, 86px);
}

.hero-lead,
.section-lead {
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.18rem;
    max-width: 760px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 800;
}

.button.secondary {
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-proof span {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.65);
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-proof strong {
    color: var(--ink);
}

.hero-panel {
    position: relative;
}

.hero-panel img,
.screenshot-card img {
    border: 1px solid rgba(20, 20, 20, 0.15);
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: #fff;
}

.panel-caption {
    width: min(86%, 520px);
    margin: -34px auto 0;
    position: relative;
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 8px;
    background: var(--charcoal);
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.panel-caption span {
    color: #ddd7cd;
}

.section {
    padding: 78px 0;
}

.band {
    background: #f0ece4;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.split {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 56px;
    align-items: start;
}

.split.reversed {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
}

.section-kicker {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section h2 {
    font-size: clamp(36px, 4vw, 58px);
}

.section-header {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-header.left {
    margin-left: 0;
    text-align: left;
}

.section-header p:not(.eyebrow) {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1.08rem;
}

.evidence-grid,
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.evidence-grid article,
.workflow-card,
.stack-card,
.download-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 22px;
    box-shadow: 0 10px 26px rgba(40, 32, 20, 0.07);
}

.evidence-grid svg,
.download-card > svg {
    color: var(--brick);
    width: 30px;
    height: 30px;
    margin-bottom: 14px;
}

.evidence-grid h3,
.workflow-card h3,
.stack-card h3,
.download-card h3 {
    margin-bottom: 10px;
    font-size: 1.34rem;
}

.evidence-grid p,
.workflow-card p,
.stack-card p,
.download-card p {
    color: var(--muted);
}

.download-card code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.workflow-grid {
    grid-template-columns: repeat(4, 1fr);
}

.workflow-card span {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--gold);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.publishing-section {
    background: var(--paper);
}

.publish-stack {
    display: grid;
    gap: 12px;
}

.stack-card {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 18px;
    align-items: start;
}

.stack-card.featured {
    border-color: rgba(159, 47, 36, 0.36);
    background: #fff7f3;
}

.stack-label {
    color: var(--subtle);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.honesty-box {
    display: grid;
    gap: 6px;
    margin-top: 28px;
    padding: 18px;
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    background: #fff9ed;
    color: var(--muted);
}

.honesty-box strong {
    color: var(--ink);
}

.check-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.check-list li {
    display: flex;
    gap: 10px;
    align-items: start;
    color: var(--muted);
}

.check-list svg {
    color: var(--green);
    flex: 0 0 auto;
    margin-top: 2px;
}

.screenshot-card {
    margin: 0;
}

.screenshot-card figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.download-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.download-card {
    display: grid;
    gap: 12px;
}

.download-card.highlighted {
    outline: 3px solid rgba(159, 47, 36, 0.25);
}

.download-card.highlighted::before {
    content: "Recommended for this device";
    width: fit-content;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--brick);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin-top: auto;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--charcoal);
    color: #fff;
    font-weight: 800;
}

.download-btn:hover {
    color: #fff;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
    font-weight: 800;
}

footer {
    padding: 40px 0;
    border-top: 1px solid var(--line);
    background: #ebe6dc;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
}

.footer-container p {
    margin-top: 10px;
    color: var(--muted);
    max-width: 560px;
}

.footer-links {
    display: flex;
    gap: 18px;
    font-weight: 800;
}

.js .fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.button:focus-visible,
.download-btn:focus-visible,
.nav-links a:focus-visible {
    outline: 3px solid rgba(159, 47, 36, 0.4);
    outline-offset: 3px;
}

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

    .js .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 980px) {
    .hero-inner,
    .split,
    .split.reversed {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 48px;
    }

    .hero-panel {
        order: -1;
    }

    .workflow-grid,
    .download-container {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 760px) {
    .nav-container,
    .section-container,
    .hero-inner,
    .footer-container {
        width: min(100% - 28px, 1180px);
    }

    .nav-container {
        min-height: 64px;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--ink);
        cursor: pointer;
    }

    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        position: relative;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle span::before,
    .nav-toggle span::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav-toggle span::before {
        top: -8px;
    }

    .nav-toggle span::after {
        top: 8px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        padding: 18px;
        background: rgba(251, 250, 247, 0.98);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

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

    .nav-toggle[aria-expanded="true"] span {
        background: transparent;
    }

    .nav-toggle[aria-expanded="true"] span::before {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span::after {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 62px);
    }

    .hero-actions,
    .hero-proof,
    .download-links,
    .footer-container,
    .footer-links {
        flex-direction: column;
        align-items: stretch;
    }

    .button,
    .download-btn {
        width: 100%;
    }

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

    .stack-card {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 56px 0;
    }
}
