@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;
    --bg-card: #000000;
    --cobalt: #0007cd;
    --cyan: #00ffff;
    --signal-blue: #0089ff;
    --ocean-blue: #0096ff;
    --charcoal: #2c2c2c;
    --white: #ffffff;
    --ghost: rgba(255,255,255,0.6);
    --whisper: rgba(255,255,255,0.5);
    --phantom: rgba(255,255,255,0.2);
    --muted: #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);
    --font-main: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --radius-card: 4px;
    --radius-pill: 37px;
    --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: var(--font-main); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
address { font-style: normal; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* NAV */
.site-nav { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border-06); }
.nav-container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-family: var(--font-mono); font-size: 17px; font-weight: 500; color: var(--white); text-decoration: none; letter-spacing: -0.3px; }
.nav-logo span { color: var(--cyan); }
.logo-mark { font-family: var(--font-mono); font-size: 13px; font-weight: 500; background: var(--cobalt); color: var(--white); padding: 4px 8px; border-radius: 2px; letter-spacing: 0.3px; }
.logo-text { font-family: var(--font-main); font-size: 16px; font-weight: 600; color: var(--white); }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu > li > a { font-size: 16px; color: var(--ghost); transition: color 0.2s; padding: 4px 0; }
.nav-menu > li > a:hover, .nav-menu > li > a[aria-current="page"] { color: var(--white); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { background: none; border: none; color: var(--ghost); font-family: var(--font-main); font-size: 16px; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 0; transition: color 0.2s; }
.nav-dropdown-toggle:hover { color: var(--white); }
.caret { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown.open .caret { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; background: var(--bg-card); border: 1px solid var(--border-10); border-radius: var(--radius-card); min-width: 260px; padding: 8px 0; display: none; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 10px 20px; font-size: 14px; color: var(--ghost); transition: color 0.2s, background 0.2s; }
.dropdown-menu li a:hover { color: var(--white); background: var(--border-04); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* COOKIE */
.cookie-banner { display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--bg-card); border: 1px solid var(--border-12); border-radius: var(--radius-card); max-width: 640px; width: calc(100% - 48px); box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.cookie-banner.visible { display: block; }
.cookie-inner { padding: 20px 24px; }
.cookie-inner p { font-size: 14px; color: var(--ghost); line-height: 1.6; margin-bottom: 16px; }
.cookie-inner a { color: var(--signal-blue); }
.cookie-actions { display: flex; gap: 12px; }
.btn-cookie-accept { background: var(--white); color: #111; font-size: 14px; font-weight: 500; padding: 8px 20px; border: none; border-radius: var(--radius-pill); cursor: pointer; font-family: var(--font-main); transition: opacity 0.2s; }
.btn-cookie-accept:hover { opacity: 0.88; }
.btn-cookie-reject { background: transparent; color: var(--ghost); font-size: 14px; padding: 8px 20px; border: 1px solid var(--charcoal); border-radius: var(--radius-pill); cursor: pointer; font-family: var(--font-main); transition: border-color 0.2s, color 0.2s; }
.btn-cookie-reject:hover { border-color: var(--border-12); color: var(--white); }

/* HERO */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: radial-gradient(ellipse at center, rgba(0,255,255,0.06) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.hero-overline { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase; color: var(--cyan); margin-bottom: 24px; }
.hero-title { font-size: 64px; font-weight: 400; line-height: 0.87; color: var(--white); margin-bottom: 28px; max-width: 820px; }
.hero-desc { font-size: 18px; color: var(--ghost); line-height: 1.6; max-width: 560px; margin-bottom: 40px; }
.hero-meta { display: flex; align-items: center; gap: 24px; }
.hero-updated { font-family: var(--font-mono); font-size: 12px; color: var(--whisper); letter-spacing: 0.3px; }
.hero-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--ghost); border: 1px solid var(--border-10); padding: 4px 10px; border-radius: 2px; }

/* SECTION LABELS */
.section-label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }

/* FEATURE GRID */
.features-section { padding: 80px 0; }
.features-heading { font-size: 40px; font-weight: 400; line-height: 1.0; color: var(--white); margin-bottom: 48px; max-width: 600px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-10); border-radius: var(--radius-card); padding: 28px; position: relative; transition: border-color 0.2s; }
.feature-card:hover { border-color: var(--border-12); }
.feature-card::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-card); background: radial-gradient(ellipse at top left, rgba(0,255,255,0.04) 0%, transparent 60%); pointer-events: none; }
.feature-icon { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.55px; text-transform: uppercase; color: var(--signal-blue); margin-bottom: 16px; }
.feature-title { font-size: 20px; font-weight: 500; line-height: 1.2; color: var(--white); margin-bottom: 12px; }
.feature-desc { font-size: 15px; color: var(--ghost); line-height: 1.63; }

/* ARTICLES SECTION */
.articles-section { padding: 80px 0; border-top: 1px solid var(--border-06); }
.articles-heading { font-size: 40px; font-weight: 400; line-height: 1.0; color: var(--white); margin-bottom: 48px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: var(--bg-card); border: 1px solid var(--border-10); border-radius: var(--radius-card); overflow: hidden; box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.15); transition: border-color 0.2s, transform 0.2s; }
.article-card:hover { border-color: var(--border-12); transform: translateY(-2px); }
.article-card-img { width: 100%; height: 220px; object-fit: cover; }
.article-card-body { padding: 24px; }
.article-card-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.55px; text-transform: uppercase; color: var(--signal-blue); margin-bottom: 12px; }
.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.63; margin-bottom: 20px; }
.article-card-meta { display: flex; align-items: center; justify-content: space-between; }
.article-card-date { font-family: var(--font-mono); font-size: 12px; color: var(--whisper); letter-spacing: 0.3px; }
.article-card-link { font-size: 14px; color: var(--signal-blue); font-weight: 500; }
.article-card-link:hover { color: var(--cyan); }

/* STATS SECTION */
.stats-section { padding: 80px 0; border-top: 1px solid var(--border-06); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-block { border: 1px solid var(--border-08); border-radius: var(--radius-card); padding: 28px 24px; }
.stat-num { font-family: var(--font-mono); font-size: 40px; font-weight: 400; color: var(--white); line-height: 1.0; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--ghost); line-height: 1.4; }

/* HERO IMAGE */
.hero-image-wrap { margin-top: 64px; border: 1px solid var(--border-10); border-radius: var(--radius-card); overflow: hidden; position: relative; }
.hero-image-wrap::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center bottom, rgba(0,150,255,0.1) 0%, transparent 70%); z-index: 1; pointer-events: none; }
.hero-img { width: 100%; height: 480px; object-fit: cover; display: block; }

/* CONTACT SECTION */
.contact-section { padding: 80px 0; border-top: 1px solid var(--border-06); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-heading { font-size: 40px; font-weight: 400; line-height: 1.0; color: var(--white); margin-bottom: 16px; }
.contact-desc { font-size: 15px; color: var(--ghost); line-height: 1.63; margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-info-item { font-size: 15px; color: var(--ghost); }
.contact-info-item a { color: var(--signal-blue); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--ghost); }
.form-input { background: transparent; border: 1px solid var(--border-10); border-radius: var(--radius-card); padding: 12px 16px; font-size: 15px; color: var(--white); font-family: var(--font-main); transition: border-color 0.2s; }
.form-input::placeholder { color: var(--whisper); }
.form-input:focus { outline: none; border-color: var(--signal-blue); }
.form-submit { background: var(--white); color: #111; font-size: 15px; font-weight: 500; padding: 12px 28px; border: none; border-radius: var(--radius-pill); cursor: pointer; font-family: var(--font-main); align-self: flex-start; transition: opacity 0.2s; }
.form-submit:hover { opacity: 0.88; }

/* ARTICLE PAGE */
.article-page { padding-bottom: 80px; }
.article-breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--whisper); letter-spacing: 0.3px; margin: 32px 0 24px; display: flex; gap: 8px; align-items: center; }
.article-breadcrumb a { color: var(--ghost); transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--white); }
.article-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--signal-blue); margin-bottom: 20px; }
.article-hero { padding: 64px 0 48px; }
.article-header { max-width: 760px; }
.article-category { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--signal-blue); margin-bottom: 20px; }
.article-title { font-size: 48px; font-weight: 400; line-height: 1.0; color: var(--white); margin-bottom: 20px; }
.article-subtitle { font-size: 20px; color: var(--ghost); line-height: 1.4; margin-bottom: 28px; }
.article-dateline { font-family: var(--font-mono); font-size: 12px; color: var(--whisper); letter-spacing: 0.3px; }
.article-featured-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius-card); border: 1px solid var(--border-10); margin: 48px 0; }
.article-body { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; padding: 0 0 80px; }
.article-content { max-width: 100%; }
.article-content h2 { font-size: 28px; font-weight: 400; line-height: 1.2; color: var(--white); margin: 40px 0 16px; }
.article-content h3 { font-size: 22px; font-weight: 500; line-height: 1.2; color: var(--white); margin: 32px 0 12px; }
.article-content p { font-size: 16px; color: var(--ghost); line-height: 1.75; margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { font-size: 16px; color: var(--ghost); line-height: 1.75; margin-bottom: 8px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content a { color: var(--signal-blue); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--cyan); }
.article-content blockquote { border-left: 2px solid var(--signal-blue); padding: 12px 20px; margin: 24px 0; background: var(--border-04); border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.article-content blockquote p { color: var(--whisper); font-style: italic; margin: 0; }
.article-sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border-10); border-radius: var(--radius-card); padding: 24px; margin-bottom: 20px; }
.sidebar-card-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--ghost); margin-bottom: 16px; }
.sidebar-links { display: flex; flex-direction: column; gap: 10px; }
.sidebar-links a { font-size: 14px; color: var(--ghost); line-height: 1.4; transition: color 0.2s; }
.sidebar-links a:hover { color: var(--white); }
.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-list a { font-size: 13px; color: var(--ghost); line-height: 1.4; transition: color 0.2s; padding-left: 12px; border-left: 1px solid var(--border-08); }
.toc-list a:hover { color: var(--white); border-left-color: var(--signal-blue); }

/* PAGE */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--border-06); }
.page-title { font-size: 48px; font-weight: 400; line-height: 1.0; color: var(--white); margin-bottom: 16px; }
.page-subtitle { font-size: 18px; color: var(--ghost); max-width: 560px; line-height: 1.6; }
.page-content { padding: 64px 0 80px; max-width: 760px; }
.page-content h2 { font-size: 28px; font-weight: 400; line-height: 1.2; color: var(--white); margin: 40px 0 16px; }
.page-content h3 { font-size: 20px; font-weight: 500; color: var(--white); margin: 28px 0 12px; }
.page-content p { font-size: 16px; color: var(--ghost); line-height: 1.75; margin-bottom: 20px; }
.page-content ul { margin: 0 0 20px 24px; list-style: disc; }
.page-content li { font-size: 16px; color: var(--ghost); line-height: 1.75; margin-bottom: 8px; }
.page-content a { color: var(--signal-blue); }
.page-updated { font-family: var(--font-mono); font-size: 12px; color: var(--whisper); letter-spacing: 0.3px; margin-top: 48px; }

/* FOOTER */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border-08); padding: 64px 0 32px; }
.footer-container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: var(--ghost); line-height: 1.6; margin-bottom: 20px; }
.footer-contact p { font-size: 14px; color: var(--ghost); line-height: 1.75; }
.footer-contact a { color: var(--signal-blue); }
.footer-heading { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--ghost); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--ghost); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border-06); padding-top: 24px; }
.footer-legal { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-copy a { color: var(--ghost); }
.footer-copy a:hover { color: var(--white); }

/* BREADCRUMB */
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--whisper); letter-spacing: 0.3px; margin-bottom: 24px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--ghost); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: var(--muted); }

/* DIVIDER */
.section-divider { border: none; border-top: 1px solid var(--border-06); margin: 0; }

/* INTRO BAND */
.intro-band { padding: 64px 0; border-top: 1px solid var(--border-06); }
.intro-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.intro-band-img { border-radius: var(--radius-card); border: 1px solid var(--border-10); overflow: hidden; box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.15); }
.intro-band-img img { width: 100%; height: 360px; object-fit: cover; }
.intro-band-text .section-label { margin-bottom: 16px; }
.intro-band-heading { font-size: 32px; font-weight: 400; line-height: 1.0; color: var(--white); margin-bottom: 16px; }
.intro-band-desc { font-size: 15px; color: var(--ghost); line-height: 1.63; margin-bottom: 20px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-title { font-size: 40px; }
    .features-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .article-body { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .intro-band-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 28px; }
    .hero { padding: 64px 0 48px; }
    .features-grid, .articles-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .nav-menu { display: none; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border-08); padding: 16px 24px; }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a { padding: 10px 0; }
    .nav-toggle { display: flex; }
    .dropdown-menu { position: static; box-shadow: none; border: none; border-top: 1px solid var(--border-06); padding: 8px 0 0 16px; }
    .nav-dropdown.open .dropdown-menu { display: block; }
    .article-title { font-size: 32px; }
    .page-title { font-size: 32px; }
    .hero-img { height: 260px; }
    .article-featured-img { max-height: 260px; }
    .features-heading, .articles-heading, .contact-heading { font-size: 28px; }
    .contact-grid { gap: 28px; }
}
