:root {
    color-scheme: dark;
    --bg: #020b0e;
    --surface: #061a20;
    --surface-2: #0a272e;
    --line: rgba(162, 218, 210, 0.14);
    --line-strong: rgba(162, 218, 210, 0.28);
    --text: #edf8f5;
    --muted: #98afab;
    --coral: #ff7a64;
    --cyan: #72ead4;
    --display: "Sora", "Avenir Next", sans-serif;
    --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    background:
        radial-gradient(circle at 68% 8%, rgba(114, 234, 212, 0.09), transparent 30rem),
        radial-gradient(circle at 4% 45%, rgba(255, 122, 100, 0.07), transparent 25rem),
        var(--bg);
    color: var(--text);
    font-family: var(--display);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 99;
    padding: .7rem 1rem;
    transform: translateY(-150%);
    border-radius: 8px;
    background: var(--cyan);
    color: var(--bg);
    font-weight: 700;
    text-decoration: none;
}

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

.docs-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(114, 234, 212, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(114, 234, 212, .028) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(black, transparent 82%);
}

.docs-shell { width: min(calc(100% - 48px), 1160px); margin-inline: auto; }

.docs-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 11, 14, .78);
    backdrop-filter: blur(20px);
}

.docs-nav-inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 2rem; }

.docs-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }

.docs-brand>span { display: grid; width: 38px; height: 38px; overflow: hidden; place-items: center; border-radius: 8px; background: #f2f0e8; }

.docs-brand img { width: 38px; height: 38px; }

.docs-brand b { font-size: 1.05rem; letter-spacing: -.04em; }

.docs-nav-inner>div { display: flex; align-items: center; gap: 1.6rem; }

.docs-nav-inner>div a { color: var(--muted); font-size: .76rem; text-decoration: none; }

.docs-nav-inner>div a:hover { color: var(--text); }

.docs-source { padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: 8px; }

.docs-hero { display: grid; min-height: 680px; grid-template-columns: minmax(0, 1fr) minmax(400px, .78fr); gap: 6rem; align-items: center; padding-block: 6.5rem; }

.docs-copy h1 { max-width: 700px; margin: 0; font-size: clamp(3rem, 6vw, 5.7rem); font-weight: 600; letter-spacing: -.07em; line-height: 1; }

.docs-copy>p:not(.docs-eyebrow) { max-width: 650px; margin: 1.7rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }

.docs-eyebrow { margin: 0 0 1.3rem; color: var(--cyan); font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.docs-eyebrow i { display: inline-block; width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.docs-topics { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }

.docs-topics span { padding: .4rem .62rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-family: var(--mono); font-size: .55rem; }

.latest-card { position: relative; display: block; min-height: 450px; padding: 1.5rem; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(145deg, rgba(12, 42, 49, .85), rgba(4, 20, 25, .96)); box-shadow: 0 35px 90px rgba(0,0,0,.4); text-decoration: none; transition: transform 240ms ease, border-color 240ms ease; }

.latest-card:hover { border-color: rgba(255, 122, 100, .48); transform: translateY(-5px); }

.latest-card-top { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: .55rem; text-transform: uppercase; }

.latest-status { display: flex; align-items: center; gap: .4rem; color: var(--cyan); }

.latest-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.latest-orbit { position: absolute; top: 44px; right: -55px; width: 280px; height: 280px; border: 1px solid rgba(114, 234, 212, .11); border-radius: 50%; box-shadow: 0 0 0 42px rgba(114, 234, 212, .018), 0 0 0 84px rgba(114, 234, 212, .01); }

.latest-orbit i { position: absolute; width: 10px; height: 10px; border: 1px solid var(--cyan); border-radius: 50%; background: var(--surface); box-shadow: 0 0 14px rgba(114, 234, 212, .4); }

.latest-orbit i:first-child { top: 29px; left: 41px; }
.latest-orbit i:nth-child(2) { right: -4px; bottom: 92px; border-color: var(--coral); }
.latest-orbit i:nth-child(3) { bottom: -2px; left: 89px; }

.latest-card-copy { position: absolute; right: 1.5rem; bottom: 5.5rem; left: 1.5rem; z-index: 2; }

.latest-card-copy small { color: var(--coral); font-family: var(--mono); font-size: .6rem; text-transform: uppercase; }

.latest-card-copy strong { display: block; margin-top: .5rem; font-size: 2.45rem; font-weight: 550; letter-spacing: -.055em; }

.latest-card-copy p { max-width: 300px; margin: .6rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }

.latest-action { position: absolute; right: 1.5rem; bottom: 1.5rem; left: 1.5rem; z-index: 2; display: flex; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--cyan); font-family: var(--mono); font-size: .58rem; }

.latest-action i { font-style: normal; transition: transform 180ms ease; }
.latest-card:hover .latest-action i { transform: translateX(5px); }

.docs-paths { padding-block: 7rem; border-block: 1px solid rgba(162, 218, 210, .08); background: rgba(4, 20, 25, .62); }

.docs-section-heading { display: grid; grid-template-columns: 1fr minmax(280px, .55fr); gap: 3rem; align-items: end; margin-bottom: 3rem; }

.docs-section-heading>div { display: flex; align-items: center; gap: 1rem; }

.docs-section-heading span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--coral); font-family: var(--mono); font-size: .54rem; }

.docs-section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 550; letter-spacing: -.055em; }

.docs-section-heading>p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.75; }

.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.path-grid>a { position: relative; min-height: 330px; padding: 1.35rem; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(12, 42, 49, .68), rgba(4, 20, 25, .86)); text-decoration: none; transition: transform 220ms ease, border-color 220ms ease; }

.path-grid>a:hover { border-color: rgba(114, 234, 212, .4); transform: translateY(-4px); }

.path-number { position: absolute; top: 1rem; right: 1rem; color: rgba(152, 175, 171, .35); font-family: var(--mono); font-size: .55rem; }

.path-icon { display: grid; width: 50px; height: 50px; margin: 2.6rem 0 1.8rem; place-items: center; border: 1px solid rgba(255, 122, 100, .3); border-radius: 12px; background: rgba(255, 122, 100, .08); color: var(--coral); font-family: var(--mono); font-size: .9rem; font-style: normal; }

.path-grid h3 { margin: 0; font-size: 1.2rem; font-weight: 550; letter-spacing: -.035em; }

.path-grid p { margin: .8rem 0 0; color: var(--muted); font-size: .73rem; line-height: 1.7; }

.path-grid b { position: absolute; right: 1.35rem; bottom: 1.25rem; left: 1.35rem; padding-top: .85rem; border-top: 1px solid var(--line); color: var(--cyan); font-family: var(--mono); font-size: .54rem; font-weight: 500; }

.version-archive { padding-block: 7rem; }

.version-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }

.version-grid>a { position: relative; display: grid; min-height: 92px; grid-template-columns: 26px 1fr auto; align-content: center; gap: .25rem .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 11px; background: rgba(6, 26, 32, .58); text-decoration: none; transition: border-color 180ms ease, background 180ms ease; }

.version-grid>a:hover { border-color: rgba(255, 122, 100, .4); background: rgba(10, 39, 46, .75); }

.version-grid>a>span { grid-row: 1 / span 2; align-self: center; color: rgba(152, 175, 171, .42); font-family: var(--mono); font-size: .5rem; }

.version-grid strong { color: var(--text); font-size: .78rem; font-weight: 550; }

.version-grid small { color: var(--muted); font-family: var(--mono); font-size: .49rem; }

.version-grid i { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--cyan); font-style: normal; }

.version-loading { color: var(--muted); font-family: var(--mono); font-size: .65rem; }

.docs-footer { border-top: 1px solid var(--line); }

.docs-footer>div { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-family: var(--mono); font-size: .57rem; }

.docs-footer a { color: var(--cyan); text-decoration: none; }

@media (max-width: 980px) {
    .docs-hero { grid-template-columns: 1fr; gap: 4rem; }
    .latest-card { max-width: 600px; }
    .path-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .docs-shell { width: min(calc(100% - 28px), 1160px); }
    .docs-nav-inner>div a:not(.docs-source) { display: none; }
    .docs-hero { min-height: auto; padding-block: 5rem; }
    .docs-copy h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
    .latest-card { min-height: 420px; }
    .docs-section-heading { grid-template-columns: 1fr; gap: 1rem; }
    .path-grid, .version-grid { grid-template-columns: 1fr; }
    .docs-footer>div { min-height: 100px; flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .001ms !important; }
}
