/* 
   MARCOS DATA PRODUCT — MAIN STYLESHEET
   Centralized Design System Styles
*/

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

:root {
  /* Design System Tokens */
  --void: #080810;
  --void-rgb: 8, 8, 16;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(18px);
  --glass-strong-bg: rgba(255, 255, 255, 0.10);
  --glass-strong-border: rgba(255, 255, 255, 0.18);
  --glass-strong-blur: blur(28px);
  --accent-blue: #60a5fa;
  --accent-blue-rgb: 96, 165, 250;
  --accent-amber: #fbbf24;
  --accent-amber-rgb: 251, 191, 36;
  --accent-emerald: #34d399;
  --accent-emerald-rgb: 52, 211, 153;
  --accent-pink: #f472b6;
  --accent-purple: #a78bfa;
  --text-primary: #f1f5f9;
  --text-secondary: rgba(255, 255, 255, 0.50);
  --text-muted: rgba(255, 255, 255, 0.30);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--void);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Three.js Canvas ─────────────────────────── */
#canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── Glass Surfaces ──────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.glass-strong {
  background: var(--glass-strong-bg);
  border: 1px solid var(--glass-strong-border);
  backdrop-filter: var(--glass-strong-blur);
  -webkit-backdrop-filter: var(--glass-strong-blur);
}

/* ── Gradient Text ───────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Reveal Animation ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}

/* ── Noise Overlay ───────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.30;
}

/* ── Section Glow ────────────────────────────── */
.section-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.12;
}

/* ── Section Divider ─────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.25), rgba(251, 191, 36, 0.25), transparent);
  margin: 0 auto;
  max-width: 60rem;
  position: relative;
  z-index: 10;
}

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

section {
  position: relative;
  z-index: 10;
}

/* ── Keyframes ───────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes morph-blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 30% 60% 40% / 70% 40% 50% 60%; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(96, 165, 250, 0.25), 0 0 60px rgba(96, 165, 250, 0.08); }
  50% { box-shadow: 0 0 35px rgba(96, 165, 250, 0.4), 0 0 80px rgba(96, 165, 250, 0.15); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-morph-blob { animation: morph-blob 12s ease-in-out infinite; }

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--accent-blue);
  animation: pulse-ring 1.8s ease-out infinite;
}

/* ── Button — Primary ────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: white;
  color: #0f172a;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(96, 165, 250, 0.25);
  text-decoration: none;
}

.btn-primary:hover {
  background: #dbeafe;
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(96, 165, 250, 0.35), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.35);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ── Button — Secondary ──────────────────────── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-secondary:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

/* ── Nav ──────────────────────────────────────── */
#navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
  background: rgba(8, 8, 16, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.25s;
  text-decoration: none;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Section Card ────────────────────────────── */
.section-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.section-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(96, 165, 250, 0.08);
}

.section-card:hover .card-icon-wrap { transform: scale(1.1); }
.section-card:hover .card-arrow { transform: translateX(4px); opacity: 1; }
.section-card:hover .card-visual { transform: scale(1.03); }

.card-icon-wrap { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.card-arrow { opacity: 0.4; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.card-visual { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

/* ── Badge ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-blue {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.badge-amber {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-emerald {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-pink {
  background: rgba(244, 114, 182, 0.12);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.badge-purple {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* ── Mobile Menu ──────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 16, 0.95);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: white;
}

/* ── Spec row for mini data ───────────────────── */
.stat-item {
  text-align: center;
  transition: transform 0.3s;
}

.stat-item:hover {
  transform: translateY(-2px);
}
