:root {
    --orange: 255, 102, 0;
    --app-font: 'Space Grotesk Qwantium', sans-serif;
    --mono-font: 'Cascadia_Mono', 'SFMono-Regular', Consolas, monospace;
    --btn-radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: rgb(var(--background));
    color: rgb(var(--foreground));
    font-family: var(--app-font), sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: rgb(var(--primary));
}

code, .op {
    font-family: var(--mono-font);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    background: rgb(var(--background) / 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(var(--border));
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    color: rgb(var(--foreground));
}

.brand img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
}

.topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgb(var(--muted-foreground));
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: var(--btn-radius);
    border: 1px solid rgb(var(--border));
    transition: color 0.15s, border-color 0.15s;
}

.topbar-back:hover {
    color: rgb(var(--foreground));
    border-color: rgb(var(--muted-foreground));
}

.topbar-back svg {
    width: 15px;
    height: 15px;
}

.page {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.hero {
    padding: 3.25rem 0 1.75rem;
    border-bottom: 1px solid rgb(var(--border));
    margin-bottom: 2.25rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgb(var(--orange));
    margin-bottom: 0.85rem;
}

.hero h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero p {
    margin: 0;
    max-width: 62ch;
    color: rgb(var(--muted-foreground));
    font-size: 1.02rem;
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.toc a {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    color: rgb(var(--muted-foreground));
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    transition: color 0.15s, border-color 0.15s;
}

.toc a:hover {
    color: rgb(var(--primary));
    border-color: rgb(var(--primary) / 0.5);
}

section {
    margin-bottom: 3rem;
    scroll-margin-top: 5.5rem;
}

section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 0.35rem;
}

section > p.lead {
    color: rgb(var(--muted-foreground));
    margin: 0 0 1.4rem;
    max-width: 68ch;
}

.op-table {
    width: 100%;
    border-collapse: collapse;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 12px;
    overflow: hidden;
}

.op-table thead th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: rgb(var(--muted-foreground));
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgb(var(--border));
}

.op-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgb(var(--border));
    font-size: 0.9rem;
    vertical-align: top;
}

.op-table tr:last-child td {
    border-bottom: none;
}

.op-table tbody tr:hover {
    background: rgb(var(--muted) / 0.5);
}

.op {
    display: inline-block;
    background: rgb(var(--muted));
    color: rgb(var(--primary));
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.op-desc {
    color: rgb(var(--foreground));
}

.op-example {
    color: rgb(var(--muted-foreground));
    white-space: nowrap;
}

.op-example code {
    background: rgb(var(--muted));
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    font-size: 0.82rem;
}

.combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.combo-card {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.combo-card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.combo-card code {
    display: block;
    font-family: var(--mono-font);
    font-size: 0.82rem;
    background: rgb(var(--muted));
    padding: 0.55rem 0.7rem;
    border-radius: 7px;
    overflow-x: auto;
    color: rgb(var(--primary));
}

.combo-card p {
    margin: 0.55rem 0 0;
    font-size: 0.83rem;
    color: rgb(var(--muted-foreground));
}

.try-box {
    display: flex;
    gap: 0.6rem;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 12px;
    padding: 0.6rem;
    max-width: 560px;
}

.try-box input {
    flex: 1;
    border: none;
    background: transparent;
    color: rgb(var(--foreground));
    font-family: var(--mono-font);
    font-size: 0.88rem;
    padding: 0.5rem 0.6rem;
    outline: none;
}

.try-box button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgb(var(--orange));
    color: #fff;
    border: none;
    font-family: var(--app-font);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: filter 0.15s;
}

.try-box button:hover {
    filter: brightness(1.08);
}

.try-box svg {
    width: 15px;
    height: 15px;
}

.note {
    display: flex;
    gap: 0.7rem;
    background: rgb(var(--primary) / 0.08);
    border: 1px solid rgb(var(--primary) / 0.25);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.87rem;
    margin-top: 1.1rem;
}

.note svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: rgb(var(--primary));
    margin-top: 0.15rem;
}

.note p {
    margin: 0;
    color: rgb(var(--foreground) / 0.85);
}

footer {
    border-top: 1px solid rgb(var(--border));
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: rgb(var(--muted-foreground));
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

footer a {
    color: rgb(var(--muted-foreground));
    text-decoration: none;
}

footer a:hover {
    color: rgb(var(--primary));
}

@media (max-width: 600px) {
    .op-table thead {
        display: none;
    }

    .op-table tr {
        display: grid;
        grid-template-columns: 1fr;
        padding: 0.75rem 1rem;
    }

    .op-table td {
        border: none;
        padding: 0.2rem 0;
    }

    .op-example {
        white-space: normal;
    }
}
