:root {
    color-scheme: light;
    --ink: #18212f;
    --muted: #5d6978;
    --line: #d8e0e8;
    --paper: #ffffff;
    --wash: #f4f7fa;
    --blue: #2166d1;
    --blue-dark: #174d9c;
    --green: #1c7c61;
    --coral: #c4543d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--wash);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 12px clamp(20px, 4vw, 48px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand,
nav,
.actions {
    align-items: center;
    display: flex;
    gap: 14px;
}

.brand {
    font-size: 18px;
    font-weight: 800;
}

.brand img {
    height: 32px;
    width: 32px;
}

nav {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

main {
    overflow: hidden;
}

.hero {
    align-items: center;
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
    margin: 0 auto;
    max-width: 1440px;
    padding: clamp(34px, 5vw, 64px) clamp(20px, 4vw, 48px) 34px;
}

.eyebrow {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 12px;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(52px, 7vw, 86px);
    line-height: 0.92;
    margin-bottom: 18px;
}

.lead {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
    max-width: 560px;
    margin-bottom: 22px;
}

.primary-action,
.secondary-action {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
}

.primary-action {
    background: var(--blue);
    color: #ffffff;
}

.primary-action:hover {
    background: var(--blue-dark);
}

.secondary-action {
    background: #ffffff;
    border: 1px solid var(--line);
    color: #314258;
}

.app-preview {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(28, 42, 58, 0.12);
    justify-self: end;
    max-width: 680px;
    overflow: hidden;
    width: 100%;
}

.preview-titlebar {
    align-items: center;
    background: #eef3f8;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    padding: 10px 16px;
}

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

.preview-content {
    padding: 22px;
}

.preview-heading {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.preview-heading p,
.timeline-row span {
    color: var(--muted);
    font-size: 13px;
}

.preview-heading h2 {
    font-size: 25px;
    margin-bottom: 0;
}

.preview-heading button {
    background: var(--blue);
    border: 0;
    border-radius: 7px;
    color: #ffffff;
    font-weight: 800;
    min-height: 38px;
    padding: 0 14px;
}

.preview-input {
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    margin: 18px 0;
    padding: 11px 13px;
}

.timeline-row {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 14px;
    margin-top: 10px;
    padding: 13px 14px;
}

.timeline-row i {
    background: #7a8795;
    border: 7px solid #e6edf4;
    border-radius: 50%;
    height: 30px;
    width: 30px;
}

.timeline-row.current {
    background: #f8fbff;
    border-color: #94bff2;
}

.timeline-row.current i {
    background: var(--blue);
    border-color: #d6e7ff;
}

.features {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: 1440px;
    padding: 24px clamp(20px, 4vw, 48px) 42px;
}

.features article {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.features span {
    color: var(--coral);
    font-weight: 900;
}

.features h2,
.download h2 {
    font-size: 22px;
    margin: 10px 0 8px;
}

.features p,
.download p {
    color: var(--muted);
    line-height: 1.55;
}

.download {
    align-items: center;
    background: #ffffff;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 34px clamp(20px, 4vw, 48px);
}

.download div {
    max-width: 700px;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--line);
    padding: 26px clamp(20px, 4vw, 48px) 18px;
}

.footer-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.15fr);
    margin: 0 auto;
    max-width: 1440px;
}

.footer-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.project-card,
.contributors {
    min-width: 0;
}

.repo-link,
.contributor-card {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-height: 72px;
    padding: 14px;
}

.repo-link {
    min-height: 92px;
}

.repo-link svg {
    background: #eaf2ff;
    border-radius: 8px;
    fill: var(--blue);
    flex: 0 0 auto;
    height: 42px;
    padding: 9px;
    width: 42px;
}

.repo-link span,
.contributor-card span:last-child {
    display: grid;
    gap: 3px;
}

.site-footer strong {
    color: var(--ink);
    font-weight: 800;
}

.site-footer small {
    color: var(--muted);
    font-size: 13px;
}

.site-footer a:hover {
    color: var(--blue);
}

.site-footer a:hover strong {
    color: var(--blue);
}

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

.avatar {
    align-items: center;
    background: #eef3f8;
    border: 1px solid #d9e4ef;
    border-radius: 8px;
    color: var(--blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    margin: 22px auto 0;
    max-width: 1440px;
    padding-top: 14px;
}

.footer-bottom a {
    color: var(--ink);
    font-weight: 800;
}

@media (max-width: 820px) {
    .site-header,
    .download,
    .footer-bottom,
    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

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

    .footer-grid,
    .contributor-grid {
        grid-template-columns: 1fr;
    }

    .app-preview {
        min-width: 0;
    }
}
