@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;
    --charcoal: #2c2c2c;
    --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;
    --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);
    --muted: #444444;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--void-black);
    color: var(--pure-white);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--pure-white);
    text-decoration: none;
}

a:hover {
    color: var(--cyan);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- NAVIGATION ---- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--void-black);
    border-bottom: 1px solid var(--border-06);
    padding: 0 24px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--pure-white);
}

.nav-logo span {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--ghost-white);
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--pure-white);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--pure-white);
    border-radius: 1px;
    transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
    padding: 100px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 400;
    line-height: 0.87;
    color: var(--pure-white);
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-desc {
    font-size: 18px;
    color: var(--ghost-white);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-image {
    margin-top: 64px;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-image img {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-10);
    position: relative;
    z-index: 1;
}

/* ---- SECTIONS ---- */
.section {
    padding: 80px 24px;
}

.section-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.0;
    color: var(--pure-white);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--ghost-white);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 48px;
}

/* ---- CARDS ---- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--pure-black);
    border: 1px solid var(--border-10);
    border-radius: 4px;
    padding: 28px;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: var(--border-12);
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.15);
}

.card-icon {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--cyan);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--pure-white);
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    color: var(--ghost-white);
    line-height: 1.63;
}

/* ---- ARTICLES GRID ---- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--pure-black);
    border: 1px solid var(--border-10);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.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;
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-tag {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--pure-white);
    margin-bottom: 10px;
}

.article-card p {
    font-size: 14px;
    color: var(--ghost-white);
    line-height: 1.63;
    margin-bottom: 20px;
    flex: 1;
}

.article-card-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.read-more {
    font-size: 14px;
    color: var(--signal-blue);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--cyan);
}

/* ---- STATS ---- */
.stats-section {
    padding: 80px 24px;
    border-top: 1px solid var(--border-08);
    border-bottom: 1px solid var(--border-08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 40px;
    font-weight: 500;
    color: var(--pure-white);
    line-height: 1.0;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--ghost-white);
}

/* ---- ARTICLE PAGE ---- */
.article-header {
    padding: 80px 24px 48px;
    max-width: 800px;
    margin: 0 auto;
}

.article-tag {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.0;
    color: var(--pure-white);
    margin-bottom: 24px;
}

.article-meta {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-featured-img {
    max-width: 1200px;
    margin: 0 auto 64px;
    padding: 0 24px;
}

.article-featured-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-10);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.article-body h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--pure-white);
    margin: 48px 0 20px;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--pure-white);
    margin: 32px 0 14px;
}

.article-body p {
    font-size: 16px;
    color: var(--ghost-white);
    line-height: 1.75;
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
    color: var(--ghost-white);
    font-size: 16px;
    line-height: 1.75;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body a {
    color: var(--signal-blue);
    border-bottom: 1px solid rgba(0,137,255,0.3);
    transition: color 0.2s;
}

.article-body a:hover {
    color: var(--cyan);
}

.article-body .note-box {
    background: var(--pure-black);
    border: 1px solid var(--border-10);
    border-left: 3px solid var(--cyan);
    border-radius: 4px;
    padding: 20px 24px;
    margin: 32px 0;
}

.article-body .note-box p {
    margin: 0;
    font-size: 15px;
}

/* ---- CONTACT FORM ---- */
.contact-section {
    padding: 80px 24px;
    background: var(--pure-black);
    border-top: 1px solid var(--border-08);
    border-bottom: 1px solid var(--border-08);
}

.contact-inner {
    max-width: 560px;
    margin: 0 auto;
}

.contact-inner h2 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.0;
    color: var(--pure-white);
    margin-bottom: 12px;
}

.contact-inner p {
    font-size: 15px;
    color: var(--ghost-white);
    margin-bottom: 36px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ghost-white);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-10);
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--pure-white);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.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;
}

.btn-primary {
    display: inline-block;
    background: var(--pure-white);
    color: #0a0a0a;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.btn-primary:hover {
    opacity: 0.88;
    color: #0a0a0a;
}

/* ---- FOOTER ---- */
.site-footer {
    padding: 64px 24px 40px;
    border-top: 1px solid var(--border-08);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--ghost-white);
    margin-top: 12px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--pure-white);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 14px;
    color: var(--ghost-white);
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--pure-white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--border-06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--ghost-white);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* ---- PAGE HEADER (about, privacy, terms) ---- */
.page-header {
    padding: 80px 24px 48px;
    text-align: center;
    border-bottom: 1px solid var(--border-08);
    max-width: 720px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.0;
    color: var(--pure-white);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 16px;
    color: var(--ghost-white);
    line-height: 1.6;
}

.page-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.page-body h2 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--pure-white);
    margin: 40px 0 16px;
}

.page-body p {
    font-size: 15px;
    color: var(--ghost-white);
    line-height: 1.75;
    margin-bottom: 16px;
}

.page-body ul {
    margin: 0 0 16px 24px;
    color: var(--ghost-white);
    font-size: 15px;
    line-height: 1.75;
}

.page-body li {
    margin-bottom: 6px;
}

.page-body a {
    color: var(--signal-blue);
}

.page-body a:hover {
    color: var(--cyan);
}

/* ---- COOKIE BANNER ---- */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: var(--pure-black);
    border: 1px solid var(--border-12);
    border-radius: 4px;
    padding: 20px 28px;
    max-width: 600px;
    width: calc(100% - 48px);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0px 8px 32px rgba(0,0,0,0.5);
}

.cookie-banner p {
    font-size: 14px;
    color: var(--ghost-white);
    line-height: 1.5;
    flex: 1;
}

.cookie-banner a {
    color: var(--signal-blue);
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--pure-white);
    color: #0a0a0a;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    opacity: 0.88;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--ghost-white);
    border: 1px solid var(--border-10);
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
    white-space: nowrap;
}

.btn-cookie-reject:hover {
    border-color: var(--border-12);
}

.cookie-hidden {
    display: none !important;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.breadcrumb a {
    color: var(--muted);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--ghost-white);
}

.breadcrumb-sep {
    color: var(--charcoal);
}

/* ---- DIVIDER ---- */
.divider {
    max-width: 1200px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--border-08);
}

/* ---- FORM SUCCESS ---- */
.form-success {
    display: none;
    padding: 16px;
    background: var(--pure-black);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 4px;
    color: var(--cyan);
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .cards-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--void-black);
        border-bottom: 1px solid var(--border-08);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-inner {
        position: relative;
    }

    .hero {
        padding: 60px 24px 48px;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.0;
    }

    .hero-desc {
        font-size: 16px;
    }

    .cards-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 4px 4px 0 0;
        width: 100%;
    }

    .article-header h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 30px;
    }

    .page-header h1 {
        font-size: 32px;
    }
}
