@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Premium Sporty Palette */
  --background: 210 20% 98%;
  /* Off-white / Light Grey */
  --foreground: 220 13% 18%;
  /* Matte Black/Dark Grey */

  --card: 0 0% 100%;
  --card-foreground: 220 13% 18%;

  --popover: 0 0% 100%;
  --popover-foreground: 220 13% 18%;

  --primary: 220 13% 10%;
  /* Deep Matte Black */
  --primary-foreground: 0 0% 100%;

  --secondary: 210 20% 94%;
  /* Light Grey for sections */
  --secondary-foreground: 220 13% 18%;

  --muted: 210 20% 96%;
  --muted-foreground: 220 10% 55%;

  --accent: 158 64% 35%;
  /* Deep Green (Trust/Precision) */
  --accent-foreground: 0 0% 100%;

  --highlight: 74 100% 55%;
  /* Electric Lime (Speed/Sport) */
  --highlight-foreground: 220 13% 10%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 220 13% 90%;
  --input: 220 13% 90%;
  --ring: 158 64% 35%;
  --radius: 0.5rem;
}

.dark {
  --background: 220 13% 10%;
  --foreground: 0 0% 98%;
  --card: 220 13% 14%;
  --card-foreground: 0 0% 98%;
  --popover: 220 13% 14%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 220 13% 10%;
  --secondary: 220 13% 18%;
  --secondary-foreground: 0 0% 98%;
  --muted: 220 13% 18%;
  --muted-foreground: 220 13% 65%;
  --accent: 158 64% 45%;
  --accent-foreground: 0 0% 100%;
  --highlight: 74 100% 55%;
  --highlight-foreground: 220 13% 10%;
  --border: 220 13% 20%;
  --input: 220 13% 20%;
  --ring: 158 64% 45%;
}

* {
  border-color: #000000;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Sporty Background Pattern */
.bg-sport-pattern {
  background-color: hsl(var(--background));
  background-image:
    radial-gradient(hsl(var(--foreground) / 0.03) 1px, transparent 1px),
    radial-gradient(hsl(var(--foreground) / 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Modern Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.01em;
  font-weight: 700;
  color: hsl(var(--primary));
}

.text-balance {
  text-wrap: balance;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .glass {
  background: rgba(20, 20, 25, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Performance Optimized Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

/* Utility for Electric Lime Text */
.text-highlight {
  color: hsl(var(--highlight));
}

.bg-highlight {
  background-color: hsl(var(--highlight));
  color: hsl(var(--highlight-foreground));
}