/* ═══════════════════════════════════════════════════════════════
   FRACTAL COMPUTING — DEFENSE
   Common styles shared across all pages
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
  --ink:        #030507;
  --deep:       #060b12;
  --surface:    #0a1220;
  --panel:      #0e1928;
  --panel-hi:   #121f32;
  --border:     rgba(224,138,0,0.18);
  --border-dim: rgba(224,138,0,0.08);
  --border-blue:rgba(26,122,255,0.18);

  --text:       #c4d8ef;
  --text-dim:   #607898;
  --text-muted: #2e4560;

  --amber:       #e08a00;
  --amber-bright:#f5a020;
  --amber-glow:  rgba(224,138,0,0.10);
  --blue:        #1a7aff;
  --blue-bright: #4d9dff;
  --blue-glow:   rgba(26,122,255,0.10);
  --teal:        #00c9a7;
  --teal-bright: #33dfc0;
  --teal-glow:   rgba(0,201,167,0.08);
  --red:         #e83232;
  --red-bright:  #ff5a5a;
  --red-glow:    rgba(232,50,50,0.08);
  --violet:      #b94dff;
  --violet-glow: rgba(185,77,255,0.09);
  --gold:        #f0c040;
  --green:       #22c55e;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
p { margin-bottom: 20px; color: var(--text); }
p:last-child { margin-bottom: 0; }
strong { color: #fff; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   TACTICAL BACKGROUND CANVAS
═══════════════════════════════════════════════════════════════ */
#tac-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.site { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════
   NAV BAR
═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(3,5,7,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber-bright); }
.nav-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.nav-cta:hover, .nav-cta.active { background: var(--amber-bright); transform: translateY(-1px); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { padding: 0 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER  (contact + resources)
═══════════════════════════════════════════════════════════════ */
.page-header {
  padding: 128px 80px 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-header::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 85% 30%, rgba(224,138,0,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(26,122,255,0.06) 0%, transparent 50%);
}
.ph-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.ph-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ph-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--amber); }
.ph-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}
.ph-title .accent { color: var(--amber); }
.ph-body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════
   CALLOUT  (index + resources)
═══════════════════════════════════════════════════════════════ */
.callout {
  padding: 28px 32px;
  margin: 36px 0;
  border-left: 3px solid var(--amber);
  background: var(--amber-glow);
  border-radius: 0 4px 4px 0;
}
.callout.blue  { border-left-color: var(--blue);  background: var(--blue-glow); }
.callout.teal  { border-left-color: var(--teal);  background: var(--teal-glow); }
.callout.red   { border-left-color: var(--red);   background: var(--red-glow); }
.callout p { margin: 0; font-size: 16px; font-style: italic; color: var(--text); }
.callout strong { color: var(--amber-bright); }
.callout.blue  strong { color: var(--blue-bright); }
.callout.teal  strong { color: var(--teal-bright); }
.callout.red   strong { color: var(--red-bright); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 40px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-left { display: flex; align-items: center; gap: 24px; }
.footer-logo img { height: 28px; width: auto; display: block; }
.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.footer-right {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.8;
  text-align: right;
}
.footer-right strong { color: #fff; font-weight: 500; }
.footer-right a { color: var(--blue-bright); text-decoration: none; }
.footer-right a:hover { color: var(--blue); }

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
