/* ============================================
   FreeResumeOnline · Design System v2
   Glassmorphism + Modern SaaS · Premium Studio UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ===== Brand Gradient ===== */
  --grad-brand: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #06b6d4 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(99,102,241,0.10) 50%, rgba(6,182,212,0.10) 100%);
  --grad-text: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --grad-cta: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --grad-hero: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(124,58,237,0.20) 0%, transparent 50%),
               radial-gradient(ellipse 80% 50% at 80% 30%, rgba(6,182,212,0.18) 0%, transparent 60%),
               radial-gradient(ellipse 70% 50% at 20% 60%, rgba(99,102,241,0.15) 0%, transparent 60%);

  /* ===== Core Palette ===== */
  --c-purple: #7c3aed;
  --c-indigo: #6366f1;
  --c-cyan: #06b6d4;
  --c-pink: #ec4899;

  /* ===== Light Theme (default) ===== */
  --bg-primary: #fafafe;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --bg-glass-card: rgba(255, 255, 255, 0.55);
  --bg-overlay: rgba(255, 255, 255, 0.75);

  --border-glass: rgba(255, 255, 255, 0.8);
  --border-soft: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.12);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* ===== Shadows ===== */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
  --shadow-glow-cyan: 0 0 40px rgba(6, 182, 212, 0.30);
  --shadow-card: 0 8px 32px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 20px 50px rgba(99, 102, 241, 0.15), 0 8px 24px rgba(15, 23, 42, 0.08);

  /* ===== Spacing ===== */
  --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;

  /* ===== Radius ===== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 999px;

  /* ===== Typography ===== */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* ===== Transitions ===== */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ===== Layout ===== */
  --container: 1200px;
  --container-wide: 1400px;
  --header-h: 72px;
}

/* ===== Dark theme override ===== */
[data-theme="dark"] {
  --bg-primary: #0a0a14;
  --bg-secondary: #0f0f1c;
  --bg-tertiary: #161629;
  --bg-glass: rgba(20, 20, 35, 0.65);
  --bg-glass-strong: rgba(20, 20, 35, 0.85);
  --bg-glass-card: rgba(255, 255, 255, 0.04);
  --bg-overlay: rgba(15, 15, 28, 0.75);

  --border-glass: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-muted: #64748b;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ===== Background glow / aurora ===== */
.aurora-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--grad-hero);
  opacity: 1;
}
.aurora-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 80%, rgba(236,72,153,0.10) 0%, transparent 50%);
}

/* ===== Typography scale ===== */
.h1, h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.h2, h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.h3, h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.h4, h4 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.35; }

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-muted { color: var(--text-tertiary); }
.text-soft { color: var(--text-secondary); }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-secondary); line-height: 1.65; }

/* ===== Container ===== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

/* ===== Glass primitives ===== */
.glass {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
}
.glass-card {
  background: var(--bg-glass-card);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(99, 102, 241, 0.25);
}
.glass-strong {
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  white-space: nowrap;
  letter-spacing: -0.01em;
  user-select: none;
}
.btn-primary {
  background: var(--grad-cta);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35), 0 1px 2px rgba(15, 23, 42, 0.1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(99, 102, 241, 0.45), 0 2px 4px rgba(15, 23, 42, 0.12); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  border-color: var(--border-medium);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--c-indigo); color: var(--c-indigo); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border-medium); }
.btn-outline:hover { border-color: var(--c-indigo); color: var(--c-indigo); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* ===== Badge / Pill ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pill-grad {
  background: var(--grad-brand-soft);
  color: var(--c-indigo);
  border-color: rgba(99, 102, 241, 0.25);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 8px var(--c-cyan); }

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 0.625rem; font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--text-primary); }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span:nth-child(2) { color: var(--text-primary); }
.nav-logo .accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a { font-size: 0.9375rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-menu a:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-glass-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 1rem; border-bottom: 1px solid var(--border-soft); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.875rem 0.5rem; width: 100%; border-bottom: 1px solid var(--border-soft); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
  .nav-cta .btn-ghost { display: none; }
}

/* ===== Section ===== */
.section { padding-block: clamp(4rem, 10vw, 7rem); position: relative; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .pill { margin-bottom: 1rem; }
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p { max-width: 680px; margin-inline: auto; color: var(--text-secondary); }

/* ===== Grid ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer {
  margin-top: 6rem;
  padding-block: 4rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-soft);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-tertiary); font-size: 0.9375rem; max-width: 320px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-primary); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col a { font-size: 0.9375rem; color: var(--text-tertiary); transition: color 0.2s; }
.footer-col a:hover { color: var(--c-indigo); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--text-muted); }

/* ===== Animations ===== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fade-up { animation: fadeUp 0.8s var(--ease-smooth) both; }
.animate-fade-in { animation: fadeIn 0.6s ease both; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ===== Form Elements ===== */
.input, .textarea, .select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--c-indigo);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
  background: var(--bg-secondary);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }

/* ===== Utilities ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* ===== Theme toggle ===== */
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-glass); border: 1px solid var(--border-medium); transition: all 0.2s; }
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--c-indigo); }
.theme-toggle .icon-moon { display: block; } .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; } [data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Selection */
::selection { background: rgba(99, 102, 241, 0.25); color: var(--text-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
