/* ==========================================================================
   SkillIA main.css (V3 "Futuristic Simplicity")
   One stylesheet for the whole site: tokens, layout, nav, sections,
   cards, forms, footer, image placeholders, responsive rules.
   ========================================================================== */

:root {
  /* Palette: one uniform blue base (no long gradients: they band on
     large screens), one icy-cyan accent */
  --bg: #142337;
  --bg-raised: #1a2c46;
  --ink: #ecf3ff;
  --muted: rgba(213, 228, 255, 0.72);
  --faint: rgba(213, 228, 255, 0.46);

  --accent: #89d7ff;
  --accent-strong: #b9e7ff;
  --accent-dim: rgba(137, 215, 255, 0.14);
  --accent-glow: rgba(137, 215, 255, 0.35);

  --card: rgba(146, 189, 255, 0.06);
  --card-hover: rgba(146, 189, 255, 0.1);
  --stroke: rgba(158, 197, 255, 0.18);
  --stroke-soft: rgba(158, 197, 255, 0.1);

  --ok: #7ce8b5;
  --err: #ff7a7f;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1140px;
  --nav-h: 68px;

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  /* Single flat color: gradients over a whole page create visible
     banding "squares", so any glow lives inside .hero only. */
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Accessibility */
.skip-link {
  position: absolute; left: -999px; top: 10px; z-index: 999;
  background: var(--bg-raised); border: 1px solid var(--stroke);
  color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

/* Typography */
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.12; font-weight: 650; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 46em; }
.muted { color: var(--muted); }

.kicker {
  display: inline-block;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.accent { color: var(--accent); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 35, 55, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke-soft);
}
.nav-shell {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { height: 42px; width: auto; }

.top-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav-link {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  font-size: 0.95rem; color: var(--muted); transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--card-hover); }
.nav-link.active { color: var(--ink); }
.nav-link.nav-cta {
  color: #06131c; background: var(--accent); font-weight: 600; margin-left: 8px;
}
.nav-link.nav-cta:hover { background: var(--accent-strong); color: #06131c; }
.nav-link.nav-talent {
  color: var(--accent); font-weight: 600;
  background: var(--accent-dim);
  border: 1px solid rgba(137, 215, 255, 0.4);
  box-shadow: 0 0 18px rgba(137, 215, 255, 0.18);
}
.nav-link.nav-talent:hover,
.nav-link.nav-talent.active { background: var(--accent); color: #06131c; }

/* Language toggle (EN / DE) */
.top-nav ul li.lang-switch { margin-left: 6px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--stroke);
}
.lang-opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; padding: 5px 11px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--muted); transition: color 0.15s, background 0.15s;
}
.lang-opt:hover { color: var(--ink); background: var(--card-hover); }
.lang-opt.is-active {
  color: #06131c; background: var(--accent);
  box-shadow: 0 0 14px rgba(137, 215, 255, 0.22);
  cursor: default;
}
.lang-opt.is-active:hover { background: var(--accent); color: #06131c; }

.nav-burger {
  display: none; background: none; border: 1px solid var(--stroke);
  border-radius: var(--radius-sm); width: 42px; height: 42px;
  cursor: pointer; position: relative;
}
.nav-burger span, .nav-burger::before, .nav-burger::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}
.nav-burger::before { top: 14px; }
.nav-burger span { top: 20px; }
.nav-burger::after { top: 26px; }
.nav-burger[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span { opacity: 0; }
.nav-burger[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: 110px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% -20%, rgba(122, 190, 255, 0.14), rgba(122, 190, 255, 0) 70%);
}
.hero > .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero .actions { margin-top: 30px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #06131c;
  box-shadow: 0 0 32px rgba(137, 215, 255, 0.22);
}
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 0 44px var(--accent-glow); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--stroke); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: var(--stroke); background: var(--card-hover); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card-accent { border-color: rgba(137, 215, 255, 0.28); background: var(--accent-dim); }

/* Team */
.team-card { display: flex; flex-direction: column; text-align: left; }
.team-photo {
  width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--stroke-soft);
  margin-bottom: 20px; background: var(--card-hover);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.team-photo img.pos-center { object-position: center center; }
.team-card h3 { margin: 0 0 4px; }
.team-role {
  color: var(--accent); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.01em; margin: 0 0 14px;
}

/* Numbered steps */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(137, 215, 255, 0.4); color: var(--accent);
  font-weight: 650; margin-bottom: 16px; font-size: 0.95rem;
}

/* Two-audience split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Form + sidebar layout (contact, apply) */
.form-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 24px; align-items: start; }
.audience-card { padding: 36px; display: flex; flex-direction: column; }
.audience-card .badge {
  align-self: flex-start; font-size: 0.72rem; font-weight: 650;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
  border: 1px solid rgba(137, 215, 255, 0.4); color: var(--accent);
}
.audience-card ul { margin: 0 0 22px; padding-left: 1.1em; color: var(--muted); }
.audience-card ul li { margin-bottom: 9px; }
.audience-card ul li::marker { color: var(--accent); }
.audience-card .actions { margin-top: auto; }

/* Feature/tech list */
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-dot {
  flex: 0 0 auto; width: 9px; height: 9px; margin-top: 9px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--accent); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* Image slots.
   Each slot tries to load a specific file from /assets/img/site/.
   If the file exists it fills the slot; if not, the slot shows dashed
   guidance (including the exact filename to save the picture as). */
.img-slot {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--stroke-soft);
}
.img-slot.ratio-wide { aspect-ratio: 16 / 9; }
.img-slot.ratio-square { aspect-ratio: 1 / 1; }
.img-slot.ratio-tall { aspect-ratio: 4 / 5; }
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-note { display: none; }
.img-slot.empty-slot {
  border: 1px dashed rgba(137, 215, 255, 0.4);
  background: linear-gradient(135deg, rgba(137, 215, 255, 0.07), rgba(146, 189, 255, 0.02));
  display: flex; align-items: center; justify-content: center;
}
.img-slot.empty-slot .img-note {
  display: block; text-align: center; padding: 24px;
  color: var(--faint); font-size: 0.85rem; line-height: 1.55;
}
.img-note strong { display: block; color: var(--accent); font-size: 0.95rem; margin-bottom: 6px; }
.img-note code {
  color: var(--muted); background: rgba(146, 189, 255, 0.1);
  padding: 1px 6px; border-radius: 6px; font-size: 0.8rem;
}
.img-note small { display: block; margin-top: 8px; color: var(--faint); }

/* Forms */
form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input:not([type]), input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  color: var(--ink); font-family: inherit; font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(137, 215, 255, 0.15);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--bg-raised); color: var(--ink); }
textarea { resize: vertical; }
input[type="file"] { color: var(--muted); font-size: 0.95rem; }
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--stroke); background: transparent; color: var(--ink);
  font-family: inherit; font-weight: 600; cursor: pointer;
}

.checkbox-line { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.checkbox-line input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; }
.checkbox-line a { color: var(--accent); text-decoration: underline; }

.form-note { font-size: 0.85rem; color: var(--faint); }
.form-msg { display: none; margin-top: 14px; font-weight: 600; }
.form-msg.ok { display: block; color: var(--ok); }
.form-msg.err { display: block; color: var(--err); }

fieldset { border: none; margin: 0 0 10px; padding: 0; }
fieldset legend { font-size: 1.05rem; font-weight: 650; margin-bottom: 14px; padding: 0; color: var(--ink); }

/* CTA band */
.cta-band {
  text-align: center; padding: 64px 32px;
  border: 1px solid rgba(137, 215, 255, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(137, 215, 255, 0.12), transparent 70%),
    var(--card);
}
.cta-band .actions { justify-content: center; margin-top: 24px; }

/* Prose pages (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose ul { color: var(--muted); }
.prose p { color: var(--muted); }

/* Social links (footer) */
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--stroke); color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.social-links a:hover { color: #fff; border-color: var(--accent); background: var(--accent-dim); }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

/* Footer */
.site-footer { border-top: 1px solid var(--stroke-soft); padding: 56px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-title { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  border-top: 1px solid var(--stroke-soft); padding-top: 22px;
  color: var(--faint); font-size: 0.85rem;
}
.footer-bottom a { color: var(--muted); }

/* Reveal animation.
   Hidden only once main.js confirms IntersectionObserver support and
   arms it (adds .js-armed to each .reveal element). Browsers where the
   script doesn't run or lacks IntersectionObserver (e.g. older feature-
   phone browsers) never get .js-armed, so this content stays visible by
   default instead of being stuck at opacity:0 forever. */
.reveal.js-armed { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.js-armed.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.js-armed { opacity: 1; transform: none; transition: none; }
}

/* Comparison table (companies page) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--stroke-soft); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--stroke-soft); }
.compare-table thead th { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); background: rgba(146, 189, 255, 0.04); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.compare-table td { color: var(--muted); }
.compare-table td.is-skillia { color: var(--ink); background: var(--accent-dim); }
.compare-table thead th.is-skillia { color: var(--accent); background: var(--accent-dim); }

/* Candidate match card (companies page mockup) */
.match-card { border: 1px solid rgba(137, 215, 255, 0.28); border-radius: var(--radius); background: var(--card); padding: 26px; }
.match-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.match-id { font-weight: 650; letter-spacing: -0.01em; }
.match-id small { display: block; font-weight: 400; color: var(--faint); font-size: 0.82rem; letter-spacing: 0; }
.match-score {
  padding: 6px 14px; border-radius: 999px; font-weight: 650; font-size: 0.9rem;
  color: #06131c; background: var(--accent); box-shadow: 0 0 24px rgba(137, 215, 255, 0.25);
}
.match-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.match-tags li {
  font-size: 0.8rem; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--stroke); color: var(--muted);
}
.match-why { margin: 0; padding: 0; list-style: none; }
.match-why li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); margin-bottom: 10px; }
.match-why li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: 0 0 auto; }
.match-note { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--stroke-soft); font-size: 0.82rem; color: var(--faint); }

/* Talent pool placeholder cards (talent page) */
.match-card.is-placeholder { border-style: dashed; border-color: var(--stroke); }
.match-score.is-pending {
  background: transparent; color: var(--faint);
  border: 1px dashed var(--stroke); box-shadow: none; font-weight: 500;
}

/* Engine mockup (AI page) */
.engine-mock { border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--bg-raised); overflow: hidden; font-size: 0.88rem; }
.engine-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--stroke-soft); color: var(--faint); font-size: 0.78rem; }
.engine-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--stroke); }
.engine-body { padding: 18px 16px; display: grid; gap: 10px; }
.engine-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--stroke-soft); border-radius: var(--radius-sm); background: var(--card); }
.engine-row.is-top { border-color: rgba(124, 232, 181, 0.45); }
.engine-role { font-weight: 600; color: var(--ink); }
.engine-role small { display: block; font-weight: 400; color: var(--faint); }
.engine-meter { height: 8px; border-radius: 999px; background: rgba(146, 189, 255, 0.12); overflow: hidden; }
.engine-meter b { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.engine-pct { font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.engine-row.is-top .engine-pct { color: var(--ok); }
.engine-row.is-top .engine-meter b { background: linear-gradient(90deg, #58c99a, var(--ok)); }

/* Vacancy cost calculator */
.calc-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: start; }
.calc-field { margin-bottom: 24px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-field output { color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; margin: 4px 0 0; padding: 0; background: transparent; border: none; }
.calc-results { display: grid; gap: 16px; }
.calc-result {
  border: 1px solid rgba(137, 215, 255, 0.28); background: var(--accent-dim);
  border-radius: var(--radius); padding: 20px 24px;
}
.calc-result b { display: block; font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.calc-result span { color: var(--muted); font-size: 0.92rem; }
.calc-result.is-good { border-color: rgba(124, 232, 181, 0.35); background: rgba(124, 232, 181, 0.08); }
.calc-result.is-good b { color: var(--ok); }

/* Calculator: advanced inputs, itemised breakdown, fee comparison */
.calc-advanced { margin-top: 24px; }
.calc-advanced > summary { font-size: 0.95rem; padding: 14px 18px; }
.calc-advanced .faq-answer { padding: 4px 18px 20px; }
.calc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-pair .calc-field { margin-bottom: 18px; }
.calc-field .field-hint { font-size: 0.8rem; color: var(--faint); margin: 6px 0 0; }
.calc-hint {
  display: none; margin-top: 16px; padding: 12px 16px;
  border: 1px solid rgba(255, 122, 127, 0.3); border-radius: var(--radius-sm);
  background: rgba(255, 122, 127, 0.08); color: var(--muted); font-size: 0.88rem;
}

.calc-breakdown { border: 1px solid var(--stroke-soft); border-radius: var(--radius); background: var(--card); padding: 8px 22px; }
.calc-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--stroke-soft); font-size: 0.94rem;
}
.calc-line:last-child { border-bottom: none; }
.calc-line span { color: var(--muted); }
.calc-line span small { display: block; color: var(--faint); font-size: 0.8rem; margin-top: 3px; }
.calc-line b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.calc-line.is-credit b { color: var(--ok); }
.calc-line.is-total { border-top: 1px solid var(--stroke); padding-top: 16px; }
.calc-line.is-total span { color: var(--ink); font-weight: 650; }
.calc-line.is-total b { color: var(--accent); font-size: 1.25rem; }

.fee-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--stroke-soft); border: 1px solid var(--stroke);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
}
.fee-cell { background: var(--bg-raised); padding: 22px 24px; }
.fee-cell span { display: block; color: var(--faint); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.fee-cell b { display: block; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--ink); }
.fee-cell small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.fee-cell.is-skillia { background: var(--accent-dim); }
.fee-cell.is-skillia b { color: var(--accent); }
.fee-cell.is-saving b { color: var(--ok); }

.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.source-list li { color: var(--muted); font-size: 0.9rem; padding-left: 18px; position: relative; }
.source-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.source-list a { color: var(--accent); }
.source-list strong { color: var(--ink); font-weight: 650; }

/* FAQ accordion */
.faq-group { max-width: 820px; }
.faq-item { border: 1px solid var(--stroke-soft); border-radius: var(--radius); background: var(--card); margin-bottom: 12px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; line-height: 1; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--stroke); background: var(--card-hover); }
.faq-answer { padding: 0 24px 20px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* The collapsible "hamburger" nav depends on JS (to toggle .open) and on
   position:fixed/opacity/pointer-events to hide the menu off-screen.
   Gate it behind @supports (position: sticky) — the same feature
   .site-header already requires — so browsers that can't do either
   (older feature-phone browsers, which also won't run the toggle JS
   reliably) fall through to the plain, always-in-flow nav list below
   instead of ending up with a menu that's hidden and unreachable.
   Browsers that don't parse @supports at all simply skip this whole
   block per normal CSS error recovery, landing on the same safe
   fallback. */
@supports (position: sticky) {
  @media (max-width: 1100px) {
    .nav-burger { display: block; }
    .top-nav {
      position: fixed; inset: var(--nav-h) 0 auto 0;
      background: var(--bg-raised);
      box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
      border-bottom: 1px solid var(--stroke);
      transform: translateY(-8px); opacity: 0; pointer-events: none;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .top-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .top-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; }
    .nav-link { display: block; padding: 13px 12px; border-radius: var(--radius-sm); font-size: 1.05rem; }
    .nav-link.nav-cta { margin: 10px 0 0; text-align: center; }
    .nav-link.nav-talent { text-align: center; }
    .top-nav ul li.lang-switch { margin: 14px 0 0; display: flex; justify-content: center; }
    .lang-opt { min-width: 64px; padding: 10px 20px; font-size: 1rem; }
  }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .hero { padding: 70px 0 56px; }
  .grid-2, .grid-3, .grid-4, .split, .form-row, .form-layout, .calc-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .audience-card { padding: 28px; }
  .cta-band { padding: 44px 22px; }

  .compare-table { font-size: 0.88rem; min-width: 560px; }
  .compare-table th, .compare-table td { padding: 12px 14px; }
  .match-card { padding: 20px; }
  .faq-item summary { padding: 16px 18px; font-size: 0.98rem; }
  .faq-answer { padding: 0 18px 16px; }
  .engine-body { padding: 14px 12px; }
  .engine-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .engine-role { grid-column: 1; grid-row: 1; }
  .engine-pct { grid-column: 2; grid-row: 1; }
  .engine-meter { grid-column: 1 / -1; grid-row: 2; }

  .fee-band { grid-template-columns: 1fr; }
  .calc-pair { grid-template-columns: 1fr; gap: 0; }
  .calc-breakdown { padding: 6px 16px; }
  .calc-line { font-size: 0.9rem; }
}

@media (max-width: 560px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .hero .actions, .cta-band .actions { margin-left: auto; margin-right: auto; max-width: 420px; }
  .match-head { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   DEMO / SCREENCAST COMPONENTS  (added for the homepage + /ai-matching demos)
   --------------------------------------------------------------------------
   Self-contained, CSS-only animated product demos that replace the stock-photo
   image slots. No JS dependency (works under the site's DOM-Level-2 constraint)
   and no video file to host. Every widget autoplays on a fixed loop and each
   one drops to its finished state under prefers-reduced-motion (see the block
   at the very end). Uses only the tokens defined in :root above.

   Widgets:
     .demo-app      — animated app "screencast": profile builds, jobs rank
     .demo-journey  — the 4 "How it works" step cards, lit up in sequence
     .demo-pipeline — the two-stage matching engine, top-to-bottom flow
     .engine-mock.is-live — meters that fill in on the existing AI mockup
   ========================================================================== */

.demo-app,
.demo-pipeline {
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

/* Window chrome shared by the app + pipeline demos */
.demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--stroke-soft);
  color: var(--faint);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--stroke); flex: none; }
.demo-bar i:nth-child(1) { background: rgba(255, 122, 127, 0.5); }
.demo-bar i:nth-child(2) { background: rgba(255, 205, 120, 0.5); }
.demo-bar i:nth-child(3) { background: rgba(124, 232, 181, 0.5); }
.demo-bar span { margin-left: 6px; }

/* ---------- A. app screencast --------------------------------------------- */
.demo-app { aspect-ratio: 4 / 5; display: flex; flex-direction: column; }
.demo-app-body {
  flex: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

/* candidate profile header */
.demo-profile { display: flex; align-items: center; gap: 12px; }
.demo-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--accent-strong), var(--accent) 55%, rgba(137, 215, 255, 0.25));
  opacity: 0; transform: scale(0.6);
  animation: demoAvatar 13s infinite ease-out;
}
.demo-lines { display: grid; gap: 7px; flex: 1; }
.demo-line { height: 9px; border-radius: 999px; background: rgba(146, 189, 255, 0.16); transform-origin: left; transform: scaleX(0); animation: demoLine 13s infinite ease-out; }
.demo-line.w70 { width: 70%; }
.demo-line.w45 { width: 45%; animation-delay: 0.25s; }

/* verified-skill chips, pop in one by one */
.demo-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.demo-chip {
  font-size: 0.74rem; font-weight: 600; color: var(--accent-strong);
  background: var(--accent-dim); border: 1px solid rgba(137, 215, 255, 0.28);
  padding: 4px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(6px) scale(0.9);
  animation: demoChip 13s infinite ease-out;
}
.demo-chip.d1 { animation-delay: 1.6s; }
.demo-chip.d2 { animation-delay: 1.85s; }
.demo-chip.d3 { animation-delay: 2.1s; }
.demo-chip.d4 { animation-delay: 2.35s; }
.demo-chip.d5 { animation-delay: 2.6s; }

/* "matching…" status line */
.demo-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.82rem; opacity: 0; animation: demoStatus 13s infinite; }
.demo-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--accent-dim); border-top-color: var(--accent); flex: none; animation: demoSpin 0.9s linear infinite; }

/* ranked job results */
.demo-results { display: grid; gap: 9px; margin-top: auto; }
.demo-app .demo-results { margin-top: 12px; }   /* top-align under the profile, no mid gap */
.demo-job {
  display: grid; grid-template-columns: minmax(0, 1fr) 82px auto; gap: 10px; align-items: center;
  padding: 9px 11px; border: 1px solid var(--stroke-soft); border-radius: var(--radius-sm); background: var(--card);
  opacity: 0; transform: translateY(10px); animation: demoJob 13s infinite ease-out;
}
.demo-job-t { font-size: 0.82rem; font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-job-t em { display: block; font-style: normal; font-weight: 400; font-size: 0.72rem; color: var(--faint); }
.demo-job .demo-meter { height: 7px; border-radius: 999px; background: rgba(146, 189, 255, 0.14); overflow: hidden; }
.demo-job .demo-meter b { display: block; height: 100%; width: var(--w, 80%); border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); transform: scaleX(0); transform-origin: left; animation: demoFill 13s infinite ease-out; }
.demo-score { font-weight: 700; font-size: 0.82rem; color: var(--accent); font-variant-numeric: tabular-nums; opacity: 0; animation: demoScore 13s infinite; }
.demo-job.j1 { animation-delay: 4.6s; }
.demo-job.j1 .demo-meter b { --w: 94%; animation-delay: 4.9s; }
.demo-job.j1 .demo-score { animation-delay: 5.7s; }
.demo-job.j1 { border-color: rgba(124, 232, 181, 0.4); }
.demo-job.j1 .demo-meter b { background: linear-gradient(90deg, #58c99a, var(--ok)); }
.demo-job.j1 .demo-score { color: var(--ok); }
.demo-job.j2 { animation-delay: 4.9s; }
.demo-job.j2 .demo-meter b { --w: 81%; animation-delay: 5.2s; }
.demo-job.j2 .demo-score { animation-delay: 6s; }
.demo-job.j3 { animation-delay: 5.2s; }
.demo-job.j3 .demo-meter b { --w: 76%; animation-delay: 5.5s; }
.demo-job.j3 .demo-score { animation-delay: 6.3s; }

@keyframes demoAvatar { 0% { opacity: 0; transform: scale(0.6); } 6%, 92% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; } }
@keyframes demoLine { 0% { transform: scaleX(0); } 7%, 92% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes demoChip { 0% { opacity: 0; transform: translateY(6px) scale(0.9); } 5%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes demoStatus { 0%, 26% { opacity: 0; } 30%, 40% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes demoSpin { to { transform: rotate(360deg); } }
@keyframes demoJob { 0% { opacity: 0; transform: translateY(10px); } 6%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes demoFill { 0% { transform: scaleX(0); } 10%, 92% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes demoScore { 0%, 2% { opacity: 0; } 8%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* ---------- B. candidate journey (the "How it works" strip) --------------- */
/* Layered on top of the existing .grid.grid-4 step cards: a progress line
   sweeps left→right and each step lights up as the sweep reaches it. */
.demo-journey { position: relative; }
.demo-journey .card { transition: border-color 0.3s, background 0.3s; }
.demo-journey .step-num { position: relative; transition: color 0.3s, background 0.3s, box-shadow 0.3s; }
.demo-journey .card:nth-child(1) .step-num { animation: demoStep 11s infinite; animation-delay: 0.4s; }
.demo-journey .card:nth-child(2) .step-num { animation: demoStep 11s infinite; animation-delay: 2.6s; }
.demo-journey .card:nth-child(3) .step-num { animation: demoStep 11s infinite; animation-delay: 4.8s; }
.demo-journey .card:nth-child(4) .step-num { animation: demoStep 11s infinite; animation-delay: 7s; }
.demo-journey-track {
  position: absolute; left: 6%; right: 6%; top: 34px; height: 2px;
  background: var(--stroke-soft); border-radius: 999px; z-index: 0; overflow: hidden;
}
.demo-journey-track::after {
  content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  animation: demoTrack 11s infinite ease-in-out;
}
@keyframes demoStep {
  0%, 100% { color: var(--accent); background: var(--accent-dim); box-shadow: none; }
  22%, 34% { color: #06131c; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-dim), 0 0 26px var(--accent-glow); }
}
@keyframes demoTrack { 0% { transform: scaleX(0); } 78%, 100% { transform: scaleX(1); } }

/* ---------- C. two-stage matching pipeline -------------------------------- */
.demo-pipeline { padding-bottom: 6px; }
.demo-pipeline-body { padding: 18px 16px; display: grid; gap: 10px; }
.demo-stage {
  border: 1px solid var(--stroke-soft); border-radius: var(--radius-sm); background: var(--card);
  padding: 12px 14px; opacity: 0; transform: translateY(12px); animation: demoJob 12s infinite ease-out;
}
.demo-stage .demo-stage-h { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.demo-stage .demo-stage-h .demo-badge { font-size: 0.64rem; padding: 1px 7px; border-radius: 999px; background: var(--accent-dim); border: 1px solid rgba(137, 215, 255, 0.3); }
.demo-stage p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.demo-stage b { color: var(--ink); }
.demo-arrow { justify-self: center; width: 2px; height: 16px; background: linear-gradient(var(--accent), transparent); opacity: 0; animation: demoArrow 12s infinite; }
.demo-count { font-variant-numeric: tabular-nums; color: var(--accent-strong); font-weight: 700; }
.demo-pipeline .demo-results { padding: 0 16px 14px; margin-top: 0; }
.demo-stage.s1 { animation-delay: 0.3s; } .demo-arrow.a1 { animation-delay: 1.2s; }
.demo-stage.s2 { animation-delay: 1.6s; } .demo-arrow.a2 { animation-delay: 2.5s; }
.demo-stage.s3 { animation-delay: 2.9s; } .demo-arrow.a3 { animation-delay: 3.8s; }
.demo-pipeline .demo-job.j1 { animation-delay: 4.4s; } .demo-pipeline .demo-job.j1 .demo-meter b { animation-delay: 4.7s; } .demo-pipeline .demo-job.j1 .demo-score { animation-delay: 5.5s; }
.demo-pipeline .demo-job.j2 { animation-delay: 4.7s; } .demo-pipeline .demo-job.j2 .demo-meter b { animation-delay: 5s; } .demo-pipeline .demo-job.j2 .demo-score { animation-delay: 5.8s; }
.demo-pipeline .demo-job.j3 { animation-delay: 5s; } .demo-pipeline .demo-job.j3 .demo-meter b { animation-delay: 5.3s; } .demo-pipeline .demo-job.j3 .demo-score { animation-delay: 6.1s; }
.demo-pipeline .demo-job { animation-name: demoJobP; }
.demo-pipeline .demo-meter b { animation-name: demoFillP; }
.demo-pipeline .demo-score { animation-name: demoScoreP; }
@keyframes demoJobP { 0% { opacity: 0; transform: translateY(10px); } 6%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes demoFillP { 0% { transform: scaleX(0); } 10%, 94% { transform: scaleX(1); } 99%, 100% { transform: scaleX(0); } }
@keyframes demoScoreP { 0%, 2% { opacity: 0; } 8%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes demoArrow { 0%, 6% { opacity: 0; } 12%, 92% { opacity: 0.7; } 98%, 100% { opacity: 0; } }

/* ---------- D. make the existing AI engine-mock meters fill in ------------- */
.engine-mock.is-live .engine-meter b { transform: scaleX(0); transform-origin: left; animation: demoEngineFill 9s infinite ease-out; }
.engine-mock.is-live .engine-row:nth-child(1) .engine-meter b { animation-delay: 0.2s; }
.engine-mock.is-live .engine-row:nth-child(2) .engine-meter b { animation-delay: 0.45s; }
.engine-mock.is-live .engine-row:nth-child(3) .engine-meter b { animation-delay: 0.7s; }
.engine-mock.is-live .engine-row:nth-child(4) .engine-meter b { animation-delay: 0.95s; }
@keyframes demoEngineFill { 0% { transform: scaleX(0); } 18%, 90% { transform: scaleX(1); } 99%, 100% { transform: scaleX(0); } }

/* A short caption that sits under a demo widget */
.demo-caption { margin-top: 10px; font-size: 0.78rem; color: var(--faint); text-align: center; }

/* Respect reduced-motion: freeze every demo on its finished frame ---------- */
@media (prefers-reduced-motion: reduce) {
  .demo-app *, .demo-pipeline *, .demo-journey .step-num,
  .demo-journey-track::after, .engine-mock.is-live .engine-meter b {
    animation: none !important;
  }
  .demo-avatar { opacity: 1; transform: none; }
  .demo-line { transform: scaleX(1); }
  .demo-chip { opacity: 1; transform: none; }
  .demo-status { display: none; }
  .demo-job, .demo-stage { opacity: 1; transform: none; }
  .demo-job .demo-meter b, .demo-pipeline .demo-meter b, .engine-mock.is-live .engine-meter b { transform: scaleX(1); }
  .demo-score { opacity: 1; }
  .demo-arrow { opacity: 0.7; }
  .demo-journey-track::after { transform: scaleX(1); }
}
