@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');
:root {
  --ink: #0d0d0d; --paper: #f5f2eb; --accent: #e8401c; --indigo: #3730a3;
  --muted: #6b6b6b; --border: #e2e0d8; --card: #ffffff; --green: #16a34a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; min-height: 100vh; }
nav { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--border); padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-back { color: var(--muted); font-size: 14px; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.nav-back:hover { color: var(--ink); }
.container { max-width: 780px; margin: 0 auto; padding: 40px 5vw; }
.page-title { font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.page-sub { color: var(--muted); font-size: 16px; margin-bottom: 32px; }
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 8px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 14px;
  font-size: 14px; font-family: inherit; outline: none; background: #fff; color: var(--ink); transition: border-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--indigo); }
textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
.gap { margin-bottom: 18px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.btn-primary { background: var(--indigo); color: #fff; border: none; border-radius: 8px; padding: 13px 28px; font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; margin-top: 8px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; }
.btn-primary:hover:not(:disabled) { background: var(--ink); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-secondary:hover { border-color: var(--ink); }
.result-area { display: none; margin-top: 24px; }
.result-area.visible { display: block; }
.result-header { margin-bottom: 16px; }
.result-header h2 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; }
.result-header p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.output-box { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; padding: 24px; white-space: pre-wrap; font-family: 'DM Mono', 'Courier New', monospace; font-size: 13px; line-height: 1.8; max-height: 520px; overflow-y: auto; }
.action-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 14px; opacity: 0; transition: all 0.3s; z-index: 9999; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.kw { background: #dcfce7; color: var(--green); font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 500; }
.q-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.q-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }
.cat-hr { color: #92400e; }
.cat-resume { color: var(--indigo); }
.cat-technical { color: var(--green); }
.cat-situational { color: #9d174d; }
.q-text { font-size: 15px; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }
.q-hint { background: var(--paper); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.section-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; }
.section-card h3 { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.skill-pill { display: inline-block; background: #eef2ff; color: var(--indigo); font-size: 12px; padding: 4px 12px; border-radius: 20px; margin: 3px; }
.roadmap-item { display: flex; gap: 12px; margin-bottom: 14px; }
.r-num { background: #eef2ff; color: var(--indigo); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.r-text h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.r-text p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.resource-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.resource-item:last-child { border-bottom: none; }
.resource-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.resource-info p { font-size: 12px; color: var(--muted); }
.badge-free { background: #dcfce7; color: var(--green); font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.badge-paid { background: #fef3c7; color: #92400e; font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.proj-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 16px; border-top: 4px solid var(--indigo); }
.proj-card:nth-child(2) { border-top-color: var(--green); }
.proj-card:nth-child(3) { border-top-color: var(--accent); }
.proj-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 10px; }
.proj-title { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; }
.diff-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.diff-b { background: #dcfce7; color: var(--green); }
.diff-i { background: #fef3c7; color: #92400e; }
.diff-a { background: #fce7f3; color: #9d174d; }
.proj-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.tech-pill { display: inline-block; background: #eef2ff; color: var(--indigo); font-size: 12px; padding: 3px 10px; border-radius: 20px; margin: 2px; }
.step-item { display: flex; gap: 10px; margin-bottom: 8px; }
.step-dot { width: 6px; height: 6px; background: var(--indigo); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.step-item p { font-size: 13px; color: var(--ink); line-height: 1.5; }
.impact-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #166534; margin-top: 12px; }
.chat-area { background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; }
.chat-messages { padding: 20px; min-height: 360px; max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 90%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.bot .avatar { background: #eef2ff; }
.user .avatar { background: var(--indigo); color: #fff; font-size: 12px; font-weight: 700; }
.bubble { padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.bot .bubble { background: var(--paper); border-top-left-radius: 4px; }
.user .bubble { background: var(--indigo); color: #fff; border-top-right-radius: 4px; }
.chat-input-row { border-top: 1.5px solid var(--border); padding: 12px 16px; display: flex; gap: 10px; }
.chat-input-row input { flex: 1; border: 1.5px solid var(--border); border-radius: 24px; padding: 10px 16px; font-size: 14px; outline: none; font-family: inherit; }
.chat-input-row input:focus { border-color: var(--indigo); }
.chat-send { background: var(--indigo); color: #fff; border: none; border-radius: 24px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.chat-send:hover { background: var(--ink); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.progress-bar { display: flex; gap: 5px; margin-bottom: 20px; }
.p-step { flex: 1; height: 4px; background: var(--border); border-radius: 2px; transition: background 0.3s; }
.p-step.done { background: var(--indigo); }
.p-step.active { background: #a5b4fc; }
@media(max-width: 600px) { .container { padding: 24px 4vw; } .page-title { font-size: 26px; } }
