:root {
    color-scheme: light dark;
    --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --bg: #f6f8fa;
    --panel: #ffffff;
    --panel-muted: #eef2f6;
    --border: #d8dee4;
    --text: #1f2328;
    --muted: #59636e;
    --subtle: #6e7781;
    --accent: #0969da;
    --accent-hover: #0550ae;
    --accent-soft: #ddf4ff;
    --shadow: 0 10px 30px rgba(31, 35, 40, 0.08);
    --radius: 16px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1117;
        --panel: #161b22;
        --panel-muted: #1f2630;
        --border: #30363d;
        --text: #e6edf3;
        --muted: #9da7b3;
        --subtle: #7d8590;
        --accent: #4493f8;
        --accent-hover: #58a6ff;
        --accent-soft: rgba(56, 139, 253, 0.15);
        --shadow: 0 18px 44px rgba(1, 4, 9, 0.45);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(900px 480px at 88% -8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%),
        radial-gradient(700px 420px at 4% 4%, color-mix(in srgb, #8250df 8%, transparent), transparent 62%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    padding: 0.1em 0.35em;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--panel-muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px clamp(18px, 4vw, 48px);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.brand:hover {
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    border-radius: 10px;
    background: linear-gradient(140deg, #1f6feb, #8250df 62%, #db61a2);
}

.brand-mark svg {
    width: 19px;
    height: 19px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    font-size: 14px;
}

.site-nav > a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 1px;
}

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

.site-nav a:hover {
    color: var(--text);
    text-decoration: none;
}

.lang-switch {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--panel);
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    border-left: 1px solid var(--border);
}

.lang-switch a:first-child {
    border-left: 0;
}

.lang-switch a:hover {
    color: var(--text);
    background: var(--panel-muted);
    text-decoration: none;
}

.lang-switch a[aria-current="page"] {
    color: #fff;
    background: var(--accent);
}

main {
    width: min(1120px, 100% - 40px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px) 0 32px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 20px;
    height: 1px;
    background: currentColor;
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 740;
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.accent {
    color: var(--accent);
}

.lede {
    max-width: 46ch;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: clamp(15px, 1.5vw, 17px);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: 0 1px 2px rgba(31, 35, 40, 0.05);
}

.btn:hover {
    text-decoration: none;
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    color: var(--text);
}

.btn-primary {
    color: #fff;
    border-color: transparent;
    background: var(--accent);
}

.btn-primary:hover {
    color: #fff;
    background: var(--accent-hover);
}

.star-link {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
}

.star-link:hover {
    opacity: 0.9;
}

.star-badge {
    display: block;
    height: 28px;
    width: auto;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.pill-row li {
    padding: 3px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
}

.hero-shot {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-shot img,
.shots img {
    display: block;
    width: 100%;
    height: auto;
}

.section {
    margin-top: clamp(48px, 7vw, 84px);
}

.section h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 720;
    letter-spacing: -0.03em;
}

.section-lede {
    margin: 0 0 16px;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
}

.card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 660;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.shots figure {
    margin: 0;
}

.shots img {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.shots figcaption {
    margin-top: 8px;
    color: var(--subtle);
    font-size: 13px;
}

pre {
    overflow-x: auto;
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

pre code {
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    line-height: 1.7;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--panel-muted);
}

tr:last-child td {
    border-bottom: 0;
}

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(1120px, 100% - 40px);
    margin: 0 auto;
    padding: 24px 0 40px;
    color: var(--subtle);
    font-size: 13px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.footer-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.visit-badge {
    display: block;
    height: 20px;
    width: auto;
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-shot {
        order: -1;
    }

    .site-nav {
        gap: 4px 14px;
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .site-nav a:nth-child(1),
    .site-nav a:nth-child(2) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
