.hero-visual { position: relative; min-height: 420px; background: url('img/hero.jpg') center 30% / cover no-repeat !important; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.72); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }

.ex-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; }
.ex-card img { width: 72px !important; height: 72px !important; max-width: 72px; object-fit: cover; border-radius: 12px; display: block; margin: 0 auto 8px; }

.nav-link-btn { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--blue-deep) !important; border: 1.5px solid var(--line); background: #fff; }
.nav-link-btn:hover { border-color: var(--blue); text-decoration: none; }

.exchange-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ex-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.ex-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(28,36,48,.08); }
.ex-card img { width: 25%; height: 56px; object-fit: cover; object-position: center; display: block; margin: 12px auto 0; border-radius: 10px; }
.ex-card .body { padding: 8px 12px 14px; }
.ex-card h3 { font-size: .98rem; margin-bottom: 2px; font-weight: 700; }
.ex-card p { color: var(--muted); font-size: .84rem; line-height: 1.4; margin: 0; }

.exchange-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ex-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.ex-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(28,36,48,.08); }
.ex-card img { width: 25%; height: 56px; object-fit: cover; object-position: center; display: block; margin: 12px auto 0; border-radius: 10px; }
.ex-card .body { padding: 8px 12px 14px; }
.ex-card h3 { font-size: .98rem; margin-bottom: 2px; font-weight: 700; }
.ex-card p { color: var(--muted); font-size: .84rem; line-height: 1.4; margin: 0; }

.photo-wrap { height: auto; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.filter-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-family: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--text); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.profile-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28,36,48,.1); }
.profile-body { padding: 14px 16px 16px; }
.profile-body h3 { margin-bottom: 2px; font-size: 1.1rem; }
.city { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { font-size: .78rem; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--soft); }
.tag.give { color: var(--green-deep); background: rgba(61,204,90,.12); }
.tag.want { color: var(--blue-deep); background: rgba(43,127,255,.12); }
.quote { color: var(--muted); font-size: .9rem; font-style: italic; }
.hidden { display: none; }

.steps-visual .step { position: relative; overflow: hidden; }
.steps-visual .step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--green)); }

#demo { text-align: center; }
#demo .btn { margin: 0 auto; }

@media (max-width: 800px) {
  .exchange-cards, .profile-grid { grid-template-columns: 1fr; }
  .ex-card img { height: 100px; }
}
