/* =============================================
   STAYRS – Design System & Global Styles
   Calm, confident career platform for young people
   ============================================= */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --c-bg: #07131F;
  --c-bg-2: #0B1C2A;
  --c-surface: rgba(255, 255, 255, 0.055);
  --c-surface-hover: rgba(255, 255, 255, 0.09);
  --c-surface-active: rgba(44, 199, 184, 0.12);
  --c-border: rgba(193, 218, 226, 0.13);
  --c-border-glow: rgba(44, 199, 184, 0.42);

  /* Primary palette */
  --c-primary: #16B8A6;
  --c-primary-light: #5EEAD4;
  --c-primary-dark: #0F8F84;
  --c-secondary: #3B82F6;
  --c-accent: #F4B860;
  --c-accent-2: #22C55E;
  --c-pink: #F472B6;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #16B8A6 0%, #3B82F6 100%);
  --grad-hero: linear-gradient(135deg, #14B8A6 0%, #2563EB 100%);
  --grad-card: linear-gradient(145deg, rgba(22,184,166,0.12) 0%, rgba(37,99,235,0.08) 100%);
  --grad-glow: radial-gradient(ellipse at center, rgba(22,184,166,0.24) 0%, transparent 70%);
  --grad-text: linear-gradient(120deg, #72F3DE, #80B8FF);

  /* Text */
  --c-text: #F4FAFC;
  --c-text-muted: #A7C0CA;
  --c-text-dim: #718D99;

  /* Status */
  --c-success: #10B981;
  --c-warning: #F59E0B;
  --c-danger: #EF4444;
  --c-info: #06B6D4;

  /* Typography */
  --font-primary: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 28px; --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(22,184,166,0.2);
  --shadow-glow-lg: 0 0 60px rgba(22,184,166,0.24);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 300ms ease;
  --t-slow: 500ms ease;
  --t-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-h: 72px;
  --max-w: 1280px;
  --sidebar-w: 280px;
}

/* --- Base Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid rgba(94, 234, 212, 0.9);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 16px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  color: #06251f;
  background: var(--c-primary-light);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-primary); border-radius: var(--r-full); }

/* =============================================
   ANIMATED BACKGROUND
   ============================================= */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.bg-gradient-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(99,102,241,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(139,92,246,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(6,182,212,0.06) 0%, transparent 60%);
  animation: meshMove 20s ease-in-out infinite alternate;
}

@keyframes meshMove {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(2deg); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 15s ease-in-out infinite alternate;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation-duration: 18s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation-duration: 22s;
  animation-delay: -5s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  top: 40%; left: 60%;
  animation-duration: 15s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -60px) scale(1.05); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
  100% { transform: translate(20px, -40px) scale(1.02); }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 19, 31, 0.76);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-base), box-shadow var(--t-base);
}

.navbar.scrolled {
  background: rgba(7, 19, 31, 0.94);
  box-shadow: 0 1px 0 rgba(22,184,166,0.2), var(--shadow-md);
}

.nav-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(94, 234, 212, 0.5);
  border-radius: 12px 12px 12px 4px;
  color: #06251f;
  background: linear-gradient(145deg, #8CF5E4, #29BFAF);
  box-shadow: 0 8px 26px rgba(22, 184, 166, 0.24);
  transform: rotate(-4deg);
}
.logo-mark span { font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; transform: rotate(4deg); }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--c-text);
}

.logo-accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: var(--r-full);
  transition: left var(--t-base), right var(--t-base);
}

.nav-link:hover { color: var(--c-text); background: var(--c-surface-hover); }
.nav-link.active { color: var(--c-primary-light); background: var(--c-surface-active); }
.nav-link.active::after { left: 12px; right: 12px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* Script toggle */
.script-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
  letter-spacing: 0.05em;
}
.script-toggle:hover { border-color: var(--c-primary); color: var(--c-text); }
[data-script="cyr"] .script-cyr,
[data-script="lat"] .script-lat { color: var(--c-primary-light); }
.script-divider { opacity: 0.3; }

/* Mobile menu btn */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  width: 36px; height: 36px;
  justify-content: center;
  align-items: center;
}
.mobile-menu-btn span {
  display: block;
  width: 20px; height: 2px;
  background: var(--c-text-muted);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-primary);
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad-hero);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--c-surface-hover);
  border-color: var(--c-primary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { background: var(--c-surface); color: var(--c-text); }

.btn-accent {
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6,182,212,0.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(6,182,212,0.4); }

.btn-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
}
.btn-success {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: 0.8rem; }
.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: 1rem; }
.btn-xl { padding: var(--sp-5) var(--sp-10); font-size: 1.05rem; border-radius: var(--r-lg); }
.btn-full { width: 100%; }
.btn-icon { padding: var(--sp-3); width: 40px; height: 40px; }

/* =============================================
   GLASSMORPHISM CARDS
   ============================================= */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-4px); box-shadow: var(--shadow-glow), var(--shadow-lg); }
.card:hover::before { opacity: 1; }

.card-glow {
  box-shadow: var(--shadow-glow);
  border-color: rgba(99,102,241,0.2);
}

.card-featured {
  border-color: rgba(99,102,241,0.4);
  box-shadow: var(--shadow-glow), inset 0 0 30px rgba(99,102,241,0.05);
}

/* =============================================
   FORMS
   ============================================= */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: 0.9rem;
  font-family: var(--font-primary);
  transition: all var(--t-fast);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--c-primary);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--c-text-dim); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--c-bg-2); color: var(--c-text); }
.form-textarea { resize: vertical; min-height: 100px; }

.form-grid { display: grid; gap: var(--sp-4); }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-hint { font-size: 0.78rem; color: var(--c-text-dim); }
.form-error { font-size: 0.78rem; color: var(--c-danger); }

/* =============================================
   BADGES / TAGS
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-primary { background: rgba(99,102,241,0.2); color: #818CF8; border: 1px solid rgba(99,102,241,0.3); }
.badge-accent { background: rgba(6,182,212,0.15); color: #67E8F9; border: 1px solid rgba(6,182,212,0.3); }
.badge-success { background: rgba(16,185,129,0.15); color: #6EE7B7; border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: #FCD34D; border: 1px solid rgba(245,158,11,0.3); }
.badge-danger { background: rgba(239,68,68,0.15); color: #FCA5A5; border: 1px solid rgba(239,68,68,0.3); }
.badge-neutral { background: rgba(148,163,184,0.1); color: #94A3B8; border: 1px solid rgba(148,163,184,0.2); }
.badge-purple { background: rgba(139,92,246,0.15); color: #C4B5FD; border: 1px solid rgba(139,92,246,0.3); }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 200ms ease;
}
.modal-overlay.active { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-box {
  background: rgba(13, 13, 43, 0.95);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-glow-lg), 0 25px 80px rgba(0,0,0,0.7);
  backdrop-filter: blur(30px);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: scaleIn 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close {
  position: sticky;
  top: var(--sp-4);
  float: right;
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  background: var(--c-surface-hover);
  color: var(--c-text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
  z-index: 10;
  margin: var(--sp-4) var(--sp-4) 0 0;
}
.modal-close:hover { background: rgba(239,68,68,0.2); color: #FCA5A5; }

/* =============================================
   AUTH MODAL
   ============================================= */
.auth-modal-box {
  width: 100%;
  max-width: 440px;
  padding: var(--sp-8);
}

.auth-tabs {
  display: flex;
  gap: var(--sp-2);
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: var(--sp-1);
  margin-bottom: var(--sp-8);
}
.auth-tab {
  flex: 1;
  padding: var(--sp-2) var(--sp-4);
  border-radius: calc(var(--r-md) - 2px);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
}
.auth-tab.active { background: var(--grad-hero); color: #fff; }

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(13,13,43,0.95);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: slideUp 300ms ease forwards;
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 360px;
}
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-success { border-left: 3px solid var(--c-success); }
.toast-error { border-left: 3px solid var(--c-danger); }
.toast-info { border-left: 3px solid var(--c-info); }
.toast-warning { border-left: 3px solid var(--c-warning); }
.toast.removing { animation: slideDown 300ms ease forwards; opacity: 0; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.main-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.page-wrapper {
  padding: var(--sp-12) 0;
}

.section { padding: var(--sp-16) 0; }
.section-lg { padding: var(--sp-20) 0; }

.section-header { text-align: center; margin-bottom: var(--sp-12); }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary-light);
  margin-bottom: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--r-full);
}
.section-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-primary-light);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; line-height: 1.3; }
.h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.h5 { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--c-text-muted); }
.text-dim { color: var(--c-text-dim); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }

/* =============================================
   GRID SYSTEMS
   ============================================= */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: var(--sp-3); }
.gap-2 { gap: var(--sp-2); }
.flex-1 { flex: 1; }

/* =============================================
   DIVIDER / SEPARATOR
   ============================================= */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
  margin: var(--sp-6) 0;
}

/* =============================================
   SEARCH BAR
   ============================================= */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: var(--sp-4);
  color: var(--c-text-dim);
  font-size: 1rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 48px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  color: var(--c-text);
  font-size: 0.95rem;
  font-family: var(--font-primary);
  transition: all var(--t-fast);
  outline: none;
}
.search-input:focus {
  border-color: var(--c-primary);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.search-input::placeholder { color: var(--c-text-dim); }

/* =============================================
   FILTER PILLS
   ============================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.filter-pill {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: all var(--t-fast);
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--c-primary); color: var(--c-text); }
.filter-pill.active { background: rgba(99,102,241,0.2); border-color: var(--c-primary); color: var(--c-primary-light); }

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
  text-align: center;
  padding: var(--sp-16);
}
.empty-state-icon { font-size: 4rem; margin-bottom: var(--sp-4); opacity: 0.4; }
.empty-state h3 { font-size: 1.25rem; color: var(--c-text-muted); margin-bottom: var(--sp-2); }
.empty-state p { color: var(--c-text-dim); font-size: 0.9rem; }

/* =============================================
   STATS COUNTER
   ============================================= */
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-primary), var(--c-secondary), var(--c-accent));
  opacity: 0.4;
}
.timeline-item {
  display: flex;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  padding-left: var(--sp-16);
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad-hero);
  box-shadow: 0 0 12px rgba(99,102,241,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(7,7,26,0.8);
  border-top: 1px solid var(--c-border);
  backdrop-filter: blur(20px);
  padding: var(--sp-12) 0 var(--sp-8);
}
.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.footer-brand { margin-bottom: var(--sp-8); }
.footer-brand p { color: var(--c-text-muted); margin-top: var(--sp-2); font-size: 0.875rem; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}
.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: var(--sp-4); }
.footer-col a { display: block; color: var(--c-text-dim); font-size: 0.875rem; padding: var(--sp-1) 0; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--c-primary-light); }
.footer-bottom { border-top: 1px solid var(--c-border); padding-top: var(--sp-6); color: var(--c-text-dim); font-size: 0.8rem; }

/* =============================================
   PROGRESS BAR
   ============================================= */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--grad-primary);
  transition: width var(--t-slow);
}

/* =============================================
   STEP INDICATOR
   ============================================= */
.steps {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}
.step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-dim);
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step.active .step-num { background: var(--grad-hero); border-color: transparent; color: #fff; }
.step.active { color: var(--c-text); }
.step.done .step-num { background: var(--c-success); border-color: transparent; color: #fff; }
.step-connector { flex: 1; height: 1px; background: var(--c-border); min-width: var(--sp-6); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.3); }
  50% { box-shadow: 0 0 40px rgba(99,102,241,0.6); }
}

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

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-glow { animation: glow-pulse 3s ease-in-out infinite; }
.animate-spin { animation: rotate 20s linear infinite; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   LANDING PAGE STYLES
   ============================================= */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: var(--sp-20) 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
}

.hero-title .line-1 { display: block; color: var(--c-text); }
.hero-title .line-2 {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-accent);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-6);
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse 2s ease infinite;
}

.hero-visual {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: min(500px, 42vw);
}

.hero-card-float {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  backdrop-filter: blur(20px);
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.stat-card {
  padding: var(--sp-6);
  text-align: center;
}
.stat-label { font-size: 0.8rem; color: var(--c-text-muted); margin-top: var(--sp-2); }
.stat-icon { font-size: 1.5rem; margin-bottom: var(--sp-2); }

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.how-step {
  padding: var(--sp-8);
  text-align: center;
}
.how-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto var(--sp-4);
  box-shadow: 0 0 20px rgba(99,102,241,0.4);
}
.how-step h3 { margin-bottom: var(--sp-3); }
.how-step p { color: var(--c-text-muted); font-size: 0.9rem; }

/* Project phases */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.phase-card {
  padding: var(--sp-8);
}
.phase-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-3);
}

/* =============================================
   JOB CARD
   ============================================= */
.job-card { padding: var(--sp-6); cursor: pointer; }
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.job-logo {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.job-title { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-1); }
.job-company { font-size: 0.85rem; color: var(--c-text-muted); }
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}
.job-deadline { font-size: 0.78rem; color: var(--c-text-dim); }

/* =============================================
   PROFILE / CV CARD
   ============================================= */
.profile-card { padding: var(--sp-6); text-align: center; }
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto var(--sp-4);
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}
.profile-name { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-1); }
.profile-role { font-size: 0.85rem; color: var(--c-text-muted); margin-bottom: var(--sp-3); }
.profile-skills { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }

/* =============================================
   EMPLOYER CARD
   ============================================= */
.employer-card { padding: var(--sp-6); }
.employer-logo {
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-4);
}
.employer-name { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-1); }
.employer-sector { font-size: 0.8rem; color: var(--c-text-muted); margin-bottom: var(--sp-3); }

/* =============================================
   EDUCATION CARDS
   ============================================= */
.edu-card {
  padding: var(--sp-6);
  cursor: pointer;
}
.edu-icon { font-size: 2.5rem; margin-bottom: var(--sp-4); }
.edu-category { margin-bottom: var(--sp-3); }
.edu-title { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-2); }
.edu-desc { font-size: 0.875rem; color: var(--c-text-muted); line-height: 1.6; }
.edu-meta { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--c-border); font-size: 0.78rem; color: var(--c-text-dim); }

/* =============================================
   DASHBOARD / APPLICATIONS
   ============================================= */
.dashboard-tabs {
  display: flex;
  gap: var(--sp-2);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-1);
  display: inline-flex;
  margin-bottom: var(--sp-8);
}
.dash-tab {
  padding: var(--sp-3) var(--sp-6);
  border-radius: calc(var(--r-lg) - 2px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
}
.dash-tab.active { background: var(--grad-hero); color: #fff; }
.dash-tab:hover:not(.active) { color: var(--c-text); background: var(--c-surface-hover); }

.app-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-fast);
}
.app-row:last-child { border-bottom: none; }
.app-row:hover { background: var(--c-surface-hover); }

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
  padding: var(--sp-12) 0 var(--sp-8);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-8);
}
.page-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-6);
}
.page-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; }
.page-subtitle { color: var(--c-text-muted); margin-top: var(--sp-2); }

/* =============================================
   CV BUILDER
   ============================================= */
.cv-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.cv-preview {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  color: #1e293b;
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
}
.cv-preview-header { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 2px solid #6366F1; }
.cv-preview-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #6366F1, #8B5CF6); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; font-weight: 800; flex-shrink: 0; }
.cv-preview-name { font-size: 1.25rem; font-weight: 800; color: #0f172a; }
.cv-preview-role { font-size: 0.85rem; color: #6366F1; font-weight: 600; }
.cv-section-title { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #6366F1; margin: var(--sp-4) 0 var(--sp-2); border-bottom: 1px solid #e2e8f0; padding-bottom: var(--sp-1); }
.cv-entry { margin-bottom: var(--sp-3); }
.cv-entry-title { font-size: 0.875rem; font-weight: 700; color: #1e293b; }
.cv-entry-sub { font-size: 0.78rem; color: #64748b; }
.cv-entry-desc { font-size: 0.78rem; color: #475569; margin-top: var(--sp-1); }
.cv-skills-list { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.cv-skill-tag { padding: 2px 8px; background: #EEF2FF; color: #4F46E5; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }

/* =============================================
   GLOW LINE
   ============================================= */
.glow-line {
  height: 2px;
  background: var(--grad-primary);
  border-radius: var(--r-full);
  position: relative;
}
.glow-line::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: inherit;
  filter: blur(4px);
  opacity: 0.5;
}

/* =============================================
   MISC
   ============================================= */
.tag-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  min-height: 48px;
  cursor: text;
  transition: border-color var(--t-fast);
}
.tag-input-wrapper:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 10px;
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-primary-light);
}
.tag-chip button { background: none; border: none; cursor: pointer; color: inherit; font-size: 0.9rem; padding: 0; line-height: 1; }
.tag-input { background: none; border: none; outline: none; color: var(--c-text); font-size: 0.85rem; font-family: var(--font-primary); min-width: 100px; flex: 1; padding: 3px; }

.skeleton {
  background: linear-gradient(90deg, var(--c-surface) 25%, var(--c-surface-hover) 50%, var(--c-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}

/* Select with custom arrow */
.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-dim);
  pointer-events: none;
}

/* Accent border left */
.border-l-primary { border-left: 3px solid var(--c-primary); padding-left: var(--sp-4); }
.border-l-accent { border-left: 3px solid var(--c-accent); padding-left: var(--sp-4); }
.border-l-success { border-left: 3px solid var(--c-success); padding-left: var(--sp-4); }

/* Section divider with label */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-8) 0 var(--sp-6);
}
.section-label::before, .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.section-label span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  white-space: nowrap;
}

/* =============================================
   NAV AUTH ZONE
   ============================================= */
.nav-auth-zone {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.user-session-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast);
}
.user-session-badge:hover { border-color: rgba(99,102,241,0.3); }

.user-avatar-nav {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(99,102,241,0.4);
}

.user-session-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.user-session-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-text);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Auth required state */
.auth-required-banner {
  text-align: center;
  padding: var(--sp-12);
  background: rgba(99,102,241,0.05);
  border: 1px dashed rgba(99,102,241,0.2);
  border-radius: var(--r-xl);
}
.auth-required-banner .auth-icon { font-size: 3.5rem; margin-bottom: var(--sp-4); }
.auth-required-banner h3 { font-size: 1.25rem; margin-bottom: var(--sp-2); }
.auth-required-banner p { color: var(--c-text-muted); margin-bottom: var(--sp-6); }

/* Role badge in nav */
.user-role-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: var(--r-full);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
  .cv-builder { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(7,7,26,0.98);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--c-border);
    padding: var(--sp-4);
    z-index: 999;
    animation: slideDown 200ms ease;
  }
  .how-grid { grid-template-columns: 1fr; }
  .phases-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .page-header-inner { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
}

@media (max-width: 480px) {
  :root { --sp-6: 16px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-xl { padding: var(--sp-4) var(--sp-6); }
}

/* =============================================
   2026 PRODUCT EXPERIENCE REFRESH
   ============================================= */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.page-title, .hero-title {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.bg-gradient-mesh {
  background:
    radial-gradient(ellipse 70% 48% at 8% 8%, rgba(22,184,166,0.13) 0%, transparent 62%),
    radial-gradient(ellipse 55% 42% at 92% 70%, rgba(37,99,235,0.10) 0%, transparent 64%),
    linear-gradient(180deg, rgba(7,19,31,0) 0%, rgba(7,19,31,0.55) 100%);
}
.orb-1 { background: radial-gradient(circle, rgba(22,184,166,0.14), transparent 70%); }
.orb-2 { background: radial-gradient(circle, rgba(37,99,235,0.12), transparent 70%); }
.orb-3 { opacity: 0.35; }
#particle-canvas { opacity: 0.18; }

.container { width: min(100% - 40px, var(--max-w)); }
.section { padding: 104px 0; }
.card {
  background: linear-gradient(155deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
  border-color: var(--c-border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}
.card:hover { border-color: rgba(94,234,212,0.28); }
.badge-primary { background: rgba(22,184,166,0.14); color: #8CF5E4; border-color: rgba(22,184,166,0.28); }
.badge-accent { background: rgba(244,184,96,0.13); color: #FFD692; border-color: rgba(244,184,96,0.26); }
.badge-purple { background: rgba(59,130,246,0.13); color: #A7C7FF; border-color: rgba(59,130,246,0.26); }
.cv-preview-header { border-bottom-color: #16B8A6; }
.cv-preview-avatar { background: linear-gradient(135deg, #16B8A6, #2563EB); }
.cv-preview-role, .cv-section-title { color: #0F8F84; }

.navbar { height: 76px; }
.nav-container { gap: 22px; }
.nav-link { font-weight: 650; letter-spacing: -0.01em; }
.nav-link::after { background: var(--c-primary-light); }
.nav-link.active { color: var(--c-primary-light); }

.home-hero {
  min-height: 760px;
  padding: 150px 0 90px;
  display: flex;
  align-items: center;
  position: relative;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 8% 0 auto;
  height: 560px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(167,192,202,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,192,202,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent);
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  position: relative;
}
.home-hero-copy { max-width: 700px; text-align: left; }
.home-hero-copy .hero-badge {
  margin: 0 0 26px;
  padding: 8px 13px;
  gap: 9px;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9DF4E7;
  background: rgba(22,184,166,0.09);
  border-color: rgba(94,234,212,0.22);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-primary-light);
  box-shadow: 0 0 0 5px rgba(94,234,212,0.08);
}
.home-hero-title {
  max-width: 700px;
  margin: 0 0 24px;
  font-size: clamp(3.2rem, 6.2vw, 6.35rem);
  line-height: 0.95;
  font-weight: 820;
  letter-spacing: -0.055em;
}
.home-hero-title span {
  display: block;
  color: transparent;
  background: var(--grad-text);
  background-clip: text;
  -webkit-background-clip: text;
}
.home-hero-copy .hero-subtitle {
  max-width: 650px;
  margin: 0 0 34px;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
  color: #B8CED6;
}
.home-hero-copy .hero-cta { justify-content: flex-start; margin: 0 0 28px; }
.btn-xl { min-height: 54px; padding: 15px 24px; border-radius: 14px; }
.btn-primary { box-shadow: 0 12px 32px rgba(22,184,166,0.18); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(22,184,166,0.26); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--c-text-muted); font-size: 0.82rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust b { color: var(--c-primary-light); }

.opportunity-board {
  display: block;
  width: 100%;
  position: relative;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(167,192,202,0.18);
  background: linear-gradient(160deg, rgba(16,42,56,0.98), rgba(8,27,40,0.94));
  box-shadow: 0 40px 100px rgba(0,0,0,0.35), 0 0 0 8px rgba(255,255,255,0.015);
  transform: rotate(1.2deg);
}
.opportunity-board::before {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: rgba(22,184,166,0.12);
  filter: blur(55px);
}
.board-topline, .board-profile, .board-section-title, .board-job, .board-foot { display: flex; align-items: center; }
.board-topline { justify-content: space-between; margin-bottom: 25px; }
.board-kicker { color: #7895A2; font-size: 0.66rem; font-weight: 850; letter-spacing: 0.13em; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; color: #9FE8DE; font-size: 0.7rem; font-weight: 750; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #3DE0C9; box-shadow: 0 0 12px #3DE0C9; }
.board-profile { gap: 13px; }
.board-avatar {
  width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 15px; color: #06251f; background: #75E8D7; font-weight: 900; font-size: 0.82rem;
}
.board-profile div { display: grid; gap: 3px; min-width: 0; }
.board-profile strong { font-size: 0.94rem; }
.board-profile small, .board-job small { color: var(--c-text-muted); font-size: 0.7rem; }
.profile-score { margin-left: auto; font-family: var(--font-display); font-weight: 800; color: var(--c-primary-light); }
.board-progress { height: 5px; margin: 18px 0 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,0.07); }
.board-progress span { display: block; width: 82%; height: 100%; border-radius: inherit; background: var(--grad-primary); }
.board-hint { margin: 0 0 26px; color: #7895A2; font-size: 0.68rem; }
.board-section-title { justify-content: space-between; margin-bottom: 12px; font-size: 0.75rem; font-weight: 750; }
.board-section-title small { color: var(--c-text-dim); }
.board-job {
  width: 100%;
  gap: 12px;
  padding: 13px;
  margin-bottom: 9px;
  color: var(--c-text);
  text-align: left;
  border: 1px solid rgba(94,234,212,0.14);
  border-radius: 15px;
  background: rgba(22,184,166,0.075);
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.board-job:hover { transform: translateX(3px); border-color: rgba(94,234,212,0.38); background: rgba(22,184,166,0.12); }
.board-job > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.board-job strong { font-size: 0.79rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-monogram { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #9FF3E8; background: rgba(22,184,166,0.15); font-size: 0.68rem; font-weight: 850; }
.job-monogram.amber { color: #FFD991; background: rgba(244,184,96,0.12); }
.match-pill { margin-left: auto; padding: 5px 8px; border-radius: 99px; color: #9FF3E8; background: rgba(22,184,166,0.12); font-size: 0.63rem; font-weight: 800; white-space: nowrap; }
.board-job.muted { border-color: rgba(255,255,255,0.07); background: rgba(255,255,255,0.025); }
.board-job.muted > span:last-child { margin-left: auto; color: var(--c-text-dim); }
.board-foot { justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--c-border); color: var(--c-text-muted); font-size: 0.7rem; font-weight: 650; }
.toggle-on { width: 32px; height: 18px; position: relative; border-radius: 99px; background: var(--c-primary); }
.toggle-on::after { content: ''; position: absolute; width: 12px; height: 12px; right: 3px; top: 3px; border-radius: 50%; background: #fff; }

.impact-strip { position: relative; z-index: 2; border-block: 1px solid var(--c-border); background: rgba(4,16,25,0.62); }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.impact-grid > div { display: grid; gap: 3px; padding: 30px 26px; border-right: 1px solid var(--c-border); }
.impact-grid > div:first-child { border-left: 1px solid var(--c-border); }
.impact-grid strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--c-primary-light); }
.impact-grid span { font-size: 0.84rem; font-weight: 750; }
.impact-grid small { color: var(--c-text-dim); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.07em; }

.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 42px; }
.section-heading-row > div { max-width: 760px; }
.section-heading-row > p { max-width: 430px; color: var(--c-text-muted); line-height: 1.75; }
.section-eyebrow { margin-bottom: 12px; color: var(--c-primary-light); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.section-heading-row .h2, .mission-copy .h2 { font-size: clamp(2.2rem, 4vw, 4.1rem); line-height: 1.04; }

.audience-section { background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent); }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience-card { min-height: 350px; position: relative; display: flex; flex-direction: column; padding: 30px; overflow: hidden; border: 1px solid var(--c-border); border-radius: 24px; background: rgba(255,255,255,0.035); transition: transform var(--t-base), border-color var(--t-base), background var(--t-base); }
.audience-card:hover { transform: translateY(-6px); border-color: rgba(94,234,212,0.3); background: rgba(255,255,255,0.055); }
.audience-card::after { content: ''; position: absolute; width: 150px; height: 150px; right: -65px; bottom: -65px; border-radius: 50%; background: rgba(22,184,166,0.1); }
.employer-card::after { background: rgba(59,130,246,0.11); }
.education-card::after { background: rgba(244,184,96,0.11); }
.audience-index { color: var(--c-text-dim); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; }
.audience-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 42px 0 24px; border-radius: 16px; color: #8EF2E3; background: rgba(22,184,166,0.12); font-size: 1.35rem; font-weight: 300; }
.employer-card .audience-icon { color: #94BCFF; background: rgba(59,130,246,0.12); }
.education-card .audience-icon { color: #FFD692; background: rgba(244,184,96,0.12); }
.audience-card h3 { margin-bottom: 12px; font-size: 1.55rem; }
.audience-card p { max-width: 340px; margin-bottom: 30px; color: var(--c-text-muted); line-height: 1.7; }
.text-link { width: fit-content; margin-top: auto; position: relative; z-index: 1; color: var(--c-text); font-weight: 750; }
.text-link span { margin-left: 8px; color: var(--c-primary-light); transition: margin var(--t-fast); }
.text-link:hover span { margin-left: 13px; }

.featured-home { border-block: 1px solid var(--c-border); background: rgba(3,14,23,0.48); }
.featured-home .job-card { min-height: 100%; }
.skeleton-card { min-height: 260px; overflow: hidden; }
.skeleton-card::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.empty-featured { grid-column: 1 / -1; padding: 50px; text-align: center; color: var(--c-text-muted); border: 1px dashed var(--c-border); border-radius: var(--r-xl); }

.mission-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.mission-copy > p { max-width: 720px; margin: 24px 0 32px; color: var(--c-text-muted); font-size: 1.04rem; line-height: 1.85; }
.mission-points { display: grid; gap: 12px; }
.mission-points span { display: flex; align-items: center; gap: 14px; color: #C1D3DA; font-weight: 650; }
.mission-points b { width: 34px; color: var(--c-primary-light); font-size: 0.7rem; letter-spacing: 0.08em; }
.mission-card { min-height: 410px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; padding: 36px; border: 1px solid rgba(94,234,212,0.18); border-radius: 26px; background: linear-gradient(155deg, rgba(22,184,166,0.15), rgba(37,99,235,0.1)); }
.mission-card::before { content: 'S'; position: absolute; right: -22px; top: -70px; font-family: var(--font-display); font-size: 18rem; font-weight: 900; line-height: 1; color: rgba(255,255,255,0.025); transform: rotate(8deg); }
.mission-card-label { position: absolute; top: 30px; left: 36px; color: var(--c-primary-light); font-size: 0.69rem; font-weight: 850; letter-spacing: 0.12em; }
.mission-card strong { max-width: 380px; position: relative; margin-bottom: 16px; font-family: var(--font-display); font-size: clamp(2rem, 3vw, 3rem); line-height: 1.08; }
.mission-card p { position: relative; margin-bottom: 24px; color: var(--c-text-muted); line-height: 1.7; }
.mission-card a { position: relative; width: fit-content; color: #9FF3E8; font-size: 0.78rem; font-weight: 700; }

.home-cta-section { padding-top: 30px; }
.home-cta { min-height: 230px; display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; padding: clamp(34px, 5vw, 64px); border-radius: 30px; color: #04231F; background: linear-gradient(120deg, #78ECD9 0%, #55D6C5 46%, #8CB9FF 100%); }
.home-cta .section-eyebrow { color: rgba(4,35,31,0.65); }
.home-cta h2 { max-width: 720px; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.03; }
.btn-light { color: #F5FBFC; background: #07131F; box-shadow: 0 12px 34px rgba(4,35,31,0.22); }
.cta-orbit { position: absolute; width: 340px; height: 340px; right: 14%; top: -160px; border: 1px solid rgba(4,35,31,0.12); border-radius: 50%; box-shadow: 0 0 0 44px rgba(4,35,31,0.04), 0 0 0 90px rgba(4,35,31,0.025); }
.home-cta > * { position: relative; z-index: 1; }

.page-wrapper { padding-top: 126px; }
.page-header { margin-bottom: 38px; }
.page-title { font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: 1; }
.text-gradient { background: var(--grad-text); background-clip: text; -webkit-background-clip: text; }
.form-input, .form-textarea, .form-select { min-height: 48px; border-color: rgba(167,192,202,0.18); background: rgba(3,14,23,0.58); }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(22,184,166,0.12); }
.modal-box { border-color: rgba(94,234,212,0.2); background: #0B1C2A; box-shadow: 0 35px 100px rgba(0,0,0,0.5); }
.auth-required-banner { background: rgba(22,184,166,0.045); border-color: rgba(22,184,166,0.24); }
.footer { background: rgba(4,14,23,0.86); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-contact { color: var(--c-primary-light); }

@media (max-width: 1100px) {
  .hero-shell { grid-template-columns: 1fr 420px; gap: 42px; }
  .home-hero-title { font-size: clamp(3.2rem, 6vw, 5rem); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid > div:nth-child(3) { border-left: 1px solid var(--c-border); }
  .impact-grid > div { border-bottom: 1px solid var(--c-border); }
}

@media (max-width: 900px) {
  .home-hero { min-height: auto; padding-top: 130px; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-visual.opportunity-board { display: block; max-width: 610px; margin-inline: auto; transform: none; }
  .home-hero-copy { max-width: 760px; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { min-height: 290px; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-card { min-height: 340px; }
  .home-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 768px) {
  .container { width: min(100% - 30px, var(--max-w)); }
  .section { padding: 78px 0; }
  .nav-container { padding-inline: 16px; }
  .nav-links.mobile-open { background: rgba(7,19,31,0.985); padding: 14px 18px 20px; }
  .nav-links.mobile-open .nav-link { width: 100%; padding: 13px 16px; font-size: 1rem; }
  .script-toggle { margin-left: auto; }
  .home-hero { padding: 118px 0 72px; }
  .home-hero-title { font-size: clamp(3rem, 13vw, 4.7rem); }
  .home-hero-copy .hero-subtitle { font-size: 1rem; }
  .opportunity-board { padding: 18px; border-radius: 22px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 18px; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid > div { padding: 24px 18px; }
  .impact-grid strong { font-size: 1.55rem; }
  .impact-grid span { font-size: 0.75rem; }
}

@media (max-width: 560px) {
  .nav-auth-zone .btn-ghost { display: none; }
  .nav-auth-zone .btn-primary { padding: 9px 12px; font-size: 0.76rem; }
  .logo-text { font-size: 1.25rem; }
  .logo-mark { width: 34px; height: 34px; }
  .script-toggle { padding: 7px 9px; }
  .home-hero-title { font-size: clamp(2.75rem, 14vw, 4rem); }
  .hero-trust { display: grid; }
  .board-profile small { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .match-pill { display: none; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-grid > div, .impact-grid > div:nth-child(3) { border-left: 1px solid var(--c-border); }
  .audience-card { padding: 24px; }
  .home-cta { padding: 32px 24px; border-radius: 22px; }
  .home-cta .btn { width: 100%; }
}

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