:root {
  --navy-950: #020a17;
  --navy-900: #06162f;
  --navy-800: #0a2550;
  --blue: #1764ff;
  --blue-soft: #75a4ff;
  --gold: #f4c53d;
  --gold-deep: #c89212;
  --white: #ffffff;
  --muted: #bac9e4;
  --panel: rgba(3, 15, 38, 0.78);
  --line: rgba(132, 174, 255, 0.22);
  --shadow: 0 28px 90px rgba(0, 7, 22, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 12%, rgba(23, 100, 255, 0.22), transparent 30%),
    radial-gradient(circle at 88% 86%, rgba(244, 197, 61, 0.14), transparent 30%),
    #020a17;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(115, 156, 229, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 156, 229, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 82%);
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

a {
  color: inherit;
}

svg {
  display: block;
}

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 42px);
}

.business-card {
  position: relative;
  width: min(1180px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(560px, 1.35fr);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(125, 169, 255, 0.27);
  border-radius: 30px;
  background-image: url("background.png");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.business-card::before,
.business-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.business-card::before {
  width: 460px;
  height: 460px;
  top: -330px;
  right: 18%;
  border: 1px solid rgba(96, 151, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(19, 91, 255, 0.22);
}

.business-card::after {
  width: 310px;
  height: 310px;
  right: -105px;
  bottom: -130px;
  border: 34px solid rgba(20, 94, 255, 0.11);
  border-radius: 50%;
}

.card-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 9, 24, 0.9) 0%, rgba(1, 12, 30, 0.73) 42%, rgba(1, 10, 25, 0.52) 100%),
    linear-gradient(180deg, rgba(2, 13, 33, 0.05), rgba(1, 7, 19, 0.68));
}

.brand-panel,
.details-panel {
  position: relative;
  z-index: 1;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 66px) clamp(28px, 4vw, 54px) clamp(30px, 4vw, 46px);
  border-right: 1px solid rgba(128, 170, 255, 0.18);
  background: linear-gradient(180deg, rgba(2, 12, 31, 0.38), rgba(1, 8, 23, 0.66));
}

.brand-panel::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -1px;
  width: 3px;
  height: 80%;
  background: linear-gradient(transparent, var(--gold), transparent);
  opacity: 0.72;
}

.brand-copy {
  display: grid;
  gap: 24px;
}

.brand-logo {
  width: min(100%, 510px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(0, 4, 16, 0.55));
}

.intro {
  max-width: 440px;
  margin: 0;
  color: #dce7fb;
  font-size: clamp(0.96rem, 1.3vw, 1.12rem);
  font-weight: 500;
  line-height: 1.72;
}

.brand-footer {
  position: relative;
  padding-top: 24px;
}

.brand-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 78px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.brand-footer p {
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 700;
}

.brand-footer span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.details-panel {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(28px, 4.5vw, 56px);
}

.details-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.details-heading h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #dce8ff;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(114, 161, 255, 0.25);
  border-radius: 999px;
  background: rgba(4, 24, 59, 0.68);
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58e989;
  box-shadow: 0 0 12px rgba(88, 233, 137, 0.8);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-button {
  position: relative;
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 12px 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(8, 35, 76, 0.86), rgba(3, 17, 43, 0.9));
  box-shadow: 0 10px 25px rgba(0, 4, 16, 0.25);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.contact-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent 10%, rgba(255, 255, 255, 0.09), transparent 88%);
  transform: translateX(-55%);
  transition: transform 350ms ease, opacity 180ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  z-index: 2;
  transform: translateY(-3px);
  border-color: rgba(244, 197, 61, 0.62);
  background: linear-gradient(135deg, rgba(11, 47, 103, 0.94), rgba(4, 21, 52, 0.96));
  box-shadow: 0 14px 30px rgba(0, 6, 23, 0.4);
  outline: none;
}

.contact-button:hover::before,
.contact-button:focus-visible::before {
  opacity: 1;
  transform: translateX(55%);
}

.icon-wrap {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(127, 171, 255, 0.36);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(22, 100, 255, 0.92), rgba(9, 46, 112, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px rgba(0, 7, 26, 0.28);
}

.icon-wrap svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.whatsapp .icon-wrap {
  background: linear-gradient(145deg, #2fd267, #168d43);
  border-color: rgba(128, 255, 179, 0.34);
}

.instagram .icon-wrap {
  background: linear-gradient(145deg, #8d42d6, #df315e 60%, #f0a438);
  border-color: rgba(255, 162, 210, 0.34);
}

.facebook .icon-wrap {
  background: linear-gradient(145deg, #2987ff, #1055b8);
  border-color: rgba(127, 181, 255, 0.4);
}

.contact-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-text strong,
.contact-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-text strong {
  color: var(--white);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-text span {
  color: var(--muted);
  font-size: clamp(0.71rem, 1vw, 0.82rem);
  font-weight: 500;
}

.arrow {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
}

.save-contact {
  min-width: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 197, 61, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(12, 40, 82, 0.88), rgba(4, 20, 48, 0.92));
  box-shadow: 0 14px 34px rgba(0, 5, 20, 0.32);
}

.qr-frame {
  width: 96px;
  padding: 7px;
  border: 2px solid rgba(244, 197, 61, 0.66);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 4, 15, 0.35);
}

.contact-qr {
  display: block;
  width: 100%;
  height: auto;
}

.save-contact-copy {
  min-width: 0;
}

.save-contact-copy h2 {
  margin: 0 0 7px;
  color: var(--white);
  font-size: clamp(0.98rem, 1.55vw, 1.22rem);
  line-height: 1.2;
}

.save-contact-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.save-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 15px;
  color: #06142b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid #ffdb72;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffe27b, #e6ae1f);
  box-shadow: 0 9px 22px rgba(200, 146, 18, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.save-contact-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.save-contact-button:hover,
.save-contact-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(200, 146, 18, 0.36);
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .business-card {
    grid-template-columns: minmax(280px, 0.76fr) minmax(500px, 1.24fr);
    min-height: 580px;
  }

  .brand-panel {
    padding-left: 30px;
    padding-right: 30px;
  }

  .details-panel {
    padding-left: 30px;
    padding-right: 30px;
  }

  .status-pill {
    display: none;
  }

  .save-contact {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .qr-frame {
    width: 84px;
  }

  .save-contact-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 800px) {
  .page-shell {
    padding: 12px;
  }

  .business-card {
    width: min(620px, 100%);
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .brand-panel {
    min-height: 360px;
    gap: 28px;
    padding: 38px 28px 30px;
    border-right: 0;
    border-bottom: 1px solid rgba(128, 170, 255, 0.18);
  }

  .brand-panel::after {
    top: auto;
    right: 10%;
    bottom: -1px;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .brand-logo {
    width: min(100%, 450px);
  }

  .intro {
    max-width: 500px;
    text-align: center;
    margin-inline: auto;
  }

  .brand-footer {
    text-align: center;
  }

  .brand-footer::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .details-panel {
    padding: 32px 24px 28px;
  }
}

@media (max-width: 560px) {
  .contact-list {
    grid-template-columns: 1fr;
  }

  .contact-button {
    min-height: 70px;
  }

  .save-contact {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 13px;
  }

  .qr-frame {
    width: 78px;
  }

  .save-contact-copy > p:last-child {
    display: none;
  }

  .save-contact-button {
    min-height: 39px;
    padding: 9px 12px;
    font-size: 0.65rem;
  }
}

@media (max-width: 390px) {
  .page-shell {
    padding: 0;
  }

  .business-card {
    width: 100%;
    border: 0;
    border-radius: 0;
  }

  .brand-panel {
    min-height: 330px;
    padding-inline: 20px;
  }

  .details-panel {
    padding-inline: 15px;
  }

  .details-heading h1 {
    font-size: 1.42rem;
  }

  .save-contact {
    grid-template-columns: 70px minmax(0, 1fr);
    padding: 12px;
  }

  .qr-frame {
    width: 70px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .business-card {
    animation: cardEnter 650ms ease both;
  }

  .contact-button:nth-child(1) { animation-delay: 90ms; }
  .contact-button:nth-child(2) { animation-delay: 140ms; }
  .contact-button:nth-child(3) { animation-delay: 190ms; }
  .contact-button:nth-child(4) { animation-delay: 240ms; }
  .contact-button:nth-child(5) { animation-delay: 290ms; }
  .contact-button:nth-child(6) { animation-delay: 340ms; }

  .contact-button {
    animation: itemEnter 480ms ease both;
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes itemEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
