/* ========================================
   KONSPIRACY — Premium Design System
   Lighter, airy, playful — still immersive
   ======================================== */

/* ── Tokens ───────────────────────────── */
:root {
  /* Core palette */
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --secondary: #f59e0b;
  --secondary-light: #fbbf24;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --accent-cyan: #06b6d4;

  /* Surfaces */
  --bg-body: #f4f0fb;
  --bg-card: #ffffff;
  --bg-card-hover: #faf8ff;
  --bg-dark-section: #1e1640;

  /* Text */
  --text-main: #2d2452;
  --text-muted: #7a6fa0;
  --text-bright: #1a1238;

  /* Fonts */
  --font-display: 'Bangers', cursive;
  --font-body: 'Inter', sans-serif;

  /* Radius */
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', sans-serif;
  background: #f4f0fb;
  color: #2d2452;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Soft background blobs ────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(124, 58, 237, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 30%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.018;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAVBAR ────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(45, 36, 82, 0.06), 0 4px 12px rgba(45, 36, 82, 0.04);
}

.navbar .logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.3s var(--ease-spring);
}

.navbar .logo:hover { transform: scale(1.04); }

.navbar .logo .eye {
  font-size: 1.4rem;
  -webkit-text-fill-color: initial;
  animation: blink 5s infinite;
}

@keyframes blink {
  0%, 94%, 100% { opacity: 1; transform: scaleY(1); }
  96% { opacity: 1; transform: scaleY(0.1); }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  transition: all 0.35s var(--ease-out);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.06);
}

.nav-links a.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  box-shadow: 0 2px 14px rgba(124, 58, 237, 0.25);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  transition: all 0.3s;
}

.mobile-menu-btn:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: var(--primary-light);
}

/* ── MAIN ─────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  padding-top: 68px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ── PAGE HERO ────────────────────────── */
.page-hero {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 2rem clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(124, 58, 237, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  letter-spacing: 4px;
  line-height: 1.05;
  margin-bottom: 0.6rem;
  position: relative;
}

.page-hero .subtitle {
  font-family: var(--font-fun);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto var(--space-lg);
  position: relative;
}

/* ── GRADIENT TEXT ─────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-pink), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-fire {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-ice {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CARDS ────────────────────────────── */
.glass-card {
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(45, 36, 82, 0.04), 0 4px 12px rgba(45, 36, 82, 0.03);
  transition: all 0.3s var(--ease-out);
}

.glass-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(45, 36, 82, 0.08), 0 12px 40px rgba(45, 36, 82, 0.06);
}

/* ── BUTTONS ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

.btn-secondary {
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary);
  border: 1.5px solid rgba(124, 58, 237, 0.2);
}

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.14);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-fun {
  background: linear-gradient(135deg, var(--secondary), var(--accent-orange));
  color: white;
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.btn-fun:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

/* ── BADGES ───────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-true { background: rgba(16, 185, 129, 0.12); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-false { background: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-unresolved { background: rgba(245, 158, 11, 0.1); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-partial { background: rgba(59, 130, 246, 0.1); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); }

/* ── SECTION HEADERS ──────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 2px;
  margin-bottom: var(--space-xs);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── DIVIDER ──────────────────────────── */
.section-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.15), transparent);
  margin: var(--space-xl) 0;
}

/* ── FLOATING EMOJIS ──────────────────── */
.floating-emoji {
  position: absolute;
  font-size: 1.8rem;
  animation: float 8s ease-in-out infinite;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(3deg); }
  66% { transform: translateY(8px) rotate(-3deg); }
}

/* ── SCROLL REVEAL ANIMATION ──────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.54s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ───────────────────────────── */
.footer {
  position: relative;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-2xl);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.15), transparent);
}

.footer .logo-small {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.footer p { margin: 0.3rem 0; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--primary); }

/* ── GRIDS ────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* ── FORM INPUTS ──────────────────────── */
.form-input {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.35s var(--ease-out);
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); opacity: 0.7; }

.form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1), 0 0 20px rgba(124, 58, 237, 0.06);
}

/* ── BACK TO TOP ──────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.back-to-top:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
}

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 900px) {
  .navbar { padding: 0 1rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: 0 8px 30px rgba(45, 36, 82, 0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.85rem 1.2rem;
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .page-hero { padding: 2.5rem 1rem 2rem; }
  .glass-card { padding: var(--space-md); }
}

/* ── SCROLLBAR ────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── SELECTION ────────────────────────── */
::selection {
  background: rgba(124, 58, 237, 0.15);
  color: var(--text-bright);
}
