*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}
input,
button,
textarea,
select {
    font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}
a {
    color: inherit;
}
:root {
    --bg: #0f0f11;
    --surface: #1a1a1f;
    --border: #2a2a32;
    --text: #e8e8f0;
    --muted: #888899;
    --accent: #7c6af7;
    --accent2: #888899;
}
@keyframes bg-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(90deg);
    }
}
body::before {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 70vmin;
    height: 70vmin;
    background: url(skrapa.svg) center / contain no-repeat;
    filter: invert(1);
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
    animation: bg-spin linear both;
    animation-timeline: scroll();
}
body {
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
header {
    text-align: center;
    padding: 7rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}
@keyframes logo-shimmer {
    0%,
    100% {
        color: var(--accent);
        opacity: 0.7;
    }
    50% {
        color: color-mix(in srgb, var(--accent) 40%, #fff);
        opacity: 1;
    }
}
.logo {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    animation: logo-shimmer 12s ease-in-out infinite;
}
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}
h1 {
    font-size: 3.9rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(120deg, var(--text) 25%, var(--accent) 50%, var(--text) 75%);
    background-size: 600% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 24s linear infinite;
}
.tagline {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 38ch;
}
pre.cli.hero-cmd {
    font-size: 120%;
}
.github-link {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    opacity: 0.4;
    transition: opacity 0.15s;
    z-index: 10;
}
.github-link:hover {
    opacity: 1;
}
.github-link img {
    filter: invert(1);
}
main {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}
.feature-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform 0.6s ease;
}
@media (hover: hover) {
    .feature-card:hover {
        transform: scale(1.25);
        transition: transform 0.15s ease;
        z-index: 1;
        position: relative;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
}
.feature-card strong {
    font-size: 1rem;
    font-weight: 600;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}
.copy-btn {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
    background: var(--border);
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition:
        color 0.15s,
        background 0.15s;
}
.copy-btn:hover,
.copy-btn.copied {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
pre.cli {
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.9em 5em 0.9em 2.5em;
    font-family: ui-monospace, monospace;
    font-size: 0.95rem;
    color: var(--accent);
    overflow-x: auto;
    position: relative;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;

    &::before {
        content: '$';
        margin-left: -1.5em;
        margin-right: 0.5em;
        color: var(--accent2);
    }

    &:hover {
        border-color: var(--accent);
        box-shadow: 0 0 0 1px var(--accent);
    }
}
footer {
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}
.how-it-works p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.arch {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem 2rem;
}
.arch-rows {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.arch-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.arch-divider {
    display: none;
}
.arch-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.arch-file {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--border);
}
.arch-file--assets {
    border-style: dashed;
}
.arch-file-name {
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    color: var(--text);
}
.arch-file-desc {
    font-size: 0.75rem;
    color: var(--muted);
}
.arch-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.5;
    flex-shrink: 0;
}
.arch-output {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 6px;
    flex: 0 0 35%;
    align-self: stretch;
}
.arch-output-name {
    font-family: ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
}
.arch-output-desc {
    font-size: 0.75rem;
    color: var(--muted);
}
/* .arch-output--copy {
    border-color: var(--border);
}
.arch-output--copy .arch-output-name {
    color: var(--muted);
} */
.req-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.req-item {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
}
.req-name {
    font-family: ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}
.req-version {
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
}
.req-desc {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--muted);
}
.req-desc code {
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    color: var(--muted);
}
.getting-started p {
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.getting-started p + pre {
    margin-bottom: 1.5rem;
}
footer > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}
footer a {
    color: var(--accent);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
@media (max-width: 640px) {
    .logo,
    .github-link {
        position: absolute;
    }
    header {
        padding: 6rem 1.25rem 3.5rem;
    }
    h1 {
        font-size: 2.75rem;
    }
    main {
        padding: 0 1.25rem 3rem;
        gap: 3rem;
    }
    .arch {
        padding: 1.25rem 1rem;
    }
    .arch-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    .arch-arrow {
        align-self: center;
        transform: rotate(90deg);
    }
    .arch-output {
        flex: 1 1 auto;
    }
    .arch-divider {
        display: block;
        width: 100%;
        height: 0;
        margin: 0.75rem 0;
        border: 0;
        border-top: 1px solid var(--border-light, #3a3a44);
    }
    .arch-file-name,
    .arch-output-name {
        overflow-wrap: anywhere;
    }
    .req-item {
        flex-wrap: wrap;
    }
    .req-desc {
        margin-left: 0;
        flex-basis: 100%;
    }
    footer > div {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        padding: 1.5rem 1.25rem;
    }
}
