@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 {
  --bg: #0f0f0f;
  --bg-card: #000000;
  --cobalt: #0007cd;
  --cyan: #00ffff;
  --signal: #0089ff;
  --ocean: #0096ff;
  --white: #ffffff;
  --ghost: rgba(255,255,255,0.6);
  --whisper: rgba(255,255,255,0.5);
  --phantom: rgba(255,255,255,0.2);
  --border12: rgba(255,255,255,0.12);
  --border10: rgba(255,255,255,0.10);
  --border08: rgba(255,255,255,0.08);
  --border06: rgba(255,255,255,0.06);
  --border04: rgba(255,255,255,0.04);
  --charcoal: #2c2c2c;
  --muted: #444444;
  --radius-card: 4px;
  --radius-pill: 37px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.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(--border06);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--cyan); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  color: var(--ghost);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border06);
  padding: 16px 24px;
  gap: 16px;
}
.nav-mobile a {
  font-size: 15px;
  color: var(--ghost);
  padding: 8px 0;
  border-bottom: 1px solid var(--border04);
}
.nav-mobile a:hover { color: var(--white); }
.nav-mobile.open { display: flex; }

/* 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: 600px;
  background: radial-gradient(circle, rgba(0,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,255,255,0.3);
  background: rgba(0,255,255,0.06);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 0.87;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero p {
  font-size: 18px;
  color: var(--ghost);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* SECTION LABELS */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.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);
  max-width: 540px;
  line-height: 1.6;
}

/* ARTICLE CARDS */
.articles-section {
  padding: 80px 24px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border10);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s;
  box-shadow: rgba(0,0,0,0.15) 4px 4px 0px 0px;
}
.article-card:hover { border-color: var(--border12); }
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.article-card-body {
  padding: 24px;
}
.article-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.article-card h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 12px;
}
.article-card p {
  font-size: 14px;
  color: var(--ghost);
  line-height: 1.63;
  margin-bottom: 20px;
}
.article-meta {
  font-size: 13px;
  color: var(--whisper);
  font-family: 'JetBrains Mono', monospace;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--signal);
  margin-top: 16px;
  transition: color 0.2s;
}
.read-more:hover { color: var(--cyan); }

/* STATS */
.stats-section {
  padding: 60px 24px;
  border-top: 1px solid var(--border06);
  border-bottom: 1px solid var(--border06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 40px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.0;
}
.stat-number span { color: var(--cyan); }
.stat-label {
  font-size: 13px;
  color: var(--ghost);
  margin-top: 8px;
}

/* FEATURED IMAGE */
.featured-section {
  padding: 80px 24px;
}
.featured-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.featured-img-wrap {
  position: relative;
  border: 1px solid var(--border10);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.5) 0px 8px 32px;
}
.featured-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.featured-img-wrap img { width: 100%; height: 320px; object-fit: cover; }
.featured-text .section-label { margin-bottom: 16px; }
.featured-text h2 { margin-bottom: 20px; }
.featured-text p { margin-bottom: 24px; }

/* CONTACT FORM */
.contact-section {
  padding: 80px 24px;
  border-top: 1px solid var(--border06);
}
.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}
.contact-inner .section-title { text-align: center; margin-bottom: 8px; }
.contact-inner .section-desc { text-align: center; margin: 0 auto 40px; }
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ghost);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border10);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--white);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--whisper); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--signal); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-primary {
  display: inline-block;
  background: var(--white);
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: var(--radius-card);
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border06);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border04);
}
.footer-brand p {
  font-size: 14px;
  color: var(--ghost);
  margin-top: 12px;
  line-height: 1.63;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ghost);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--ghost); }

/* ARTICLE PAGE */
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.article-page .article-header { margin-bottom: 40px; }
.article-page .article-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.article-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
}
.article-page .article-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--whisper);
  border-bottom: 1px solid var(--border06);
  padding-bottom: 24px;
}
.article-page .article-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--border10);
  margin-bottom: 40px;
}
.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin: 40px 0 16px;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin: 32px 0 12px;
}
.article-body p {
  font-size: 16px;
  color: var(--ghost);
  line-height: 1.75;
  margin-bottom: 20px;
}
.article-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body ul li {
  font-size: 16px;
  color: var(--ghost);
  line-height: 1.75;
  margin-bottom: 8px;
}
.article-body a {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: rgba(0,137,255,0.4);
}
.article-body a:hover { color: var(--cyan); }
.article-body blockquote {
  border-left: 2px solid var(--cyan);
  padding: 12px 20px;
  margin: 32px 0;
  background: rgba(0,255,255,0.04);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.article-body blockquote p { margin-bottom: 0; font-style: italic; }
.article-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border06);
}

/* STATIC PAGES */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.static-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 8px;
}
.static-page .page-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border06);
}
.static-page h2 {
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin: 36px 0 12px;
}
.static-page p {
  font-size: 15px;
  color: var(--ghost);
  line-height: 1.75;
  margin-bottom: 16px;
}
.static-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.static-page ul li {
  font-size: 15px;
  color: var(--ghost);
  line-height: 1.75;
  margin-bottom: 8px;
}
.static-page a { color: var(--signal); }
.static-page a:hover { color: var(--cyan); }

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  max-width: var(--max-w);
  margin: 0 auto;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ghost); }
.breadcrumb span { margin: 0 8px; }

/* RELATED */
.related-section {
  padding: 60px 24px;
  border-top: 1px solid var(--border06);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border08);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--border12); }
.related-card .article-category { margin-bottom: 8px; }
.related-card h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: calc(100% - 48px);
  max-width: 680px;
  background: #0a0a0a;
  border: 1px solid var(--border12);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: rgba(0,0,0,0.5) 0px 8px 32px;
}
#cookie-banner p {
  font-size: 14px;
  color: var(--ghost);
  line-height: 1.5;
}
#cookie-banner a { color: var(--signal); }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--white);
  color: #0a0a0a;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-card);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-cookie-accept:hover { opacity: 0.85; }
.btn-cookie-reject {
  background: transparent;
  color: var(--ghost);
  border: 1px solid var(--charcoal);
  padding: 8px 20px;
  border-radius: var(--radius-card);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cookie-reject:hover { border-color: var(--ghost); color: var(--white); }

/* DISCLAIMER */
.disclaimer-bar {
  background: rgba(0,255,255,0.04);
  border-bottom: 1px solid rgba(0,255,255,0.1);
  padding: 10px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--whisper);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-inner { grid-template-columns: 1fr; }
  .featured-img-wrap img { height: 240px; }
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 60px 24px 50px; }
  .hero h1 { line-height: 1.0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  #cookie-banner { flex-direction: column; align-items: flex-start; bottom: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 32px; }
}
