:root {
    --bg: #080a0f;
    --surface: #111722;
    --surface-strong: #171f2d;
    --line: rgba(255, 255, 255, 0.11);
    --text: #f4f7fb;
    --muted: #a9b4c4;
    --soft: #748197;
    --blue: #5ab3ff;
    --mint: #69d6a3;
    --amber: #f0c96a;
    --rose: #f28aaa;
    --violet: #a99bff;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(90, 179, 255, 0.18), transparent 32rem),
        radial-gradient(circle at 85% 10%, rgba(240, 201, 106, 0.12), transparent 28rem),
        linear-gradient(180deg, #080a0f 0%, #0d1118 42%, #090b10 100%);
    line-height: 1.6;
}

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

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 15, 0.82);
    backdrop-filter: blur(18px);
}

.nav-inner {
    width: min(var(--max), calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 650;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.page-shell {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.page-compact {
    max-width: 980px;
}

.archive-header {
    padding: 66px 0 28px;
    border-bottom: 1px solid var(--line);
}

.archive-header h1 {
    max-width: 820px;
    margin: 22px 0 16px;
    font-size: clamp(2.35rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.archive-header p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 48px;
    padding: 74px 0 58px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(105, 214, 163, 0.32);
    border-radius: 8px;
    color: var(--mint);
    background: rgba(105, 214, 163, 0.08);
    font-size: 0.83rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.9rem);
    line-height: 1;
    letter-spacing: 0;
}

.hero p {
    max-width: 680px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 760;
    border: 1px solid var(--line);
}

.button.primary {
    color: #061018;
    background: var(--blue);
    border-color: transparent;
}

.button.secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

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

.hero-visual {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    align-items: center;
    gap: 14px;
}

.app-shot {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #0b0f18;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

.app-shot.small {
    transform: translateY(28px);
}

.app-shot img {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    object-position: top center;
}

.section {
    padding: 58px 0;
}

.version-section,
.article-section,
.taxonomy-section {
    padding-top: 36px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.section-header p {
    max-width: 550px;
    margin: 0;
    color: var(--muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0 0;
}

.stat {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.stat strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.45rem;
}

.stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 23, 34, 0.78);
    overflow: hidden;
}

.card-body {
    padding: 22px;
}

.card time,
.meta {
    color: var(--soft);
    font-size: 0.88rem;
    font-weight: 650;
}

.card h2,
.card h3 {
    margin: 12px 0 10px;
    font-size: 1.28rem;
    line-height: 1.22;
    letter-spacing: 0;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
}

.tag {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 740;
    color: #091018;
}

.tag.blue {
    background: var(--blue);
}

.tag.mint {
    background: var(--mint);
}

.tag.amber {
    background: var(--amber);
}

.tag.rose {
    background: var(--rose);
}

.tag.violet {
    background: var(--violet);
}

.timeline {
    position: relative;
    display: grid;
    gap: 16px;
}

.release {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.045);
}

.release-head strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.35rem;
}

.release-head time {
    color: var(--soft);
    font-weight: 650;
}

.release h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    letter-spacing: 0;
}

.release ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.release li + li {
    margin-top: 7px;
}

.feature-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.feature-band div {
    min-height: 120px;
}

.feature-band strong {
    display: block;
    margin-bottom: 8px;
}

.feature-band p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 18px;
}

.post-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 23, 34, 0.78);
    overflow: hidden;
}

.article-list {
    display: grid;
    gap: 16px;
}

.article-card {
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
    border-color: rgba(90, 179, 255, 0.38);
    background: rgba(20, 29, 43, 0.9);
    transform: translateY(-1px);
}

.post-card.featured {
    display: grid;
    grid-template-columns: 0.95fr 1fr;
}

.post-media {
    min-height: 260px;
    background: #0b0f18;
}

.post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.post-content {
    padding: 24px;
}

.post-content h2 {
    margin: 14px 0 12px;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.post-content p {
    margin: 0 0 18px;
    color: var(--muted);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 780;
}

.read-more:hover {
    color: var(--mint);
}

.aside-stack {
    display: grid;
    gap: 18px;
}

.topic-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.tag-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-chip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    font-weight: 720;
}

.tag-chip span {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #061018;
    background: var(--mint);
    font-size: 0.78rem;
}

.tag-chip:hover,
.tag-chip.active {
    color: var(--text);
    border-color: rgba(105, 214, 163, 0.4);
    background: rgba(105, 214, 163, 0.09);
}

.topic {
    display: block;
    min-height: 96px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.topic:hover {
    border-color: rgba(105, 214, 163, 0.34);
    background: rgba(255, 255, 255, 0.07);
}

.topic strong {
    display: block;
    margin-bottom: 6px;
}

.topic span {
    color: var(--muted);
    font-size: 0.9rem;
}

.cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    margin: 56px 0 76px;
    padding: 28px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(90, 179, 255, 0.14), rgba(105, 214, 163, 0.08));
}

.cta h2 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    letter-spacing: 0;
}

.cta p {
    margin: 0;
    color: var(--muted);
}

.app-store img {
    width: 178px;
    height: auto;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pagination a {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    font-weight: 720;
}

.pagination a:hover,
.pagination a.active {
    color: var(--text);
    border-color: rgba(90, 179, 255, 0.38);
    background: rgba(90, 179, 255, 0.12);
}

.empty-state {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
}

.post-page {
    max-width: 860px;
}

.post-article {
    padding: 58px 0 76px;
}

.post-top {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--blue);
    font-weight: 760;
}

.back-link:hover {
    color: var(--mint);
}

.post-top h1 {
    margin: 14px 0 16px;
    font-size: clamp(2.15rem, 4.7vw, 4rem);
    line-height: 1.06;
    letter-spacing: 0;
}

.post-top p {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.post-body {
    padding-top: 30px;
    color: var(--muted);
    font-size: 1.03rem;
}

.post-body h1,
.post-body h2,
.post-body h3 {
    color: var(--text);
    letter-spacing: 0;
}

.post-body h1 {
    font-size: 2.1rem;
}

.post-body h2 {
    margin-top: 2.2rem;
    font-size: 1.65rem;
}

.post-body h3 {
    margin-top: 1.7rem;
    font-size: 1.25rem;
}

.post-body p,
.post-body li {
    color: var(--muted);
}

.post-body a {
    color: var(--blue);
}

.post-body ul,
.post-body ol {
    padding-left: 1.35rem;
}

.post-body blockquote {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--blue);
    background: rgba(90, 179, 255, 0.08);
    color: var(--text);
}

.post-body img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.post-body figure {
    margin: 28px 0;
}

.post-body figure img {
    width: 100%;
}

.post-body figcaption {
    margin-top: 9px;
    color: var(--soft);
    font-size: 0.92rem;
    text-align: center;
}

.post-download-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 22px;
    margin-top: 42px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(90, 179, 255, 0.14), rgba(105, 214, 163, 0.08));
}

.post-download-cta h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.post-download-cta p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.18);
}

.footer-inner {
    width: min(var(--max), calc(100% - 40px));
    min-height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--soft);
    font-size: 0.94rem;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a:hover {
    color: var(--text);
}

@media (max-width: 920px) {
    .hero,
    .blog-grid,
    .post-card.featured,
    .cta,
    .post-download-cta {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 52px;
    }

    .archive-header {
        padding-top: 48px;
    }

    .hero-visual {
        max-width: 620px;
    }

    .grid,
    .stats,
    .feature-band,
    .topic-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .release {
        grid-template-columns: 1fr;
    }

    .section-header {
        display: block;
    }

    .section-header p {
        margin-top: 12px;
    }
}

@media (max-width: 640px) {
    .nav-inner {
        width: min(var(--max), calc(100% - 28px));
        min-height: 64px;
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 4px;
    }

    .nav-links a {
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .page-shell,
    .footer-inner {
        width: min(var(--max), calc(100% - 28px));
    }

    .hero {
        padding-top: 42px;
        gap: 32px;
    }

    .hero-actions,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .app-shot.small {
        transform: translateY(18px);
    }

    .grid,
    .stats,
    .feature-band,
    .topic-list {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 42px 0;
    }

    .archive-header {
        padding: 38px 0 24px;
    }

    .card-body,
    .post-content,
    .release,
    .cta,
    .post-download-cta {
        padding: 18px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}
