:root {
    --bg-0: #0a0f1b;
    --bg-1: #111a2d;
    --ink: #e6edf7;
    --muted: #9aa9bf;
    --primary: #4c6fff;
    --accent: #f59e0b;
    --accent-2: #22d3ee;
    --card: rgba(12, 18, 30, 0.78);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 60px rgba(5, 10, 20, 0.45);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --max-width: 1100px;
    --transition: 0.3s ease;
}

[data-theme="light"] {
    --bg-0: #f3f6fb;
    --bg-1: #e8edf6;
    --ink: #0f172a;
    --muted: #4b5f78;
    --card: rgba(255, 255, 255, 0.86);
    --border: rgba(15, 20, 35, 0.12);
    --shadow: 0 20px 45px rgba(20, 35, 60, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Sora", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #1a2440 0%, var(--bg-0) 45%, #080b14 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 55%, #0b1222 100%);
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.25;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: rgba(76, 111, 255, 0.55);
    top: -140px;
    left: -120px;
}

.orb-2 {
    width: 320px;
    height: 320px;
    background: rgba(34, 211, 238, 0.45);
    bottom: -100px;
    right: -80px;
}

.orb-3 {
    width: 260px;
    height: 260px;
    background: rgba(245, 158, 11, 0.45);
    top: 30%;
    right: 20%;
}

.theme-toggle {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(12, 18, 30, 0.7);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.theme-toggle:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.top-nav {
    position: sticky;
    top: 1.25rem;
    z-index: 9;
    padding: 1.25rem 0 0;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    background: rgba(10, 14, 24, 0.7);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(76, 111, 255, 0.35);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.page-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

.hero-card {
    margin-top: 2.5rem;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 0.8rem;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 760px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

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

.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.info-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.status-done {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(16, 185, 129, 0.12);
}

.status-dev {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(245, 158, 11, 0.12);
}

.status-future {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(59, 130, 246, 0.12);
}

.info-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    color: var(--muted);
}

.info-list li {
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.6;
}

.info-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--accent-2);
}

.doc-card {
    margin-top: 2.5rem;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.doc-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}

.doc-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.doc-section h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
}

.doc-section p {
    color: var(--muted);
    line-height: 1.7;
}

.doc-section ul {
    list-style: none;
    margin-top: 0.8rem;
    display: grid;
    gap: 0.6rem;
    color: var(--muted);
}

.doc-section ul li {
    position: relative;
    padding-left: 1.2rem;
}

.doc-section ul li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.doc-footer {
    margin-top: 2rem;
    color: var(--muted);
    font-style: italic;
    text-align: center;
}

.changelog-list {
    display: grid;
    gap: 1.6rem;
    margin-top: 2.5rem;
}

.log-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.log-card:hover {
    transform: translateY(-6px);
}

.log-card.featured {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 22px 55px rgba(245, 158, 11, 0.25);
}

.log-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.log-version {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
}

.log-date {
    color: var(--muted);
    font-size: 0.95rem;
}

.log-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
}

.site-footer {
    margin-top: 3.5rem;
    padding: 2rem 0 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 960px) {
    .nav-inner {
        flex-direction: column;
        gap: 1rem;
        border-radius: 24px;
    }

    .nav-links {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .hero-card,
    .doc-card,
    .log-card,
    .info-card {
        padding: 1.6rem;
    }

    .theme-toggle {
        right: 1rem;
        bottom: 1rem;
    }
}
