@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;
  --cobalt: #0007cd;
  --cyan: #00ffff;
  --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);
  --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);
  --cyan-glow: rgba(0,255,255,0.12);
  --font-sans: 'abcDiatype', 'abcDiatype Fallback', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--white);
  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-cta {
  background: var(--white);
  color: #111 !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.88; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* HERO */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.92;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ghost);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper);
  letter-spacing: 0.3px;
}

/* SECTION */
.section {
  padding: 80px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--ghost);
  max-width: 600px;
  margin-bottom: 48px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--mist08);
  margin: 0;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--black);
  border: 1px solid var(--mist10);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--mist12); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 24px;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 10px;
}

.card-title a:hover { color: var(--ghost); }

.card-excerpt {
  font-size: 14px;
  line-height: 1.63;
  color: var(--ghost);
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper);
}

.read-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--signal-blue);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.read-more:hover { border-color: var(--signal-blue); }

/* FEATURED ARTICLE */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px;
  background: var(--black);
  border: 1px solid var(--mist10);
  border-radius: 4px;
  box-shadow: rgba(0,0,0,0.5) 0px 8px 32px;
  position: relative;
  overflow: hidden;
}

.featured-article::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}

.featured-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.featured-title {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}

.featured-excerpt {
  font-size: 15px;
  line-height: 1.63;
  color: var(--ghost);
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  background: var(--white);
  color: #111;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid var(--signal-blue);
  transition: background 0.2s;
  margin-left: 12px;
}

.btn-outline:hover { background: rgba(0,137,255,0.08); }

.featured-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--mist08);
}

/* STATS STRIP */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--mist08);
  border: 1px solid var(--mist08);
  border-radius: 4px;
  overflow: hidden;
  margin: 60px 0;
}

.stat-item {
  background: var(--black);
  padding: 32px 28px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num span { color: var(--cyan); }

.stat-label {
  font-size: 13px;
  color: var(--ghost);
}

/* ARTICLE PAGE */
.article-header {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--mist08);
  margin-bottom: 48px;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--signal-blue); }
.breadcrumb a:hover { text-decoration: underline; }

.article-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 860px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.article-meta-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper);
}

.article-meta-item.tag {
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid rgba(0,255,255,0.2);
  padding: 3px 10px;
  border-radius: 2px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-bottom: 80px;
}

.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;
  line-height: 1.2;
  color: var(--white);
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ghost);
  margin-bottom: 20px;
}

.article-content p:first-child {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
}

.article-content a {
  color: var(--signal-blue);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.article-content a:hover { border-color: var(--signal-blue); }

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ghost);
  margin-bottom: 6px;
}

.article-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--mist08);
  margin-bottom: 40px;
}

.article-img-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--whisper);
  margin-top: -32px;
  margin-bottom: 40px;
  padding-left: 4px;
}

.info-box {
  background: var(--black);
  border: 1px solid var(--mist10);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  padding: 24px;
  margin: 32px 0;
}

.info-box-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.info-box p {
  font-size: 14px !important;
  color: var(--ghost) !important;
  margin-bottom: 0 !important;
}

/* SIDEBAR */
.sidebar-widget {
  background: var(--black);
  border: 1px solid var(--mist10);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mist08);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  padding: 8px 0;
  border-bottom: 1px solid var(--mist04);
}

.sidebar-links li:last-child { border-bottom: none; }

.sidebar-links a {
  font-size: 14px;
  color: var(--ghost);
  transition: color 0.2s;
}

.sidebar-links a:hover { color: var(--white); }

.sidebar-ref {
  font-size: 13px;
  color: var(--ghost);
  line-height: 1.6;
  margin-bottom: 12px;
}

.sidebar-ref a {
  color: var(--signal-blue);
}

/* CONTACT FORM */
.contact-section {
  padding: 80px 0;
  border-top: 1px solid var(--mist08);
}

.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.65;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ghost);
}

.contact-detail-item strong {
  color: var(--white);
  font-weight: 500;
}

.contact-form {
  background: var(--black);
  border: 1px solid var(--mist10);
  border-radius: 4px;
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ghost);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--mist10);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--white);
  font-family: var(--font-sans);
  transition: border-color 0.2s;
  outline: none;
}

.form-input::placeholder { color: var(--whisper); }
.form-input:focus { border-color: var(--signal-blue); }

.form-submit {
  width: 100%;
  background: var(--white);
  color: #111;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.2s;
}

.form-submit:hover { opacity: 0.88; }

/* PAGES */
.page-header {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--mist08);
}

.page-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--ghost);
  max-width: 560px;
}

.page-content {
  padding: 60px 0 80px;
  max-width: 820px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin: 40px 0 14px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin: 24px 0 10px;
}

.page-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ghost);
  margin-bottom: 18px;
}

.page-content ul, .page-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.page-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ghost);
  margin-bottom: 6px;
}

.page-content a {
  color: var(--signal-blue);
}

.last-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--whisper);
  margin-bottom: 40px;
}

/* FOOTER */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--mist08);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand-name span { color: var(--cyan); }

.footer-desc {
  font-size: 14px;
  line-height: 1.63;
  color: var(--ghost);
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--whisper);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--mist06);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--whisper);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--whisper);
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--white); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 760px;
  background: var(--black);
  border: 1px solid var(--mist12);
  border-radius: 4px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: rgba(0,0,0,0.5) 0px 8px 32px;
}

.cookie-text {
  font-size: 14px;
  color: var(--ghost);
  line-height: 1.5;
  flex: 1;
}

.cookie-text a {
  color: var(--signal-blue);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.cookie-text a:hover { border-color: var(--signal-blue); }

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--white);
  color: #111;
  border: none;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.2s;
}

.cookie-accept:hover { opacity: 0.88; }

.cookie-reject {
  background: transparent;
  color: var(--ghost);
  border: 1px solid var(--charcoal);
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.cookie-reject:hover { color: var(--white); border-color: var(--ghost); }

/* DISCLAIMER */
.disclaimer-bar {
  background: rgba(0,7,205,0.12);
  border-top: 1px solid rgba(0,137,255,0.2);
  padding: 12px 0;
}

.disclaimer-bar p {
  font-size: 12px;
  color: var(--whisper);
  text-align: center;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-article { grid-template-columns: 1fr; padding: 40px; }
  .featured-img { height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--mist08);
    padding: 24px;
    gap: 20px;
    z-index: 99;
  }
  .nav-links.open .nav-cta { width: fit-content; }
  .hero { padding: 60px 0 48px; }
  .hero h1 { line-height: 1.0; }
  .cards-grid { grid-template-columns: 1fr; }
  .featured-article { padding: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .cookie-banner { flex-direction: column; align-items: flex-start; bottom: 16px; }
  .article-hero-img { height: 240px; }
}
