@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── RESET & TOKENS ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #06080d;
  --ink-2:  #0c1018;
  --ink-3:  #121820;
  --ink-4:  #1a2030;
  --border: rgba(255,255,255,.06);
  --border-h: rgba(255,255,255,.12);
  --mid:    #4a5568;
  --muted:  rgba(255,255,255,.35);
  --text:   rgba(255,255,255,.85);
  --accent: #0ea5e9;
  --accent-2: #38bdf8;
  --accent-dim: rgba(14,165,233,.12);
  --accent-glow: rgba(14,165,233,.25);
  --accent-deep: #0369a1;
  --green: #10b981;
  --orange: #f59e0b;
  --red:   #ef4444;
  --white: #ffffff;
  --r:    14px;
  --r-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: .9rem;
}

/* ── SCROLL ANIMATIONS ──────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1); }
.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.04s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.10s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.16s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.22s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:.28s; }
.stagger.visible > *:nth-child(n+6) { opacity:1; transform:none; transition-delay:.34s; }

/* ── HEADER ─────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px;
  background: rgba(6,8,13,.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 1.1rem; font-weight: 800; letter-spacing: -.5px;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: .45rem;
}
.logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: .83rem; font-weight: 500; padding: .35rem .7rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
  letter-spacing: .01em;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--accent-2); }

.nav-auth { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
.btn-nav-login {
  color: var(--muted); font-size: .83rem; font-weight: 500;
  padding: .35rem .8rem; border-radius: 6px; cursor: pointer;
  background: none; border: 1px solid var(--border);
  font-family: inherit;
  transition: color .2s, border-color .2s;
}
.btn-nav-login:hover { color: var(--white); border-color: var(--border-h); }
.btn-nav-register {
  color: var(--ink); font-size: .83rem; font-weight: 700;
  padding: .35rem .85rem; border-radius: 6px; cursor: pointer;
  background: var(--accent); border: none; font-family: inherit;
  transition: opacity .15s;
}
.btn-nav-register:hover { opacity: .88; }

.nav-user { display: none; align-items: center; gap: .5rem; }
.nav-user-link {
  display: flex; align-items: center; gap: .4rem;
  text-decoration: none; border-radius: 8px; padding: .2rem .35rem;
  transition: background .15s;
}
.nav-user-link:hover { background: var(--ink-3); }
.nav-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(14,165,233,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: var(--accent-2);
}
.nav-user-name { font-size: .83rem; font-weight: 500; color: var(--muted); }

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 34px; height: 34px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; height: 1.5px; border-radius: 2px; background: var(--muted); transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 60px; left: 0; right: 0; z-index: 199;
  background: rgba(6,8,13,.97);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem; gap: .15rem;
  backdrop-filter: blur(24px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted); text-decoration: none;
  font-size: .9rem; font-weight: 500; padding: .6rem .75rem;
  border-radius: 6px; transition: color .2s;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--white); }
.mobile-menu-auth { display: flex; gap: .5rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.mobile-menu-auth button { flex: 1; padding: .65rem; border-radius: 6px; font-weight: 600; font-family: inherit; font-size: .88rem; cursor: pointer; }

.breadcrumb { font-size: .78rem; color: var(--mid); display: flex; align-items: center; gap: .4rem; }
.breadcrumb a { color: var(--mid); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 440px; display: flex; align-items: flex-end;
  padding: 9rem 1.5rem 3.5rem; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform;
  background:
    radial-gradient(ellipse 80% 65% at 55% 30%, rgba(14,165,233,.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 10% 85%, rgba(14,165,233,.06) 0%, transparent 60%),
    var(--ink-2);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift 24s linear infinite;
}
@keyframes grid-drift { from { background-position: 0 0; } to { background-position: 48px 48px; } }

.hero-inner { max-width: 860px; margin: 0 auto; width: 100%; position: relative; z-index: 1; will-change: transform, opacity; }

.hero-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent-2); border-radius: 999px;
  padding: .25rem .75rem; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 1.1rem;
  background: var(--accent-dim); border: 1px solid rgba(14,165,233,.2);
}
.hero-tag .svg-icon { width: 11px; height: 11px; }

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900; letter-spacing: -2.5px; line-height: 1.08;
  margin-bottom: .85rem;
  background: linear-gradient(140deg, #ffffff 45%, rgba(56,189,248,.75) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; max-width: 500px; line-height: 1.75; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .75rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600;
}
.badge-green  { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2); color: rgba(110,231,183,.8); }
.badge-orange { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2); color: rgba(252,211,77,.8); }
.badge-blue   { background: var(--accent-dim);    border: 1px solid rgba(14,165,233,.2); color: var(--accent-2); }

/* ── MAIN ────────────────────────────────────── */
main { max-width: 840px; margin: 2.5rem auto 4rem; padding: 0 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

/* ── CARDS ───────────────────────────────────── */
.card {
  background: var(--ink-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  transition: border-color .3s;
}
.card:hover { border-color: var(--border-h); }
.card-title {
  font-size: .88rem; font-weight: 700; color: var(--white);
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: .55rem;
  letter-spacing: -.01em;
}

/* SVG icons */
.svg-icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }
.box-label .svg-icon { width: 12px; height: 12px; }

/* ── KPI ROW ─────────────────────────────────── */
.kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
.kpi {
  background: var(--ink-3); border-radius: var(--r-sm);
  padding: 1rem; text-align: center; border: 1px solid var(--border);
}
.kpi-label { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; color: var(--mid); margin-bottom: .35rem; }
.kpi-value { font-size: 1rem; font-weight: 800; }
.kpi-value.green  { color: var(--green); }
.kpi-value.orange { color: var(--orange); }
.kpi-value.red    { color: var(--red); }
.kpi-value.blue   { color: var(--white); }

/* ── SALARY BARS ─────────────────────────────── */
.salary-stack { display: flex; flex-direction: column; gap: 1rem; }
.sal-row { display: grid; grid-template-columns: 70px 1fr 160px; align-items: center; gap: 1rem; }
.sal-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--mid); }
.bar-track { height: 5px; background: var(--ink-4); border-radius: 999px; overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 1.3s cubic-bezier(.22,1,.36,1);
}
.sal-amount { font-size: .83rem; font-weight: 600; text-align: right; color: var(--text); }
.sal-note { font-size: .74rem; color: var(--mid); margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--border); line-height: 1.65; }

/* ── SKILLS ──────────────────────────────────── */
.skills-wrap { display: flex; flex-wrap: wrap; gap: .4rem; }
.skill-tag {
  background: var(--ink-3); border: 1px solid var(--border);
  color: rgba(255,255,255,.6); padding: .28rem .75rem; border-radius: 999px;
  font-size: .76rem; font-weight: 500;
  transition: border-color .2s, color .2s;
}
.skill-tag:hover { border-color: var(--border-h); color: var(--white); }

/* ── HIGHLIGHT BOXES ─────────────────────────── */
.box { border-radius: var(--r); padding: 1.25rem 1.5rem; }
.box-label {
  font-size: .64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.1px; margin-bottom: .55rem;
  display: flex; align-items: center; gap: .4rem; color: var(--mid);
}
.box-text { font-size: .88rem; color: var(--muted); line-height: 1.75; }
.box-outlook { background: rgba(14,165,233,.05); border: 1px solid rgba(14,165,233,.12); }
.box-advice  { background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.box-outlook .box-label { color: rgba(56,189,248,.6); }
.box-advice  .box-label { color: var(--mid); }

/* ── CTA ─────────────────────────────────────── */
.cta-card {
  background: var(--ink-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2.25rem; text-align: center;
}
.cta-title { font-size: 1.2rem; font-weight: 800; margin-bottom: .45rem; letter-spacing: -.5px; }
.cta-sub   { color: var(--muted); margin-bottom: 1.25rem; font-size: .86rem; }
.btn-cta {
  display: inline-block;
  background: var(--accent); color: var(--ink);
  padding: .75rem 2rem; border-radius: 8px;
  text-decoration: none; font-weight: 800; font-size: .88rem;
  letter-spacing: -.01em;
  transition: opacity .15s, transform .15s;
}
.btn-cta:hover { opacity: .88; transform: translateY(-1px); }

.btn-save-offer {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 1px solid var(--border);
  color: var(--muted); padding: .55rem 1.1rem; border-radius: 8px;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  font-family: inherit; margin-left: .6rem;
  transition: border-color .2s, color .2s;
}
.btn-save-offer:hover { border-color: var(--border-h); color: var(--white); }
.btn-save-offer.saved { border-color: #f59e0b; color: #f59e0b; }
.btn-save-offer { transition: border-color .2s, color .2s, transform .15s; }

/* ── AD SLOT ─────────────────────────────────── */
.ad-slot {
  background: var(--ink-3); border: 1px dashed rgba(255,255,255,.06);
  border-radius: var(--r-sm); padding: 1rem; text-align: center;
  color: var(--mid); font-size: .72rem;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem; text-align: center;
  color: var(--mid); font-size: .76rem; margin-top: 2rem;
}
footer a { color: var(--mid); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--white); }

/* ══════════════════════════════════════════════
   AUTH MODAL
══════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--ink-2); border: 1px solid var(--border-h);
  border-radius: 18px; padding: 2.5rem; width: 100%; max-width: 380px;
  position: relative; box-shadow: 0 40px 80px rgba(0,0,0,.6);
  animation: modal-in .28s cubic-bezier(.22,1,.36,1);
}
@keyframes modal-in { from { opacity:0; transform:scale(.94) translateY(16px); } to { opacity:1; transform:none; } }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--mid); cursor: pointer; font-size: 1.1rem; padding: .25rem; transition: color .2s; }
.modal-close:hover { color: var(--white); }
.modal h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: .3rem; }
.modal-sub { font-size: .82rem; color: var(--mid); margin-bottom: 1.6rem; }
.modal-tabs { display: flex; gap: 0; margin-bottom: 1.6rem; background: var(--ink-3); border-radius: 8px; padding: .2rem; }
.modal-tab { flex: 1; padding: .5rem; border-radius: 6px; background: none; border: none; color: var(--mid); font-weight: 600; font-size: .84rem; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.modal-tab.active { background: var(--ink-2); color: var(--white); }
.form-group { margin-bottom: .9rem; }
.form-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--mid); margin-bottom: .35rem; }
.form-input { width: 100%; background: var(--ink-3); border: 1px solid var(--border); color: var(--white); border-radius: 8px; padding: .65rem .95rem; font-size: .88rem; font-family: inherit; outline: none; transition: border-color .2s; }
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--mid); }
.btn-submit { width: 100%; padding: .8rem; border-radius: 8px; background: var(--accent); color: var(--ink); border: none; font-weight: 800; font-size: .92rem; font-family: inherit; cursor: pointer; margin-top: .4rem; transition: opacity .15s; }
.btn-submit:hover { opacity: .88; }
.modal-error { display: none; color: var(--red); font-size: .8rem; margin-top: .5rem; }
.modal-error.show { display: block; }

/* ══════════════════════════════════════════════
   INDEX PAGE
══════════════════════════════════════════════ */
.index-hero {
  min-height: 540px; display: flex; align-items: center;
  padding: 9rem 1.5rem 4rem; position: relative; overflow: hidden; text-align: center;
}
.index-hero-bg {
  position: absolute; inset: 0;
  will-change: transform;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(14,165,233,.18) 0%, transparent 65%),
    var(--ink-2);
}
.index-hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: grid-drift 28s linear infinite;
}
.index-hero-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; will-change: transform, opacity; }
.index-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900; letter-spacing: -3px; line-height: 1.0; margin-bottom: 1rem;
  background: linear-gradient(160deg, #ffffff 35%, rgba(56,189,248,.8) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.index-hero p { font-size: .9rem; color: var(--muted); max-width: 420px; margin: 0 auto 2rem; line-height: 1.8; }

.index-search { display: flex; gap: .4rem; max-width: 420px; margin: 0 auto; position: relative; }

.search-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--ink-2); border: 1px solid var(--border-h);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); z-index: 300;
  animation: dropdown-in .15s cubic-bezier(.22,1,.36,1);
}
.search-dropdown.open { display: block; }
@keyframes dropdown-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

.search-result {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--ink-3); }
.sr-name   { font-size: .86rem; font-weight: 500; color: var(--white); }
.sr-sector { font-size: .7rem; color: var(--mid); }
.search-no-result {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem 1.1rem; color: var(--mid);
}
.index-search input {
  flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--white); border-radius: 8px; padding: .72rem 1.1rem;
  font-size: .88rem; font-family: inherit; outline: none;
  transition: border-color .2s;
}
.index-search input::placeholder { color: var(--mid); }
.index-search input:focus { border-color: rgba(14,165,233,.4); }
.index-search button {
  background: var(--accent); color: var(--ink); border: none; cursor: pointer;
  border-radius: 8px; padding: .72rem 1.25rem; font-weight: 700;
  font-family: inherit; font-size: .88rem;
  transition: opacity .15s;
}
.index-search button:hover { opacity: .88; }

.index-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 2.25rem; flex-wrap: wrap; }
.index-stat-num { font-size: 1.5rem; font-weight: 900; color: var(--white); letter-spacing: -.5px; }
.index-stat-lbl { font-size: .64rem; color: var(--mid); margin-top: .1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }

/* ── MISSION SECTION ─────────────────────────── */
.mission-section {
  position: relative; overflow: hidden;
  padding: 6rem 1.5rem 6.5rem;
  background: var(--ink-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mission-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(14,165,233,.07) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 10% 90%, rgba(14,165,233,.04) 0%, transparent 60%);
}
.mission-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.mission-label {
  display: inline-block; font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--mid);
  margin-bottom: 1.5rem;
}
.mission-headline {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900; letter-spacing: -2.5px; line-height: 1.06;
  margin-bottom: 1.4rem;
  background: linear-gradient(150deg, #ffffff 40%, rgba(155,165,178,.8) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mission-sub {
  font-size: .9rem; color: var(--muted); line-height: 1.85;
  max-width: 560px; margin: 0 auto 3.5rem;
}
.mission-features {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem;
  text-align: left;
}
.mission-feature {
  background: var(--ink-3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: .65rem;
}
.mf-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-dim); border: 1px solid rgba(14,165,233,.15); display: flex; align-items: center; justify-content: center; }
.mf-icon .svg-icon { width: 15px; height: 15px; }
.mf-title { font-size: .88rem; font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.mf-text  { font-size: .78rem; color: var(--muted); line-height: 1.7; }

@media (max-width: 640px) {
  .mission-features { grid-template-columns: 1fr; }
  .mission-headline { letter-spacing: -1.5px; }
}

/* ── INDEX SECTION ───────────────────────────── */
.index-section { max-width: 1100px; margin: 3.5rem auto 1rem; padding: 0 1.5rem; }
.section-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -.4px; margin-bottom: 1.75rem; color: var(--white); }

/* ── SECTOR TILES GRID ───────────────────────── */
.sector-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
}

.sector-tile {
  background: var(--ink-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.6rem 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: .4rem;
  cursor: pointer; text-align: left; font-family: inherit;
  position: relative; overflow: hidden; min-height: 100px;
  text-decoration: none; color: inherit;
  transition: border-color .25s, background .2s;
}
.sector-tile::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 100% at 0% 50%, rgba(255,255,255,.025) 0%, transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.sector-tile:hover { border-color: var(--border-h); }
.sector-tile:hover::before { opacity: 1; }
.sector-tile.active {
  border-color: rgba(255,255,255,.2);
  background: var(--ink-3);
}
.sector-tile.active::before { opacity: 1; }

.tile-title {
  font-size: clamp(.95rem, 1.8vw, 1.3rem);
  font-weight: 800; letter-spacing: -.5px; line-height: 1.1;
  background: linear-gradient(140deg, #ffffff 45%, rgba(155,165,178,.75) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.tile-count {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--mid);
}

.tile-arrow {
  width: 13px; height: 13px; color: var(--mid); margin-top: auto;
  transition: transform .3s cubic-bezier(.22,1,.36,1), color .2s;
}
.sector-tile:hover .tile-arrow { transform: translateX(3px); color: rgba(255,255,255,.4); }
.sector-tile.active .tile-arrow { transform: rotate(90deg); color: rgba(255,255,255,.5); }


/* ── PROFESSION CARDS ────────────────────────── */
.professions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}

.profession-card {
  background: var(--ink-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem 1.35rem;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .2s, background .2s;
  will-change: transform;
}
.profession-card:hover {
  border-color: var(--border-h);
  background: var(--ink-3);
}

.card-name { font-size: .92rem; font-weight: 600; color: var(--white); letter-spacing: -.01em; line-height: 1.3; }
.card-salary { font-size: .78rem; color: var(--mid); font-weight: 400; }

.card-meta { display: flex; align-items: center; gap: .5rem; margin-top: .1rem; }
.demand-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.demand-dot.alta   { background: var(--green); }
.demand-dot.media  { background: var(--orange); }
.demand-dot.baja   { background: var(--red); }
.demand-text { font-size: .72rem; color: var(--mid); font-weight: 500; }
.card-trend  { font-size: .72rem; color: var(--mid); margin-left: auto; }

/* Recursos icon */
.rec-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px;
  background: var(--ink-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.rec-icon .svg-icon { width: 15px; height: 15px; }

/* ── CITY COMPARISON ─────────────────────────── */
.city-sal-list { display: flex; flex-direction: column; gap: .35rem; }
.city-sal-row {
  display: grid; grid-template-columns: 90px 1fr 110px 48px;
  align-items: center; gap: .6rem; padding: .5rem .4rem;
  border-radius: 8px; text-decoration: none; color: inherit;
  transition: background .15s;
}
.city-sal-row:hover { background: var(--ink-3); }
.city-sal-name { font-size: .8rem; font-weight: 600; color: var(--white); }
.city-sal-bar-wrap { height: 6px; background: var(--ink-3); border-radius: 3px; overflow: hidden; }
.city-sal-bar { height: 100%; background: var(--accent); border-radius: 3px; transition: width .6s ease; }
.city-sal-val { font-size: .78rem; color: var(--mid); text-align: right; }
.city-sal-pct { font-size: .72rem; font-weight: 700; text-align: right; }
.city-pos { color: var(--green); }
.city-neg { color: var(--red); }

/* ── FACTOR LIST ─────────────────────────────── */
.factor-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.factor-item {
  font-size: .82rem; color: var(--mid); line-height: 1.5;
  padding-left: 1.1rem; position: relative;
}
.factor-item::before {
  content: "▸"; position: absolute; left: 0;
  color: var(--accent); font-size: .7rem; top: 2px;
}

/* ── FAQ ─────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: .9rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: .88rem; font-weight: 700; color: var(--white); margin-bottom: .4rem; }
.faq-a { font-size: .8rem; color: var(--mid); line-height: 1.6; }

/* ── SALARIOS INTERNACIONALES ────────────────── */
.intl-list { display: flex; flex-direction: column; gap: .2rem; }
.intl-row {
  display: grid;
  grid-template-columns: 28px 1fr 120px 90px;
  align-items: center; gap: .75rem;
  padding: .55rem .4rem; border-radius: 8px; transition: background .15s;
}
.intl-row:hover { background: var(--ink-3); }
.intl-flag  { font-size: 1.3rem; line-height: 1; text-align: center; }
.intl-info  { min-width: 0; }
.intl-country { font-size: .85rem; font-weight: 600; color: var(--white); }
.intl-note  { font-size: .7rem; color: var(--mid); line-height: 1.4; margin-top: .1rem; }
.intl-bar-wrap { }
.intl-sal-col { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; }
.intl-sal  { font-size: .82rem; font-weight: 700; color: var(--white); white-space: nowrap; }
.intl-pct  { font-size: .72rem; font-weight: 700; }

@media (max-width: 640px) {
  .intl-row { grid-template-columns: 26px 1fr 70px; gap: .5rem; }
  .intl-bar-wrap { display: none; }
  .intl-note { display: none; }
}

/* ── COMPARATIVAS ────────────────────────────── */
.cmp-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.cmp-row {
  display: grid; grid-template-columns: 40px 1fr 80px 1fr 110px;
  align-items: center; gap: .75rem; padding: .6rem .5rem;
  border-radius: 10px; transition: background .15s;
}
.cmp-row:hover { background: var(--ink-3); }
.cmp-rank { font-size: 1.1rem; text-align: center; }
.cmp-name { font-weight: 600; font-size: .88rem; color: var(--white); text-decoration: none; }
.cmp-name:hover { color: var(--accent); }
.cmp-sector { font-size: .73rem; color: var(--mid); }
.cmp-bar-wrap { }
.cmp-sal { font-size: .82rem; font-weight: 700; color: var(--accent); text-align: right; white-space: nowrap; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-auth { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .sal-row { grid-template-columns: 60px 1fr; }
  .sal-amount { display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); letter-spacing: -1.5px; }
  .index-hero h1 { font-size: clamp(2.1rem, 10vw, 3.2rem); letter-spacing: -2px; }
  .index-stats { gap: 1.75rem; }
  .sector-tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-inner { padding: 0 .75rem 1.25rem; }
  .professions-grid { grid-template-columns: 1fr; }
  .index-section { padding: 0 1rem; }
  .city-sal-row { grid-template-columns: 75px 1fr 85px 40px; gap: .35rem; }
  .city-sal-val { font-size: .72rem; }
  .faq-q { font-size: .84rem; }
  .faq-a { font-size: .76rem; }
  /* En móvil las animaciones de entrada se deshabilitan — observer no dispara en listas largas */
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
  .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cmp-row { opacity: 1 !important; transform: none !important; }
}
