@font-face {
    font-family: "Geist";
    src: url("../fonts/Geist-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #f7f8fa;
    --surface: #ffffff;
    --surface-2: #f0f2f5;
    --ink: #101216;
    --ink-2: #303741;
    --muted: #66707d;
    --line: #dfe3e8;
    --accent: #2563eb;
    --accent-2: #6d5dfc;
    --accent-soft: #eaf0ff;
    --primary-gradient: linear-gradient(135deg, #2563eb, #4f46e5);
    --good: #15803d;
    --good-soft: #effaf4;
    --warning: #9a6700;
    --warning-soft: #fff8df;
    --code: #111827;
    --shadow: 0 24px 70px rgba(23, 31, 45, 0.13);
    --shell: min(1180px, calc(100% - 40px));
    font-family: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0e1117;
    --surface: #151a22;
    --surface-2: #1a202a;
    --ink: #f5f7fb;
    --ink-2: #d6dce5;
    --muted: #9aa5b4;
    --line: #29313d;
    --accent: #7198ff;
    --accent-2: #9d8cff;
    --accent-soft: #1d2947;
    --good: #74d6a2;
    --good-soft: #102c21;
    --warning: #ffd166;
    --warning-soft: #2d260f;
    --code: #080d18;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] {
        color-scheme: dark;
        --paper: #0e1117;
        --surface: #151a22;
        --surface-2: #1a202a;
        --ink: #f5f7fb;
        --ink-2: #d6dce5;
        --muted: #9aa5b4;
        --line: #29313d;
        --accent: #7198ff;
        --accent-2: #9d8cff;
        --accent-soft: #1d2947;
        --good: #74d6a2;
        --good-soft: #102c21;
        --warning: #ffd166;
        --warning-soft: #2d260f;
        --code: #080d18;
        --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 78% 5%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 31rem),
        var(--paper);
    font-family: inherit;
    font-size: 16px;
    font-weight: 440;
    line-height: 1.65;
    letter-spacing: -.008em;
    -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: #111827;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    border-bottom: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: background .25s, border-color .25s, box-shadow .25s;
}

.site-header.is-scrolled {
    border-color: color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    box-shadow: 0 8px 30px rgba(18, 25, 36, .05);
    backdrop-filter: blur(16px);
}

.header-inner,
main,
.footer-grid {
    width: var(--shell);
    margin-inline: auto;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 72px;
    align-items: center;
}

.brand {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 720;
    letter-spacing: -.02em;
}

.brand-mark {
    display: grid;
    width: 33px;
    height: 33px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 7px 18px rgba(37, 99, 235, .2);
}

.brand-mark svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-nav a {
    position: relative;
    padding: 25px 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 18px;
    left: 50%;
    height: 1px;
    background: var(--ink);
    transition: left .2s, right .2s;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.site-footer nav a:hover {
    color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
    right: 0;
    left: 0;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    vertical-align: middle;
}

.svg-sprite {
    display: none;
}

.icon-button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: color-mix(in srgb, var(--surface) 75%, transparent);
    font: inherit;
    cursor: pointer;
    transition: transform .18s, background .18s;
}

.icon-button:hover {
    background: var(--surface-2);
    transform: translateY(-1px);
}

.theme-toggle [data-theme-icon] {
    display: grid;
    place-items: center;
}

.theme-toggle .icon {
    width: 17px;
    height: 17px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 650;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-small {
    min-height: 40px;
    padding: 0 17px;
}

.button-primary {
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}

.button-primary:hover {
    box-shadow: 0 14px 30px rgba(37, 99, 235, .3);
}

.menu-toggle {
    position: relative;
    display: none;
}

.menu-toggle span {
    position: absolute;
    display: block;
    width: 17px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .22s ease, opacity .16s ease;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-5px);
}

.menu-toggle span:nth-child(2) {
    transform: translateY(0);
}

.menu-toggle span:nth-child(3) {
    transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(.35);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(0) rotate(-45deg);
}

.mobile-nav {
    padding: 10px 20px 18px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.mobile-nav a {
    display: block;
    padding: 10px;
    color: var(--ink-2);
    font-size: 14px;
}

main {
    padding: clamp(9rem, 16vw, 12rem) 0 clamp(5rem, 9vw, 8rem);
}

.hero {
    max-width: 58rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

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

h1,
h2,
h3 {
    text-wrap: balance;
}

h1 {
    max-width: 52rem;
    margin-bottom: 22px;
    font-size: clamp(3.4rem, 8vw, 6.4rem);
    font-weight: 780;
    line-height: .93;
    letter-spacing: -.065em;
}

.hero-copy {
    max-width: 48rem;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.status-list li {
    padding: 7px 12px;
    border: 1px solid color-mix(in srgb, var(--good) 35%, var(--line));
    border-radius: 999px;
    color: var(--good);
    background: var(--good-soft);
    font-size: 12px;
    font-weight: 700;
}

.identity-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 56px;
    padding: clamp(24px, 4vw, 38px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.identity-card > div:first-child {
    min-width: 0;
}

.identity-card h2 {
    margin-bottom: 8px;
    font-size: 16px;
}

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

code,
pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.user-agent {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 13px 15px;
    border-radius: 10px;
    color: #e5edff;
    background: var(--code);
    font-size: 12px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.operator {
    display: grid;
    min-width: 10rem;
    gap: 2px;
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.operator span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.operator strong {
    font-size: 14px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.fact,
.side-card {
    border: 1px solid var(--line);
    background: var(--surface);
}

.fact {
    min-height: 220px;
    padding: 26px;
    border-radius: 16px;
}

.fact-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 11px;
    color: var(--accent);
    background: var(--accent-soft);
}

.fact-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fact h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.fact p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(17rem, .75fr);
    gap: clamp(3rem, 7vw, 6.5rem);
    margin-top: clamp(6rem, 12vw, 10rem);
}

.article-section + .article-section {
    margin-top: 64px;
}

.article-section h2,
.side-card h2 {
    margin-bottom: 14px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.article-section p,
.article-section li,
.side-card p,
.side-card li {
    color: var(--muted);
}

.article-section ul {
    padding-left: 22px;
}

.article-section li + li {
    margin-top: 8px;
}

.article-section a,
.side-card a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.note {
    padding: 17px 19px;
    border-left: 3px solid var(--warning);
    border-radius: 0 10px 10px 0;
    color: var(--warning) !important;
    background: var(--warning-soft);
    font-size: 14px;
}

.robots-example {
    max-width: 100%;
    padding: 18px;
    overflow-x: auto;
    border: 1px solid color-mix(in srgb, var(--line) 60%, var(--code));
    border-radius: 12px;
    color: #e5edff;
    background: var(--code);
    font-size: 13px;
    line-height: 1.75;
}

.side-column {
    display: grid;
    align-content: start;
    gap: 16px;
}

.side-card {
    padding: 24px;
    border-radius: 16px;
}

.side-card h2 {
    font-size: 17px;
}

.side-card p,
.side-card ul {
    margin-bottom: 0;
    font-size: 13px;
}

.side-card ul {
    padding-left: 18px;
}

.technical-list {
    display: grid;
    gap: 12px;
    padding: 0 !important;
    list-style: none;
}

.technical-list li {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.technical-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.technical-list strong {
    color: var(--ink);
    font-size: 12px;
}

.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.footer-brand > p {
    margin: 0;
    max-width: 360px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.footer-grid nav {
    display: flex;
    justify-content: flex-end;
    gap: 17px;
    color: var(--muted);
    font-size: 12px;
}

.footer-grid small {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.footer-grid small a {
    color: var(--ink);
}

.footer-legal {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
}

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

    .side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .side-column .side-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    :root {
        --shell: min(100% - 28px, 1180px);
    }

    .desktop-nav,
    .header-actions > .button {
        display: none;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .menu-toggle {
        display: grid;
    }

    main {
        padding-top: 130px;
    }

    h1 {
        font-size: clamp(44px, 14vw, 64px);
    }

    .identity-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .operator {
        min-width: 0;
        padding: 18px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .facts,
    .side-column,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .fact {
        min-height: 0;
    }

    .side-column .side-card:first-child {
        grid-column: auto;
    }

    .footer-grid nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer-grid small {
        grid-column: auto;
        flex-wrap: wrap;
    }

    .footer-legal {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .identity-card {
        padding: 20px;
    }

    .user-agent {
        font-size: 11px;
    }

    .technical-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
