/* Nad X Pro Articles — Dark Theme Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#050505;
  --surface:rgba(255,255,255,0.03);
  --border:rgba(255,255,255,0.07);
  --accent:#00f2ff;
  --accent-dim:rgba(0,242,255,0.15);
  --accent-glow:rgba(0,242,255,0.3);
  --text:#ffffff;
  --text-muted:#9ca3af;
  --text-dim:#6b7280;
  --max-w:760px;
  --nav-h:72px;
}

html{scroll-behavior:smooth}
body{
  font-family:'Plus Jakarta Sans',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.75;
  font-size:1.0625rem;
  overflow-x:hidden;
}
h1,h2,h3,h4,h5,h6{font-family:'Space Grotesk',sans-serif;line-height:1.25}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
::selection{background:var(--accent);color:var(--bg)}
::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:#333;border-radius:10px}

/* ── NAV ─────────────────────────────────────────── */
.site-nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  height:var(--nav-h);
  display:flex;align-items:center;
  padding:0 1.5rem;
  background:rgba(5,5,5,0.85);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.site-nav .inner{
  max-width:1200px;width:100%;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
}
.nav-logo{
  display:flex;align-items:center;gap:0.5rem;
  text-decoration:none;color:var(--text);
  font-family:'Space Grotesk',sans-serif;
  font-size:1.25rem;font-weight:700;letter-spacing:-0.03em;
}
.nav-logo .logo-box{
  width:2.25rem;height:2.25rem;border-radius:0.5rem;
  background:linear-gradient(135deg,#00f2ff,#a855f7);
  display:flex;align-items:center;justify-content:center;
  transform:rotate(12deg);flex-shrink:0;
}
.nav-logo .logo-box span{
  font-size:1rem;font-weight:900;color:#000;transform:rotate(-12deg);display:block;
}
.nav-logo .pro{color:var(--accent)}
.nav-links{display:flex;align-items:center;gap:2rem}
.nav-links a{
  font-size:0.8125rem;font-weight:500;letter-spacing:0.04em;
  color:var(--text-muted);transition:color 0.2s;text-decoration:none;
}
.nav-links a:hover,.nav-links a.active{color:var(--accent)}
.nav-cta{
  display:inline-block;
  padding:0.5rem 1.25rem;
  background:#fff;color:#000;
  font-size:0.8125rem;font-weight:700;
  border-radius:999px;
  transition:background 0.2s,color 0.2s;
  text-decoration:none;
}
.nav-cta:hover{background:var(--accent);text-decoration:none}

/* ── LAYOUT ──────────────────────────────────────── */
.page-wrap{
  min-height:100vh;
  padding-top:calc(var(--nav-h) + 2rem);
}
.container{max-width:1200px;margin:0 auto;padding:0 1.5rem}
.article-wrap{max-width:var(--max-w);margin:0 auto;padding:0 1.5rem}

/* ── BREADCRUMB ──────────────────────────────────── */
.breadcrumb{
  font-size:0.8rem;color:var(--text-dim);margin-bottom:1.5rem;
}
.breadcrumb a{color:var(--text-dim);text-decoration:none}
.breadcrumb a:hover{color:var(--accent)}
.breadcrumb span{margin:0 0.4rem;opacity:0.5}

/* ── ARTICLE HEADER ─────────────────────────────── */
.article-header{margin-bottom:2.5rem}
.cat-badge,.article-cat{
  display:inline-block;margin-bottom:1rem;
  padding:0.25rem 0.75rem;
  border:1px solid var(--accent);
  border-radius:999px;
  font-size:0.75rem;font-weight:600;letter-spacing:0.06em;
  color:var(--accent);text-transform:uppercase;
}
.article-header h1{
  font-size:clamp(1.75rem,4vw,2.75rem);
  font-weight:700;
  letter-spacing:-0.02em;
  margin-bottom:1rem;
  color:#fff;
}
.article-meta{
  font-size:0.85rem;color:var(--text-dim);
  display:flex;flex-wrap:wrap;gap:1rem;align-items:center;
  margin-bottom:1rem;
}
.article-meta .sep{opacity:0.3}
.article-lead{
  font-size:1.1875rem;line-height:1.7;color:#e5e7eb;
  padding-bottom:1.5rem;border-bottom:1px solid var(--border);
}

/* ── ARTICLE BODY ────────────────────────────────── */
.article-body{color:#d1d5db;font-size:1.0625rem;line-height:1.8}
.article-body p{margin-bottom:1.5rem}
.article-body h2{
  font-size:clamp(1.25rem,3vw,1.625rem);font-weight:700;
  color:#fff;margin:2.5rem 0 1rem;
  padding-bottom:0.5rem;
  border-bottom:1px solid var(--border);
}
.article-body h3{
  font-size:1.125rem;font-weight:600;
  color:#e5e7eb;margin:2rem 0 0.75rem;
}
.article-body ul,.article-body ol{
  padding-left:1.5rem;margin-bottom:1.5rem;
}
.article-body li{margin-bottom:0.5rem}
.article-body strong{color:#fff;font-weight:600}
.article-body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.article-body a:hover{color:#fff}
.article-body code{
  font-family:'Space Grotesk',monospace;
  background:rgba(255,255,255,0.06);
  border:1px solid var(--border);
  border-radius:0.25rem;
  padding:0.1rem 0.4rem;
  font-size:0.9em;color:#e5e7eb;
}

/* ── STAT CALLOUT ────────────────────────────────── */
.stat-box{
  background:var(--accent-dim);
  border-left:3px solid var(--accent);
  border-radius:0 0.5rem 0.5rem 0;
  padding:1.25rem 1.5rem;
  margin:2rem 0;
  font-size:0.9375rem;
}
.stat-box p{margin:0;color:#e5e7eb}
.stat-box strong{color:var(--accent)}

/* ── TIP BOX ─────────────────────────────────────── */
.tip-box{
  background:rgba(255,255,255,0.04);
  border:1px dashed var(--border);
  border-radius:0.75rem;
  padding:1.25rem 1.5rem;
  margin:2rem 0;
  font-size:0.9375rem;color:#d1d5db;
}
.tip-box strong{color:var(--accent)}

/* ── FAQ ─────────────────────────────────────────── */
.faq-section{margin-top:3rem}
.faq-section h2{
  font-size:1.5rem;font-weight:700;color:#fff;
  margin-bottom:1.5rem;
}
.faq-list{display:flex;flex-direction:column;gap:0.75rem}
.faq-item{
  border:1px solid var(--border);
  border-radius:0.75rem;
  padding:1.25rem 1.25rem;
  transition:border-color 0.2s;
}
.faq-item:hover{border-color:var(--accent-glow)}
.faq-item h3,.faq-item .faq-q{
  font-size:1rem;font-weight:600;color:#e5e7eb;
  margin-bottom:0.5rem;
}
.faq-item p,.faq-item .faq-a{
  color:#9ca3af;font-size:0.9375rem;line-height:1.7;margin:0;
}
/* Legacy accordion markup support */
.faq-item summary{
  padding:0;cursor:pointer;font-weight:600;color:#e5e7eb;
  list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-answer{color:#9ca3af;font-size:0.9375rem;line-height:1.7;padding-top:0.5rem}
.faq-answer p{margin:0}

/* ── CTA BOX ─────────────────────────────────────── */
.cta-box{
  margin:3rem 0 2rem;
  padding:2rem 2.5rem;
  border:1px solid var(--accent-glow);
  border-radius:1rem;
  background:var(--accent-dim);
  box-shadow:0 0 30px rgba(0,242,255,0.08);
  text-align:center;
}
.cta-box h3{font-size:1.25rem;font-weight:700;color:#fff;margin-bottom:0.5rem}
.cta-box p{color:#9ca3af;font-size:0.9375rem;margin-bottom:1.25rem}
.cta-box .cta-btn,.article-body .cta-btn,a.cta-btn{
  display:inline-block;
  padding:0.75rem 2rem;
  background:var(--accent);color:#000 !important;
  font-weight:700;font-size:0.9375rem;border-radius:999px;
  text-decoration:none;transition:transform 0.2s,box-shadow 0.2s;
}
.cta-btn:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,242,255,0.3);text-decoration:none}

/* ── RELATED ARTICLES ────────────────────────────── */
.related-section,.related-articles{margin:2.5rem 0}
.related-section h3,.related-articles h3{font-size:1.125rem;font-weight:600;color:#fff;margin-bottom:1rem}
.related-links{display:flex;flex-wrap:wrap;gap:0.75rem}
.related-link{
  padding:0.5rem 1rem;
  border:1px solid var(--border);border-radius:0.5rem;
  font-size:0.85rem;color:var(--text-muted);
  text-decoration:none;transition:border-color 0.2s,color 0.2s;
}
.related-link:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}
/* related-articles uses a plain <ul><li><a> list */
.related-articles ul{list-style:none;display:flex;flex-direction:column;gap:0.6rem}
.related-articles li{
  padding:0.75rem 1rem;
  border:1px solid var(--border);border-radius:0.5rem;
}
.related-articles a{
  font-size:0.9rem;font-weight:500;color:var(--text-muted);text-decoration:none;
}
.related-articles li:hover{border-color:var(--accent-glow)}
.related-articles a:hover{color:var(--accent);text-decoration:none}

/* ── DIVIDER ─────────────────────────────────────── */
.divider{border:none;border-top:1px solid var(--border);margin:2rem 0}

/* ── FOOTER ──────────────────────────────────────── */
.site-footer{
  margin-top:4rem;
  border-top:1px solid var(--border);
  padding:2rem 1.5rem;
  text-align:center;
  color:var(--text-dim);font-size:0.85rem;
}
.site-footer a{color:var(--text-dim);text-decoration:none}
.site-footer a:hover{color:var(--accent)}
.site-footer .footer-links{
  display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;margin-bottom:1rem;
}
.footer-inner{
  max-width:1200px;margin:0 auto;
  display:flex;flex-direction:column;align-items:center;gap:1rem;
}
.footer-logo{
  font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:1.125rem;
  color:#fff;text-decoration:none;
}
.footer-logo span{color:var(--accent)}
.footer-nav{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center}
.footer-copy{color:var(--text-dim);font-size:0.8rem;margin:0}

/* ── HUB PAGE ────────────────────────────────────── */
.hub-hero{padding:3rem 0 2rem;text-align:center}
.hub-hero h1{
  font-size:clamp(2rem,5vw,3.5rem);font-weight:800;
  letter-spacing:-0.03em;margin-bottom:1rem;
  background:linear-gradient(135deg,#fff 40%,var(--accent));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.hub-hero p{color:var(--text-muted);font-size:1.125rem;max-width:600px;margin:0 auto}

.filter-bar{
  display:flex;flex-wrap:wrap;gap:0.5rem;
  justify-content:center;padding:1.5rem 0 2.5rem;
}
.filter-btn{
  padding:0.4rem 1rem;border-radius:999px;
  font-size:0.8125rem;font-weight:500;cursor:pointer;border:none;
  background:var(--surface);border:1px solid var(--border);
  color:var(--text-muted);transition:all 0.2s;
}
.filter-btn:hover,.filter-btn.active{
  background:var(--accent);color:#000;border-color:var(--accent);font-weight:700;
}

.articles-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:1.5rem;
  padding-bottom:4rem;
}
.article-card{
  background:var(--surface);
  border:1px solid var(--border);border-radius:1rem;
  padding:1.5rem;
  transition:border-color 0.2s,transform 0.2s,box-shadow 0.2s;
  display:flex;flex-direction:column;
}
.article-card:hover{
  border-color:var(--accent-glow);
  transform:translateY(-4px);
  box-shadow:0 12px 40px rgba(0,242,255,0.08);
}
.card-cat{
  font-size:0.7rem;font-weight:700;letter-spacing:0.08em;
  text-transform:uppercase;color:var(--accent);margin-bottom:0.75rem;
}
.article-card h2{
  font-size:1.0625rem;font-weight:700;color:#fff;
  margin-bottom:0.75rem;line-height:1.35;
}
.article-card p{
  font-size:0.875rem;color:var(--text-muted);line-height:1.6;
  flex:1;margin-bottom:1.25rem;
}
.card-link{
  font-size:0.8125rem;font-weight:600;color:var(--accent);
  text-decoration:none;display:flex;align-items:center;gap:0.35rem;
}
.card-link:hover{text-decoration:underline}
.card-link::after{content:'→'}

/* ── RESPONSIVE ──────────────────────────────────── */
@media(max-width:768px){
  .nav-links{display:none}
  .hub-hero{padding:2rem 0 1rem}
  .articles-grid{grid-template-columns:1fr}
  .article-wrap{padding:0 1rem}
  .cta-box{padding:1.5rem 1.25rem}
}
