:root {
  --bc-navy: #085b7a;
  --bc-navy-deep: #074a64;
  --bc-cyan: #2aa6c3;
  --bc-cyan-soft: #57bed2;
  --bc-white: #f8fbfd;
  --bc-ink: #0f5978;
  --bc-shadow: 0 30px 60px rgba(2, 44, 61, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Aptos, "Trebuchet MS", sans-serif;
  color: var(--bc-white);
  background:
    linear-gradient(90deg, var(--bc-cyan) 0, var(--bc-cyan) 4%, transparent 4%, transparent 96%, var(--bc-cyan) 96%, var(--bc-cyan) 100%),
    linear-gradient(180deg, var(--bc-cyan-soft) 0, var(--bc-cyan-soft) 14%, transparent 14%, transparent 70%, var(--bc-cyan-soft) 70%, var(--bc-cyan-soft) 100%),
    var(--bc-navy);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.business-card-page {
  min-height: 100vh;
}

.business-card-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.business-card-rails::before,
.business-card-rails::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(28px, 4vw, 46px);
  background: linear-gradient(180deg, rgba(88, 195, 216, 0.9), rgba(42, 166, 195, 0.88));
  z-index: 0;
}

.business-card-rails::before {
  left: 0;
}

.business-card-rails::after {
  right: 0;
}

.business-card-poster {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1060px;
  margin: 0 auto;
  padding: 38px 46px 0;
  background: linear-gradient(180deg, rgba(8, 91, 122, 0.98), rgba(7, 79, 106, 0.98));
  box-shadow: var(--bc-shadow);
}

.business-card-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 280px;
  padding-top: 36px;
}

.deva-mark {
  position: relative;
  width: clamp(140px, 17vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--bc-ink);
  display: grid;
  place-items: center;
  align-content: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.deva-mark__image {
  width: 56%;
  max-width: 108px;
  height: auto;
  object-fit: contain;
}

.qr-trigger-button {
  position: absolute;
  top: 4px;
  right: -10px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #0b6e95;
  color: #fff;
  box-shadow: 0 12px 24px rgba(7, 63, 86, 0.26);
  cursor: pointer;
}

.qr-trigger-button svg {
  width: 20px;
  height: 20px;
}

.business-card-body {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
  padding: 60px 0 88px;
}

.contact-rail {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 18px;
}

.contact-pill {
  display: flex;
  align-items: center;
  min-height: 84px;
  background: #fff;
  color: var(--bc-ink);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 18px 34px rgba(3, 44, 60, 0.12);
  overflow: hidden;
  transform: translateX(-46px);
}

.contact-pill__icon {
  flex: 0 0 122px;
  display: grid;
  place-items: center;
}

.contact-pill__icon svg {
  width: 44px;
  height: 44px;
}

.contact-pill__text {
  padding-right: 22px;
  font-size: 0.96rem;
  line-height: 1.4;
  word-break: break-word;
}

.identity-panel {
  max-width: 520px;
  padding-top: 12px;
}

.identity-panel__eyebrow {
  margin: 0 0 18px;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.identity-panel__name {
  margin: 0;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.identity-panel__role {
  margin: 16px 0 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.identity-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 20px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.74);
}

.identity-panel__hint {
  max-width: 420px;
  margin: 28px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.identity-panel__actions {
  margin-top: 32px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--bc-ink);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 18px 34px rgba(4, 41, 56, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 38px rgba(4, 41, 56, 0.22);
}

.detail-card {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.detail-card__row + .detail-card__row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-card__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.detail-card__value {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.error-panel {
  max-width: 620px;
  padding: 40px 0 110px;
}

.business-card-footer {
  position: relative;
  /*min-height: 170px;*/
  margin: 0 -46px;
  padding: 0 26px 104px;
  background: #fff;
}

.floating-download-button {
  position: fixed;
  right: max(28px, calc(50vw - 492px));
  bottom: 28px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
  min-height: 76px;
  padding: 10px 14px 10px 10px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(224, 245, 250, 0.98));
  color: var(--bc-ink);
  border: 1px solid rgba(7, 79, 106, 0.14);
  box-shadow: 0 26px 42px rgba(5, 49, 67, 0.22), 0 10px 20px rgba(8, 91, 122, 0.12);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.floating-download-button::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  pointer-events: none;
}

.floating-download-button:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 79, 106, 0.24);
  box-shadow: 0 32px 48px rgba(5, 49, 67, 0.28), 0 12px 22px rgba(8, 91, 122, 0.16);
}

.floating-download-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(10, 110, 149, 0.34);
  box-shadow:
    0 0 0 4px rgba(87, 190, 210, 0.28),
    0 26px 42px rgba(5, 49, 67, 0.22),
    0 10px 20px rgba(8, 91, 122, 0.12);
}

.floating-download-button__stamp {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: 62px;
  height: 56px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(155deg, #0a6f98, #2aa6c3);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 22px rgba(8, 91, 122, 0.22);
}

.floating-download-button__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.floating-download-button__eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 89, 120, 0.68);
}

.floating-download-button__label {
  margin-top: 4px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0c5e80;
  white-space: nowrap;
}

.floating-download-button__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0b6e95;
  color: #fff;
  box-shadow: 0 12px 22px rgba(9, 74, 100, 0.2);
  transition: transform 180ms ease, background-color 180ms ease;
}

.floating-download-button:hover .floating-download-button__icon {
  transform: translateY(-1px) scale(1.03);
  background: #0d7da8;
}

.floating-download-button svg {
  width: 22px;
  height: 22px;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 35, 48, 0.62);
  backdrop-filter: blur(6px);
}

.qr-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 360px);
  margin: 10vh auto 0;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: #fff;
  color: #0f5978;
  box-shadow: 0 28px 48px rgba(3, 35, 48, 0.24);
}

.qr-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 110, 149, 0.1);
  color: #0b6e95;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.qr-modal__title {
  margin: 6px 0 16px;
  text-align: center;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.qr-modal__card {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(11, 110, 149, 0.12);
}

.qr-modal__card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
}

.eastpharma-mark {
  position: absolute;
  right: 26px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #12689a;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
}

.eastpharma-mark__globe {
  width: 60px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(145deg, #aef0b4 0%, #22a34b 58%, #0b7c36 100%);
  position: relative;
  overflow: hidden;
}

.eastpharma-mark__globe::before,
.eastpharma-mark__globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.eastpharma-mark__globe::before {
  background:
    linear-gradient(155deg, transparent 22%, rgba(255, 255, 255, 0.85) 24%, transparent 28%),
    linear-gradient(25deg, transparent 50%, rgba(255, 255, 255, 0.85) 52%, transparent 56%);
}

.eastpharma-mark__globe::after {
  background:
    linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0.2) 34%, transparent 34%, transparent 66%, rgba(255, 255, 255, 0.2) 66%, rgba(255, 255, 255, 0.2) 70%, transparent 70%),
    linear-gradient(180deg, transparent 28%, rgba(255, 255, 255, 0.2) 28%, rgba(255, 255, 255, 0.2) 32%, transparent 32%, transparent 64%, rgba(255, 255, 255, 0.2) 64%, rgba(255, 255, 255, 0.2) 68%, transparent 68%);
}

@media (max-width: 900px) {
  .business-card-poster {
    padding: 28px 24px 0;
  }

  .business-card-header {
    min-height: 236px;
  }

  .business-card-body {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .contact-rail {
    order: 2;
    gap: 18px;
  }

  .contact-pill {
    transform: none;
    border-radius: 999px;
  }

  .identity-panel {
    order: 1;
  }

  .business-card-footer {
    margin: 0 -24px;
    /*min-height: 156px;*/
    padding: 0 18px 96px;
  }

  .floating-download-button {
    right: 20px;
    bottom: 20px;
    min-width: 248px;
    min-height: 70px;
    padding: 10px 12px 10px 10px;
  }

  .floating-download-button__stamp {
    min-width: 56px;
    height: 52px;
    padding: 0 12px;
  }

  .floating-download-button__label {
    font-size: 0.98rem;
  }

  .floating-download-button__icon {
    width: 46px;
    height: 46px;
  }

  .qr-trigger-button {
    right: -6px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(90deg, var(--bc-cyan) 0, var(--bc-cyan) 3.5%, transparent 3.5%, transparent 96.5%, var(--bc-cyan) 96.5%, var(--bc-cyan) 100%),
      linear-gradient(180deg, var(--bc-cyan-soft) 0, var(--bc-cyan-soft) 15%, transparent 15%, transparent 72%, var(--bc-cyan-soft) 72%, var(--bc-cyan-soft) 100%),
      var(--bc-navy);
  }

  .business-card-poster {
    min-height: 100vh;
    padding: 18px 18px 0;
  }

  .business-card-header {
    min-height: 198px;
    padding-top: 30px;
  }

  .contact-pill {
    min-height: 72px;
  }

  .contact-pill__icon {
    flex-basis: 86px;
  }

  .contact-pill__icon svg {
    width: 34px;
    height: 34px;
  }

  .contact-pill__text {
    padding-right: 16px;
    font-size: 0.9rem;
  }

  .download-button {
    width: 100%;
  }

  .business-card-footer {
    /*min-height: 164px;*/
    padding: 0 18px 110px;
  }

  .floating-download-button {
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-width: 0;
    min-height: 66px;
    padding: 9px 10px;
    gap: 10px;
  }

  .floating-download-button__stamp {
    min-width: 50px;
    height: 46px;
    padding: 0 10px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .floating-download-button__eyebrow {
    display: none;
  }

  .floating-download-button__label {
    margin-top: 0;
    font-size: 0.92rem;
  }

  .floating-download-button__icon {
    width: 42px;
    height: 42px;
  }

  .floating-download-button svg {
    width: 18px;
    height: 18px;
  }

  .qr-trigger-button {
    top: 0;
    right: -4px;
    width: 34px;
    height: 34px;
  }

  .qr-trigger-button svg {
    width: 18px;
    height: 18px;
  }

  .eastpharma-mark {
    right: 18px;
    bottom: 14px;
    gap: 10px;
    font-size: 1.8rem;
  }

  .eastpharma-mark__globe {
    width: 48px;
  }
}
