/* =====================================================================
   RemploY — design system
   Brand: orange · white · black  |  Pure CSS3, no framework
   ===================================================================== */

:root {
  --brand-50:  #fff4ec;
  --brand-100: #ffe4cf;
  --brand-200: #ffc59c;
  --brand-300: #ffa862;
  --brand-400: #f7941e;
  --brand-500: #f4761f;
  --brand-600: #d35400;
  --brand-700: #a83f00;

  --ink-900: #14161b;
  --ink-800: #1d2027;
  --ink-700: #2b2f38;
  --ink-600: #3f4550;
  --ink-500: #5b6472;
  --ink-400: #8a93a3;
  --ink-300: #b9c0cc;
  --ink-200: #dfe3ea;
  --ink-100: #eef0f5;
  --ink-50:  #f7f8fb;

  --white: #ffffff;
  --success: #157f56;
  --success-bg: #e3f6ed;
  --warning: #a86a00;
  --warning-bg: #fdf0d5;
  --danger: #b4232a;
  --danger-bg: #fdeaea;
  --info: #1f5f9e;
  --info-bg: #e6f0fa;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-xs: 0 1px 2px rgba(16, 20, 28, .06);
  --shadow-sm: 0 2px 8px rgba(16, 20, 28, .07);
  --shadow: 0 10px 30px rgba(16, 20, 28, .09);
  --shadow-lg: 0 24px 60px rgba(16, 20, 28, .16);

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1220px;
  --speed: 180ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--ink-50);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.18; letter-spacing: -.02em; color: var(--ink-900); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 .85rem; }
a { color: var(--brand-600); text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: var(--brand-700); }
hr { border: 0; border-top: 1px solid var(--ink-200); margin: 1.25rem 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--ink-100); padding: .1em .4em; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-200); color: var(--ink-900); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--ink-900); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.25rem); }
.container.narrow { max-width: 860px; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--flush { padding: 2rem 0 4rem; }
.section--tint { background: var(--white); border-block: 1px solid var(--ink-100); }
.section--dark { background: var(--ink-900); color: #dfe3ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .muted { color: var(--ink-400); }
.section__head { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2.25rem; }
.section__head--light .eyebrow { color: var(--brand-400); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); margin-bottom: .6rem; }
.lead { font-size: 1.08rem; color: var(--ink-500); max-width: 62ch; }
.muted { color: var(--ink-500); font-size: .94rem; }
.split { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.narrow { max-width: 860px; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--ink-900); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: .68rem 1.25rem; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease);
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: linear-gradient(135deg, var(--brand-400), var(--brand-600)); box-shadow: 0 6px 18px rgba(244, 118, 31, .28); }
.btn--primary:hover { box-shadow: 0 10px 26px rgba(244, 118, 31, .38); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-800); --btn-bd: var(--ink-200); }
.btn--ghost:hover { --btn-bd: var(--brand-300); --btn-fg: var(--brand-600); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--brand-600); --btn-bd: var(--brand-300); }
.btn--outline:hover { --btn-bg: var(--brand-50); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink-900); }
.btn--outline-light, .btn--outline.btn--light { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.btn--danger { --btn-bg: var(--danger-bg); --btn-fg: var(--danger); --btn-bd: #f3c4c6; }
.btn--sm { padding: .42rem .85rem; font-size: .85rem; }
.btn--lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.link { font-weight: 600; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--ink-200); background: #fff; cursor: pointer; font-size: 1rem; color: var(--ink-700);
  transition: all var(--speed) var(--ease); position: relative;
}
.icon-btn:hover { border-color: var(--brand-300); color: var(--brand-600); }
.save-btn.is-saved { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-600); }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-100); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand__logo { display: inline-flex; align-items: center; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink-700); font-weight: 600; font-size: .95rem; position: relative; padding: .35rem 0; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand-500); transition: right var(--speed) var(--ease); }
.site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { right: 0; }
.site-nav__actions { display: flex; align-items: center; gap: .6rem; }
.burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease); }

/* ---------------------------------------------------------------- Hero */
.hero { background: radial-gradient(1200px 520px at 78% -10%, rgba(247, 148, 30, .22), transparent 60%), linear-gradient(180deg, #fff 0%, var(--ink-50) 100%); padding: clamp(3rem, 7vw, 6rem) 0; }
.hero__inner { display: grid; gap: 3rem; grid-template-columns: 1.15fr .85fr; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero__search { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: .6rem; margin: 1.6rem 0 1rem; background: #fff; padding: .6rem; border-radius: 999px; border: 1px solid var(--ink-200); box-shadow: var(--shadow-sm); }
.hero__field input { border: 0; background: transparent; padding: .7rem 1rem; font: inherit; width: 100%; }
.hero__field input:focus { outline: none; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.chip { display: inline-flex; padding: .35rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--ink-200); font-size: .85rem; color: var(--ink-700); transition: all var(--speed) var(--ease); }
.chip:hover { border-color: var(--brand-300); color: var(--brand-600); }
.chip.is-active { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; padding: 0; border-top: 1px solid var(--ink-200); padding-top: 1.25rem; }
.hero__stats dt { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--ink-900); }
.hero__stats dd { font-size: .82rem; color: var(--ink-500); }
.hero__visual { position: relative; min-height: 340px; }
.hero__orb { position: absolute; inset: auto -30px -20px 20%; height: 260px; background: conic-gradient(from 210deg, var(--brand-300), var(--brand-600), var(--ink-900), var(--brand-400)); filter: blur(4px); opacity: .22; border-radius: 40% 60% 55% 45%; animation: float 14s ease-in-out infinite; }
.hero__panel { position: relative; background: var(--ink-900); color: #dfe3ea; padding: 1.6rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 340px; margin-left: auto; }
.hero__panel-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-400); }
.hero__row { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.hero__row strong { color: #fff; font-family: var(--font-display); }
.hero__bar { height: 6px; background: rgba(255,255,255,.12); border-radius: 999px; margin: 1rem 0 .5rem; overflow: hidden; }
.hero__bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); }
.hero__note { font-size: .82rem; color: var(--ink-400); }
@keyframes float { 0%,100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(-14px,-18px,0) rotate(6deg); } }

/* ---------------------------------------------------------------- Cards & grids */
.card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-xs); }
.card--lift { transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--highlight { border-color: var(--brand-300); box-shadow: 0 0 0 3px var(--brand-100); }
.card--link { text-align: left; }
.card__num { font-family: var(--font-display); font-size: .85rem; font-weight: 800; color: var(--brand-500); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.feature-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); font-size: 1.1rem; margin-bottom: .75rem; }

.job-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.job-grid--list { grid-template-columns: 1fr; }
.job-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 1.35rem; display: flex; flex-direction: column; gap: .85rem; transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.job-card--featured { border-color: var(--brand-300); background: linear-gradient(180deg, var(--brand-50), #fff 40%); }
.job-card__top { display: flex; gap: .85rem; align-items: flex-start; }
.job-card__logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ink-900); color: #fff; font-family: var(--font-display); font-weight: 700; flex: none; }
.job-card__title { font-size: 1.05rem; }
.job-card__title a { color: var(--ink-900); }
.job-card__title a:hover { color: var(--brand-600); }
.job-card__company { font-size: .87rem; color: var(--ink-500); }
.job-card__salary { font-family: var(--font-display); font-weight: 700; color: var(--brand-600); }
.job-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--ink-100); font-size: .84rem; }
.job-card__actions { display: flex; align-items: center; gap: .4rem; }
.meta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .87rem; color: var(--ink-600); }
.meta-list--light { color: rgba(255,255,255,.82); }
.meta-list span { color: var(--brand-500); }
.meta-list--light span { color: var(--brand-400); }

.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cat-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 1.25rem; transition: all var(--speed) var(--ease); }
.cat-card:hover { border-color: var(--brand-300); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat-card__icon { font-size: 1.2rem; color: var(--brand-500); }
.cat-card p { margin: 0; font-size: .85rem; color: var(--ink-500); }

.logo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.logo-card { display: grid; gap: .35rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.15rem; color: #dfe3ea; transition: all var(--speed) var(--ease); }
.logo-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); color: #fff; }
.logo-card__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); color: #fff; font-family: var(--font-display); font-weight: 800; }
.logo-card__name { font-family: var(--font-display); font-weight: 700; color: #fff; }
.logo-card__meta { font-size: .82rem; color: var(--ink-400); }

.quote-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 1.5rem; margin: 0; }
.quote__stars { color: var(--brand-400); letter-spacing: .1em; }
.quote blockquote { font-size: 1rem; color: var(--ink-700); margin: .75rem 0 1rem; }
.quote figcaption strong { display: block; font-family: var(--font-display); }
.quote figcaption span { font-size: .85rem; color: var(--ink-500); }

.steps { display: grid; gap: 1.1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step__num { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--ink-900); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .85rem; }
.steps--horizontal { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tick-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.tick-list li { padding-left: 1.9rem; position: relative; margin-bottom: .6rem; color: var(--ink-700); }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-500); font-weight: 700; }

.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 1.5rem 0; }
.stat { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 1.1rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--ink-900); }
.stat span { font-size: .84rem; color: var(--ink-500); }
.stat--link { text-decoration: none; transition: all var(--speed) var(--ease); }
.stat--link:hover { border-color: var(--brand-300); transform: translateY(-2px); }

/* ---------------------------------------------------------------- Forms */
.form .field { margin-bottom: 1.05rem; }
.field label, .check { display: block; font-size: .87rem; font-weight: 600; color: var(--ink-700); margin-bottom: .35rem; }
.check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 500; margin: .5rem 0; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-500); flex: none; margin-top: .15rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink-900);
  padding: .68rem .85rem; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); background: #fff;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-100); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.field-error { color: var(--danger); font-size: .82rem; margin: .35rem 0 0; }
.hint { font-size: .82rem; color: var(--ink-500); margin-top: .35rem; }
.input-group { display: flex; align-items: stretch; gap: .4rem; }
.input-group input { flex: 1; }
.input-group__btn { border: 1px solid var(--ink-200); background: var(--ink-50); border-radius: var(--radius-sm); padding: 0 .8rem; font-size: .8rem; cursor: pointer; }
.input--code { font-family: ui-monospace, monospace; letter-spacing: .35em; text-align: center; font-size: 1.15rem; }
.form__grid { display: grid; gap: 0 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.form__grid .field--full { grid-column: 1 / -1; }
.form__row { margin: .75rem 0; }
.form__row--split { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form__row--actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.form__foot { margin-top: 1.25rem; font-size: .9rem; color: var(--ink-500); }
.inline-form { display: inline-flex; gap: .35rem; align-items: center; }
.inline-form select { width: auto; padding: .35rem .5rem; font-size: .82rem; }
.meter { height: 6px; border-radius: 999px; background: var(--ink-100); overflow: hidden; margin-top: .5rem; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--danger), var(--brand-400), var(--success)); transition: width var(--speed) var(--ease); }
.meter--inline { display: inline-block; width: 70px; vertical-align: middle; }
.progress { height: 8px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); transition: width .6s var(--ease); }
.progress--lg { height: 10px; margin-bottom: 1.5rem; }

.seg { display: inline-flex; background: var(--ink-100); border-radius: 999px; padding: .25rem; margin: 1rem 0 1.5rem; }
.seg__btn { padding: .45rem 1.1rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-600); }
.seg__btn.is-active { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-xs); }

/* ---------------------------------------------------------------- Auth */
.auth { min-height: 100vh; display: grid; }
.auth__grid { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 100vh; }
.auth__aside { background: radial-gradient(700px 380px at 20% 10%, rgba(247,148,30,.25), transparent 65%), var(--ink-900); color: #dfe3ea; padding: clamp(2rem, 5vw, 4rem); display: grid; align-content: center; }
.auth__aside h2 { color: #fff; margin: 1.5rem 0 .75rem; }
.auth__points { list-style: none; padding: 0; margin-top: 1.5rem; }
.auth__points li { padding-left: 1.8rem; position: relative; margin-bottom: .7rem; font-size: .95rem; }
.auth__points li::before { content: "◆"; position: absolute; left: 0; color: var(--brand-400); }
.auth__panel { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem); }
.auth__card { width: 100%; max-width: 520px; }

/* ---------------------------------------------------------------- App shell */
.app { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.app__sidebar { background: var(--ink-900); color: #c9ced8; padding: 1.25rem .9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.app__brand { padding: .35rem .5rem .75rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.app__nav { flex: 1; }
.app__nav-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); margin: 1.1rem .6rem .4rem; }
.app__nav ul { list-style: none; padding: 0; display: grid; gap: .15rem; }
.app__link { display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; border-radius: 10px; color: #c9ced8; font-size: .92rem; font-weight: 500; }
.app__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.app__link.is-active { background: linear-gradient(90deg, var(--brand-500), var(--brand-600)); color: #fff; font-weight: 600; }
.app__icon { width: 20px; text-align: center; opacity: .9; }
.app__sidebar-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: .75rem; display: grid; gap: .15rem; }
.app__main { display: flex; flex-direction: column; min-width: 0; }
.app__topbar { display: flex; align-items: center; gap: 1rem; padding: .85rem clamp(1rem, 3vw, 2rem); background: #fff; border-bottom: 1px solid var(--ink-100); position: sticky; top: 0; z-index: 40; }
.app__search { flex: 1; max-width: 420px; }
.app__search input { border-radius: 999px; background: var(--ink-50); border-color: var(--ink-100); }
.app__topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.app__toggle { display: none; }
.app__content { padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; align-content: start; }
.dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); color: #fff; font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.menu { position: relative; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); box-shadow: var(--shadow); padding: .85rem; min-width: 230px; display: none; z-index: 50; }
.menu.is-open .menu__panel { display: block; }
.menu__head { display: grid; margin-bottom: .5rem; }
.menu__head span { font-size: .82rem; color: var(--ink-500); }
.menu__panel a { display: block; padding: .4rem .5rem; border-radius: 8px; color: var(--ink-700); font-size: .92rem; }
.menu__panel a:hover { background: var(--ink-50); color: var(--brand-600); }
.menu__panel hr { margin: .5rem 0; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head--flat { padding: 1.75rem 0 0; background: #fff; border-bottom: 1px solid var(--ink-100); }
.page-head__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumbs { font-size: .84rem; color: var(--ink-500); margin-bottom: .75rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--ink-300); }
.breadcrumbs a { color: var(--ink-500); }

.callout { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--ink-900), var(--ink-800)); color: #dfe3ea; border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; }
.callout h2 { color: #fff; font-size: 1.15rem; }
.callout p { margin: 0; font-size: .92rem; color: var(--ink-300); }
.callout .progress { flex: 1 1 220px; background: rgba(255,255,255,.15); }
.callout--brand { background: linear-gradient(120deg, var(--brand-600), var(--brand-400)); }
.callout--brand h2 { color: #fff; }
.callout--brand p { color: rgba(255,255,255,.9); }

/* ---------------------------------------------------------------- Tables & lists */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); font-weight: 700; padding: .7rem .75rem; border-bottom: 1px solid var(--ink-200); white-space: nowrap; }
.table td { padding: .8rem .75rem; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
.table tbody tr:hover { background: var(--ink-50); }
.table__actions { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.table--matrix td, .table--matrix th { text-align: center; }
.table--matrix td:first-child, .table--matrix th:first-child { text-align: left; }
.toggle { width: 34px; height: 24px; border-radius: 999px; border: 1px solid var(--ink-200); background: var(--ink-100); cursor: pointer; font-size: .8rem; }
.toggle.is-on { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.list--divided li { padding-bottom: .7rem; border-bottom: 1px solid var(--ink-100); }
.list--divided li:last-child { border-bottom: 0; padding-bottom: 0; }
.list.is-unread { background: var(--brand-50); }
.job-mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.job-mini-list li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--ink-100); }
.bar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.bar-list li { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: .75rem; font-size: .88rem; }
.bar-list__track { display: block; height: 8px; background: var(--ink-100); border-radius: 999px; overflow: hidden; }
.bar-list__track span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); }
.keyval { display: grid; gap: .55rem; margin: 0; }
.keyval div { display: grid; grid-template-columns: 130px 1fr; gap: .5rem; }
.keyval dt { font-size: .82rem; color: var(--ink-500); font-weight: 600; }
.keyval dd { margin: 0; font-size: .93rem; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { display: inline-block; padding: .2rem .6rem; background: var(--ink-100); border-radius: 999px; font-size: .78rem; color: var(--ink-600); }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand-500); color: #fff; font-size: .72rem; font-weight: 700; margin-left: auto; }
.badge { display: inline-block; padding: .22rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .01em; }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--brand { background: var(--brand-100); color: var(--brand-700); }
.badge--neutral { background: var(--ink-100); color: var(--ink-600); }
.badge--muted { background: var(--ink-100); color: var(--ink-400); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.timeline li { display: flex; gap: .85rem; }
.timeline__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand-500); margin-top: 6px; flex: none; box-shadow: 0 0 0 3px var(--brand-100); }
.pipeline { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pipeline__step { display: flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; background: var(--ink-100); color: var(--ink-500); font-size: .8rem; }
.pipeline__step.is-done { background: var(--success-bg); color: var(--success); }
.pipeline__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.code-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.code-list code { background: var(--ink-900); color: #fff; padding: .45rem .7rem; border-radius: 8px; text-align: center; }
.secret, .otpauth { word-break: break-all; font-size: .85rem; margin-bottom: .5rem; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 1rem; }
.chart__bar { flex: 1; background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); border-radius: 6px 6px 0 0; min-height: 4px; transition: filter var(--speed) var(--ease); position: relative; }
.chart__bar:hover { filter: brightness(1.15); }

/* ---------------------------------------------------------------- Filters, pagination, prose */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: .9rem; margin-bottom: 1.25rem; }
.filter-bar .field { margin: 0; flex: 1 1 180px; }
.layout-sidebar { display: grid; grid-template-columns: 290px 1fr; gap: 1.5rem; align-items: start; }
.filters { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 1.1rem; position: sticky; top: 90px; }
.result-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.layout-main-side { display: grid; grid-template-columns: 1fr 330px; gap: 1.75rem; align-items: start; }
.side-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 1.4rem; }
.prose { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem); }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose ul, .prose ol { color: var(--ink-700); }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.pagination ul { list-style: none; display: flex; gap: .35rem; padding: 0; justify-content: center; margin: 2rem 0 0; }
.page-link { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .5rem; border-radius: 10px; border: 1px solid var(--ink-200); background: #fff; color: var(--ink-700); font-size: .9rem; }
.page-link:hover { border-color: var(--brand-300); color: var(--brand-600); }
.page-link.is-current { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.page-link.is-disabled { opacity: .45; pointer-events: none; }
.empty { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed var(--ink-200); border-radius: var(--radius-lg); }
.accordion { display: grid; gap: .6rem; }
.accordion__group { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); margin: 1.5rem 0 .25rem; }
.accordion__item { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: 1rem 1.25rem; }
.accordion__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-weight: 600; color: var(--ink-900); }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item[open] summary { color: var(--brand-600); }
.accordion__body { padding-top: .75rem; color: var(--ink-600); }

/* ---------------------------------------------------------------- Page heroes, CTA, footer */
.page-hero { background: radial-gradient(900px 400px at 12% -20%, rgba(247,148,30,.22), transparent 60%), var(--ink-900); color: #dfe3ea; padding: clamp(3rem, 6vw, 5rem) 0; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: var(--ink-300); }
.job-hero { background: var(--ink-900); color: #dfe3ea; padding: 2.5rem 0 2rem; }
.job-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.job-hero__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.job-hero__company { font-size: 1.05rem; }
.job-hero__aside { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 1.35rem; min-width: 260px; }
.job-hero__salary { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: #fff; }
.job-hero__secondary { display: flex; gap: .5rem; margin-top: .6rem; }
.company-hero { background: linear-gradient(120deg, var(--ink-900), var(--ink-800)); color: #dfe3ea; padding: 2.5rem 0; }
.company-hero__inner { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.company-hero__mark, .company-card__mark { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.company-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.company-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 1.35rem; }
.company-card h2 { font-size: 1.1rem; margin: .85rem 0 .25rem; }
.company-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--ink-100); }
.model-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.model { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.35rem; }
.model h3 { color: #fff; }
.cta { background: linear-gradient(120deg, var(--brand-600), var(--brand-400)); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); margin: 0; }
.cta__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.site-footer { background: var(--ink-900); color: #aeb5c2; padding: 3.5rem 0 2rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
.site-footer h3 { color: #fff; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.site-footer a { color: #aeb5c2; }
.site-footer a:hover { color: var(--brand-400); }
.site-footer__contact { margin-top: 1rem; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; }
.site-footer__legal ul { display: flex; gap: 1.25rem; }

/* ---------------------------------------------------------------- Toasts, errors */
.toasts { position: fixed; top: 1rem; right: 1rem; z-index: 999; display: grid; gap: .6rem; max-width: 380px; }
.toast { display: flex; gap: .6rem; align-items: flex-start; background: var(--ink-900); color: #fff; padding: .85rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .92rem; animation: slideIn .3s var(--ease); }
.toast__icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; font-size: .8rem; font-weight: 700; }
.toast--success .toast__icon { background: var(--success); }
.toast--error .toast__icon { background: var(--danger); }
.toast--info .toast__icon { background: var(--info); }
.toast--warning .toast__icon { background: var(--warning); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.error-page { display: grid; place-items: center; min-height: 70vh; text-align: center; }
.error-page__code { font-family: var(--font-display); font-size: 4rem; font-weight: 800; color: var(--brand-500); line-height: 1; }
.error-page__actions { display: flex; gap: .75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.skeleton { background: linear-gradient(90deg, var(--ink-100) 25%, var(--ink-50) 37%, var(--ink-100) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: auto; }
  .hero__panel { margin: 0 auto; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .filters { position: static; }
  .layout-main-side { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .auth__grid { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .app { grid-template-columns: 1fr; }
  .app__sidebar { position: fixed; inset: 0 auto 0 0; width: 275px; transform: translateX(-100%); transition: transform .25s var(--ease); z-index: 90; box-shadow: var(--shadow-lg); }
  .app__sidebar.is-open { transform: none; }
  .app__toggle { display: inline-grid; }
  .job-hero__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav { position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--ink-100); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .25s var(--ease); z-index: 80; }
  .site-nav.is-open { transform: none; }
  .site-nav ul { flex-direction: column; gap: .2rem; }
  .site-nav a:not(.btn) { display: block; padding: .7rem 0; font-size: 1.02rem; }
  .site-nav__actions { flex-direction: column; align-items: stretch; }
  .burger { display: flex; }
  .hero__search { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid .stat--link { padding: .85rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .table th, .table td { padding: .6rem .5rem; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .card { padding: 1.15rem; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .keyval div { grid-template-columns: 1fr; }
  .bar-list li { grid-template-columns: 100px 1fr auto; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .app__sidebar, .app__topbar, .toasts, .btn { display: none !important; }
  body { background: #fff; }
}
