/* ============================================================
   HireMind — Landing page + upload wizard
   ============================================================ */

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; text-align: center; position: relative; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse-dot 1.6s ease-in-out infinite; }
.hero h1 { max-width: 820px; margin: 0 auto 20px; }
.hero .sub { max-width: 640px; margin: 0 auto 36px; font-size: 1.18rem; color: var(--muted); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.hero-stats .stat .lbl { color: var(--muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

.feature-card { text-align: left; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}
.feature-icon.green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3); }
.feature-icon.sky { background: linear-gradient(135deg, #38bdf8, #0284c7); box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3); }
.feature-icon.amber { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3); }
.feature-icon.rose { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step-card { position: relative; padding-top: 8px; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  display: grid; place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(80px);
  top: -180px; right: -100px;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { opacity: 0.9; margin-bottom: 28px; font-size: 1.05rem; }
.cta-band .btn { background: #fff; color: var(--primary); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; margin-top: 40px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   Upload wizard
   ============================================================ */
.wizard-shell { padding: 48px 0 80px; }
.wizard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) { .wizard-card { padding: 24px 18px; } }

.wizard-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; }
.wstep { display: flex; align-items: center; gap: 10px; }
.wstep .dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--bg-soft);
  color: var(--muted);
  border: 2px solid var(--border);
  transition: all 0.25s ease;
}
.wstep .lbl { font-weight: 600; font-size: 0.9rem; color: var(--muted); transition: color 0.25s ease; }
.wstep.active .dot { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4); }
.wstep.active .lbl { color: var(--fg); }
.wstep.done .dot { background: var(--accent); color: #fff; border-color: transparent; }
.wstep-line { width: 56px; height: 2px; background: var(--border-strong); margin: 0 14px; border-radius: 2px; }
@media (max-width: 640px) { .wstep .lbl { display: none; } .wstep-line { width: 30px; } }

/* ---------- Dropzone ---------- */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: 18px;
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  background: var(--bg-soft);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
}
.dropzone .dz-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}
.dropzone h3 { margin-bottom: 6px; }
.dropzone p { color: var(--muted); font-size: 0.92rem; }
.dropzone .formats { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fmt-chip {
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.file-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.file-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: fileIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fileIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.file-item .f-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 0.7rem; font-weight: 800;
  color: #fff;
}
.file-item .f-icon.pdf { background: linear-gradient(135deg, #f87171, #dc2626); }
.file-item .f-icon.doc { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.file-item .f-icon.img { background: linear-gradient(135deg, #34d399, #059669); }
.file-item .f-icon.txt { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.file-item .f-name { flex: 1; min-width: 0; }
.file-item .f-name .nm { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .f-name .sz { font-size: 0.8rem; color: var(--muted); }
.file-item .f-remove {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.file-item .f-remove:hover { background: var(--danger-soft); color: var(--danger); }

/* ---------- Processing ---------- */
.processing-panel { text-align: center; padding: 30px 0 10px; }
.processing-icon {
  width: 84px; height: 84px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  animation: floaty 2.6s ease-in-out infinite;
  box-shadow: 0 14px 40px rgba(99, 102, 241, 0.4);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.stage-list { max-width: 420px; margin: 28px auto 0; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.stage-item { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.95rem; transition: color 0.3s ease; }
.stage-item .s-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft);
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.stage-item.active { color: var(--fg); font-weight: 600; }
.stage-item.active .s-dot { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
.stage-item.done { color: var(--accent); }
.stage-item.done .s-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.leave-note {
  margin-top: 30px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--info-soft);
  color: var(--info);
  font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 10px;
  text-align: left;
}
.link-box {
  margin-top: 20px;
  display: flex; gap: 10px; align-items: center;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.link-box .input { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }

/* ---------- Landing misc ---------- */
.pain-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .pain-points { grid-template-columns: 1fr; } }
.pain-item { display: flex; gap: 14px; align-items: flex-start; }
.pain-item .p-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--danger-soft);
  color: var(--danger);
}
.pain-item h4 { font-size: 1rem; margin-bottom: 4px; }
.pain-item p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Showcase (screenshot thật) — bấm để phóng to ---------- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .showcase { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.show-item { display: flex; flex-direction: column; }
.show-shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px -12px rgba(79, 70, 229, 0.22);
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.35s;
  cursor: zoom-in;
}
.show-item:hover .show-shot {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px -12px rgba(79, 70, 229, 0.32);
}
.show-shot img { width: 100%; display: block; transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1); }
.show-item:hover .show-shot img { transform: scale(1.04); }
.show-shot::after {
  content: '🔍 Bấm để phóng to';
  position: absolute; inset: auto 0 0 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.show-shot:hover::after { opacity: 1; }
.show-tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.show-tag-red { background: rgba(220, 38, 38, 0.85); }
.show-tag-amber { background: rgba(217, 119, 6, 0.85); }
.show-tag-grad { background: linear-gradient(135deg, rgba(99, 102, 241, 0.92), rgba(168, 85, 247, 0.92)); }
.show-item h4 { margin: 14px 0 5px; font-size: 1.02rem; }
.show-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- CV nhập tay (form / tự viết) ---------- */
.cv-entry-toggle {
  display: block; width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px dashed var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cv-entry-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.cv-entry-toggle.active { border-style: solid; border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.cv-entry { margin-top: 14px; }
.cv-entry-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.cv-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cv-tab:hover { border-color: var(--primary); color: var(--primary); }
.cv-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }

.cv-form { display: flex; flex-direction: column; gap: 14px; }
.cv-form .grid-2 { gap: 14px; margin-bottom: 0 !important; }
.cv-form .textarea { min-height: 74px; resize: vertical; }
@media (max-width: 700px) { .cv-form .grid-2 { grid-template-columns: 1fr; } }
