/* ═══════════════════════════════════════════════════════════════
   ncrptx Design System v2 — Shared CSS
   Import in all static pages: <link rel="stylesheet" href="/shared/style.css">
   ═══════════════════════════════════════════════════════════════ */

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

/* ── Tokens ── */
:root {
  --bg: #050816;
  --bg-2: #0a1025;
  --bg-3: #131a36;
  --text: #e6e9f5;
  --muted: #7a849a;
  --cyan: #06e1ff;
  --cyan-glow: rgba(6, 225, 255, 0.25);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.2);
  --pink: #f472b6;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #fbbf24;
  --border: rgba(139, 92, 246, 0.12);
  --border-hover: rgba(6, 225, 255, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 40px rgba(6, 225, 255, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Typography ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }

/* ── Ambient background ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 1400px 700px at 50% -200px, rgba(6, 225, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 900px 500px at 100% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse 600px 400px at 0% 80%, rgba(244, 114, 182, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Grid overlay (subtle) ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(6, 225, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 225, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 76px;
  background: rgba(5, 8, 22, 0.75);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.03em;
}
.logo-dot {
  width: 10px; height: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 2px;
  box-shadow: 0 0 14px var(--cyan);
  animation: pulse-dot 3s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 14px var(--cyan); }
  50% { box-shadow: 0 0 24px var(--cyan), 0 0 8px var(--purple); }
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 1px;
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--purple)) !important;
  color: var(--bg) !important;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-weight: 600 !important; font-size: 0.85rem;
  box-shadow: 0 0 20px var(--cyan-glow);
  transition: all var(--transition);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 35px var(--cyan-glow);
}
.nav-cta::after { display: none; }

/* ── Hero ── */
.hero {
  padding: 160px 6% 100px;
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  margin-bottom: 24px;
  position: relative;
}
.hero h1 span, .gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 44px;
  font-weight: 300;
  position: relative;
}

/* ── Sections ── */
.section {
  padding: 80px 6%;
  max-width: 1280px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem; font-weight: 300;
  max-width: 580px;
}

/* ── Grid ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Cards ── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-card);
}
.card:hover::before { opacity: 0.15; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(6, 225, 255, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.card:hover .card-icon {
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: scale(1.05);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg);
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: 0 0 30px var(--cyan-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--cyan-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: var(--bg);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ── Stats bar ── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
  padding: 48px 0; margin: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  color: var(--muted); font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Text content (legal pages) ── */
.text-content { max-width: 800px; margin: 0 auto; }
.text-content h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.text-content h2:first-of-type { margin-top: 0; }
.text-content p { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }
.text-content li { color: var(--muted); margin-bottom: 8px; font-size: 0.95rem; }
.text-content ul { padding-left: 24px; margin-bottom: 16px; }
.text-content strong { color: var(--text); }
.text-content a { color: var(--cyan); }

/* ── FAQ ── */
.faq { margin-top: 40px; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 12px;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-q {
  font-weight: 600; font-size: 1.02rem;
  color: var(--text);
  cursor: pointer;
}
.faq-a {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  line-height: 1.8;
}

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 225, 255, 0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(122, 132, 154, 0.6);
}

/* ── Footer ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 6% 28px;
  margin-top: 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1280px; margin: 0 auto 40px;
}
.footer-col h4 {
  font-size: 0.72rem; color: var(--text);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
}
.footer-col a {
  display: block;
  color: var(--muted); font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color var(--transition), transform var(--transition);
}
.footer-col a:hover { color: var(--cyan); transform: translateX(4px); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 0.82rem;
  flex-wrap: wrap; gap: 12px;
}

/* ── Scroll animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ── Code blocks ── */
code {
  background: var(--bg-2);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  color: var(--cyan);
  border: 1px solid var(--border);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-cyan { background: rgba(6, 225, 255, 0.12); color: var(--cyan); border: 1px solid rgba(6, 225, 255, 0.2); }
.badge-purple { background: rgba(139, 92, 246, 0.12); color: var(--purple); border: 1px solid rgba(139, 92, 246, 0.2); }
.badge-green { background: rgba(74, 222, 128, 0.12); color: var(--green); border: 1px solid rgba(74, 222, 128, 0.2); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  margin: 60px 0;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 120px 5% 60px; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 60px 5%; }
  .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .stats-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
