*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0f1117;--surface:#1a1d27;--surface2:#242836;--border:#2e3348;
  --text:#e8eaf0;--text-dim:#8b8fa3;--accent:#6366f1;--accent-light:#818cf8;
  --accent-bg:rgba(99,102,241,.12);--green:#34d399;--yellow:#fbbf24;--red:#f87171;
  --radius:12px;--radius-sm:8px;--shadow:0 4px 24px rgba(0,0,0,.3);
  --font:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --max-width:1120px;
}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased}
.container{max-width:var(--maxwidth);margin:0 auto;padding:0 20px}
img,svg{max-width:100%;height:auto}
a{color:var(--accent-light);text-decoration:none}
a:hover{text-decoration:underline}

/* Header */
.site-header{position:sticky;top:0;z-index:100;background:rgba(15,17,23,.85);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:56px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}
.logo:hover{text-decoration:none}
.logo-text{font-size:1.15rem;font-weight:700}
.logo-accent{color:var(--accent-light)}
.site-nav{display:flex;gap:24px}
.site-nav a{color:var(--text-dim);font-size:.9rem;font-weight:500;text-decoration:none}
.site-nav a:hover{color:var(--text)}

/* Hero */
.hero{padding:80px 0 60px;text-align:center}
.hero h1{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;line-height:1.2;max-width:640px;margin:0 auto 16px}
.hero-sub{font-size:1.1rem;color:var(--text-dim);max-width:560px;margin:0 auto 32px}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:12px}
.hero-note{font-size:.85rem;color:var(--text-dim)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;border-radius:var(--radius-sm);font-size:.95rem;font-weight:600;cursor:pointer;border:2px solid transparent;transition:all .15s;text-decoration:none;gap:6px}
.btn:hover{text-decoration:none;transform:translateY(-1px)}
.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.btn-primary:hover{background:var(--accent-light)}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--border)}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent-light)}
.btn-lg{padding:14px 28px;font-size:1.05rem}
.btn:disabled{opacity:.4;cursor:not-allowed;transform:none}
.btn-sm{padding:6px 14px;font-size:.85rem}

/* Quiz section */
.quiz-section{padding:40px 0 80px}
.quiz-layout{display:grid;grid-template-columns:1fr 300px;gap:32px;align-items:start}
.quiz-main{min-width:0}
.quiz-header{margin-bottom:20px}
.quiz-header h2{font-size:1.4rem;margin-bottom:12px}
.progress-bar{height:6px;background:var(--surface2);border-radius:3px;overflow:hidden;margin-bottom:6px}
.progress-fill{height:100%;background:var(--accent);border-radius:3px;transition:width .3s;width:0%}
.progress-text{font-size:.8rem;color:var(--text-dim)}

.quiz-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:32px}
.question-text{font-size:1.15rem;font-weight:600;margin-bottom:8px}
.question-hint{font-size:.85rem;color:var(--text-dim);margin-bottom:24px}
.options-grid{display:grid;gap:10px;margin-bottom:24px}
.option-btn{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;background:var(--surface2);border:2px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;text-align:left;color:var(--text);font-size:.95rem;transition:all .15s;width:100%}
.option-btn:hover{border-color:var(--accent);background:var(--accent-bg)}
.option-btn.selected{border-color:var(--accent);background:var(--accent-bg)}
.option-letter{flex-shrink:0;width:28px;height:28px;background:var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;color:var(--text-dim)}
.option-btn.selected .option-letter{background:var(--accent);color:#fff}
.quiz-nav{display:flex;justify-content:space-between}

/* Sidebar */
.quiz-sidebar{position:sticky;top:72px;display:flex;flex-direction:column;gap:16px}
.sidebar-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px}
.sidebar-card h3{font-size:.95rem;margin-bottom:12px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.05em}
.sidebar-steps{list-style:none;display:flex;flex-direction:column;gap:10px}
.sidebar-steps li{font-size:.85rem;color:var(--text-dim);padding-left:24px;position:relative}
.sidebar-steps li::before{content:'';position:absolute;left:0;top:6px;width:10px;height:10px;border-radius:50%;background:var(--border)}
.sidebar-steps li.step-active{color:var(--text);font-weight:500}
.sidebar-steps li.step-active::before{background:var(--accent)}
.insight-text{font-size:.85rem;color:var(--text-dim);line-height:1.5}

/* Results */
.results-area{margin-top:24px}
.results-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:24px}
.results-header h2{font-size:1.4rem}
.results-actions{display:flex;gap:8px}
.result-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:12px;overflow:hidden}
.result-card-header{display:flex;align-items:center;gap:16px;padding:16px 20px;cursor:pointer;background:none;border:none;color:var(--text);width:100%;text-align:left;font:inherit}
.result-card-header:hover{background:var(--surface2)}
.result-rank{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.9rem;flex-shrink:0}
.rank-1{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#000}
.rank-2{background:linear-gradient(135deg,#94a3b8,#64748b);color:#000}
.rank-3{background:linear-gradient(135deg,#b45309,#92400e);color:#fff}
.rank-default{background:var(--surface2);color:var(--text-dim)}
.result-info{flex:1;min-width:0}
.result-name{font-weight:700;font-size:1.05rem}
.result-fit{font-size:.8rem;color:var(--text-dim)}
.result-score{font-size:1.1rem;font-weight:700;color:var(--accent-light)}
.result-card-body{padding:0 20px 20px;display:grid;grid-template-columns:1fr 1fr;gap:20px}
.result-card-body h4{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-dim);margin-bottom:6px}
.result-card-body p,.result-card-body li{font-size:.9rem;color:var(--text-dim);line-height:1.5}
.result-card-body ul{padding-left:16px}
.result-card-body li{margin-bottom:4px}
.result-salary{font-size:.9rem}
.result-salary strong{color:var(--green)}

/* Overlap map */
.overlap-section{margin-top:32px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px}
.overlap-section h3{font-size:1.1rem;margin-bottom:8px}
.overlap-section>p{font-size:.85rem;color:var(--text-dim);margin-bottom:16px}
.overlap-svg{width:100%;height:auto}

/* Reference table */
.reference-section{padding:60px 0}
.reference-section h2{font-size:1.4rem;margin-bottom:8px}
.section-sub{color:var(--text-dim);margin-bottom:24px;font-size:.95rem}
.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius)}
.ref-table{width:100%;border-collapse:collapse;font-size:.9rem}
.ref-table th{background:var(--surface);padding:12px 16px;text-align:left;font-weight:600;color:var(--text-dim);border-bottom:1px solid var(--border);white-space:nowrap}
.ref-table td{padding:12px 16px;border-bottom:1px solid var(--border);color:var(--text-dim)}
.ref-table tr:last-child td{border-bottom:none}
.ref-table tr:hover td{background:var(--surface)}
.ref-table td:first-child{font-weight:600;color:var(--text)}

/* Mistakes */
.mistakes-section{padding:60px 0;background:var(--surface)}
.mistakes-section h2{font-size:1.4rem;margin-bottom:32px;text-align:center}
.mistakes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.mistake-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:24px}
.mistake-icon{font-size:1.5rem;margin-bottom:12px}
.mistake-card h3{font-size:1rem;margin-bottom:8px}
.mistake-card p{font-size:.85rem;color:var(--text-dim);line-height:1.6}

/* FAQ */
.faq-section{padding:60px 0}
.faq-section h2{font-size:1.4rem;margin-bottom:24px}
.faq-list{display:flex;flex-direction:column;gap:8px}
.faq-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}
.faq-item summary{padding:16px 20px;cursor:pointer;font-weight:600;font-size:.95rem;list-style:none;display:flex;align-items:center;justify-content:space-between}
.faq-item summary::after{content:'+';font-size:1.2rem;color:var(--text-dim)}
.faq-item[open] summary::after{content:'−'}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item p{padding:0 20px 16px;font-size:.9rem;color:var(--text-dim);line-height:1.6}

/* Why section */
.why-section{padding:60px 0;border-top:1px solid var(--border)}
.why-content{max-width:680px}
.why-content h2{font-size:1.4rem;margin-bottom:16px}
.why-content p{font-size:.95rem;color:var(--text-dim);margin-bottom:12px;line-height:1.7}
.why-content p:last-child{font-size:.8rem;margin-top:20px}

/* Footer */
.site-footer{border-top:1px solid var(--border);padding:40px 0 24px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:32px;margin-bottom:32px}
.footer-desc{font-size:.85rem;color:var(--text-dim);margin-top:8px}
.footer-grid h4{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-dim);margin-bottom:12px}
.footer-grid a{display:block;font-size:.9rem;color:var(--text-dim);margin-bottom:6px;text-decoration:none}
.footer-grid a:hover{color:var(--text)}
.footer-bottom{font-size:.8rem;color:var(--text-dim);text-align:center;padding-top:24px;border-top:1px solid var(--border)}

/* Responsive */
@media(max-width:860px){
  .quiz-layout{grid-template-columns:1fr}
  .quiz-sidebar{position:static;order:-1}
  .sidebar-steps{flex-direction:row;flex-wrap:wrap}
  .sidebar-steps li{flex:1;min-width:140px}
  .result-card-body{grid-template-columns:1fr}
}
@media(max-width:600px){
  .hero{padding:48px 0 40px}
  .hero h1{font-size:1.5rem}
  .quiz-card{padding:20px}
  .options-grid{gap:8px}
  .results-actions{width:100%}
  .results-actions .btn{flex:1}
}

/* Print */
@media print{
  .site-header,.site-footer,.quiz-sidebar,.hero,.why-section,.faq-section,.mistakes-section,.reference-section,.results-actions,.quiz-nav,.quiz-header{display:none!important}
  .quiz-section{padding:0}
  .result-card{break-inside:avoid}
  body{background:#fff;color:#000}
  .result-card,.overlap-section{border:1px solid #ccc}
}

/* Focus styles */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}

/* Utility */
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
