/* ===========================================================
   CYBERFORCE — design system
   =========================================================== */

:root {
  --bg: #050c0a;
  --bg-alt: #071510;
  --surface: #0b1a15;
  --surface-2: #10261e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef7f2;
  --text-muted: #93aca0;
  --text-faint: #587264;
  --accent: #2be08a;
  --accent-light: #85f5c0;
  --accent-dim: rgba(43, 224, 138, 0.14);
  --accent-2: #3fa3ff;
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --font: "Barlow", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 700; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; padding: 110px 0; }
section.tight { padding: 70px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h2.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.section-lead {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 18px;
}

/* ---------- background texture ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #04150e;
  box-shadow: 0 10px 30px rgba(43, 224, 138, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(43, 224, 138, 0.4); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 12, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo .logo-icon { width: 32px; height: 32px; color: var(--accent); flex-shrink: 0; }
.logo .logo-text { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.logo .logo-text span { color: var(--accent-light); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: all .25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

/* ---------- hero ---------- */
.hero {
  padding: 150px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero .glow-a { width: 560px; height: 560px; background: var(--accent); top: -220px; right: -140px; }
.hero .glow-b { width: 420px; height: 420px; background: var(--accent-2); opacity: 0.2; bottom: -180px; left: -120px; }
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 .accent-text {
  background: linear-gradient(120deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 19px; color: var(--text-muted); max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-tags { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 48px; }
.hero-tag {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 8px 16px;
}

/* ---------- blog grid ---------- */
.blog { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 56px; }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(43, 224, 138, 0.4);
  background: var(--surface-2);
}
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.blog-card-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-light); background: var(--accent-dim);
  padding: 5px 12px; border-radius: 999px;
}
.blog-card-date { font-size: 13px; color: var(--text-faint); }
.blog-card h3 { font-size: 23px; margin-bottom: 12px; }
.blog-card p { font-size: 15.5px; flex: 1 1 auto; }
.blog-card-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--accent-light); margin-top: 8px; }
.blog-card-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.blog-card:hover .blog-card-link svg { transform: translateX(4px); }

/* ---------- about / mission ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.about-text p { font-size: 17px; }
.about-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.about-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(43,224,138,0.16), transparent 60%);
  pointer-events: none;
}
.about-card-title { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 6px; position: relative; z-index: 1; }
.about-card h3 { position: relative; z-index: 1; font-size: 19px; }
.about-card p { position: relative; z-index: 1; }
.cred-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.cred-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.cred-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex-shrink: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 56px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--text-muted); }
.footer-nav a:hover { color: var(--accent-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ---------- fade-in animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===========================================================
   ARTICLE / PROSE
   =========================================================== */
.article-hero {
  padding: 130px 0 60px;
  position: relative;
  overflow: hidden;
}
.article-hero .glow-a { width: 500px; height: 500px; background: var(--accent); top: -220px; right: -160px; }
.breadcrumb { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-faint); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-light); }
.article-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.article-hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.14; margin-bottom: 20px; }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.article-lead { font-size: 18.5px; color: var(--text-muted); max-width: 720px; }

.article-body { padding: 20px 0 110px; }
.article-body-inner { max-width: 760px; margin: 0 auto; }
.article-body-inner h2 {
  font-size: 28px; margin-top: 56px; margin-bottom: 18px; color: var(--text);
  scroll-margin-top: 100px;
}
.article-body-inner h2:first-child { margin-top: 0; }
.article-body-inner h3 { font-size: 21px; margin-top: 36px; margin-bottom: 14px; color: var(--text); scroll-margin-top: 100px; }
.article-body-inner p { font-size: 17px; color: var(--text-muted); margin-bottom: 20px; }
.article-body-inner strong { color: var(--text); font-weight: 700; }
.article-body-inner ul, .article-body-inner ol { margin: 0 0 22px; padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.article-body-inner ul li, .article-body-inner ol li {
  font-size: 16.5px; color: var(--text-muted); padding-left: 28px; position: relative;
}
.article-body-inner ul li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.article-body-inner ol { counter-reset: item; }
.article-body-inner ol li { counter-increment: item; }
.article-body-inner ol li::before {
  content: counter(item); position: absolute; left: 0; top: -1px;
  font-size: 12px; font-weight: 800; color: var(--accent-light);
  background: var(--accent-dim); width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.article-body-inner li strong { color: var(--text); }

.callout {
  border: 1px solid rgba(43, 224, 138, 0.35);
  background: linear-gradient(120deg, rgba(43,224,138,0.12), rgba(43,224,138,0.02));
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 28px 0;
}
.callout-title { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-color: rgba(255, 138, 138, 0.35); background: linear-gradient(120deg, rgba(255,138,138,0.1), rgba(255,138,138,0.02)); }
.callout.warn .callout-title { color: #ff9c9c; }

.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
table.data-table th, table.data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
table.data-table th { background: var(--surface); color: var(--accent-light); font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
table.data-table td { color: var(--text-muted); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table td strong, table.data-table td code { color: var(--text); }

.article-figure {
  margin: 32px 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 28px 24px 22px;
}
.article-figure svg { width: 100%; height: auto; display: block; }
.article-figure figcaption { margin-top: 16px; font-size: 13.5px; color: var(--text-faint); text-align: center; line-height: 1.6; }

code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.article-body-inner code {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 6px; font-size: 0.88em; color: var(--accent-light);
}
.article-body-inner pre {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 22px; overflow-x: auto; margin: 24px 0; font-size: 13.5px; line-height: 1.7; color: var(--text);
}
.article-body-inner pre code { background: none; border: none; padding: 0; color: inherit; }

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tag-pill {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-light); background: var(--accent-dim); padding: 6px 14px; border-radius: 999px;
}
.reading-time { font-size: 13.5px; color: var(--text-faint); }

.article-divider { border: none; border-top: 1px solid var(--border); margin: 56px 0; }

.next-article {
  margin-top: 20px; padding: 28px 30px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.next-article .label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.next-article h4 { font-size: 18px; margin: 0; }
.next-article-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--accent-light); flex-shrink: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .header-inner.menu-open .main-nav {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 12px 32px 24px; gap: 4px;
  }
  section { padding: 72px 0; }
  .hero { padding: 130px 0 70px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-top { flex-direction: column; }
  .article-body-inner h2 { font-size: 24px; }
  .next-article { flex-direction: column; align-items: flex-start; }
}
