/* ═══════════════════════════════════════════════════════
   CYBERNIX — SHARED STYLESHEET
   Brand: #ca1518 red | #060608 black | #fff white
   Fonts: Barlow Condensed (display) + Barlow (body)
══════════════════════════════════════════════════════ */

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #ca1518;
  --red-dark:   #9b0f12;
  --red-glow:   rgba(202,21,24,0.3);
  --black:      #060608;
  --dark:       #0d0d10;
  --dark-2:     #13131a;
  --dark-3:     #1c1c25;
  --white:      #ffffff;
  --grey:       #7a7a8c;
  --grey-2:     #a0a0b4;
  --grey-light: #c8c8d8;
  --font-d: 'Barlow Condensed', sans-serif;
  --font-b: 'Barlow', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ─── GRID OVERLAY (modern cyber aesthetic) ──────────── */
/* ─── DOT MATRIX (modern cyber aesthetic) ───────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(202,21,24,0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ─── UTILITY CLASSES ───────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

.tag {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-title span { color: var(--red); }

.section-subtitle {
  color: var(--grey-2);
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 1.1rem;
  max-width: 600px;
  margin-top: 1rem;
  line-height: 1.8;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--red); color: var(--white);
  font-family: var(--font-d); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 1.8rem; border: none; cursor: pointer;
  text-decoration: none; transition: background 0.2s, transform 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; color: var(--white);
  font-family: var(--font-d); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 1.8rem; border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer; text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-white {
  display: inline-block;
  background: var(--white); color: var(--red);
  font-family: var(--font-d); font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 2.5rem; border: none; cursor: pointer;
  text-decoration: none; transition: opacity 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-white:hover { opacity: 0.9; }

/* ─── NAVIGATION ────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.3rem 0;
  transition: background 0.4s, padding 0.4s;
  background: rgba(6,6,8,0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(6,6,8,0.96);
  backdrop-filter: blur(20px);
  padding: 0.9rem 0;
  border-bottom-color: rgba(202,21,24,0.2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo svg { height: 46px; width: auto; }

.nav-links {
  display: flex; list-style: none; gap: 0; align-items: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  color: var(--grey-light); text-decoration: none;
  font-family: var(--font-d); font-weight: 600;
  font-size: 1.02rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  transition: color 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--white); }
.nav-links > li > a.active::after {
  content: ''; display: block; height: 2px;
  background: var(--red); margin-top: 2px;
}

/* Dropdown */
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: var(--dark-2);
  border: 1px solid rgba(202,21,24,0.2);
  border-top: 2px solid var(--red);
  padding: 0.5rem 0;
  padding-top: 14px;
  opacity: 0; pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}
.nav-links > li:hover .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 0.6rem 1.3rem;
  font-family: var(--font-d); font-size: 0.88rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--grey-2); text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown a:hover { color: var(--white); background: rgba(202,21,24,0.08); padding-left: 1.7rem; }

.nav-cta { margin-left: 1rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 4px; }
.hamburger span { display: block; height: 2px; width: 24px; background: var(--white); transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── PAGE HERO (shared for inner pages) ────────────── */
.page-hero {
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.35);
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(6,6,8,0.85) 40%, transparent 80%),
              linear-gradient(to top, rgba(6,6,8,1) 0%, transparent 40%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem;
}
.eyebrow-line { width: 36px; height: 1px; background: var(--red); }
.eyebrow-text {
  font-family: var(--font-d); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red);
}
.page-hero h1 {
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5rem);
  text-transform: uppercase; line-height: 0.95;
  letter-spacing: -0.02em;
}
.page-hero h1 span { color: var(--red); }
.page-hero p {
  color: var(--grey-2); font-size: 1.05rem; font-weight: 300;
  max-width: 520px; margin-top: 1.2rem; line-height: 1.75;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-d); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey);
}
.breadcrumb a { color: var(--grey); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--red); }
.bc-sep { opacity: 0.4; }

/* ─── TICKER ─────────────────────────────────────────── */
.ticker-bar {
  background: var(--red);
  padding: 0.95rem 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 2px 20px rgba(202,21,24,0.4);
}
.ticker-bar::before, .ticker-bar::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1;
}
.ticker-bar::before { left: 0; background: linear-gradient(to right, var(--red), transparent); }
.ticker-bar::after  { right: 0; background: linear-gradient(to left, var(--red), transparent); }
.ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker 50s linear infinite;
  width: max-content;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 1.2rem;
  font-family: var(--font-d); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0 3.5rem;
}
.t-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.7); flex-shrink: 0; }

/* ─── SECTION SHARED ─────────────────────────────────── */
section { padding: 5.5rem 0; }
.section-header { margin-bottom: 3.5rem; }

/* ─── SERVICE CARD (shared) ─────────────────────────── */
.svc-card {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.svc-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.svc-card:hover { border-color: rgba(202,21,24,0.25); transform: translateY(-3px); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-num {
  font-family: var(--font-d); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.45); margin-bottom: 1.2rem;
}
.svc-icon { width: 48px; height: 48px; margin-bottom: 1.2rem; }
.svc-icon svg { width: 100%; height: 100%; }
.svc-title {
  font-family: var(--font-d); font-weight: 700; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.7rem;
}
.svc-desc { font-family: var(--font-b); font-size: 0.97rem; color: var(--grey-2); line-height: 1.7; flex: 1; }
.svc-partners { margin-top: auto; padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.p-pill {
  font-family: var(--font-d); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey); border: 1px solid rgba(255,255,255,0.1);
  padding: 0.18rem 0.55rem; transition: border-color 0.2s, color 0.2s;
}
.svc-card:hover .p-pill { border-color: rgba(202,21,24,0.35); color: var(--grey-light); }

/* ─── BLOG CARD (shared) ─────────────────────────────── */
.blog-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.blog-card:hover { border-color: rgba(202,21,24,0.3); transform: translateY(-3px); }
.blog-img {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--dark-3); position: relative;
}
.blog-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.5) brightness(0.65);
  transition: transform 0.6s, filter 0.4s;
}
.blog-card:hover .blog-img img { transform: scale(1.06); filter: saturate(0.8) brightness(0.75); }
.blog-cat {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--font-d); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--red); padding: 0.2rem 0.6rem;
}
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-family: var(--font-d); font-size: 0.62rem; color: var(--grey); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.blog-title { font-family: var(--font-d); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; line-height: 1.3; margin-bottom: 0.6rem; }
.blog-excerpt { font-family: var(--font-b); font-size: 0.95rem; color: var(--grey-2); line-height: 1.7; flex: 1; }
.blog-more {
  margin-top: 1.2rem; font-family: var(--font-d); font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); text-decoration: none;
  display: flex; align-items: center; gap: 0.4rem;
  transition: gap 0.2s;
}
.blog-more:hover { gap: 0.8rem; }

/* ─── PARTNER STRIP (shared) ─────────────────────────── */
.partner-strip { background: var(--black); padding: 4.5rem 0; border-top: 1px solid rgba(202,21,24,.25); border-bottom: 1px solid rgba(202,21,24,.25); }
.partner-strip-label {
  font-family: var(--font-d); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--grey); text-align: center; margin-bottom: 3rem;
}
.partners-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
}
.partner-item {
  background: rgba(255,255,255,.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1.2rem 1.6rem;
  gap: 1rem;
  cursor: default;
  transition: background .3s;
  min-height: 130px;
  position: relative;
}
.partner-item::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--brand-color, transparent);
  transform: scaleX(0); transform-origin: center;
  transition: transform .35s;
}
.partner-item:hover::after { transform: scaleX(1); }
.partner-item:hover { background: rgba(255,255,255,.03); }
.partner-item img {
  height: 52px; width: auto; max-width: 100px; object-fit: contain;
  filter: grayscale(1) brightness(10) opacity(0.35);
  transition: filter .4s;
}
.partner-item:hover img {
  filter: grayscale(0) brightness(1) opacity(1);
}
.partner-wordmark {
  height: 52px; width: 110px; display: flex; align-items: center; justify-content: center;
}
.partner-item-name {
  font-family: var(--font-d); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.25);
  transition: color .3s;
}
.partner-item:hover .partner-item-name { color: rgba(255,255,255,.55); }

/* ─── CTA BANNER (shared) ────────────────────────────── */
.cta-band { background: var(--red); padding: 4rem 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 28px,
    rgba(0,0,0,0.055) 28px, rgba(0,0,0,0.055) 56px
  );
}
.cta-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-title {
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  text-transform: uppercase; line-height: 1.1;
}
.cta-sub { font-size: 0.95rem; opacity: 0.85; margin-top: 0.4rem; font-weight: 300; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.85rem; color: var(--grey); line-height: 1.75;
  margin-top: 1.2rem; max-width: 290px;
}
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.social-link {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey); font-size: 0.8rem; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--red); color: var(--red); }
.footer-heading {
  font-family: var(--font-d); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.2rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a {
  font-size: 0.86rem; color: var(--grey);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer-copy { font-size: 0.76rem; color: var(--grey); }
.footer-copy a { color: var(--red); text-decoration: none; }
.footer-vay { font-family: var(--font-d); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
.footer-vay span { color: var(--red); }

/* ─── REVEAL ANIMATION ───────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ─── STAT BLOCKS ────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(202,21,24,0.12); }
.stat-block { background: var(--dark); padding: 2.5rem 2rem; text-align: center; }
.stat-num {
  font-family: var(--font-d); font-size: clamp(2.5rem,4vw,3.5rem);
  font-weight: 800; line-height: 1; color: var(--white);
}
.stat-num span { color: var(--red); }
.stat-label {
  font-family: var(--font-d); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--grey); margin-top: 0.5rem;
}

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(6,6,8,0.98);
    justify-content: center; align-items: center;
    z-index: 999; gap: 1.5rem;
  }
  .nav-links.open > li > a { font-size: 1.4rem; padding: 0.5rem 1.5rem; }
  .nav-dropdown { position: static; opacity:1; pointer-events:auto; transform:none; border:none; background:transparent; padding:0; }
  .nav-links.open .nav-dropdown a { font-size: 0.85rem; text-align:center; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .cta-inner { flex-direction: column; }
  section { padding: 4rem 0; }
}
@media (max-width: 1100px) {
  .partners-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .partners-row { grid-template-columns: repeat(2, 1fr); gap: 1px; }
}
