/* ThreatForged AI — Global Stylesheet
   Shared by all static pages. Page-specific styles stay inline.
   Ghost theme has its own screen.css — keep in sync with tokens here.
   ─────────────────────────────────────────────────────────────────── */

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

/* ═══════════════════════════════════════════════ DESIGN TOKENS */
:root {
  --navy:      #0A1628;
  --navy-dark: #04060D;
  --red:       #FF6B6B;
  --cyan:      #00E5FF;
  --orange:    #FF6B35;
  --steel:     #C9D1D9;
  --muted:     #8896A8;
  --border:    rgba(255,255,255,0.08);
  --grid:      rgba(0,229,255,0.08);
  --sans: 'Inter', system-ui, -apple-system, Helvetica Neue, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Courier New', monospace;
}

/* ═══════════════════════════════════════════════ BASE */
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--navy); color: var(--steel); font-family: var(--sans); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; }

/* ═══════════════════════════════════════════════ NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--steel); text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); background: var(--cyan); border: none; padding: 0.6rem 1.5rem; text-decoration: none; display: inline-block; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════════ HAMBURGER + MOBILE MENU */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; background: none; border: none; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--steel); transition: all 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); }
.mobile-menu { display: none; position: fixed; top: 80px; left: 0; right: 0; background: rgba(10,22,40,0.98); border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; flex-direction: column; gap: 1.25rem; z-index: 99; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; font-weight: 500; color: var(--steel); text-decoration: none; padding: 0.75rem 0; border-bottom: 1px solid var(--border); min-height: 44px; display: flex; align-items: center; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta { color: var(--cyan); font-family: var(--mono); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ═══════════════════════════════════════════════ PAGE HEADER
   Used on: about, pricing, privacy, terms
   The grid overlay, tag line, h1, and subtext are shared. */
.page-header { padding: 9rem 3rem 5rem; background: var(--navy-dark); position: relative; overflow: hidden; text-align: center; }
.page-header-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.page-tag { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; position: relative; }
.page-tag::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--cyan); }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: #fff; line-height: 1.05; margin-bottom: 1rem; position: relative; }
.page-header h1 span { color: var(--cyan); }
.page-header p { color: var(--muted); max-width: 600px; font-size: 1.05rem; position: relative; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════ SECTION TYPOGRAPHY */
section { padding: 5rem 3rem; }
.section-label { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--orange); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.section-label.red { color: var(--red); }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; color: #fff; line-height: 1.15; max-width: 640px; margin-bottom: 1rem; }
.section-sub { color: var(--muted); max-width: 560px; font-weight: 400; }

/* ═══════════════════════════════════════════════ BUTTONS */
.btn-primary { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); background: var(--cyan); border: none; padding: 0.9rem 2rem; text-decoration: none; display: inline-block; cursor: pointer; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); background: transparent; border: 1px solid rgba(0,229,255,0.35); padding: 0.9rem 2rem; text-decoration: none; display: inline-block; cursor: pointer; transition: background 0.2s; }
.btn-secondary:hover { background: rgba(0,229,255,0.08); }

/* ═══════════════════════════════════════════════ UTILITY */
.text-link { color: var(--cyan); text-decoration: none; transition: opacity 0.2s; }
.text-link:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════ LEGAL CONTENT
   Used on: privacy, terms */
.legal-wrap { max-width: 800px; margin: 0 auto; background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 3.5rem; }
.legal-wrap p, .legal-wrap ul { font-size: 16px; color: var(--steel); line-height: 1.85; margin-bottom: 1.5rem; }
.legal-wrap ul { padding-left: 1.5rem; }
.legal-wrap li { margin-bottom: 0.5rem; }
.legal-wrap h2 { font-size: 1.5rem; color: #fff; margin: 3rem 0 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.legal-wrap h2:first-of-type { margin-top: 0; }
.legal-wrap a { color: var(--cyan); text-decoration: none; transition: opacity 0.2s; }
.legal-wrap a:hover { opacity: 0.8; }
.effective-date { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: 0.05em; margin-bottom: 2.5rem; display: inline-block; padding: 0.4rem 0.8rem; background: rgba(0,229,255,0.05); border: 1px solid rgba(0,229,255,0.2); }

/* ═══════════════════════════════════════════════ FOOTER */
footer { padding: 2rem 3rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-left { display: flex; align-items: center; gap: 1.5rem; }
.footer-logo-img { height: 40px; width: auto; }
.footer-tagline { font-family: var(--mono); font-size: 11px; color: var(--steel); letter-spacing: 0.06em; }
.footer-right { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.25rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color 0.2s; display: flex; align-items: center; gap: 0.35rem; }
.footer-links a:hover { color: var(--steel); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ═══════════════════════════════════════════════ RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  section, .page-header { padding: 4rem 1.5rem; }
  .page-header { padding-top: 7rem; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-right { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
@media (max-width: 540px) {
  section, .page-header { padding: 3rem 1rem; }
  .page-header { padding-top: 6rem; }
  footer { padding: 1.5rem 1rem; }
  .legal-wrap { padding: 1.25rem; }
}
