:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: rgba(18, 25, 48, 0.84);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.12);
  --text: #edf2ff;
  --muted: #a9b4d0;
  --accent: #74c0fc;
  --accent-2: #9b8cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(116, 192, 252, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(155, 140, 255, 0.16), transparent 30%),
    linear-gradient(160deg, #07101f 0%, #0b1020 45%, #11162a 100%);
  color: var(--text);
}

a { color: inherit; }

.page-shell {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 32px;
}

.hero-card,
.card,
.directory-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 36px;
}

.site-lang-corner {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.lang-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switcher button.is-active {
  background: rgba(116, 192, 252, 0.16);
  color: var(--text);
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(116, 192, 252, 0.12);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(116, 192, 252, 0.18);
  text-transform: uppercase;
  text-decoration: none;
}

.eyebrow:hover {
  text-decoration: none;
}

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

.eyebrow:focus-visible {
  outline: 2px solid rgba(116, 192, 252, 0.45);
  outline-offset: 2px;
}

.hero-card h1,
.card h1 {
  margin: 18px 0 10px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.subtitle {
  margin: 0;
  font-size: 21px;
  color: var(--muted);
}

.profile-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 28px;
  display: block;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.summary {
  margin: 24px 0 0;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.68;
  color: #d6def6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  justify-content: center;
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}

.quick-facts .chip {
  background: rgba(255, 255, 255, 0.05);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button.primary {
  background: linear-gradient(135deg, rgba(116, 192, 252, 0.18), rgba(155, 140, 255, 0.16));
  border-color: rgba(116, 192, 252, 0.35);
}

.button:hover,
.user-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.user-tile {
  display: grid;
  gap: 16px;
  padding: 24px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  cursor: pointer;
  align-content: start;
}

.tile-badge-row {
  display: flex;
  justify-content: flex-start;
}

.user-tile-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.directory-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.user-name {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-align: center;
}

.user-company,
.user-contact,
.user-url,
.tile-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

.tile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.tile-links a {
  text-decoration: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  text-decoration: none;
}

.card-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.card-pane {
  padding: 38px;
}

.card-pane.left {
  border-right: 1px solid var(--line);
}

.meta {
  display: grid;
  gap: 16px;
}

.meta-item,
.qr-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}

.value a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 14px;
}

.qr-wrap img {
  width: min(100%, 240px);
  height: auto;
  background: white;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.28);
}

.qr-note {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.qr-actions .chip {
  min-width: 0;
}

.muted-link {
  color: var(--muted);
}

@media (max-width: 880px) {
  .site-lang-corner { top: 12px; right: 12px; }
  .lang-switcher { gap: 4px; padding: 6px 8px; }
  .lang-switcher button { padding: 6px 8px; }
  .page-shell { padding: 18px; padding-top: 72px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-pane.left { border-right: 0; border-bottom: 1px solid var(--line); }
  .card-pane { padding: 26px; }
  .button { width: 100%; min-width: 0; }
  .tile-links a, .qr-actions a, .qr-actions button { width: 100%; justify-content: center; }
  .directory-avatar { width: 80px; height: 80px; border-radius: 20px; }
}
