@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --void-black:    #0f0f0f;
  --pure-black:    #000000;
  --charcoal:      #2c2c2c;
  --pure-white:    #ffffff;
  --muted-smoke:   #444444;
  --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;
  --b12: rgba(255,255,255,0.12);
  --b10: rgba(255,255,255,0.10);
  --b08: rgba(255,255,255,0.08);
  --b06: rgba(255,255,255,0.06);
  --b04: rgba(255,255,255,0.04);
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r-xs:   2px;
  --r-sm:   4px;
  --r-pill: 37px;
  --shadow-raw:   rgba(0,0,0,0.15) 4px 4px 0px 0px;
  --shadow-float: rgba(0,0,0,0.5) 0px 8px 32px;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--void-black);
  color: var(--pure-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img  { display: block; max-width: 100%; height: auto; }
ul   { list-style: none; }
a    { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
button { cursor: pointer; font-family: inherit; }
address { font-style: normal; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--pure-white);
  color: #0a0a0a;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  z-index: 200;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  line-height: 1;
  padding: 10px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: opacity .15s, background .15s, border-color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary  { background: var(--pure-white); color: #0a0a0a; }
.btn-primary:hover { opacity: .88; }
.btn-cyan     { background: rgba(0,255,255,.12); color: var(--pure-white); border-color: var(--ocean-blue); }
.btn-cyan:hover { background: rgba(0,255,255,.22); }
.btn-ghost    { background: transparent; color: var(--ghost-white); border-color: var(--signal-blue); }
.btn-ghost:hover { background: rgba(0,137,255,.1); color: var(--pure-white); }
.btn-sm { padding: 6px 16px; font-size: .875rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--b06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-leaf { font-size: 1.2rem; }
.logo-text { font-size: 1rem; font-weight: 500; color: var(--pure-white); letter-spacing: -.01em; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu a {
  font-size: .9375rem;
  color: var(--ghost-white);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color .15s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--pure-white); }
.nav-menu a.active { background: var(--b08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ghost-white);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,255,255,.08);
  border: 1px solid rgba(0,255,255,.2);
  padding: 4px 12px;
  border-radius: var(--r-xs);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  max-width: 700px;
}
.hero-desc {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ghost-white);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 32px;
  border-top: 1px solid var(--b08);
  width: 100%;
  max-width: 480px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num  { font-family: var(--font-mono); font-size: 1.75rem; line-height: 1; letter-spacing: -.5px; }
.stat-lbl  { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .3px; color: var(--whisper-white); }
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0,7,205,.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(0,255,255,.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.featured-wrap {
  padding-bottom: 80px;
}
.feat-img-box {
  position: relative;
  border: 1px solid var(--b10);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.feat-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.feat-img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--whisper-white);
  font-family: var(--font-mono);
  font-size: .75rem;
  padding: 40px 16px 12px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -.02em;
  margin-bottom: 40px;
}

.articles-section {
  padding-block: 80px;
  border-top: 1px solid var(--b08);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--pure-black);
  border: 1px solid var(--b10);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-raw);
  display: flex;
  flex-direction: column;
  transition: border-color .2s;
}
.article-card:hover { border-color: var(--b12); }
.card-img-wrap { display: block; }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--whisper-white);
}
.card-read { background: var(--b08); padding: 2px 6px; border-radius: var(--r-xs); }
.card-title { font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.card-title a:hover { color: var(--cyan); }
.card-desc { font-size: .875rem; line-height: 1.6; color: var(--ghost-white); flex: 1; }
.card-link {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--signal-blue);
  letter-spacing: -.2px;
  margin-top: auto;
}
.card-link:hover { color: var(--cyan); }

.topics-section {
  padding-block: 80px;
  border-top: 1px solid var(--b08);
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.topic-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pure-black);
  border: 1px solid var(--b08);
  border-radius: var(--r-sm);
  padding: 16px;
  font-size: .875rem;
  color: var(--ghost-white);
  transition: border-color .2s, color .2s;
}
.topic-item:hover { border-color: var(--b12); color: var(--pure-white); }
.topic-icon { font-size: 1.125rem; flex-shrink: 0; }

.contact-section {
  padding-block: 80px;
  border-top: 1px solid var(--b08);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info p { font-size: .9375rem; line-height: 1.7; color: var(--ghost-white); margin-bottom: 24px; }
.contact-details { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.contact-details a, .contact-details span {
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--ghost-white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-details a { color: var(--signal-blue); }
.contact-details a:hover { color: var(--cyan); }

.contact-form {
  background: var(--pure-black);
  border: 1px solid var(--b10);
  border-radius: var(--r-sm);
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .8125rem;
  font-family: var(--font-mono);
  color: var(--whisper-white);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--b10);
  border-radius: var(--r-xs);
  color: var(--pure-white);
  font-family: var(--font-sans);
  font-size: .9375rem;
  padding: 10px 14px;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--signal-blue);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--phantom-white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; }

.single-article {
  padding-block: 48px 80px;
  max-width: 800px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--whisper-white);
  margin-bottom: 32px;
  transition: color .15s;
}
.back-link:hover { color: var(--pure-white); }
.article-header { margin-bottom: 32px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--whisper-white);
  margin-bottom: 20px;
}
.meta-dot { color: var(--b12); }
.article-h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.article-lead { font-size: 1.125rem; line-height: 1.65; color: var(--ghost-white); }

.article-figure {
  margin-bottom: 40px;
  border: 1px solid var(--b10);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.article-figure img { width: 100%; height: 420px; object-fit: cover; }
.article-figure figcaption {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--whisper-white);
  border-top: 1px solid var(--b06);
}

.article-body { font-size: .9375rem; line-height: 1.8; color: rgba(255,255,255,.85); }
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--pure-white);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--b08);
}
.article-body h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--pure-white);
  margin-top: 28px;
  margin-bottom: 12px;
}
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--pure-white); font-weight: 500; }
.article-body em { color: var(--ghost-white); font-style: italic; }
.article-body a { color: var(--signal-blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--cyan); }
.article-body code {
  font-family: var(--font-mono);
  font-size: .8125rem;
  background: var(--b06);
  border: 1px solid var(--b08);
  border-radius: var(--r-xs);
  padding: 1px 5px;
  color: var(--cyan);
}

.article-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--b08);
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.art-nav-link {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--ghost-white);
  max-width: 45%;
  line-height: 1.5;
  transition: color .15s;
}
.art-nav-link:hover { color: var(--pure-white); }
.art-nav-next { text-align: right; margin-left: auto; }

.static-page { padding-block: 48px 80px; max-width: 760px; }
.static-header { margin-bottom: 32px; }
.static-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -.02em;
  margin-top: 16px;
}
.static-updated { font-family: var(--font-mono); font-size: .75rem; color: var(--whisper-white); margin-top: 8px; }
.static-body { font-size: .9375rem; line-height: 1.8; color: rgba(255,255,255,.8); }
.static-body h2 { font-size: 1.25rem; font-weight: 500; color: var(--pure-white); margin-top: 32px; margin-bottom: 12px; }
.static-body p { margin-bottom: 20px; }
.static-body ul { padding-left: 24px; list-style: disc; margin-bottom: 20px; }
.static-body li { margin-bottom: 8px; }
.static-body a { color: var(--signal-blue); text-decoration: underline; text-underline-offset: 3px; }
.static-body a:hover { color: var(--cyan); }
.static-body code { font-family: var(--font-mono); font-size: .8125rem; background: var(--b06); border: 1px solid var(--b08); border-radius: var(--r-xs); padding: 1px 5px; color: var(--cyan); }
.static-body strong { color: var(--pure-white); font-weight: 500; }
.static-body address { font-style: normal; }

.site-footer {
  background: var(--pure-black);
  border-top: 1px solid var(--b10);
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-block: 48px;
  flex-wrap: wrap;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.footer-desc { font-size: .875rem; color: var(--ghost-white); line-height: 1.6; max-width: 340px; margin-bottom: 16px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; color: var(--ghost-white); }
.footer-contact a { color: var(--signal-blue); }
.footer-contact a:hover { color: var(--cyan); }
.footer-nav { display: flex; gap: 48px; }
.footer-nav-col { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-head { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--whisper-white); margin-bottom: 4px; }
.footer-nav a { font-size: .875rem; color: var(--ghost-white); transition: color .15s; }
.footer-nav a:hover { color: var(--pure-white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 20px 24px;
  border-top: 1px solid var(--b06);
}
.footer-copy { font-family: var(--font-mono); font-size: .8125rem; color: var(--whisper-white); }
.footer-disclaimer { font-size: .75rem; color: var(--muted-smoke); max-width: 500px; line-height: 1.5; }

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  background: #111;
  border: 1px solid var(--b12);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-float);
  z-index: 1000;
  padding: 20px 24px;
  transition: transform .25s, opacity .25s;
}
.cookie-banner.hidden { transform: translateY(130%); opacity: 0; pointer-events: none; }
.cookie-inner { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cookie-text { flex: 1; font-size: .875rem; color: var(--ghost-white); line-height: 1.5; min-width: 200px; }
.cookie-text a { color: var(--signal-blue); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

::selection { background: rgba(0,255,255,.18); color: var(--pure-white); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--void-black); }
::-webkit-scrollbar-thumb { background: var(--charcoal); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-grid   { grid-template-columns: repeat(3, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(15,15,15,.97);
    border-bottom: 1px solid var(--b08);
    padding: 12px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { width: 100%; padding: 12px; }
  .hero { padding: 64px 0 56px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .articles-grid { grid-template-columns: 1fr; }
  .topics-grid   { grid-template-columns: repeat(2, 1fr); }
  .feat-img, .article-figure img { height: 240px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-nav   { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-banner { bottom: 0; left: 0; right: 0; border-radius: 0; border-left: none; border-right: none; border-bottom: none; }
  .single-article, .static-page { max-width: 100%; }
}

@media (max-width: 480px) {
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats  { gap: 32px; }
}
