@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0f0f0f;
    --black: #000000;
    --white: #ffffff;
    --cyan: #00ffff;
    --cobalt: #0007cd;
    --signal-blue: #0089ff;
    --ocean-blue: #0096ff;
    --charcoal: #2c2c2c;
    --ghost: rgba(255,255,255,0.6);
    --whisper: rgba(255,255,255,0.5);
    --phantom: rgba(255,255,255,0.2);
    --mist-12: rgba(255,255,255,0.12);
    --mist-10: rgba(255,255,255,0.10);
    --mist-08: rgba(255,255,255,0.08);
    --mist-06: rgba(255,255,255,0.06);
    --mist-04: rgba(255,255,255,0.04);
    --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--black);
    border-bottom: 1px solid var(--mist-08);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.5px;
}
.nav-logo:hover { color: var(--cyan); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 15px;
    color: var(--ghost);
    font-weight: 400;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    background: var(--black);
    border: 1px solid var(--mist-10);
    border-radius: 4px;
    min-width: 220px;
    list-style: none;
    padding: 8px 0;
    box-shadow: 0px 8px 32px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--ghost);
}
.nav-dropdown-menu li a:hover { color: var(--white); background: var(--mist-04); }

/* HERO */
.hero {
    padding: 96px 0 80px;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,255,255,0.06) 0%, transparent 60%);
    border-bottom: 1px solid var(--mist-06);
    text-align: center;
}
.hero-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(0,255,255,0.25);
    padding: 4px 12px;
    border-radius: 37px;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -1px;
    color: var(--white);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-lead {
    font-size: 18px;
    color: var(--ghost);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.hero-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--whisper);
    letter-spacing: 0.3px;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-header { margin-bottom: 48px; }
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--signal-blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.0;
    color: var(--white);
    margin-bottom: 16px;
}
.section-desc { font-size: 16px; color: var(--ghost); max-width: 560px; }

/* ARTICLE CARDS */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    background: var(--black);
    border: 1px solid var(--mist-10);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.article-card:hover {
    border-color: var(--mist-12);
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.15);
}
.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}
.article-card-body { padding: 24px; }
.article-card-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--signal-blue);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.article-card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 12px;
}
.article-card-excerpt {
    font-size: 14px;
    color: var(--ghost);
    line-height: 1.6;
    margin-bottom: 20px;
}
.article-card-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--whisper);
}
.article-card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: var(--cyan);
    font-family: var(--font-mono);
    letter-spacing: -0.2px;
}
.article-card-link:hover { color: var(--white); }

/* INFO GRID */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.info-card {
    background: var(--black);
    border: 1px solid var(--mist-10);
    border-radius: 4px;
    padding: 28px;
}
.info-card-num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 400;
    color: var(--cyan);
    letter-spacing: -1px;
    line-height: 1.0;
    margin-bottom: 8px;
}
.info-card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
}
.info-card-desc { font-size: 14px; color: var(--ghost); line-height: 1.6; }

/* CONTACT FORM */
.contact-section {
    padding: 80px 0;
    border-top: 1px solid var(--mist-06);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact-info h2 { font-size: 36px; font-weight: 400; line-height: 1.0; margin-bottom: 16px; }
.contact-info p { font-size: 15px; color: var(--ghost); line-height: 1.6; margin-bottom: 24px; }
.contact-detail {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ghost);
    margin-bottom: 8px;
}
.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-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--whisper);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.form-input {
    background: transparent;
    border: 1px solid var(--mist-10);
    border-radius: 4px;
    padding: 12px 14px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.form-input::placeholder { color: var(--whisper); }
.form-input:focus { border-color: var(--signal-blue); }
.btn-submit {
    background: var(--white);
    color: #0a0a0a;
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.88; }
.form-status {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 4px;
    display: none;
}
.form-status.success {
    display: block;
    background: rgba(0,255,255,0.08);
    border: 1px solid rgba(0,255,255,0.2);
    color: var(--cyan);
}
.form-status.error {
    display: block;
    background: rgba(255,60,60,0.08);
    border: 1px solid rgba(255,60,60,0.2);
    color: #ff6b6b;
}

/* ARTICLE PAGE */
.article-header {
    padding: 80px 0 48px;
    border-bottom: 1px solid var(--mist-06);
}
.article-header-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--signal-blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}
.article-header h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.0;
    color: var(--white);
    margin-bottom: 20px;
    max-width: 780px;
}
.article-header-lead {
    font-size: 18px;
    color: var(--ghost);
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.article-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--whisper);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.article-body { padding: 56px 0 80px; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
.article-content h2 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin: 40px 0 16px;
}
.article-content h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    margin: 28px 0 12px;
}
.article-content p {
    font-size: 15px;
    color: var(--ghost);
    line-height: 1.7;
    margin-bottom: 18px;
}
.article-content ul, .article-content ol {
    padding-left: 20px;
    margin-bottom: 18px;
}
.article-content li {
    font-size: 15px;
    color: var(--ghost);
    line-height: 1.7;
    margin-bottom: 6px;
}
.article-content a { color: var(--signal-blue); }
.article-content a:hover { color: var(--cyan); }
.article-content strong { color: var(--white); font-weight: 500; }
.article-content .highlight-box {
    background: var(--black);
    border: 1px solid var(--mist-10);
    border-left: 3px solid var(--cyan);
    border-radius: 4px;
    padding: 20px 24px;
    margin: 24px 0;
}
.article-content .highlight-box p { margin-bottom: 0; }
.article-content figure { margin: 32px 0; }
.article-content figcaption {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--whisper);
    margin-top: 8px;
}
.article-sidebar { position: sticky; top: 80px; }
.sidebar-card {
    background: var(--black);
    border: 1px solid var(--mist-10);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-card-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--signal-blue);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.sidebar-toc { list-style: none; }
.sidebar-toc li { margin-bottom: 10px; }
.sidebar-toc a {
    font-size: 14px;
    color: var(--ghost);
    line-height: 1.4;
}
.sidebar-toc a:hover { color: var(--cyan); }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a { font-size: 14px; color: var(--ghost); }
.sidebar-links a:hover { color: var(--cyan); }

/* BREADCRUMB */
.breadcrumb {
    padding: 16px 0;
    border-bottom: 1px solid var(--mist-04);
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumb li {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--whisper);
}
.breadcrumb li + li::before { content: '/'; margin-right: 8px; }
.breadcrumb a { color: var(--ghost); }
.breadcrumb a:hover { color: var(--cyan); }

/* GENERIC PAGE */
.page-header {
    padding: 72px 0 48px;
    border-bottom: 1px solid var(--mist-06);
}
.page-header h1 { font-size: clamp(28px, 3vw, 44px); font-weight: 400; line-height: 1.0; margin-bottom: 16px; }
.page-body { padding: 56px 0 80px; max-width: 760px; }
.page-body h2 { font-size: 24px; font-weight: 400; color: var(--white); margin: 36px 0 12px; }
.page-body h3 { font-size: 18px; font-weight: 500; color: var(--white); margin: 24px 0 10px; }
.page-body p { font-size: 15px; color: var(--ghost); line-height: 1.7; margin-bottom: 16px; }
.page-body ul, .page-body ol { padding-left: 20px; margin-bottom: 16px; }
.page-body li { font-size: 15px; color: var(--ghost); line-height: 1.7; margin-bottom: 6px; }
.page-updated { font-family: var(--font-mono); font-size: 12px; color: var(--whisper); margin-bottom: 32px; }

/* FOOTER */
.site-footer {
    background: var(--black);
    border-top: 1px solid var(--mist-08);
    padding: 64px 0 32px;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-logo {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    display: block;
    margin-bottom: 12px;
}
.footer-desc { font-size: 14px; color: var(--ghost); line-height: 1.6; margin-bottom: 16px; }
.footer-address { font-size: 13px; color: var(--whisper); line-height: 1.7; }
.footer-heading {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--whisper);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: var(--ghost); }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
    border-top: 1px solid var(--mist-06);
    padding-top: 24px;
}
.footer-bottom p { font-size: 13px; color: var(--whisper); margin-bottom: 8px; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.6; }
.footer-disclaimer a { color: rgba(255,255,255,0.4); }
.footer-disclaimer a:hover { color: var(--ghost); }

/* COOKIE */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 720px;
    background: var(--black);
    border: 1px solid var(--mist-10);
    border-radius: 4px;
    padding: 20px 24px;
    z-index: 1000;
    box-shadow: 0px 8px 32px rgba(0,0,0,0.5);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-inner p { font-size: 14px; color: var(--ghost); }
.cookie-inner a { color: var(--signal-blue); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--white);
    color: #0a0a0a;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-cookie-accept:hover { opacity: 0.88; }
.btn-cookie-reject {
    background: transparent;
    color: var(--ghost);
    border: 1px solid var(--charcoal);
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: border-color 0.2s;
}
.btn-cookie-reject:hover { border-color: var(--mist-12); color: var(--white); }

/* RELATED */
.related-section { padding: 64px 0; border-top: 1px solid var(--mist-06); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--black);
        border-bottom: 1px solid var(--mist-08);
        padding: 16px 24px;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--mist-04); }
    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--mist-08);
        padding: 4px 0 4px 12px;
        margin-top: 8px;
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-toggle { display: flex; }
    .site-nav { position: relative; }
    .articles-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 48px; }
    .section { padding: 56px 0; }
}
