/* ── AICO Design System · shadcn-inspired Dark ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:         hsl(222 47% 4%);
  --surface:    hsl(222 35% 7%);
  --card:       hsl(222 30% 9%);
  --card2:      hsl(222 25% 11%);
  --border:     hsl(222 20% 14%);
  --border2:    hsl(222 18% 18%);
  --muted:      hsl(222 12% 38%);
  --text:       hsl(222 8% 88%);
  --text2:      hsl(222 8% 65%);
  --gold:       hsl(43 62% 52%);
  --gold-dim:   hsl(43 55% 38%);
  --gold-bg:    hsl(43 55% 52% / 0.10);
  --gold-ring:  hsl(43 55% 52% / 0.30);
  --green:      hsl(142 60% 50%);
  --green-bg:   hsl(142 60% 50% / 0.08);
  --red:        hsl(0 72% 62%);
  --red-bg:     hsl(0 72% 62% / 0.08);
  --blue:       hsl(213 80% 65%);
  --blue-bg:    hsl(213 80% 65% / 0.10);
  --radius:     10px;
  --radius-lg:  14px;
  --radius-xl:  18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse 70% 35% at 50% 0%, hsl(43 55% 52% / 0.05), transparent 65%);
}

/* ── Typography ── */
.text-muted   { color: var(--muted); }
.text-muted2  { color: var(--text2); }
.text-gold    { color: var(--gold); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-blue    { color: var(--blue); }

.gold-gradient {
  background: linear-gradient(120deg, hsl(43 80% 75%), var(--gold) 45%, var(--gold-dim) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sec-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card-gold {
  background: var(--card);
  border: 1px solid var(--gold-ring);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--gold-bg) inset, 0 0 40px hsl(43 55% 52% / 0.04);
}
.card-flat {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; line-height: 1;
  border: none; cursor: pointer; transition: all .18s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: hsl(222 47% 4%);
}
.btn-primary:hover { background: hsl(43 62% 60%); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border2); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border: 1px solid transparent;
}
.badge-gold   { background: var(--gold-bg);   color: var(--gold);  border-color: var(--gold-ring); }
.badge-green  { background: var(--green-bg);  color: var(--green); border-color: hsl(142 60% 50% / 0.25); }
.badge-red    { background: var(--red-bg);    color: var(--red);   border-color: hsl(0 72% 62% / 0.25); }
.badge-blue   { background: var(--blue-bg);   color: var(--blue);  border-color: hsl(213 80% 65% / 0.25); }
.badge-neutral { background: var(--card2); color: var(--text2); border-color: var(--border2); }

/* ── Separator ── */
.sep { border: none; border-top: 1px solid var(--border); }

/* ── Input / Drop zone ── */
.drop-zone {
  display: block; width: 100%;
  border: 2px dashed var(--border2);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--gold);
  background: var(--gold-bg);
}

/* ── Chip / skill tag ── */
.chip {
  display: inline-block;
  padding: 4px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 500;
  background: var(--card2); border: 1px solid var(--border2);
  color: var(--text2);
}

/* ── Timeline ── */
.t-dot  { width:9px; height:9px; border-radius:50%; background: var(--gold); flex-shrink:0; margin-top:5px; }
.t-line { flex:1; width:1px; background: var(--border); margin-left:4px; margin-top:3px; }

/* ── Progress bar ── */
.progress-track { height: 4px; border-radius: 4px; background: var(--border2); overflow: hidden; }
.progress-fill  {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width 1s ease;
}

/* ── Metric bar (salary) ── */
.metric-track { height: 7px; border-radius: 4px; background: var(--border2); overflow: hidden; }
.metric-fill-aus { height:100%; border-radius:4px; background: linear-gradient(90deg, hsl(0 65% 30%), var(--red)); }
.metric-fill-idn { height:100%; border-radius:4px; background: linear-gradient(90deg, hsl(142 55% 28%), var(--green)); }

/* ── Score Ring ── */
.score-ring { position:relative; display:inline-flex; align-items:center; justify-content:center; }
.score-ring svg { transform: rotate(-90deg); }
.ring-val { position:absolute; font-size:20px; font-weight:900; color:var(--gold); }
.ring-lbl { position:absolute; bottom:-22px; font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); width:80px; text-align:center; }

/* ── Spinner ── */
.spin {
  width:16px; height:16px; flex-shrink:0;
  border: 2px solid var(--gold-ring);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spinning .8s linear infinite;
}

/* ── Terminal ── */
#terminalOutput {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; line-height: 1.8; color: hsl(142 60% 48%);
  height: 190px; overflow-y: auto; padding-right: 4px;
}
#terminalOutput::-webkit-scrollbar { width: 3px; }
#terminalOutput::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

/* ── Skeleton loader ── */
.skel {
  background: linear-gradient(90deg, var(--surface) 25%, var(--card2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px; display: block;
}

/* ── Animations ── */
@keyframes spinning { to { transform: rotate(360deg); } }
@keyframes shimmer  { to { background-position: -200% 0; } }
@keyframes fadeUp   { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes countUp  { from { opacity:0; transform:scale(.8); } to { opacity:1; transform:scale(1); } }

.fade-up { animation: fadeUp .5s ease both; }
.count-anim { animation: countUp .45s ease both; }

/* ── Navbar ── */
.navbar {
  position: sticky; top:0; z-index:50;
  background: hsl(222 47% 4% / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
}

/* ── Divider line in sections ── */
.section-line {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.section-line::before, .section-line::after {
  content: ''; flex:1; height:1px; background: var(--border);
}

/* ── The Slap grid ── */
.slap-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .slap-grid { grid-template-columns: 1fr; } }

/* ── Num badge icon ── */
.step-num {
  width:22px; height:22px; border-radius:6px; flex-shrink:0;
  background: var(--gold-bg); border:1px solid var(--gold-ring);
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:900; color:var(--gold);
}

/* ── Fact bullet ── */
.fact { display:flex; gap:10px; align-items:flex-start; }
.fact-icon { font-size:13px; flex-shrink:0; margin-top:1px; }
.fact p { font-size:12px; color: var(--text2); line-height:1.6; }
