/* ==========================================================================
   TalentGrid HCM  - Design System (main.css)
   Emerald Noir: Dark teal-accented premium corporate design
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

/* ==========================================================================
   1. CSS Custom Properties  - Design Tokens
   ========================================================================== */
:root {
  /* Brand */
  --brand-teal: #2AACAD;
  --brand-navy: #11365C;
  --brand-teal-light: #7bccd5;
  --brand-teal-mid: #328da6;

  /* Dark Surfaces (teal-tinted) */
  --bg-base: #050e10;
  --bg-surface: #091a1d;
  --bg-elevated: #0f2529;
  --bg-card: #0c1f23;
  --bg-card-hover: #112c31;

  /* Accent Palette */
  --accent: #2AACAD;
  --accent-light: #7bccd5;
  --accent-warm: #e8c47c;
  --accent-glow: rgba(42, 172, 173, 0.15);
  --accent-glow-strong: rgba(42, 172, 173, 0.3);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #11365C 0%, #2AACAD 100%);
  --gradient-teal: linear-gradient(135deg, #2AACAD 0%, #b8e8ed 100%);
  --gradient-warm: linear-gradient(135deg, #d4a44a 0%, #f0d89a 100%);
  --gradient-surface: linear-gradient(180deg, #050e10 0%, #091a1d 100%);

  /* Text */
  --text-primary: #e4f1f2;
  --text-secondary: #8aabad;
  --text-muted: #5a7a80;
  --text-accent: #2AACAD;

  /* Borders */
  --border: rgba(42, 172, 173, 0.08);
  --border-hover: rgba(42, 172, 173, 0.2);
  --border-strong: rgba(42, 172, 173, 0.35);

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Text Scale */
  --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;

  /* Spacing (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px var(--accent-glow), 0 0 60px var(--accent-glow);
  --shadow-glow-strong: 0 0 30px var(--accent-glow-strong), 0 0 80px var(--accent-glow);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   2. CSS Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

/* ==========================================================================
   3. Typography Classes
   ========================================================================== */
.text-display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.text-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.text-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, var(--text-2xl));
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.text-body-lg {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-body {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-sm {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   4. Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: 900px;
}

.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   5. Gradient & Highlight Text
   ========================================================================== */
.highlight {
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight--warm {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   6. Animation Keyframes
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.4); }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -100; }
}

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

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   7. Scroll Animation System
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }

/* ==========================================================================
   8. Illustration Base Classes
   ========================================================================== */
.illus-float {
  animation: float 6s ease-in-out infinite;
}

.illus-float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

/* ==========================================================================
   9. 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;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   10. Legal Content Styles
   ========================================================================== */
.legal-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-16) var(--space-6);
}

.legal-content h1 {
  font-size: clamp(1.75rem, 3vw, var(--text-4xl));
  margin-bottom: var(--space-4);
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.legal-content p {
  line-height: 1.7;
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.legal-content ul,
.legal-content ol {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  line-height: 1.7;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.legal-content a:hover {
  color: var(--accent-light);
}

.legal-content .effective-date {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

.legal-content section {
  margin-bottom: var(--space-10);
}
