/* ===================================================================
   CVMaster AI — shared design system
   Palette: indigo / slate, soft gradients, rounded cards
   =================================================================== */
:root {
  --indigo-50:  #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --blue-500:   #3b82f6;
  --blue-600:   #2563eb;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --green-500: #22c55e;
  --green-600: #16a34a;
  --amber-500: #f59e0b;
  --red-500:   #ef4444;

  --bg:        #f7f9fc;
  --card:      #ffffff;
  --text:      var(--slate-800);
  --muted:     var(--slate-500);
  --border:    var(--slate-200);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow:    0 4px 14px rgba(15,23,42,.07);
  --shadow-lg: 0 18px 40px rgba(79,70,229,.16);
  --ring:      0 0 0 3px var(--indigo-100);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow { color: var(--indigo-600); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--slate-900); text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 12px auto 0; font-size: 1.05rem; }
.text-muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; padding: 11px 22px;
  border-radius: 999px; transition: .18s ease; white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo-600); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--indigo-700); }
.btn-outline { background: #fff; color: var(--indigo-600); border-color: var(--indigo-200); }
.btn-outline:hover { border-color: var(--indigo-500); background: var(--indigo-50); }
.btn-ghost { color: var(--slate-600); }
.btn-ghost:hover { background: var(--slate-100); }
.btn-blue { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn-blue:hover { background: var(--blue-500); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--slate-900); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--indigo-500), var(--blue-600));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: 0 6px 14px rgba(79,70,229,.35);
}
.brand .badge-pro { font-size: .62rem; font-weight: 800; color: var(--amber-500); background: #fff7ed; border: 1px solid #fed7aa; padding: 2px 6px; border-radius: 6px; margin-left: 4px; letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--slate-600); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--indigo-600); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; font-size: 1.5rem; color: var(--slate-700); }

.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--indigo-100); display: grid; place-items: center; color: var(--indigo-600); font-weight: 700; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }

/* ---------- Chips / pills ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--slate-100); color: var(--slate-600); border: 1px solid transparent; cursor: pointer; transition: .15s; }
.chip:hover { background: var(--indigo-50); color: var(--indigo-600); }
.chip.active { background: var(--indigo-50); color: var(--indigo-600); border-color: var(--indigo-200); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: #fff; margin-top: 64px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 28px 0; }
.footer a { color: var(--muted); font-size: .9rem; }
.footer a:hover { color: var(--indigo-600); }
.footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.hidden { display: none !important; }
.badge-soft { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-green { background: #dcfce7; color: var(--green-600); }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-indigo { background: var(--indigo-100); color: var(--indigo-700); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--slate-900); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0;
  transition: .28s ease; z-index: 200; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-actions .hide-mobile { display: none; }
}
