:root {
  /* -- Colors -- */
  --color-primary: #1e3a8a; /* A deep, serious blue */
  --color-primary-light: #3b82f6; /* Lighter variant for hovers/accents */
  --color-accent: #00e5ff; /* Electric blue for highlights */
  --color-bg: #111827; /* Deep charcoal */
  --color-bg-alt: #1a202c; /* Slightly lighter charcoal for contrast */
  --color-text: #f3f4f6; /* Off-white for readability on dark backgrounds */
  --color-text-muted: #9ca3af; /* Muted grey for secondary text */
  --color-border: #4b5563; /* Subtle border color */
  --color-dark-text-shadow: rgba(0,0,0,0.4); /* Text shadow for light text on dark backgrounds */

  /* -- Typography -- */
  --font-heading: 'Roboto', -apple-system, system-ui, sans-serif;
  --font-body: 'Roboto', -apple-system, system-ui, sans-serif;

  /* -- Layout -- */
  --max-width: 1280px; /* Increased max-width for a more expansive feel */

  /* Standard Tokens */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem; /* For clamp usage */
  --text-7xl: 4.5rem; /* For clamp usage */
  --text-8xl: 6rem;   /* For clamp usage */


  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;   /* Larger section padding */
  --space-6xl: 10rem;  /* Even larger for hero sections */

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

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.45);

}

html { scroll-behavior: smooth; }
body { margin: 0; }

/* Base typography */
body {
  font-family: var(--font-body);
  line-height: 1.7; /* Generous line height for body text */
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, var(--font-body));
  line-height: 1.15; /* Tighter line height for headings */
  letter-spacing: -0.02em; /* Subtle letter spacing for headings */
}

/* Custom clamp utility for responsive headings */
.text-clamp-6xl {
  font-size: clamp(2.5rem, 6vw, var(--text-6xl)); /* Min 40px, max 60px */
}
.text-clamp-7xl {
  font-size: clamp(3rem, 7vw, var(--text-7xl)); /* Min 48px, max 72px */
}

/* Scroll reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals for children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 100ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 200ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 300ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 400ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 500ms; }
[data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }


/* Sticky header shadow on scroll */
.site-header.is-scrolled {
  box-shadow: var(--shadow-lg);
  background-color: var(--color-bg-alt); /* More opaque background on scroll */
}

/* Global button styles */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px; /* Larger touch target */
  padding: 0.85rem 2rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1); /* Snappy hover */
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg); /* Dark text on bright accent */
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3); /* Accent shadow */
}
.btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-accent) 90%, white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 229, 255, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.2);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-primary-light);
  color: var(--color-text);
}
.btn-secondary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-text);
  transform: translateY(-2px);
  border-color: var(--color-primary-light);
}
.btn-secondary:active {
  transform: translateY(0);
}

/* Nav links hover effect */
.nav-link {
  color: var(--color-text);
}
.nav-link:hover {
  color: var(--color-accent);
}
.nav-link[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600; /* Emphasize active link */
}
.nav-link[aria-current="page"] .group-hover\:w-full {
  width: 100%; /* Keep underline active for current page */
  background-color: var(--color-accent);
}

/* Floating mobile CTAs */
.floating-cta {
  position: fixed;
  bottom: 1.5rem; /* 24px */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; /* 14 units */
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  color: var(--color-bg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: 55; /* Above other content, below mobile menu */
}
.floating-cta.left-4 {
  left: 1.5rem; /* 24px */
}
.floating-cta.right-4 {
  right: 1.5rem; /* 24px */
}
.floating-cta:hover {
  transform: translateY(-4px) scale(1.05);
}
.floating-cta:active {
  transform: translateY(0) scale(1);
}

/* Mobile menu specific styles */
#mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
#mobile-menu.is-closing { /* For transitionend to work */
  opacity: 0;
  visibility: visible; /* Keep visible during transition */
}
.mobile-nav-link {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mobile-nav-link:hover {
  background-color: var(--color-primary);
  color: var(--color-accent);
}

@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;
  }
}
/* Lucide Icon styling */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em; height: 2em; }