/* ═══════════════════════════════════════════════════════════════
   VulnTrack+ — Design System
   ═══════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --blue:    #1A4FBF;
  --blue2:   #0A84FF;
  --blue-lt: #EEF4FF;
  --red:     #CC1A1A;
  --dark:    #0D1B2A;
  --mid:     #344A5E;
  --gray:    #64748B;
  --surface: #F4F6FA;
  --border:  #DDE3EE;
  --green:   #00873A;
  --amber:   #B45309;
  --white:   #FFFFFF;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Courier New', monospace;

  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(13,27,42,.06), 0 1px 2px rgba(13,27,42,.04);
  --shadow:    0 4px 16px rgba(13,27,42,.08), 0 2px 6px rgba(13,27,42,.04);
  --shadow-lg: 0 16px 48px rgba(13,27,42,.12), 0 6px 16px rgba(13,27,42,.06);

  --transition: .18s cubic-bezier(.16,1,.3,1);
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  color: var(--dark);
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { color: var(--mid); line-height: 1.72; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-5  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }

/* ─── Section helpers ────────────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue2);
  margin-bottom: .75rem;
  display: block;
}
.section-label--light { color: #60A5FA; }
.section-label--amber { color: var(--amber); }

.section-h { font-family: var(--font-display); font-weight: 800; margin-bottom: 1rem; }
.section-sub { color: var(--mid); font-size: 1.05rem; max-width: 640px; line-height: 1.72; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }
.text-white  { color: #fff !important; }
.text-light  { color: #94A3B8 !important; }
.text-blue   { color: var(--blue2) !important; }

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink  { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-6px); }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes progressFill { from { width: 0; } to { width: 68%; } }
@keyframes scanLine {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(400px); opacity: 0; }
}

/* ─── Reveal (IntersectionObserver) ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── Focus visible ──────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 3px; border-radius: 4px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .grid-5 { grid-template-columns: 1fr; }
}
