/* =============================================================
   B5 Cyber — Shared Theme
   ============================================================= */

:root {
  --b5-blue:        #2563EB;
  --b5-blue-dk:     #1D4ED8;
  --b5-blue-lt:     #3B82F6;
  --b5-blue-tint:   #EFF6FF;
  --b5-text:        #0f172a;
  --b5-text-muted:  #475569;
  --b5-text-dim:    #64748b;
  --b5-text-faint:  #94a3b8;
  --b5-border:      #e2e8f0;
  --b5-bg-alt:      #f8fafc;
  --b5-dark-card:   #070b14;
  --b5-dark-border: rgba(37,99,235,.12);
}

/* ---- Reset & base ---- */
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  background: #ffffff;
  color: #0f172a;
  overflow-x: hidden;
}
h2, h3, .font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ---- Grain overlay ---- */
.grain::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .012;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

/* ---- Hero dark zone ---- */
#hero {
  background: #05080e;
  isolation: isolate;
}

/* ---- Grid background ---- */
.b5-grid {
  background-image:
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---- Animations ---- */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: translateY(0) } }
@keyframes floatY   { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes pulseDot { 0%,100% { opacity: .5 } 50% { opacity: 1 } }

.afu  { animation: fadeUp .75s cubic-bezier(.22,1,.36,1) both }
.afu1 { animation-delay: .08s } .afu2 { animation-delay: .18s }
.afu3 { animation-delay: .28s } .afu4 { animation-delay: .38s }
.afu5 { animation-delay: .48s }
.float { animation: floatY 6s ease-in-out infinite }
.pdot  { animation: pulseDot 2.2s ease-in-out infinite }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal.on { opacity: 1; transform: translateY(0) }

/* ---- Nav ---- */
.nav-link { position: relative; transition: color .2s ease }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--b5-blue);
  transition: width .3s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover { color: var(--b5-blue) !important }
.nav-link:hover::after { width: 100% }

/* ---- Service cards — dark glass on white ---- */
.card {
  background: var(--b5-dark-card);
  border: 1px solid rgba(37,99,235,.1);
  box-shadow: 0 4px 28px rgba(0,0,0,.22), 0 1px 4px rgba(0,0,0,.12);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.card.pc:hover {
  transform: translateY(-5px);
  border-color: rgba(37,99,235,.32) !important;
  box-shadow: 0 0 0 1px rgba(37,99,235,.1), 0 0 48px rgba(37,99,235,.14), 0 16px 48px rgba(0,0,0,.3) !important;
}
.card.tc:hover {
  transform: translateY(-5px);
  border-color: rgba(59,130,246,.28) !important;
  box-shadow: 0 0 0 1px rgba(59,130,246,.08), 0 0 48px rgba(59,130,246,.12), 0 16px 48px rgba(0,0,0,.3) !important;
}
.svc-icon { transition: transform .3s cubic-bezier(.22,1,.36,1) }
.card:hover .svc-icon { transform: scale(1.1) }

/* ---- Buttons ---- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(37,99,235,.3), 0 6px 20px rgba(0,0,0,.15) !important;
}
.btn-primary:hover::before { opacity: 1 }
.btn-primary:active { transform: translateY(0) }
.btn-primary:focus-visible { outline: 2px solid var(--b5-blue); outline-offset: 3px }

.btn-ghost {
  transition: transform .2s cubic-bezier(.22,1,.36,1), background-color .2s ease, border-color .2s ease;
}
.btn-ghost:hover {
  transform: translateY(-1px);
  background-color: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.3) !important;
}
.btn-ghost:active { transform: translateY(0) }
.btn-ghost:focus-visible { outline: 2px solid var(--b5-blue); outline-offset: 3px }

/* ---- Form inputs ---- */
input, textarea, select { transition: border-color .2s ease, box-shadow .2s ease }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(37,99,235,.45) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
input::placeholder, textarea::placeholder { color: #4a5568 }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px }
::-webkit-scrollbar-track { background: #f8fafc }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px }
::-webkit-scrollbar-thumb:hover { background: var(--b5-blue) }

/* ---- Service page section headings ---- */
.svc-h2 {
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-size: clamp(2rem, 3vw, 3.25rem);
}

/* ---- Sub-page hero heading ---- */
.svc-h1 {
  font-weight: 200;
  letter-spacing: -.025em;
  line-height: 1.1;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  color: #fff;
}

/* ---- Large monitor scaling ---- */
/* Widen the main container beyond max-w-6xl (1152px) on large screens */
@media (min-width: 1400px) {
  .max-w-6xl { max-width: 1320px !important; }
}
@media (min-width: 1800px) {
  .max-w-6xl { max-width: 1560px !important; }
}

/* ---- Utility ---- */
.stat-num { font-family: 'Syne', sans-serif; font-weight: 700; letter-spacing: -.03em }
.step-card {
  background: var(--b5-dark-card);
  border: 1px solid rgba(37,99,235,.1);
  box-shadow: 0 4px 28px rgba(0,0,0,.22);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease, box-shadow .3s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.28);
  box-shadow: 0 0 40px rgba(37,99,235,.1), 0 12px 40px rgba(0,0,0,.28);
}
