/* assets/css/style.css */

:root {
  /* -- Colors -- */
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-primary: #2563eb;
  --color-primary-light: #3b82f6;
  --color-accent: #1a1a2e;

  --color-bg-alt: #f9fafb;
  --color-text-muted: #4b5563;
  --color-border: rgba(148, 163, 184, 0.2);

  /* -- Typography -- */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* -- Layout -- */
  --max-width: 1200px;

  /* 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;
  --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;
  --radius-default: 4px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

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

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

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s 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); }

/* -- Icon Sizing -- */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.icon.hidden { display: none; }

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

/* -- Navigation Structure -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  backdrop-filter: blur(16px);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.97);
}

.nav-inner {
  width: min(100% - 3rem, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo, .logo-mark { display: inline-flex; align-items: center; }
.logo-mark { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.06em; }

.nav-desktop { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2rem; }
.nav-list a {
  display: inline-flex;
  padding: 1.5rem 0;
  color: #334155;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--color-primary); }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background-color: var(--color-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu[aria-hidden="true"] { opacity: 0; pointer-events: none; }
.mobile-menu[aria-hidden="false"] { opacity: 1; pointer-events: auto; }

.mobile-nav-list { display: grid; gap: 0.25rem; }
.mobile-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  color: #334155;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mobile-nav-link:hover, .mobile-nav-link[aria-current="page"] {
  background: #f1f5f9;
  color: var(--color-primary);
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--color-text);
  padding: 0.5rem;
}

@media (max-width: 767px) {
  .nav-inner { width: min(100% - 2rem, var(--max-width)); min-height: 64px; }
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* -- Reduced Motion -- */
@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;
  }
}