@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --void-black: #0f0f0f;
    --pure-black: #000000;
    --pure-white: #ffffff;
    --ghost-white: rgba(255,255,255,0.6);
    --whisper-white: rgba(255,255,255,0.5);
    --phantom-white: rgba(255,255,255,0.2);
    --cobalt: #0007cd;
    --cyan: #00ffff;
    --signal-blue: #0089ff;
    --ocean-blue: #0096ff;
    --charcoal: #2c2c2c;
    --muted-smoke: #444444;
    --border-12: rgba(255,255,255,0.12);
    --border-10: rgba(255,255,255,0.10);
    --border-08: rgba(255,255,255,0.08);
    --border-06: rgba(255,255,255,0.06);
    --border-04: rgba(255,255,255,0.04);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--void-black);
    color: var(--pure-white);
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--cyan);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--void-black);
    border-bottom: 1px solid var(--border-08);
    padding: 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 32px;
}

.nav-logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--pure-white);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.nav-logo span {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    color: var(--ghost-white);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--pure-white);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--pure-white);
    transition: all 0.3s;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 16px 0;
    border-top: 1px solid var(--border-06);
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    padding: 12px 0;
    font-size: 15px;
    color: var(--ghost-white);
    border-bottom: 1px solid var(--border-04);
}

.nav-mobile a:hover {
    color: var(--pure-white);
}

/* HERO */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--ghost-white);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -1px;
    max-width: 720px;
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: normal;
    color: var(--ghost-white);
}

.hero-desc {
    font-size: 18px;
    color: var(--ghost-white);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    color: var(--muted-smoke);
}

.hero-meta span {
    color: var(--ghost-white);
}

/* SECTION TITLES */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--ghost-white);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--ghost-white);
    max-width: 560px;
    margin-bottom: 48px;
}

/* ARTICLES GRID */
.articles-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-06);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--pure-black);
    border: 1px solid var(--border-10);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.article-card:hover {
    border-color: var(--border-12);
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.15);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--ghost-white);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    margin-bottom: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--pure-white);
}

.card-excerpt {
    font-size: 14px;
    color: var(--ghost-white);
    line-height: 1.63;
    margin-bottom: 20px;
}

.card-link {
    font-size: 13px;
    color: var(--signal-blue);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    transition: color 0.2s;
}

.card-link:hover {
    color: var(--cyan);
}

/* FEATURED ARTICLE */
.featured-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-06);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.featured-image {
    border: 1px solid var(--border-10);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.featured-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.featured-content .section-label {
    margin-bottom: 16px;
}

.featured-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.featured-content p {
    font-size: 15px;
    color: var(--ghost-white);
    line-height: 1.63;
    margin-bottom: 28px;
}

.btn-primary {
    display: inline-block;
    background: var(--pure-white);
    color: #111;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.88;
    color: #111;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--pure-white);
    padding: 9px 24px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid var(--signal-blue);
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* STATS */
.stats-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-06);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-06);
    border: 1px solid var(--border-06);
    border-radius: 4px;
    overflow: hidden;
}

.stat-item {
    background: var(--void-black);
    padding: 32px 24px;
    text-align: center;
}

.stat-number {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 2rem;
    font-weight: 400;
    color: var(--pure-white);
    line-height: 1.0;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--ghost-white);
}

/* TOPICS SECTION */
.topics-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-06);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.topic-card {
    background: var(--pure-black);
    border: 1px solid var(--border-08);
    border-radius: 4px;
    padding: 24px;
    transition: border-color 0.2s;
}

.topic-card:hover {
    border-color: var(--border-12);
}

.topic-icon {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--ghost-white);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.topic-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--pure-white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.topic-desc {
    font-size: 14px;
    color: var(--ghost-white);
    line-height: 1.63;
}

/* CONTACT FORM */
.contact-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-06);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 15px;
    color: var(--ghost-white);
    line-height: 1.63;
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-detail a {
    font-size: 14px;
    color: var(--ghost-white);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.contact-detail a:hover {
    color: var(--cyan);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--ghost-white);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: 1px solid var(--border-10);
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--pure-white);
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--whisper-white);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--signal-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    background: var(--pure-white);
    color: #111;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

.form-submit:hover {
    opacity: 0.88;
}

/* ARTICLE PAGE */
.article-hero {
    padding: 80px 0 60px;
}

.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.8px;
    max-width: 800px;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--ghost-white);
    margin-bottom: 40px;
}

.article-meta span {
    color: var(--muted-smoke);
}

.article-image {
    border: 1px solid var(--border-10);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 60px;
}

.article-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    padding-bottom: 80px;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin: 40px 0 16px;
    color: var(--pure-white);
}

.article-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 28px 0 12px;
    color: var(--pure-white);
}

.article-content p {
    font-size: 15px;
    color: var(--ghost-white);
    line-height: 1.8;
    margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 18px 20px;
}

.article-content li {
    font-size: 15px;
    color: var(--ghost-white);
    line-height: 1.8;
    margin-bottom: 6px;
}

.article-content strong {
    color: var(--pure-white);
    font-weight: 500;
}

.article-content a {
    color: var(--signal-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--cyan);
}

.article-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-box {
    background: var(--pure-black);
    border: 1px solid var(--border-10);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--ghost-white);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    margin-bottom: 16px;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-links a {
    font-size: 14px;
    color: var(--ghost-white);
    line-height: 1.4;
    transition: color 0.2s;
}

.sidebar-links a:hover {
    color: var(--pure-white);
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border-08);
    padding: 60px 0 32px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--ghost-white);
    line-height: 1.63;
    margin-top: 12px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--ghost-white);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--muted-smoke);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--pure-white);
}

.footer-bottom {
    border-top: 1px solid var(--border-06);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted-smoke);
}

.footer-bottom a {
    color: var(--muted-smoke);
    font-size: 13px;
}

.footer-bottom a:hover {
    color: var(--ghost-white);
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--pure-black);
    border-top: 1px solid var(--border-12);
    padding: 20px 24px;
    display: none;
}

#cookie-banner.visible {
    display: block;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-inner p {
    font-size: 14px;
    color: var(--ghost-white);
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.cookie-inner a {
    color: var(--signal-blue);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-accept {
    background: var(--pure-white);
    color: #111;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.cookie-reject {
    background: transparent;
    color: var(--ghost-white);
    border: 1px solid var(--charcoal);
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cookie-reject:hover {
    border-color: var(--border-12);
    color: var(--pure-white);
}

/* PAGE CONTENT */
.page-content {
    padding: 80px 0;
    max-width: 800px;
}

.page-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
}

.page-content h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 36px 0 14px;
    color: var(--pure-white);
}

.page-content p {
    font-size: 15px;
    color: var(--ghost-white);
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul {
    margin: 0 0 16px 20px;
}

.page-content li {
    font-size: 15px;
    color: var(--ghost-white);
    line-height: 1.8;
    margin-bottom: 6px;
}

.page-content a {
    color: var(--signal-blue);
}

.page-content a:hover {
    color: var(--cyan);
}

.page-meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--muted-smoke);
    margin-bottom: 48px;
}

/* DISCLAIMER */
.disclaimer {
    background: var(--pure-black);
    border: 1px solid var(--border-08);
    border-left: 2px solid var(--signal-blue);
    border-radius: 4px;
    padding: 20px 24px;
    margin: 48px 0;
}

.disclaimer p {
    font-size: 13px;
    color: var(--ghost-white);
    line-height: 1.63;
    margin: 0;
}

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 13px;
    color: var(--muted-smoke);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    border-bottom: 1px solid var(--border-06);
    margin-bottom: 40px;
}

.breadcrumb a {
    color: var(--muted-smoke);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--ghost-white);
}

.breadcrumb .sep {
    color: var(--border-12);
}

/* ABOUT PAGE */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    padding: 80px 0;
}

.about-image {
    border: 1px solid var(--border-10);
    border-radius: 4px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .topics-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .nav-links {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero {
        padding: 60px 0 50px;
    }
}
