/* ============================================================
   MAVERICK SECURITY LLC — Design System
   Dark nautical / refined industrial aesthetic
   Fonts: Bebas Neue (display) + Source Serif 4 (body) + JetBrains Mono (code/labels)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --navy:        #070d1a;
  --navy-mid:    #0d1829;
  --navy-light:  #142236;
  --navy-card:   #0f1e33;
  --cyan:        #00d4d4;
  --cyan-dim:    #00a8a8;
  --cyan-glow:   rgba(0,212,212,0.15);
  --cyan-border: rgba(0,212,212,0.25);
  --amber:       #f0a500;
  --amber-dim:   rgba(240,165,0,0.12);
  --white:       #f0f4f8;
  --grey:        #8fa3bc;
  --grey-dim:    #4a6070;
  --red:         #e05252;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:  4px;
  --radius-lg: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-cyan: 0 0 30px rgba(0,212,212,0.15);
  --transition: 0.2s ease;
  --max-w: 1160px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); letter-spacing: 0.04em; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }
p  { color: var(--grey); font-size: 1.05rem; }
a  { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; position: relative; z-index: 1; }
.section-sm { padding: 4rem 0; position: relative; z-index: 1; }

/* ── Navigation ──────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,13,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,212,212,0.12);
  height: 68px;
  display: flex; align-items: center;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--white);
  display: flex; align-items: center; gap: 0.6rem;
}
.nav-logo span { color: var(--cyan); }
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo img { height: 40px; width: auto; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 2.2rem; list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--cyan); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.nav-cta:hover { background: var(--cyan); color: var(--navy) !important; }

.nav-mobile-btn {
  display: none; background: none; border: none;
  color: var(--grey); cursor: pointer; padding: 0.5rem;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--cyan-border);
    padding: 1.5rem 2rem 2rem;
  }
  .nav-links.open li a { font-size: 1rem; padding: 0.75rem 0; display: block; }
  .nav-mobile-btn { display: flex; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
  font-weight: 600;
}
.btn-primary:hover {
  background: transparent; color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,212,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(240,244,248,0.3);
}
.btn-outline:hover { border-color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan-border);
}
.btn-ghost:hover { background: var(--cyan-glow); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--cyan-border);
  transform: translateY(-2px);
}

/* ── Dividers & accents ──────────────────────────────────── */
.cyan-line {
  width: 48px; height: 2px;
  background: var(--cyan);
  margin: 1rem 0 1.5rem;
}
.section-header { margin-bottom: 3.5rem; }
.section-header .label { margin-bottom: 0.75rem; }

/* ── Grid helpers ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.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; }
@media (max-width: 900px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

/* ── Stat blocks ─────────────────────────────────────────── */
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--cyan);
  line-height: 1;
}
.stat-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--grey); letter-spacing: 0.08em; }

/* ── Badge / tag ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 2px;
  border: 1px solid var(--cyan-border);
  color: var(--cyan); background: var(--cyan-glow);
}

/* ── Framework pills ─────────────────────────────────────── */
.framework-grid {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem;
}
.framework-pill {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; padding: 0.5rem 1rem;
  border: 1px solid rgba(0,212,212,0.2);
  border-radius: var(--radius); color: var(--grey);
  background: rgba(0,212,212,0.04);
}
.framework-pill strong { display: block; color: var(--white); font-size: 0.8rem; margin-bottom: 0.1rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(0,212,212,0.12);
  padding: 3rem 0 2rem;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand .nav-logo { font-size: 1.2rem; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--grey); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.82rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 68px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(0,80,100,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(0,212,212,0.05) 0%, transparent 60%),
    var(--navy);
}
/* Animated grid lines */
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 30%, transparent 80%);
}
.hero-content { position: relative; z-index: 1; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-border {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,212,212,0); }
  50%      { box-shadow: 0 0 0 6px rgba(0,212,212,0.08); }
}
.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Misc utils ──────────────────────────────────────────── */
.text-cyan  { color: var(--cyan); }
.text-amber { color: var(--amber); }
.text-grey  { color: var(--grey); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.flex-center { display: flex; align-items: center; gap: 1rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }

/* ── Horizontal rule ─────────────────────────────────────── */
hr.dim { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 3rem 0; }

/* ── Alert / callout ─────────────────────────────────────── */
.callout {
  background: var(--amber-dim);
  border: 1px solid rgba(240,165,0,0.25);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem; color: var(--white);
}
.callout strong { color: var(--amber); }

/* ── Compliance table ────────────────────────────────────── */
table.compliance {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
}
table.compliance th {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cyan-border);
}
table.compliance td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--grey); vertical-align: top;
}
table.compliance tr:hover td { background: rgba(0,212,212,0.03); }
table.compliance td:first-child { color: var(--white); font-weight: 600; }

/* ── Page header (inner pages) ───────────────────────────── */
.page-header {
  padding: 8rem 0 4rem;
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(0,212,212,0.08);
  position: relative; z-index: 1;
}
