/* ===== CSS RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--brand);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* ===== DESIGN SYSTEM ===== */
:root {
  /* Colors - stable fallbacks (hex/rgba) for broader browser support */
  --brand: #93e401;
  /* Vibrant lime green for better contrast */
  --brand-contrast: #ffffff;
  --bg: #0b1114;
  /* dark background for high contrast */
  --fg: #ffffff;
  /* primary foreground (text) */
  --muted: rgba(255, 255, 255, 0.78);
  --hero-muted: rgba(255, 255, 255, 0.88);
  --gradient: linear-gradient(90deg, #c8f566 0%, #93e401 100%);

  /* Electric border colors */
  --electric-border-color: #6fb300;
  --electric-light-color: #d4f899;
  --gradient-color: rgba(111, 179, 0, 0.45);
  --color-neutral-900: #0b1114;

  /* Progressive enhancement: modern color syntax (optional) */
  --oklch-bg: oklch(0.145 0 0);
  --oklch-fg: oklch(0.985 0 0);

  /* Typography */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 800;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-menu: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-menu-item: 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-black);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--muted);
}

/* ===== ACCESSIBILITY ===== */
@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;
  }
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Enhanced focus visibility for keyboard navigation */
.keyboard-navigation *:focus {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --muted: oklch(0.9 0 0);
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enhanced touch targets for mobile */
@media (pointer: coarse) {

  .nav-link,
  .btn,
  .social-link {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-cta {
    min-height: 48px;
    padding: var(--space-sm) var(--space-lg);
  }
}

/* Print styles */
@media print {

  .header,
  .nav-toggle,
  .hero-actions,
  .social-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-lg) 0;
  }

  body {
    background: white;
    color: black;
  }

  .hero-card {
    border: 1px solid #ccc;
    background: #f5f5f5;
  }
}