:root {
  color-scheme: light;
  --bg: #f4f8fc;
  --bg-soft: #eef5fb;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --panel-soft: rgba(47, 109, 191, 0.04);
  --line: rgba(29, 78, 137, 0.12);
  --line-strong: rgba(29, 78, 137, 0.18);
  --text: #15325a;
  --text-strong: #0c2443;
  --muted: #587191;
  --accent: #2f6dbf;
  --accent-2: #43b6d6;
  --accent-3: #e88ab0;
  --shadow: 0 22px 56px rgba(20, 55, 97, 0.12);
}

* { 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(67, 182, 214, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(232, 138, 176, 0.10), transparent 24%),
    linear-gradient(180deg, #f8fbfe 0%, #f2f7fc 42%, #eef4fa 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(47, 109, 191, 0.03), transparent 32%),
    linear-gradient(315deg, rgba(67, 182, 214, 0.035), transparent 30%);
}

body > * {
  position: relative;
  z-index: 1;
}

a { color: inherit; }

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

.hero-card,
.card,
.directory-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248, 251, 255, 0.94));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.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(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(20, 55, 97, 0.10);
}

.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(47, 109, 191, 0.12);
  color: var(--text-strong);
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(67, 182, 214, 0.10), rgba(232, 138, 176, 0.10));
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(47, 109, 191, 0.10);
  text-transform: uppercase;
  text-decoration: none;
}

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

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

.eyebrow:focus-visible {
  outline: 2px solid rgba(47, 109, 191, 0.25);
  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;
  color: var(--text-strong);
}

.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 rgba(47, 109, 191, 0.10);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 55, 97, 0.10);
}

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

.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: linear-gradient(180deg, rgba(67, 182, 214, 0.08), rgba(47, 109, 191, 0.04));
}

.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-strong);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(47, 109, 191, 0.30);
  box-shadow: 0 14px 30px rgba(47, 109, 191, 0.20);
}

.button:hover,
.user-tile:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
}

.button.primary:hover {
  background: linear-gradient(135deg, #2b64af, #3db0cf);
}

.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.96), rgba(244, 249, 255, 0.92));
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
  align-content: start;
  box-shadow: 0 14px 36px rgba(20, 55, 97, 0.06);
}

.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 rgba(47, 109, 191, 0.10);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(20, 55, 97, 0.10);
}

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

.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 rgba(47, 109, 191, 0.12);
  background: rgba(47, 109, 191, 0.05);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  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);
  background:
    radial-gradient(circle at top center, rgba(67, 182, 214, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(47, 109, 191, 0.02));
}

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

.meta-item,
.qr-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(244, 249, 255, 0.84));
}

.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-strong);
  word-break: break-word;
}

.value a {
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 109, 191, 0.18);
}

.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(20, 55, 97, 0.12);
}

.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; }
}
