@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;
  --black: #000000;
  --white: #ffffff;
  --cyan: #00ffff;
  --cobalt: #0007cd;
  --signal: #0089ff;
  --ocean: #0096ff;
  --charcoal: #2c2c2c;
  --ghost: rgba(255,255,255,0.6);
  --whisper: rgba(255,255,255,0.5);
  --phantom: rgba(255,255,255,0.2);
  --mist12: rgba(255,255,255,0.12);
  --mist10: rgba(255,255,255,0.10);
  --mist08: rgba(255,255,255,0.08);
  --mist06: rgba(255,255,255,0.06);
  --mist04: rgba(255,255,255,0.04);
}

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;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }

img { display: block; width: 100%; height: auto; 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(--bg);
  border-bottom: 1px solid var(--mist08);
  padding: 16px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.nav-logo span { color: var(--cyan); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  color: var(--ghost);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--mist08);
  margin-top: 14px;
  padding-top: 12px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 10px 0;
  font-size: 15px;
  color: var(--ghost);
  border-bottom: 1px solid var(--mist04);
}
.nav-mobile a:last-child { border-bottom: none; }

/* HERO */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--cyan);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 2px;
  padding: 4px 10px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 0.9;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 18px;
  color: var(--ghost);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.5;
}
.hero-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--whisper);
  letter-spacing: 0.3px;
}

/* SECTION TITLES */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 8px;
}
.section-sub {
  font-size: 15px;
  color: var(--ghost);
  margin-bottom: 40px;
}

/* ARTICLE GRID */
.articles-section { padding: 64px 0; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--black);
  border: 1px solid var(--mist10);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.article-card:hover { border-color: var(--mist12); }
.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.03); }
.article-card-body { padding: 24px; }
.article-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cyan);
  margin-bottom: 10px;
}
.article-card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--ghost);
  line-height: 1.63;
  margin-bottom: 16px;
}
.article-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--whisper);
  letter-spacing: 0.3px;
}
.read-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--signal);
  border-bottom: 1px solid rgba(0,137,255,0.3);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.read-link:hover { color: var(--cyan); border-color: rgba(0,255,255,0.4); }

/* STATS BAR */
.stats-bar {
  border-top: 1px solid var(--mist08);
  border-bottom: 1px solid var(--mist08);
  padding: 40px 0;
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  border-right: 1px solid var(--mist08);
  padding: 8px 0;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span { color: var(--cyan); }
.stat-label {
  font-size: 13px;
  color: var(--ghost);
  line-height: 1.4;
}

/* FEATURED IMAGE SECTION */
.feature-img-section { padding: 64px 0; }
.feature-img-wrap {
  border: 1px solid var(--mist10);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.feature-img-wrap img { width: 100%; height: 420px; object-fit: cover; border-radius: 0; }
.feature-img-caption {
  padding: 20px 24px;
  background: var(--black);
  border-top: 1px solid var(--mist08);
}
.feature-img-caption p {
  font-size: 14px;
  color: var(--ghost);
}
.feature-img-caption strong { color: var(--white); font-weight: 500; }

/* ABOUT STRIP */
.about-strip {
  padding: 64px 0;
  border-top: 1px solid var(--mist08);
}
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-strip h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.0;
  margin-bottom: 20px;
}
.about-strip p {
  font-size: 15px;
  color: var(--ghost);
  line-height: 1.63;
  margin-bottom: 16px;
}

/* CONTACT FORM */
.contact-section { padding: 64px 0; border-top: 1px solid var(--mist08); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: 32px; 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: 20px; }
.contact-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--whisper);
  margin-bottom: 8px;
  letter-spacing: -0.1px;
}
.contact-detail a { color: var(--signal); }
.contact-detail a:hover { color: var(--cyan); }
.contact-form {
  background: var(--black);
  border: 1px solid var(--mist10);
  border-radius: 4px;
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ghost);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--mist10);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--white);
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.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-submit {
  background: var(--white);
  color: #111;
  border: none;
  border-radius: 4px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.88; }

/* ARTICLE PAGE */
.article-header { padding: 56px 0 40px; }
.article-header .article-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cyan);
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1.0;
  margin-bottom: 16px;
}
.article-header .article-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--whisper);
  margin-bottom: 24px;
}
.article-header .article-intro {
  font-size: 18px;
  color: var(--ghost);
  line-height: 1.5;
  max-width: 680px;
}
.article-hero-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--mist08);
  margin-bottom: 48px;
}
.article-body { max-width: 760px; padding-bottom: 80px; }
.article-body h2 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  margin: 40px 0 16px;
  color: var(--white);
}
.article-body h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  margin: 28px 0 12px;
  color: var(--white);
}
.article-body p {
  font-size: 16px;
  color: var(--ghost);
  line-height: 1.75;
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.article-body li {
  font-size: 16px;
  color: var(--ghost);
  line-height: 1.75;
  margin-bottom: 6px;
}
.article-body a { color: var(--signal); border-bottom: 1px solid rgba(0,137,255,0.25); }
.article-body a:hover { color: var(--cyan); }
.article-body .highlight-box {
  background: var(--black);
  border: 1px solid var(--mist10);
  border-left: 3px solid var(--cyan);
  border-radius: 0 4px 4px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.article-body .highlight-box p { margin: 0; }
.article-img {
  border: 1px solid var(--mist10);
  border-radius: 4px;
  overflow: hidden;
  margin: 28px 0;
}
.article-img img { width: 100%; height: 300px; object-fit: cover; border-radius: 0; }
.article-img figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--whisper);
  padding: 10px 16px;
  background: var(--black);
  border-top: 1px solid var(--mist08);
}

/* BREADCRUMB */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--mist08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--whisper);
}
.breadcrumb a { color: var(--ghost); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 8px; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--mist08);
  padding: 48px 0 32px;
  background: var(--black);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--ghost);
  line-height: 1.63;
  margin-top: 12px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: var(--ghost); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--mist08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--whisper); }
.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mist04);
}

/* PAGE CONTENT (about/privacy/terms) */
.page-header { padding: 56px 0 32px; border-bottom: 1px solid var(--mist08); margin-bottom: 48px; }
.page-header h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 400; line-height: 1.0; }
.page-content { max-width: 760px; padding-bottom: 80px; }
.page-content h2 { font-size: 24px; font-weight: 400; margin: 36px 0 14px; color: var(--white); }
.page-content h3 { font-size: 18px; font-weight: 500; margin: 24px 0 10px; color: var(--white); }
.page-content p { font-size: 15px; color: var(--ghost); line-height: 1.75; margin-bottom: 16px; }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 16px; }
.page-content li { font-size: 15px; color: var(--ghost); line-height: 1.75; margin-bottom: 6px; }
.page-content a { color: var(--signal); }
.page-content a:hover { color: var(--cyan); }

/* COOKIE BANNER */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--black);
  border-top: 1px solid var(--mist12);
  padding: 18px 24px;
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { font-size: 14px; color: var(--ghost); line-height: 1.5; }
.cookie-text a { color: var(--signal); }
.cookie-btns { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.btn-accept { background: var(--white); color: #111; }
.btn-reject { background: transparent; color: var(--ghost); border: 1px solid var(--mist12); }
.btn-cookie:hover { opacity: 0.8; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-strip-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 36px; line-height: 0.95; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .feature-img-wrap img { height: 240px; }
  .article-hero-img { aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
