/* ═══════════════════════════════════════════════════════════════════════════
   SafeGuard — Cinematic Dark Design System
   EApps Development LLC © 2026
═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  --bg:           #060a10;
  --bg-2:         #0a1020;
  --bg-glass:     rgba(255,255,255,0.04);
  --bg-glass-h:   rgba(255,255,255,0.07);
  --teal:         #00e5b0;
  --teal-dim:     #00b88a;
  --teal-glow:    rgba(0,229,176,0.25);
  --teal-glow-s:  rgba(0,229,176,0.12);
  --purple:       #8b5cf6;
  --purple-glow:  rgba(139,92,246,0.2);
  --red:          #ff4757;
  --red-glow:     rgba(255,71,87,0.2);
  --white:        #ffffff;
  --text:         rgba(255,255,255,0.88);
  --text-dim:     rgba(255,255,255,0.5);
  --text-dimmer:  rgba(255,255,255,0.28);
  --border:       rgba(255,255,255,0.08);
  --border-h:     rgba(0,229,176,0.3);
  --radius:       16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition:   0.35s cubic-bezier(0.23,1,0.32,1);
  --transition-f: 0.18s cubic-bezier(0.23,1,0.32,1);
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ───────────────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width var(--transition-f), height var(--transition-f), opacity var(--transition-f);
  mix-blend-mode: screen;
}

.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(0,229,176,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: all 0.12s ease;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 20px; height: 20px; }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 60px; height: 60px; border-color: var(--teal); }

/* ── SCROLLBAR ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,229,176,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ── SELECTION ───────────────────────────────────────────────────────────── */
::selection { background: rgba(0,229,176,0.2); color: var(--teal); }

/* ── LINKS ───────────────────────────────────────────────────────────────── */
a { color: var(--teal); text-decoration: none; transition: color var(--transition-f); cursor: none; }
a:hover { color: white; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { line-height: 1.15; font-weight: 800; color: var(--white); }
h1 { font-size: clamp(2.4rem,6vw,4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem,3.5vw,3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p  { color: var(--text-dim); line-height: 1.8; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}

nav.scrolled {
  background: rgba(6,10,16,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(26,86,219,0.4);
  flex-shrink: 0;
}

.nav-logo-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.nav-logo .teal { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--teal);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--teal), #00b8d9);
  color: var(--bg) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  box-shadow: 0 0 20px var(--teal-glow);
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0,229,176,0.45) !important;
  color: var(--bg) !important;
}

.nav-cta::after { display: none !important; }

/* ── HAMBURGER ───────────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── REVEAL ANIMATIONS ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.23,1,0.32,1), transform 0.7s cubic-bezier(0.23,1,0.32,1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.23,1,0.32,1), transform 0.7s cubic-bezier(0.23,1,0.32,1);
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.23,1,0.32,1), transform 0.7s cubic-bezier(0.23,1,0.32,1);
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 120px 0; position: relative; }

/* ── GLASS CARD ──────────────────────────────────────────────────────────── */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass:hover {
  background: var(--bg-glass-h);
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,229,176,0.08), 0 0 0 1px rgba(0,229,176,0.1);
}

/* ── LABEL ───────────────────────────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,229,176,0.08);
  border: 1px solid rgba(0,229,176,0.2);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: none;
  transition: all var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1),transparent);
  opacity: 0;
  transition: opacity var(--transition-f);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, #00b8d9 100%);
  color: var(--bg);
  box-shadow: 0 0 24px var(--teal-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 40px rgba(0,229,176,0.5);
  color: var(--bg);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--white);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--teal-glow-s);
}

/* ── GRADIENT TEXT ───────────────────────────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, var(--teal) 0%, #00b8d9 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── DIVIDER ─────────────────────────────────────────────────────────────── */
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ── NOISE OVERLAY ───────────────────────────────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  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='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)'/%3E%3C/svg%3E");
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
}

.footer-brand p { font-size: 0.9rem; color: var(--text-dimmer); line-height: 1.75; max-width: 260px; margin-top: 16px; }

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a  { color: var(--text-dim); font-size: 0.9rem; transition: color var(--transition-f); }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-dimmer);
}

/* ── LEGAL PAGES ─────────────────────────────────────────────────────────── */
.legal-hero {
  padding: 140px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center top, rgba(0,229,176,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero h1 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 12px; }
.legal-hero p  { color: var(--text-dim); }

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px 120px;
}

.legal-body .effective-date {
  display: inline-block;
  background: rgba(0,229,176,0.08);
  border: 1px solid rgba(0,229,176,0.2);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 48px;
}

.legal-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 52px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}

.legal-body p,
.legal-body li {
  color: var(--text-dim);
  margin-bottom: 14px;
  line-height: 1.85;
}

.legal-body ul,
.legal-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.legal-body ul li,
.legal-body ol li { margin-bottom: 8px; }

.legal-body .highlight-box {
  background: rgba(0,229,176,0.06);
  border-left: 3px solid var(--teal);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}

.legal-body .highlight-box p { color: rgba(0,229,176,0.85); margin: 0; font-size: 0.95rem; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(6,10,16,0.97);
    backdrop-filter: blur(20px);
    padding: 40px 32px;
    gap: 28px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.5rem; font-weight: 700; color: var(--text-dim); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
