﻿:root {
    --bg: #111111;
    --ink: #f4f4f4;
    --muted: #a3a3a3;
    --line: #2a2a2a;
    --berry: #e23d5a;
    --green: #3ddc84;
    --code: #f7f3ec;
    --code-bar: #f3efe6;
    --code-ink: #3d342c;
}

html[data-theme="light"] {
    --bg: #f3efe8;
    --ink: #1c1c1c;
    --muted: #5e574f;
    --line: #e4dccf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--berry); }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: white;
    color: #111;
    padding: 6px 10px;
}
.skip:focus { top: 12px; }

.wrap {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
}

header, footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
header { padding: 22px 0 8px; }
.brand { font-weight: 700; }
nav { display: flex; align-items: center; gap: 18px; }

.theme {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.theme svg { display: block; }

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
    padding: 36px 0 18px;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(42px, 7vw, 68px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}
h2 { margin: 0 0 12px; font-size: 28px; }
.lede, .note { color: var(--muted); }
.lede { font-size: 18px; max-width: 38rem; }

.install {
    display: flex;
    max-width: 520px;
    margin: 18px 0 8px;
}
.install code {
    flex: 1;
    background: #161616;
    color: #ddd;
    border: 2px solid #111;
    border-right: 0;
    padding: 12px 14px;
    box-shadow: 4px 4px 0 #111;
    font-family: Consolas, ui-monospace, monospace;
}
.install button, .button {
    background: var(--berry);
    color: white;
    border: 2px solid #111;
    box-shadow: 4px 4px 0 #111;
    font: inherit;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
}
.install button { border-left: 0; }

.preview {
    height: 280px;
    position: relative;
    background: #111;
    border: 2px solid #111;
    box-shadow: 8px 8px 0 #111;
    overflow: hidden;
}
.preview .score {
    position: absolute;
    top: 12px;
    left: 14px;
    color: white;
    font-size: 13px;
}
.preview .floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 36px;
    height: 26px;
    background: var(--green);
}
.preview .guy {
    position: absolute;
    left: 46%;
    bottom: 62px;
    width: 18px;
    height: 28px;
    background: #3d6fbf;
}
.preview .coin {
    position: absolute;
    right: 18%;
    bottom: 62px;
    width: 10px;
    height: 10px;
    background: #ffd000;
}

section { padding: 26px 0; }

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    padding: 0;
    list-style: none;
}
.features li {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}

.code-window {
    margin: 14px 0 18px;
    background: var(--code);
    border: 1px solid #e6dfd4;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
}
.code-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--code-bar);
    border-bottom: 1px solid #e6dfd4;
    color: var(--code-ink);
    font-size: 13px;
}
.dots { display: flex; gap: 6px; }
.dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.copy-code {
    margin-left: auto;
    background: transparent;
    color: var(--code-ink);
    border: 1px solid #d9d0c4;
    border-radius: 8px;
    box-shadow: none;
    padding: 4px 10px;
    font: 13px "Segoe UI", system-ui, sans-serif;
    cursor: pointer;
}
.code-window pre {
    margin: 0;
    padding: 16px 18px 20px;
    overflow-x: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    line-height: 1.65;
    tab-size: 4;
}
.code-window code {
    font-family: Consolas, ui-monospace, monospace;
    font-size: 13.5px;
    color: var(--code-ink);
    white-space: pre;
}
.tok-k { color: #c4554a; }
.tok-s { color: #2f8f5b; }
.tok-n { color: #c47b2b; }
.tok-cl { color: #a15c38; }
.tok-c { color: #8a7568; }

.contents { display: flex; flex-wrap: wrap; gap: 14px; }
.docs h2 { margin-top: 34px; }

footer {
    border-top: 1px solid var(--line);
    padding: 22px 0 36px;
    color: var(--muted);
}

@media (max-width: 760px) {
    header, .hero, footer, .install { display: block; }
    nav { margin-top: 12px; }
    .features { grid-template-columns: 1fr; }
    .install button { margin-top: 8px; border-left: 2px solid #111; }
    .preview { margin-top: 22px; }
}

html[data-theme="dark"] {
    --code: #1c1c20;
    --code-bar: #161618;
    --code-ink: #ececec;
}

html[data-theme="dark"] .code-window,
html[data-theme="dark"] .code-bar {
    border-color: #34343a;
}

html[data-theme="dark"] .copy-code {
    color: #ececec;
    border-color: #3a3a40;
}

html[data-theme="dark"] .tok-k { color: #e23d5a; }
html[data-theme="dark"] .tok-s { color: #8fd9a8; }
html[data-theme="dark"] .tok-n { color: #e6a15c; }
html[data-theme="dark"] .tok-cl { color: #f0c36a; }
html[data-theme="dark"] .tok-c { color: #8d8d8d; }
html[data-theme="dark"] .tok-f { color: #7bdff2; }

.preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
