@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;
    --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(--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(--signal-blue);
    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: var(--pure-black);
    border-bottom: 1px solid var(--border-06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.nav-logo {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-logo:hover {
    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(--white);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--pure-black);
    border-top: 1px solid var(--border-06);
    padding: 16px 24px 24px;
    gap: 16px;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    color: var(--ghost-white);
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-04);
}

.nav-mobile a:hover {
    color: var(--white);
}

/* HERO */
.hero {
    padding: 100px 0 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;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 400;
    line-height: 0.9;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto 24px;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ghost-white);
    max-width: 640px;
    margin: 0 auto 48px;
}

/* SECTION TITLES */
.section-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--ghost-white);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.0;
    color: var(--white);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--ghost-white);
    line-height: 1.6;
    max-width: 600px;
}

/* CARDS */
.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);
}

.card-brutalist {
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--border-08);
}

.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;
    display: inline-block;
}

.card h2, .card h3 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    color: var(--ghost-white);
    line-height: 1.63;
}

.card-meta {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.read-more {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: var(--signal-blue);
    border-bottom: 1px solid var(--border-08);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.read-more:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* GRIDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* SECTIONS */
.section {
    padding: 80px 0;
    border-top: 1px solid var(--border-04);
}

.section-header {
    margin-bottom: 48px;
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-08);
    border: 1px solid var(--border-08);
    border-radius: 4px;
    overflow: hidden;
}

.stat-item {
    background: var(--pure-black);
    padding: 32px 24px;
    text-align: center;
}

.stat-number {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 36px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--ghost-white);
}

/* CLUSTER BOXES */
.cluster-item {
    background: var(--pure-black);
    border: 1px solid var(--border-10);
    border-radius: 4px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cluster-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
}

.cluster-sub {
    font-size: 14px;
    color: var(--ghost-white);
    line-height: 1.5;
}

.cluster-tag {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* FORM */
.contact-form {
    background: var(--pure-black);
    border: 1px solid var(--border-10);
    border-radius: 4px;
    padding: 40px;
    max-width: 560px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ghost-white);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-10);
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--white);
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--signal-blue);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--whisper-white);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn-primary {
    background: var(--white);
    color: #0a0a0a;
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--signal-blue);
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ARTICLE PAGE */
.article-header {
    padding: 80px 0 48px;
    border-bottom: 1px solid var(--border-06);
    margin-bottom: 56px;
}

.article-header h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.0;
    margin: 16px 0 20px;
}

.article-meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.article-featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-08);
    margin-bottom: 48px;
}

.article-body {
    max-width: 760px;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.0;
    margin: 48px 0 16px;
    color: var(--white);
}

.article-body h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    margin: 32px 0 12px;
    color: var(--white);
}

.article-body p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ghost-white);
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
    color: var(--ghost-white);
    line-height: 1.75;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body a {
    color: var(--signal-blue);
    border-bottom: 1px solid var(--border-08);
    padding-bottom: 1px;
}

.article-body a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    padding-bottom: 80px;
}

.article-sidebar .card {
    position: sticky;
    top: 84px;
}

.article-sidebar h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-links a {
    font-size: 14px;
    color: var(--ghost-white);
    line-height: 1.4;
}

.sidebar-links a:hover {
    color: var(--white);
}

/* INLINE CODE */
code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    background: var(--pure-black);
    border: 1px solid var(--border-10);
    border-radius: 2px;
    padding: 2px 6px;
    color: var(--cyan);
    letter-spacing: -0.28px;
}

/* DISCLAIMER */
.disclaimer {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-06);
    border-radius: 4px;
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 40px 0;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border-08);
    padding: 56px 0 32px;
    background: var(--pure-black);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--ghost-white);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-contact {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--ghost-white);
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--border-04);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 13px;
    color: var(--muted);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--muted);
}

.footer-legal a:hover {
    color: var(--white);
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--white);
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 560px;
    background: var(--pure-black);
    border: 1px solid var(--border-12);
    border-radius: 4px;
    padding: 24px 28px;
    z-index: 999;
    box-shadow: 0px 8px 32px rgba(0,0,0,0.5);
}

.cookie-text {
    font-size: 14px;
    color: var(--ghost-white);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-text a {
    color: var(--signal-blue);
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie-accept {
    background: var(--white);
    color: #0a0a0a;
    border: none;
    border-radius: 4px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--ghost-white);
    border: 1px solid var(--charcoal);
    border-radius: 4px;
    padding: 9px 20px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}

.btn-cookie-reject:hover {
    border-color: var(--border-12);
    color: var(--white);
}

/* PAGE HEADER (about, privacy etc) */
.page-header {
    padding: 80px 0 48px;
    border-bottom: 1px solid var(--border-06);
    margin-bottom: 56px;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.0;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 16px;
    color: var(--ghost-white);
    max-width: 560px;
}

.page-body {
    max-width: 760px;
    padding-bottom: 80px;
}

.page-body h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    margin: 40px 0 14px;
    color: var(--white);
}

.page-body p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ghost-white);
    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);
}

/* ABOUT PAGE */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 80px;
}

.about-img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-08);
    position: sticky;
    top: 84px;
}

/* FORM SUCCESS */
.form-success {
    display: none;
    background: rgba(0,255,255,0.06);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 4px;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--cyan);
    margin-top: 16px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar .card { position: static; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 48px; }
    .hero h1 { font-size: 32px; line-height: 1.0; }
    .section { padding: 48px 0; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    #cookie-banner { bottom: 0; left: 0; right: 0; border-radius: 4px 4px 0 0; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .hero h1 { font-size: 26px; }
}
