:root {
  --color-teal: #003438;
  --color-lime: #a2b700;
  --color-lime-bright: #c4df00;
  --color-black: #000000;
  --color-gray-900: #0b0f10;
  --color-gray-800: #1a1a1a;
  --color-gray-600: #6b7476;
  --color-gray-400: #c1c1c1;
  --color-white: #ffffff;

  --color-bg: var(--color-black);
  --color-bg-alt: var(--color-gray-800);
  --color-bg-teal: var(--color-teal);
  --color-text: var(--color-white);
  --color-text-muted: var(--color-gray-400);
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-lime: rgba(162, 183, 0, 0.25);

  --font-base: "Mona Sans", "Segoe UI", sans-serif;
  --size-hero: clamp(2.4rem, 6vw, 5.5rem);
  --size-h1: clamp(2.1rem, 4.5vw, 4rem);
  --size-h2: clamp(1.8rem, 4vw, 3.2rem);
  --size-h3: clamp(1.2rem, 2.4vw, 1.8rem);
  --size-body: 1rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --container: 1180px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --z-nav: 900;
  --z-overlay: 950;
  --shadow-glow: 0 0 40px rgba(162, 183, 0, 0.25);
}

[data-theme="light"] {
  --color-bg: #f5f5f0;
  --color-bg-alt: #e8e8e0;
  --color-bg-teal: #e0f0f1;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-lime: rgba(100, 120, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(162, 183, 0, 0.15);
}

[data-theme="light"] body {
  background: radial-gradient(circle at 20% -10%, rgba(0, 52, 56, 0.08), transparent 40%),
    radial-gradient(circle at 88% 0%, rgba(162, 183, 0, 0.06), transparent 35%),
    var(--color-bg);
}

[data-theme="light"] .noise-overlay {
  opacity: 0.02;
}

[data-theme="light"] .site-header {
  background: rgba(245, 245, 240, 0.85);
}

[data-theme="light"] .card {
  background: linear-gradient(180deg, rgba(0, 52, 56, 0.05), rgba(0, 0, 0, 0.02));
}

[data-theme="light"] .nav-links a {
  color: #555;
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: #1a1a1a;
}

[data-theme="light"] .menu-btn {
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .button-secondary {
  color: #1a1a1a;
}

[data-theme="light"] .button-tertiary {
  color: #555;
}

[data-theme="light"] .kpi {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .cta-panel {
  background: radial-gradient(circle at 10% 10%, rgba(162, 183, 0, 0.1), rgba(0, 52, 56, 0.08));
}

[data-theme="light"] .hero-aura::before {
  background: radial-gradient(circle, rgba(0, 140, 145, 0.15), rgba(0, 52, 56, 0));
}

[data-theme="light"] .hero-aura::after {
  background: radial-gradient(circle, rgba(162, 183, 0, 0.12), rgba(162, 183, 0, 0));
}

@media (max-width: 740px) {
  [data-theme="light"] .nav-links {
    background: rgba(245, 245, 240, 0.97);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: radial-gradient(circle at 20% -10%, rgba(0, 52, 56, 0.9), transparent 40%),
    radial-gradient(circle at 88% 0%, rgba(162, 183, 0, 0.18), transparent 35%),
    var(--color-bg);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  position: relative;
  overflow: clip;
}

.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  z-index: 2;
}

.grid-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 80%);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  z-index: 3;
}

.section-title {
  margin: 0 0 var(--space-4);
  font-size: var(--size-h2);
  line-height: 1.08;
}

.section-subtitle {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 66ch;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 740px) {
  body {
    background: radial-gradient(circle at 0% -10%, rgba(0, 52, 56, 0.95), transparent 40%),
      radial-gradient(circle at 95% 10%, rgba(162, 183, 0, 0.18), transparent 40%),
      var(--color-bg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
