/* ============================================================
   Trustmura — Complete CSS Design System
   Dark blockchain / security platform theme
   All class names match EJS templates exactly
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   1. CSS Variables
   ============================================================ */
:root {
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-red: #ef4444;
  --accent-pink: #ec4899;
  --dark-400: #4b5563;
  --dark-500: #374151;
  --dark-600: #1f2937;
  --dark-700: #111827;
  --dark-800: #0d0d14;
  --dark-900: #0a0a0f;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --container-max: 1280px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.3);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.3);
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--dark-900);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
::selection { background-color: rgba(59, 130, 246, 0.4); color: #fff; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-400); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-500); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--dark-800); }
::-webkit-scrollbar-thumb { background: var(--dark-500); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-400); }
* { scrollbar-width: thin; scrollbar-color: var(--dark-500) var(--dark-800); }

/* ============================================================
   3. Layout
   ============================================================ */
.section-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section-padding { padding-top: 80px; padding-bottom: 80px; }
.section-padding-lg { padding-top: 112px; padding-bottom: 112px; }

/* ============================================================
   4. Glass Morphism
   ============================================================ */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}
.glass-hover {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), background-color var(--transition-base),
              border-color var(--transition-base), box-shadow var(--transition-base);
}
.glass-hover:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(59, 130, 246, 0.08);
}
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ============================================================
   5. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary-400), var(--accent-cyan), var(--accent-purple));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.shimmer-text {
  background: linear-gradient(90deg, var(--primary-400) 0%, var(--accent-cyan) 25%, var(--accent-purple) 50%, var(--accent-cyan) 75%, var(--primary-400) 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
.text-glow { animation: textGlow 3s ease-in-out infinite; }
.monospace { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.125rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto; line-height: 1.75; }

/* ============================================================
   6. Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; font-size: 0.9375rem; font-weight: 600;
  border-radius: var(--radius-md); position: relative; overflow: hidden;
  white-space: nowrap; cursor: pointer; line-height: 1.4;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35); border: none;
  transition: all var(--transition-base); text-decoration: none;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5); transform: translateY(-2px); color: #fff; }
.btn-primary:hover::before { left: 100%; }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; font-size: 0.9375rem; font-weight: 600;
  border-radius: var(--radius-md); cursor: pointer; line-height: 1.4;
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-color-hover);
  transition: all var(--transition-base); text-decoration: none;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--primary-400); color: var(--primary-400); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; font-size: 0.9375rem; font-weight: 600;
  border-radius: var(--radius-md); cursor: pointer; line-height: 1.4;
  background: rgba(255, 255, 255, 0.04); color: var(--text-secondary); border: none;
  transition: all var(--transition-base); text-decoration: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }

/* ============================================================
   7. Card Grids
   ============================================================ */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card-grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   8. Keyframe Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2); }
  50% { text-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(59, 130, 246, 0.3); }
}
@keyframes pulseSlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 0 15px rgba(59, 130, 246, 0.1); }
  50% { border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 0 25px rgba(59, 130, 246, 0.2); }
}
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Fade-up: start invisible, JS adds .visible to trigger */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   9. Visual Effects / Backgrounds
   ============================================================ */
.bg-grid {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
#particleCanvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.floating-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; animation: floatSlow 8s ease-in-out infinite; z-index: 0;
}
.floating-orb-1 {
  width: 400px; height: 400px; top: -100px; right: -100px;
  background: rgba(59, 130, 246, 0.15);
}
.floating-orb-2 {
  width: 300px; height: 300px; bottom: -80px; left: -80px;
  background: rgba(6, 182, 212, 0.1);
  animation-delay: -3s;
}
.scan-line {
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: scanline 4s linear infinite; opacity: 0.4;
  pointer-events: none; z-index: 1;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.glow-border {
  border: 1px solid rgba(59, 130, 246, 0.3);
  animation: borderGlow 3s ease-in-out infinite;
}
.glow-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background-color: var(--accent-green); box-shadow: 0 0 8px var(--accent-green);
  animation: pulseSlow 2s ease-in-out infinite;
}

.bg-radial-glow { position: relative; }
.bg-radial-glow::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.05) 30%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ============================================================
   10. Header / Navigation
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 50;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}
.header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-primary);
}
.logo:hover { color: var(--text-primary); }
.logo-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.875rem; color: #fff;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 1.125rem; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
.logo-subtitle { font-size: 0.6875rem; color: var(--text-secondary); line-height: 1.2; }

.nav-desktop { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 14px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: var(--primary-400); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; font-size: 0.875rem;
  color: var(--text-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); background: transparent;
  cursor: pointer; transition: all var(--transition-fast);
}
.lang-btn:hover { border-color: var(--border-color-hover); color: var(--text-primary); }

.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 140px; background: var(--dark-700);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition-fast); z-index: 60;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: block; width: 100%; padding: 8px 12px; font-size: 0.875rem;
  color: var(--text-secondary); border-radius: var(--radius-sm);
  text-align: left; transition: all var(--transition-fast); text-decoration: none;
}
.lang-option:hover, .lang-option.active { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }

/* Mobile */
.mobile-toggle {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text-primary);
  transition: background-color var(--transition-fast);
}
.mobile-toggle:hover { background: rgba(255, 255, 255, 0.05); }

.nav-mobile {
  display: none; position: fixed;
  top: var(--header-height); left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 24px; z-index: 49; overflow-y: auto;
}
.nav-mobile.open { display: block; animation: fadeIn 0.2s ease; }
.nav-mobile .nav-link {
  display: block; padding: 14px 16px; font-size: 1.0625rem;
  border-bottom: 1px solid var(--border-color);
}

/* ============================================================
   11. Hero Section
   ============================================================ */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
  padding-top: calc(var(--header-height) + 60px); padding-bottom: 80px;
}
.hero-sm { min-height: 50vh; }
.hero-content {
  position: relative; z-index: 2; text-align: center; width: 100%;
}
.hero-title {
  font-size: 4rem; font-weight: 900; line-height: 1.1;
  margin-bottom: 24px; letter-spacing: -0.03em;
}
.hero-subtitle {
  font-size: 1.25rem; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.75;
}
.hero-actions {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 60px;
}
.hero-gradient-line {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  height: 2px; width: 100%; max-width: 500px;
  background: linear-gradient(90deg, transparent, var(--primary-400), var(--accent-cyan), var(--primary-400), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite; border-radius: 1px; z-index: 2;
}

/* Stat Cards — when combined with .glass, .glass provides the bg/border */
.stat-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: 24px; transition: all var(--transition-base); text-align: center;
}
.stat-card:not(.glass) {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color);
}
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-cyan));
  opacity: 0; transition: opacity var(--transition-base);
}
.stat-card:hover { border-color: var(--border-color-hover); transform: translateY(-2px); }
.stat-card:hover::after { opacity: 1; }
.stat-card .stat-value { font-size: 2.5rem; font-weight: 800; margin-bottom: 4px; display: block; }
.stat-card .stat-label { font-size: 0.875rem; color: var(--text-secondary); display: block; }

/* Stats Banner (inline stats row) */
.stats-banner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding: 0; border-radius: var(--radius-lg);
}
.stats-banner .stat-card {
  border: none; border-radius: 0; background: transparent;
  border-right: 1px solid var(--border-color);
}
.stats-banner .stat-card:last-child { border-right: none; }

/* Badge Pill */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; font-size: 0.8125rem; font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--primary-400);
  background: rgba(59, 130, 246, 0.08);
}
.badge-pill.badge-green, .badge-pill.badge-green {
  color: var(--accent-green); border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}
.badge-pill.badge-yellow {
  color: var(--accent-orange); border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
}

/* ============================================================
   12. Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-color); background: var(--dark-800);
  padding-top: 64px; padding-bottom: 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-desc {
  color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; margin-top: 12px;
}
.footer-socials {
  display: flex; gap: 12px; margin-top: 20px;
}
.social-link {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color); color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.social-link:hover {
  background: rgba(59, 130, 246, 0.15); border-color: var(--primary-500);
  color: var(--primary-400); transform: translateY(-2px);
}

.footer-col {}
.footer-heading {
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-primary); margin-bottom: 20px;
}
.footer-link {
  display: block; padding: 6px 0; font-size: 0.875rem;
  color: var(--text-secondary); transition: color var(--transition-fast); text-decoration: none;
}
.footer-link:hover { color: var(--primary-400); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; border-top: 1px solid var(--border-color);
  font-size: 0.8125rem; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--text-secondary); }

/* ============================================================
   13. Service Cards (Homepage)
   ============================================================ */
.service-card {
  padding: 32px; display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.service-card h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); letter-spacing: 0; }
.service-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.service-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-link {
  font-size: 0.875rem; font-weight: 600; color: var(--primary-400);
  margin-top: 16px; display: inline-block;
  transition: color var(--transition-fast);
}
.service-card:hover .service-link { color: var(--accent-cyan); }

/* ============================================================
   14. Feature Cards (Subpages)
   ============================================================ */
.feature-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition-base); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-500), transparent);
  opacity: 0; transition: opacity var(--transition-base);
}
.feature-card:hover { border-color: var(--border-color-hover); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }

.feature-emoji { font-size: 2rem; display: block; margin-bottom: 16px; }
.feature-number {
  width: 40px; height: 40px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.875rem; color: #fff; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-cyan));
}

/* ============================================================
   15. Steps Grid
   ============================================================ */
.steps-grid {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.steps-grid-4 { justify-content: center; }
.step-card {
  padding: 32px; text-align: center; flex: 1; min-width: 200px; max-width: 280px;
}
.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-cyan));
}
.step-connector { display: flex; align-items: center; flex-shrink: 0; }

/* ============================================================
   16. Code Blocks
   ============================================================ */
.code-block {
  background: var(--dark-700); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8125rem; line-height: 1.7;
  margin-top: 12px;
}
.code-header, .code-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  font-family: 'Inter', sans-serif; font-size: 0.75rem; color: var(--text-muted);
}
.code-block pre {
  padding: 20px; overflow-x: auto; margin: 0; white-space: pre;
}
.code-block code {
  font-family: 'JetBrains Mono', monospace; color: var(--text-secondary);
}
.code-dot-red, .code-dot-yellow, .code-dot-green {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
}
.code-dot-red { background: #ef4444; }
.code-dot-yellow { background: #f59e0b; }
.code-dot-green { background: #10b981; }

code:not([class]) {
  font-family: 'JetBrains Mono', monospace; font-size: 0.85em;
  padding: 2px 6px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color); border-radius: 4px; color: var(--primary-400);
}

/* ============================================================
   17. API Table
   ============================================================ */
.api-table, .data-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
}
.api-table thead, .data-table thead { background: rgba(255, 255, 255, 0.04); }
.api-table th, .data-table th {
  padding: 14px 20px; text-align: left; font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
  border-bottom: 1px solid var(--border-color); white-space: nowrap;
}
.api-table td, .data-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary); vertical-align: top;
}
.api-table tbody tr:last-child td, .data-table tbody tr:last-child td { border-bottom: none; }
.api-table tbody tr:hover, .data-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* ============================================================
   18. Badges & Severity
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; font-size: 0.75rem; font-weight: 600;
  border-radius: var(--radius-full); border: 1px solid; white-space: nowrap;
}
.badge-green { color: var(--accent-green); border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); }
.badge-blue { color: var(--primary-400); border-color: rgba(96, 165, 250, 0.3); background: rgba(96, 165, 250, 0.1); }
.badge-orange, .badge-yellow { color: var(--accent-orange); border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.1); }

.severity-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.severity-critical, .severity-high, .severity-medium, .severity-low, .severity-info {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-radius: var(--radius-full); border: 1px solid;
}
.severity-critical { color: #fca5a5; background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); }
.severity-high { color: #fdba74; background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); }
.severity-medium { color: #fde68a; background: rgba(234, 179, 8, 0.15); border-color: rgba(234, 179, 8, 0.4); }
.severity-low { color: #93c5fd; background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); }
.severity-info { color: #94a3b8; background: rgba(100, 116, 139, 0.15); border-color: rgba(100, 116, 139, 0.4); }

/* ============================================================
   19. Oracle Search & Events
   ============================================================ */
.oracle-search-form { margin-bottom: 24px; }
.search-input-group {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.input-field {
  flex: 1; min-width: 200px; padding: 12px 16px; font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--text-primary); outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input-field:focus {
  border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.input-field::placeholder { color: var(--text-muted); }

.oracle-results { margin-top: 16px; }
.oracle-results .no-results { color: var(--text-muted); text-align: center; padding: 32px 0; }
.oracle-results .result-count {
  font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-color);
}
.oracle-results .event-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 20px; margin-bottom: 12px;
}
.oracle-results .event-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.oracle-results .event-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.oracle-results .rules { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 12px; }
.oracle-results .options-list {
  list-style: none; padding: 0; margin: 12px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.oracle-results .options-list li {
  padding: 6px 14px; font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color);
  border-radius: var(--radius-full); color: var(--text-secondary);
}
.oracle-results .options-list li.answer {
  border-color: rgba(16, 185, 129, 0.4); color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}
.oracle-results .answer-box {
  margin-top: 12px; padding: 10px 16px; font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius-sm); background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3); color: var(--accent-green);
}
.oracle-results .answer-box.awaiting {
  background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-orange); font-weight: 500;
}
.oracle-results .error { color: var(--accent-red); }

.oracle-results .badge {
  font-size: 0.6875rem; padding: 3px 10px;
}
.oracle-results .badge.resolved {
  color: var(--accent-green); border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}
.oracle-results .badge.pending {
  color: var(--accent-orange); border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}

/* Integration Cards */
.integration-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all var(--transition-base);
}
.integration-card:hover { border-color: var(--border-color-hover); transform: translateY(-2px); }
.integration-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.integration-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.integration-card .badge { margin-top: 4px; }

.loading-indicator { text-align: center; padding: 32px; color: var(--text-muted); }

/* ============================================================
   20. Audit Page Components
   ============================================================ */
.vuln-accordion { display: flex; flex-direction: column; gap: 12px; }
.vuln-item {
  overflow: hidden; transition: border-color var(--transition-fast);
}
.vuln-item:hover { border-color: var(--border-color-hover); }
.vuln-item summary {
  padding: 18px 24px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: background-color var(--transition-fast);
  list-style: none;
}
.vuln-item summary::-webkit-details-marker { display: none; }
.vuln-item summary:hover { background: rgba(255, 255, 255, 0.04); }
.vuln-item summary .chevron {
  margin-left: auto; transition: transform var(--transition-fast); flex-shrink: 0;
}
.vuln-item[open] summary .chevron { transform: rotate(180deg); }
.vuln-body {
  padding: 20px 24px; border-top: 1px solid var(--border-color);
  color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75;
}
.vuln-body p { margin-bottom: 16px; }

/* Tool Cards */
.tool-card {
  padding: 24px; display: flex; flex-direction: column;
}
.tool-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.tool-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.tool-icon { margin-bottom: 16px; }

/* Scope Cards */
.scope-card { padding: 24px; }
.scope-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.scope-checklist {
  list-style: none; padding: 0;
}
.scope-checklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 0.875rem; color: var(--text-secondary);
}
.scope-checklist svg { flex-shrink: 0; }

/* Audit List / Cards */
.audit-list { display: flex; flex-direction: column; gap: 16px; }
.audit-card { padding: 24px; }
.audit-card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.audit-date { font-size: 0.8125rem; color: var(--text-muted); }
.audit-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
.audit-type { font-size: 0.875rem; color: var(--primary-400); display: block; margin-bottom: 8px; }
.audit-desc {
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px;
}
.audit-meta {
  display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8125rem; color: var(--text-muted);
  padding-bottom: 12px; border-bottom: 1px solid var(--border-color); margin-bottom: 4px;
}
.audit-meta strong { color: var(--text-secondary); }

/* ============================================================
   21. CTA Sections
   ============================================================ */
.cta-section { position: relative; overflow: hidden; }
.cta-card {
  position: relative; padding: 48px; text-align: center;
  overflow: hidden; z-index: 1;
}
.cta-card h2 { margin-bottom: 16px; }
.cta-card p { font-size: 1.0625rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   22. Blockchain Page
   ============================================================ */
.chains-grid {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.chain-pill {
  padding: 10px 20px; font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius-full); color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.chain-pill:hover {
  color: var(--text-primary); border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  position: relative; padding: 40px 32px; display: flex; flex-direction: column;
  transition: all var(--transition-base);
}
.pricing-card:hover { border-color: var(--border-color-hover); transform: translateY(-4px); }
.pricing-popular {
  border-color: var(--primary-500) !important;
  background: rgba(59, 130, 246, 0.05) !important;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}
.pricing-popular::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-cyan));
}
.pricing-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.pricing-price { margin-bottom: 24px; }
.pricing-amount { font-size: 3rem; font-weight: 800; line-height: 1; }
.pricing-period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-features { flex: 1; margin-bottom: 32px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 0.875rem; color: var(--text-secondary);
}
.pricing-features svg { flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   23. Contact Page
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 700px; margin: 0 auto;
}
.contact-card {
  padding: 40px; text-align: center; display: flex; flex-direction: column;
  align-items: center; text-decoration: none; color: inherit;
}
.contact-icon { margin-bottom: 24px; }
.contact-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.contact-value { font-size: 1rem; color: var(--primary-400); margin-bottom: 8px; font-weight: 500; }
.contact-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   24. About Page
   ============================================================ */
.about-story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.about-story h2 { margin-bottom: 24px; }
.about-story p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }

.about-timeline { position: relative; padding-left: 32px; }
.timeline-line {
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--primary-500), var(--accent-cyan), transparent);
}
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-dot {
  position: absolute; left: -32px; top: 12px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--dark-800); border: 2px solid var(--primary-500); z-index: 1;
}
.timeline-content { padding: 16px; }
.timeline-year { font-size: 0.875rem; font-weight: 700; color: var(--primary-400); display: block; margin-bottom: 6px; }
.timeline-content p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* Mission Cards */
.mission-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.mission-card { padding: 40px; text-align: center; }
.mission-icon { margin-bottom: 24px; display: flex; justify-content: center; }
.mission-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.mission-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.75; }

/* Value Cards */
.value-card { padding: 32px; }
.value-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; }
.value-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }

/* Team Cards */
.team-card { padding: 32px; text-align: center; }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.5rem; color: #fff; margin: 0 auto 16px;
}
.team-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: 0.8125rem; color: var(--primary-400); display: block; margin-bottom: 12px; }
.team-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   25. Divider
   ============================================================ */
.divider {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 40px 0;
}

/* ============================================================
   26. Responsive — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  .hero-title { font-size: 3rem; }
  .section-padding { padding-top: 64px; padding-bottom: 64px; }

  .nav-desktop { display: none; }
  .mobile-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-banner { grid-template-columns: repeat(2, 1fr); }

  .about-story-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-connector { transform: rotate(90deg); }
}

/* ============================================================
   27. Responsive — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.0625rem; }
  .section-container { padding-left: 16px; padding-right: 16px; }
  .section-padding { padding-top: 48px; padding-bottom: 48px; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; max-width: 320px; text-align: center; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-banner { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal { justify-content: center; }

  .stat-card .stat-value { font-size: 2rem; }

  .contact-grid { grid-template-columns: 1fr; }

  .search-input-group { flex-direction: column; }
  .input-field { min-width: 100%; }
}

/* ============================================================
   28. Responsive — Small Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 40px); padding-bottom: 60px; }
  .hero-title { font-size: 2rem; }
  .section-container { padding-left: 12px; padding-right: 12px; }
  .section-padding { padding-top: 40px; padding-bottom: 40px; }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stats-banner { grid-template-columns: 1fr; }
  .stats-banner .stat-card { border-right: none; border-bottom: 1px solid var(--border-color); }

  .feature-card { padding: 24px; }
  .floating-orb { display: none; }
}

/* ============================================================
   29. Print & Reduced Motion
   ============================================================ */
@media print {
  body { background: #fff; color: #111; }
  .header, .footer, .floating-orb, .scan-line, .bg-grid { display: none; }
  .glass, .glass-hover, .glass-card { background: #fff; border: 1px solid #ddd; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .floating-orb, .scan-line { display: none; }
  .fade-up { opacity: 1; transform: none; }
}
