/* ══════════════════════════════════════
   VEILBREAKER — SHARED STYLES
   Used by index.html, privacy.html, terms.html
   ══════════════════════════════════════ */

@font-face { font-family: 'Oxanium'; src: url('Oxanium-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Oxanium'; src: url('Oxanium-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Oxanium'; src: url('Oxanium-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

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

:root {
  --bg: #0A0A0F;
  --surface: #111118;
  --surface2: #16161E;
  --surface-el: #1C1C26;
  --text: #E8E8ED;
  --text2: #9494A8;
  --text3: #5A5A72;
  --accent: #5B9CF5;
  --green: #2DD4A0;
  --orange: #FF6B35;
  --red: #FF3B4A;
  --yellow: #F5A623;
  --gold: #D4A843;
  --border: #1E1E2A;
  --border2: #2A2A3A;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }

/* ── NOISE TEXTURE ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── DOT GRID ── */
.dot-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(91,156,245,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── LAYOUT ── */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 32px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.4s; border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
nav.sticky-nav {
  position: sticky; top: 0;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.nav-logo img { height: 52px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text3); font-size: 13px; font-weight: 600;
  letter-spacing: 0.3px; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 700;
  font-size: 12px; letter-spacing: 0.8px; transition: all 0.2s;
}
.nav-cta:hover { box-shadow: 0 0 20px rgba(91,156,245,0.3); transform: translateY(-1px); }
.mobile-toggle {
  display: none; width: 36px; height: 36px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-toggle span { display: block; width: 16px; height: 2px; background: var(--text2); position: relative; }
.mobile-toggle span::before, .mobile-toggle span::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 2px; background: var(--text2);
}
.mobile-toggle span::before { top: -5px; }
.mobile-toggle span::after { top: 5px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative; z-index: 2;
}
.foot-grid {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 40px; margin-bottom: 36px;
}
.foot-brand p { font-size: 13px; color: var(--text3); max-width: 240px; margin-top: 12px; line-height: 1.6; }
.foot-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--text3); margin-bottom: 14px; text-transform: uppercase;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { font-size: 13px; color: var(--text2); transition: color 0.2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  text-align: center; font-size: 12px; color: var(--text3);
  padding-top: 24px; border-top: 1px solid var(--border);
}
.foot-bottom a { color: var(--text2); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav .wrap { position: relative; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: -32px; right: -32px;
    flex-direction: column; gap: 0;
    background: #0A0A0F; border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    z-index: 200;
  }
  .nav-links.show { display: flex; }
  .nav-links li { padding: 10px 0; }
  .nav-links a { font-size: 15px; }
  .mobile-toggle { display: flex; }
  .foot-grid { flex-direction: column; gap: 28px; }
}
