/* ============ JobMitra — design system ============ */
:root {
  --bg: #07080f;
  --bg-2: #0c0e1a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-hi: rgba(139, 122, 255, 0.45);
  --text: #eef0ff;
  --muted: #9aa0c3;
  --brand-1: #8b7aff;
  --brand-2: #4dd6ff;
  --brand-3: #ff7ad9;
  --good: #3ddc97;
  --warn: #ffc555;
  --bad: #ff6b81;
  --grad: linear-gradient(100deg, var(--brand-1), var(--brand-2));
  --grad-3: linear-gradient(110deg, var(--brand-1), var(--brand-3), var(--brand-2));
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --r-lg: 22px;
  --r-md: 14px;
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: rgba(139, 122, 255, 0.4); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--brand-1), var(--brand-2)); border-radius: 8px; }

/* ============ Animated background ============ */
.bg-scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(1200px 700px at 75% -10%, #17123a 0%, var(--bg) 55%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.blob-1 { width: 520px; height: 520px; background: #4c2ee0; top: -180px; left: -120px; animation: drift1 22s ease-in-out infinite alternate; }
.blob-2 { width: 460px; height: 460px; background: #0e6b8f; bottom: -160px; right: -100px; animation: drift2 26s ease-in-out infinite alternate; }
.blob-3 { width: 380px; height: 380px; background: #8f2a7a; top: 40%; left: 55%; opacity: 0.35; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-120px, -80px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-160px, 60px) rotate(40deg); } }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

/* ============ Utilities ============ */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.grad-text { background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: 0.75rem; color: var(--muted); }
.linklike { background: none; border: none; color: var(--brand-2); cursor: pointer; font: inherit; text-decoration: underline; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: var(--font-body); font-weight: 600;
  border-radius: var(--r-md); padding: 12px 22px; font-size: 0.95rem; color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  position: relative; overflow: hidden; text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #0a0a14; box-shadow: 0 8px 28px rgba(109, 96, 255, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(109, 96, 255, 0.5); }
.btn-outline { background: transparent; border: 1px solid var(--border-hi); }
.btn-outline:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-shine { position: absolute; top: 0; left: -80%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -80%; } 100% { left: 130%; } }

/* ============ Nav ============ */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 28px)); z-index: 50; border-radius: 999px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.brand-mark { color: var(--brand-1); font-size: 1.4rem; animation: spin-slow 14s linear infinite; display: inline-block; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ============ Hero ============ */
.hero { max-width: 1180px; margin: 0 auto; padding: 150px 24px 70px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center; min-height: 92vh; }
.hero-badge { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border-hi); background: rgba(139, 122, 255, 0.1); color: var(--brand-2); font-size: 0.82rem; font-weight: 600; margin-bottom: 22px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.hero-sub { margin: 22px 0 30px; color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; }
.stat { padding: 16px 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; min-width: 130px; }
.stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 0.78rem; color: var(--muted); }

.hero-visual { position: relative; height: 460px; perspective: 900px; }
.orbit-ring { position: absolute; inset: 8%; border: 1px dashed rgba(139,122,255,0.3); border-radius: 50%; animation: spin-slow 30s linear infinite; }
.orbit-ring.ring-2 { inset: 22%; animation-duration: 45s; animation-direction: reverse; border-color: rgba(77,214,255,0.25); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px 18px; backdrop-filter: blur(14px); box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 0.95rem; }
.float-card small { color: var(--muted); font-size: 0.78rem; }
.fc-emoji { font-size: 1.6rem; }
.fc-1 { top: 8%; left: 6%; animation-delay: 0s; }
.fc-2 { top: 44%; right: 0; animation-delay: 1.4s; }
.fc-3 { bottom: 6%; left: 16%; animation-delay: 2.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* 3D tilt (JS-driven) */
.tilt-card { transform-style: preserve-3d; will-change: transform; transition: box-shadow 0.25s ease; }

/* ============ Sections ============ */
.section { max-width: 1180px; margin: 0 auto; padding: 80px 24px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); max-width: 640px; margin: 12px auto 0; }

/* ============ Search panel ============ */
.search-panel { padding: 28px; box-shadow: var(--shadow); }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: span 4; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select, #sort-select {
  background: rgba(10, 12, 24, 0.7); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r-md); padding: 13px 16px; font-size: 0.95rem; font-family: var(--font-body);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus { border-color: var(--border-hi); box-shadow: 0 0 0 4px rgba(139,122,255,0.15); }
.field select option { background: #12142a; }
.search-row-2 { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.segmented { display: inline-flex; background: rgba(10,12,24,0.7); border: 1px solid var(--border); border-radius: 999px; padding: 5px; gap: 4px; }
.seg-btn { background: transparent; color: var(--muted); border: none; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.88rem; font-family: var(--font-body); transition: all 0.2s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--grad); color: #0a0a14; box-shadow: 0 4px 16px rgba(109,96,255,0.4); }
.btn-search { min-width: 200px; }

/* ============ VH role chips ============ */
.vh-roles { margin-top: 20px; padding: 18px; border-radius: var(--r-md); background: rgba(255, 122, 217, 0.05); border: 1px solid rgba(255, 122, 217, 0.22); animation: card-in 0.4s ease forwards; }
.vh-roles-head { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.vh-roles-head b { color: var(--text); }
.chip.click { cursor: pointer; transition: all 0.18s ease; user-select: none; }
.chip.click:hover { background: rgba(139, 122, 255, 0.3); transform: translateY(-2px); border-color: var(--brand-1); }
.chip.emp { background: rgba(77, 214, 255, 0.1); border-color: rgba(77, 214, 255, 0.3); }
.tag.vh { color: var(--brand-3); border-color: rgba(255, 122, 217, 0.4); }

/* ============ Results ============ */
.results-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 34px 0 6px; gap: 14px; flex-wrap: wrap; }
.results-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.src-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.src-pill { font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.src-pill.ok { border-color: rgba(61,220,151,0.5); color: var(--good); }
.src-pill.fail { border-color: rgba(255,107,129,0.4); color: var(--bad); opacity: .7; }
.results-controls { display: flex; align-items: center; gap: 14px; }
.match-toggle { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.match-toggle input { accent-color: var(--brand-1); width: 16px; height: 16px; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin-top: 20px; }
.job-card {
  position: relative; padding: 22px; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  backdrop-filter: blur(14px); opacity: 0; transform: translateY(20px);
  animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes card-in { to { opacity: 1; transform: none; } }
.job-card:hover { border-color: var(--border-hi); box-shadow: 0 20px 44px rgba(80, 60, 220, 0.22); }
.job-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.job-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.job-company { color: var(--brand-2); font-weight: 600; font-size: 0.9rem; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid transparent; }
.tag.wt-remote { color: var(--good); border-color: rgba(61,220,151,0.35); }
.tag.wt-hybrid { color: var(--warn); border-color: rgba(255,197,85,0.35); }
.tag.wt-onsite { color: var(--brand-2); border-color: rgba(77,214,255,0.35); }
.tag.matched { color: #0a0a14; background: var(--good); font-weight: 700; }
.job-desc { color: var(--muted); font-size: 0.86rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 10px; }
.job-meta { font-size: 0.76rem; color: var(--muted); }
.job-src { font-size: 0.7rem; color: var(--muted); opacity: 0.8; }
.apply-btn { padding: 9px 18px; font-size: 0.85rem; }

.match-ring { --p: 0; width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: conic-gradient(var(--brand-1) calc(var(--p) * 1%), rgba(255,255,255,0.09) 0); position: relative; }
.match-ring::before { content: ""; position: absolute; inset: 5px; background: #12142a; border-radius: 50%; }
.match-ring span { position: relative; font-size: 0.76rem; font-weight: 700; font-family: var(--font-display); }
.match-ring.hi { background: conic-gradient(var(--good) calc(var(--p) * 1%), rgba(255,255,255,0.09) 0); }
.match-ring.hi span { color: var(--good); }
.perfect-badge { position: absolute; top: -10px; right: 16px; background: var(--good); color: #06210f; font-size: 0.7rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; box-shadow: 0 6px 18px rgba(61,220,151,0.45); }

.loader { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 60px 0; }
.loader-orb { width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--brand-1), var(--brand-2), var(--brand-3), var(--brand-1)); animation: spin-slow 1.1s linear infinite; position: relative; }
.loader-orb::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
.loader-orb.small { width: 40px; height: 40px; }
.loader p { color: var(--muted); }

.empty-state { text-align: center; padding: 56px 28px; margin-top: 24px; }
.empty-emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-state h3 { font-family: var(--font-display); margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.load-more-wrap { text-align: center; margin-top: 28px; }

/* ============ Profile ============ */
.profile-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.upload-card { padding: 40px 30px; text-align: center; border-style: dashed; border-width: 2px; cursor: pointer; transition: border-color 0.25s, background 0.25s, transform 0.2s; }
.upload-card:hover, .upload-card.dragover { border-color: var(--brand-1); background: rgba(139,122,255,0.07); transform: translateY(-2px); }
.upload-icon { font-size: 3rem; margin-bottom: 10px; animation: floaty 5s ease-in-out infinite; }
.upload-card h3 { font-family: var(--font-display); }
.upload-card small { color: var(--muted); display: block; margin-top: 12px; }
.upload-progress { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 0; }
.progress-bar { width: 80%; height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--grad); border-radius: 8px; transition: width 0.35s ease; }

.profile-card { padding: 26px; }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profile-head h3 { font-family: var(--font-display); }
.profile-head .btn { margin-left: auto; }
.avatar-ring { width: 56px; height: 56px; border-radius: 50%; background: var(--grad-3); display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; color: #0a0a14; font-family: var(--font-display); flex-shrink: 0; }
.profile-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.profile-meta .pill { font-size: 0.8rem; }
.profile-body h4 { font-family: var(--font-display); font-size: 0.95rem; margin: 16px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; background: rgba(139,122,255,0.14); border: 1px solid rgba(139,122,255,0.35); font-size: 0.82rem; font-weight: 500; }
.chip.role { background: rgba(77,214,255,0.12); border-color: rgba(77,214,255,0.35); }
.profile-card .btn-primary { margin-top: 22px; width: 100%; }

.optimize-card { margin-top: 20px; padding: 28px; }
.optimize-card h3 { font-family: var(--font-display); margin-bottom: 4px; }
.optimize-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.opt-item { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(10,12,24,0.55); border: 1px solid var(--border); align-items: flex-start; }
.opt-icon { font-size: 1.15rem; line-height: 1.4; }
.opt-item b { display: block; font-size: 0.92rem; }
.opt-item p { color: var(--muted); font-size: 0.84rem; margin-top: 2px; }
.opt-item.good { border-color: rgba(61,220,151,0.3); }
.opt-item.warn { border-color: rgba(255,197,85,0.35); }
.opt-item.bad { border-color: rgba(255,107,129,0.35); }

/* ============ Sumi ============ */
.sumi-fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 64px; height: 64px;
  border-radius: 50%; border: none; cursor: pointer; background: var(--grad-3);
  display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 12px 34px rgba(139,122,255,0.5);
  transition: transform 0.2s ease;
}
.sumi-fab:hover { transform: scale(1.08) rotate(-6deg); }
.sumi-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand-1); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }

.sumi-panel {
  position: fixed; bottom: 104px; right: 26px; z-index: 95; width: min(400px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 140px)); display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6); overflow: hidden;
  background: rgba(14, 16, 32, 0.92);
  animation: panel-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom right;
}
@keyframes panel-in { from { opacity: 0; transform: scale(0.85) translateY(16px); } }
.sumi-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.sumi-head .btn { margin-left: auto; }
.sumi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-3); display: grid; place-items: center; font-size: 1.3rem; }
.sumi-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.75rem; }
.dot-online { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); display: inline-block; }
.sumi-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 16px; font-size: 0.9rem; animation: card-in 0.3s ease forwards; opacity: 0; line-height: 1.5; }
.msg.sumi { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.user { background: var(--grad); color: #0a0a14; font-weight: 500; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg a { color: var(--brand-2); }
.msg.user a { color: #063; }
.msg .mini-job { display: block; margin-top: 8px; padding: 9px 12px; border-radius: 10px; background: rgba(10,12,24,0.6); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .2s; }
.msg .mini-job:hover { border-color: var(--border-hi); }
.msg .mini-job b { font-size: 0.85rem; display: block; }
.msg .mini-job small { color: var(--muted); font-size: 0.74rem; }
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0);} 40% { opacity: 1; transform: translateY(-4px);} }
.sumi-quick { display: flex; gap: 8px; padding: 0 18px 10px; flex-wrap: wrap; }
.quick-chip { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 6px 13px; font-size: 0.78rem; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); }
.quick-chip:hover { color: var(--text); border-color: var(--border-hi); }
.sumi-inputbar { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); }
.sumi-inputbar input { flex: 1; background: rgba(10,12,24,0.7); border: 1px solid var(--border); border-radius: 999px; padding: 11px 18px; color: var(--text); outline: none; font-family: var(--font-body); }
.sumi-inputbar input:focus { border-color: var(--border-hi); }
.sumi-inputbar .btn { border-radius: 50%; width: 44px; height: 44px; padding: 0; }

/* ============ Toast & footer ============ */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 100;
  background: #171a30; border: 1px solid var(--border-hi); padding: 13px 24px; border-radius: var(--r-md);
  box-shadow: var(--shadow); font-size: 0.9rem; animation: card-in 0.3s ease forwards; }
.footer { text-align: center; padding: 44px 24px 34px; color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--border); max-width: 900px; margin: 40px auto 0; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; min-height: auto; }
  .hero-visual { display: none; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: span 2; }
  .profile-layout, .optimize-list { grid-template-columns: 1fr; }
  .nav-links a { display: none; }
}
@media (max-width: 560px) {
  .search-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: span 1; }
  .btn-search { width: 100%; }
  .segmented { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; trans