/* ===================== BASE ===================== */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #070713;
}

/* ===================== GRID PATTERN ===================== */
.bg-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===================== KEYFRAMES ===================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

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

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== ANIMATION UTILITIES ===================== */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ===================== NAVBAR ===================== */
#navbar.scrolled {
  background: rgba(7, 7, 19, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===================== METRIC CARDS ===================== */
.metric-card {
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  transition: background 0.3s ease;
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ===================== PROBLEM CARDS ===================== */
.problem-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.problem-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

/* ===================== CHAOS VISUAL ===================== */
.chaos-visual {
  position: relative;
}

.chaos-node {
  position: absolute;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fca5a5;
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}

.chaos-node:nth-child(odd) {
  animation-delay: 1s;
}

.chaos-node:nth-child(even) {
  animation-delay: 2s;
}

.chaos-line {
  animation: shimmer 3s linear infinite;
}

/* ===================== SOLUTION TOOLS ===================== */
.solution-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: #9ca3af;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
}

.solution-tool:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  color: #fff;
  transform: translateY(-4px);
}

/* ===================== SOLUTION BENEFITS ===================== */
.solution-benefit {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.solution-benefit:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===================== FEATURE TABS ===================== */
.feature-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.feature-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.2));
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

/* ===================== FEATURE PANELS ===================== */
.feature-panel {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.feature-panel.active {
  display: block;
}

/* ===================== WORKFLOW STEPS ===================== */
.workflow-step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  color: #d1d5db;
  animation: fadeInUp 0.4s ease-out backwards;
}

.workflow-step:nth-child(1) { animation-delay: 0.1s; }
.workflow-step:nth-child(2) { animation-delay: 0.3s; }
.workflow-step:nth-child(3) { animation-delay: 0.5s; }
.workflow-step:nth-child(4) { animation-delay: 0.7s; }

/* ===================== INSIGHT BARS ===================== */
.insight-bar {
  transition: all 0.3s ease;
}

/* ===================== SECURITY BADGES ===================== */
.security-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: all 0.3s ease;
}

.security-badge:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

/* ===================== TEAM CARDS ===================== */
.team-card {
  cursor: pointer;
}

/* ===================== INVESTOR CARDS ===================== */
.investor-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.investor-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

/* ===================== PRESS CARDS ===================== */
.press-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.press-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #070713;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* ===================== SELECTION ===================== */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
}

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===================== MOBILE MENU ===================== */
#mobileMenu.open {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

/* ===================== FORM INPUT FOCUS ===================== */
input:focus,
select:focus {
  outline: none;
}

/* ===================== RESPONSIVE TWEAKS ===================== */
@media (max-width: 640px) {
  .chaos-visual {
    transform: scale(0.75);
  }
}