:root {
  color-scheme: dark;
  --ink: #05080e;
  --card: #0b111c;
  --surface: #111a28;
  --white: #f7faff;
  --soft: #b7c3d3;
  --muted: #7f8da2;
  --blue: #0b7cff;
  --blue-light: #6cb7ff;
  --line: rgba(160, 190, 230, .15);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body { min-width: 320px; margin: 0; background: var(--ink); color: var(--white); font-family: "Segoe UI", Arial, sans-serif; }
a { color: inherit; }

.card-page {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 12% 8%, rgba(26, 103, 214, .25), transparent 33%),
    radial-gradient(circle at 88% 92%, rgba(0, 77, 181, .18), transparent 31%),
    linear-gradient(145deg, #07101d 0%, #03060b 48%, #080d15 100%);
}

.ambient { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(90px); opacity: .2; }
.ambient-one { width: 330px; height: 330px; top: -170px; right: -90px; background: #147dff; }
.ambient-two { width: 260px; height: 260px; bottom: -150px; left: -110px; background: #0057c9; }

.digital-card {
  position: relative;
  width: min(100%, 720px);
  overflow: hidden;
  border: 1px solid rgba(153, 188, 232, .19);
  border-radius: 30px;
  background: linear-gradient(148deg, rgba(17, 25, 39, .98), rgba(6, 10, 17, .99));
  box-shadow: 0 40px 110px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 255, 255, .025) inset, 0 1px 0 rgba(255, 255, 255, .06) inset;
}

.digital-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,.055), transparent 24%, transparent 72%, rgba(24,111,241,.045));
}

.brand-bar {
  position: relative;
  z-index: 1;
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
}

.brand-bar a { display: flex; align-items: center; }
.brand-bar img { display: block; width: 184px; height: 76px; object-fit: contain; object-position: left center; image-rendering: auto; }
.card-label { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: 11px; font-weight: 650; letter-spacing: .04em; }
.card-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 12px rgba(54, 151, 255, .85); }

.identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 38px 34px 36px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.identity-glow { position: absolute; z-index: -2; width: 360px; height: 210px; top: -100px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: rgba(12, 109, 246, .22); filter: blur(72px); }
.intro { margin: 0 0 9px; color: var(--blue-light); font-size: 11px; font-weight: 720; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; color: var(--white); font-size: clamp(36px, 7vw, 52px); line-height: 1.04; letter-spacing: -.052em; font-weight: 720; }
.role-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; color: #dbe6f4; font-size: 14px; font-weight: 600; }
.role-line span { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 9px rgba(11,124,255,.75); }
.positioning { max-width: 500px; margin: 24px auto 0; color: var(--soft); font-size: 17px; line-height: 1.48; letter-spacing: -.022em; }
.tagline-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; color: var(--blue-light); font-size: 11px; font-weight: 720; letter-spacing: .11em; text-transform: uppercase; }

.connect { position: relative; z-index: 1; padding: 28px; }
.save-contact {
  min-height: 88px;
  display: grid;
  grid-template-columns: 54px 1fr 38px;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid rgba(139, 204, 255, .38);
  border-radius: 19px;
  color: white;
  background: linear-gradient(118deg, #075edb 0%, #0b7cff 48%, #35a7ff 100%);
  box-shadow: 0 18px 42px rgba(0, 103, 235, .28), 0 1px 0 rgba(255,255,255,.25) inset;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.save-contact:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 23px 52px rgba(0, 103, 235, .34), 0 1px 0 rgba(255,255,255,.28) inset; }
.save-icon { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 16px; background: rgba(1, 27, 70, .2); }
.save-icon svg { width: 31px; height: 31px; }
.save-copy { min-width: 0; }
.save-copy strong, .save-copy small { display: block; }
.save-copy strong { font-size: 19px; letter-spacing: -.02em; }
.save-copy small { margin-top: 4px; color: rgba(255,255,255,.8); font-size: 12px; font-weight: 560; line-height: 1.35; }
.save-arrow { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-size: 17px; }

.action-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.action-list a {
  min-height: 92px;
  display: grid;
  grid-template-columns: 52px 1fr 30px;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(23,34,53,.9), rgba(11,17,28,.94));
  box-shadow: 0 12px 30px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.035) inset;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.action-list a:hover { transform: translateY(-2px); border-color: rgba(91,169,255,.46); background: linear-gradient(145deg, rgba(28,45,71,.96), rgba(12,21,35,.98)); }
.action-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(95, 171, 255, .29); border-radius: 15px; color: #79bdff; background: linear-gradient(145deg, rgba(15,113,245,.18), rgba(8,33,69,.35)); box-shadow: 0 8px 22px rgba(0, 88, 211, .13); }
.action-icon svg { width: 29px; height: 29px; filter: drop-shadow(0 0 7px rgba(56, 154, 255, .3)); }
.action-copy { min-width: 0; }
.action-copy strong, .action-copy small { display: block; }
.action-copy strong { font-size: 15px; line-height: 1.2; }
.action-copy small { overflow-wrap: anywhere; margin-top: 5px; color: #9cabc0; font-size: 11px; line-height: 1.3; }
.action-arrow { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(132,166,209,.17); border-radius: 50%; color: var(--blue-light); font-size: 13px; }

.save-contact:focus-visible, .action-list a:focus-visible, .brand-bar a:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.card-footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 28px; border-top: 1px solid var(--line); color: #718198; font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 620px) {
  .card-page { place-items: start center; overflow: visible; padding: 10px; }
  .digital-card { border-radius: 24px; }
  .brand-bar { min-height: 92px; padding: 10px 20px; }
  .brand-bar img { width: 156px; height: 70px; }
  .card-label { font-size: 10px; }
  .identity { padding: 32px 22px 30px; }
  h1 { font-size: clamp(34px, 9.2vw, 43px); }
  .positioning { margin-top: 21px; font-size: 16px; }
  .connect { padding: 22px; }
  .action-list { grid-template-columns: 1fr; gap: 11px; }
  .action-list a { min-height: 82px; grid-template-columns: 52px 1fr 30px; padding: 14px; }
  .action-copy strong { font-size: 16px; }
  .action-copy small { font-size: 12px; }
  .card-footer { padding: 0 22px; }
}

@media (max-width: 390px) {
  .card-page { padding: 6px; }
  .brand-bar { padding: 9px 16px; }
  .brand-bar img { width: 143px; }
  .card-label { width: 88px; line-height: 1.25; }
  .identity { padding-inline: 18px; }
  .connect { padding: 18px; }
  .save-contact { grid-template-columns: 48px 1fr 32px; gap: 12px; padding: 14px; }
  .save-icon { width: 48px; height: 48px; border-radius: 14px; }
  .save-icon svg { width: 28px; height: 28px; }
  .save-copy strong { font-size: 17px; }
  .save-copy small { font-size: 11px; }
  .action-list a { grid-template-columns: 48px 1fr 28px; gap: 12px; }
  .action-icon { width: 48px; height: 48px; }
  .action-icon svg { width: 27px; height: 27px; }
  .card-footer { padding-inline: 18px; font-size: 9px; }
}

@media (prefers-reduced-motion: no-preference) {
  .digital-card { animation: rise .48s cubic-bezier(.2,.8,.2,1) both; }
  .save-contact { animation: settle .58s .08s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.992); } }
  @keyframes settle { from { opacity: 0; transform: translateY(7px); } }
}
