/* ==========================================================================
   CyberStrategix — Global Stylesheet
   Dark, modern cybersecurity theme. Single shared file for all pages.
   ========================================================================== */

:root {
  --bg: #0a0e17;
  --bg-soft: #0f1525;
  --bg-card: #131a2b;
  --bg-card-hover: #1a2338;
  --border: #1f2a44;
  --text: #e6ecf5;
  --text-dim: #9aa7c0;
  --text-faint: #66738f;
  --accent: #00e5a0;        /* neon green */
  --accent-2: #2f8cff;      /* electric blue */
  --accent-3: #b14cff;      /* violet */
  --danger: #ff4d5e;
  --warn: #ffb020;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 30px rgba(0,0,0,.45);
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47,140,255,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(0,229,160,.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

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

.section { padding: 76px 0; }
.section-sm { padding: 46px 0; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.muted { color: var(--text-dim); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--text-dim); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: .96rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b988);
  color: #04130d; box-shadow: 0 6px 22px rgba(0,229,160,.30);
}
.btn-primary:hover { color: #04130d; box-shadow: 0 10px 30px rgba(0,229,160,.45); transform: translateY(-2px); }
.btn-yt {
  background: linear-gradient(135deg, #ff0033, #cc0029); color: #fff;
  box-shadow: 0 6px 22px rgba(255,0,51,.30);
}
.btn-yt:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,0,51,.45); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); background: rgba(0,229,160,.06); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,.78); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #04130d; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(0,229,160,.35);
}
.brand b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-weight: 600; font-size: .95rem;
  padding: 8px 13px; border-radius: 8px; transition: all .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 12px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-cta { margin: 8px 0 4px; text-align: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(47,140,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,140,255,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 380px at 50% 30%, #000, transparent 80%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 880px; }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 46px; }
.hero-stats .stat b { display: block; font-size: 1.7rem; color: var(--text); }
.hero-stats .stat span { font-size: .85rem; color: var(--text-faint); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(0,229,160,.10); color: var(--accent); border: 1px solid rgba(0,229,160,.25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0,229,160,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(0,229,160,.5);} 70%{box-shadow:0 0 0 9px rgba(0,229,160,0);} 100%{box-shadow:0 0 0 0 rgba(0,229,160,0);} }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.tag-news { background: rgba(47,140,255,.14); color: #79b4ff; }
.tag-cve  { background: rgba(255,77,94,.14); color: #ff8a96; }
.tag-tip  { background: rgba(0,229,160,.14); color: var(--accent); }
.tag-vid  { background: rgba(255,0,51,.14); color: #ff7a8c; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: transform .18s, border-color .18s, background .18s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,229,160,.4); background: var(--bg-card-hover); }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: rgba(47,140,255,.12); border: 1px solid rgba(47,140,255,.25);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: .96rem; }

.section-head { margin-bottom: 38px; }
.section-head.center { text-align: center; }
.section-head h2 { margin-bottom: 10px; }
.section-head .row { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- News feed items ---------- */
.feed { display: grid; gap: 16px; }
.feed-item {
  display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; transition: border-color .18s, transform .18s, background .18s;
}
.feed-item:hover { border-color: rgba(0,229,160,.4); transform: translateX(3px); background: var(--bg-card-hover); }
.feed-item .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.feed-item .src { font-size: .8rem; color: var(--accent-2); font-weight: 700; }
.feed-item .time { font-size: .78rem; color: var(--text-faint); }
.feed-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feed-item h3 a { color: var(--text); }
.feed-item h3 a:hover { color: var(--accent); }
.feed-item p { font-size: .9rem; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.feed-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.filter-btn {
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer;
  background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--border); transition: all .18s;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #04130d; border-color: var(--accent); }

.feed-loading, .feed-error { text-align: center; padding: 40px; color: var(--text-dim); }
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Skill level tracks ---------- */
.track-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.track-tab {
  padding: 10px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .92rem;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); transition: all .18s;
}
.track-tab:hover { color: var(--text); }
.track-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04130d; border-color: transparent; }
.track-panel { display: none; }
.track-panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Resource list ---------- */
.res-list { list-style: none; display: grid; gap: 12px; }
.res-list li {
  display: flex; align-items: flex-start; gap: 13px; padding: 15px 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: all .18s;
}
.res-list li:hover { border-color: rgba(0,229,160,.4); background: var(--bg-card-hover); }
.res-list .r-ico { font-size: 1.2rem; line-height: 1.5; }
.res-list .r-body strong { display: block; color: var(--text); }
.res-list .r-body span { font-size: .88rem; color: var(--text-dim); }
.res-list .r-body a { font-weight: 600; }

/* ---------- Guides / accordion ---------- */
.accordion { display: grid; gap: 12px; }
.acc-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 18px 20px; font-size: 1.02rem; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.acc-head:hover { color: var(--accent); }
.acc-head .chev { transition: transform .25s; color: var(--text-faint); }
.acc-item.open .acc-head .chev { transform: rotate(180deg); color: var(--accent); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body-inner { padding: 0 20px 20px; color: var(--text-dim); }
.acc-body-inner ul { margin: 8px 0 0 18px; }
.acc-body-inner li { margin-bottom: 6px; }

/* ---------- Video showcase ---------- */
.video-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s, border-color .18s; }
.video-card:hover { transform: translateY(-4px); border-color: rgba(255,0,51,.4); }
.video-embed { position: relative; aspect-ratio: 16/9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .v-body { padding: 16px 18px; }
.video-card .v-body h3 { font-size: 1rem; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, #1a0008, #0a0e17); color: var(--text-dim); padding: 20px;
}
.video-placeholder .play { font-size: 2.4rem; color: #ff0033; margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255,0,51,.16), transparent 60%),
    linear-gradient(135deg, #14101c, #0d1422);
  border: 1px solid var(--border); border-radius: 22px; padding: 54px 40px; text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Newsletter ---------- */
.subscribe-form { display: flex; gap: 10px; max-width: 460px; margin: 22px auto 0; flex-wrap: wrap; }
.subscribe-form input {
  flex: 1; min-width: 200px; padding: 13px 16px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); font-size: .95rem;
}
.subscribe-form input:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: .8rem; color: var(--text-faint); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 54px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--text-dim); font-size: .92rem; }
.site-footer a:hover { color: var(--accent); }
.footer-about p { color: var(--text-dim); font-size: .92rem; margin-top: 12px; max-width: 320px; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); font-size: 1.05rem; font-weight: 700;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 38px; padding-top: 22px; text-align: center; color: var(--text-faint); font-size: .85rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { margin-top: 12px; }

/* ---------- Utility ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:10px}.mt-2{margin-top:20px}.mt-3{margin-top:32px}
.hidden { display: none !important; }
.flex { display: flex; } .wrap { flex-wrap: wrap; } .gap { gap: 12px; } .items-center{align-items:center;}
