:root {
  --bg: #071020;
  --bg-deep: #050b17;
  --surface: #0f1d38;
  --surface-strong: #142748;
  --text: #f7f9ff;
  --muted: #a8b5cf;
  --primary: #7a65ff;
  --primary-2: #9d7cff;
  --teal: #18c8b0;
  --cyan: #48c7f4;
  --line: rgba(255, 255, 255, 0.12);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg-deep);
  color-scheme: dark;
  overflow-x: clip;
}

body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 5%, rgba(72, 199, 244, 0.11), transparent 30rem),
    radial-gradient(circle at 92% 24%, rgba(122, 101, 255, 0.15), transparent 31rem),
    linear-gradient(145deg, #081329 0%, #050c19 68%, #071324 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.025);
  background: radial-gradient(circle at 50% 0%, rgba(72, 199, 244, .04), transparent 52%);
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 80%);
  pointer-events: none;
}

a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(72, 199, 244, 0.95);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  color: #081329;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus { transform: none; }

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  pointer-events: none;
}

.ambient-one {
  top: -160px;
  right: -170px;
  width: 360px;
  height: 360px;
  background: rgba(122, 101, 255, 0.18);
}

.ambient-two {
  bottom: -190px;
  left: -170px;
  width: 380px;
  height: 380px;
  background: rgba(24, 200, 176, 0.12);
}

.connect-app {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - 24px, 520px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  flex-direction: column;
  padding:
    max(14px, env(safe-area-inset-top))
    0
    max(12px, env(safe-area-inset-bottom));
}

.connect-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 4px 10px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(24, 200, 176, 0.12);
}

.brand span { display: grid; gap: 0; }
.brand strong { font-size: 0.86rem; line-height: 1.05; }
.brand small { color: #8e9bb4; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.connect-label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #9facbf;
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.connect-label i,
.profile-signal i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(24, 200, 176, 0.08), 0 0 16px rgba(24, 200, 176, 0.75);
}

.contact-card {
  position: relative;
  display: grid;
  gap: 17px;
  margin-block: auto;
  overflow: hidden;
  padding: clamp(21px, 6vw, 30px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 29px;
  background:
    radial-gradient(circle at 88% 0%, rgba(99, 94, 255, 0.14), transparent 34%),
    linear-gradient(155deg, rgba(17, 31, 59, 0.96), rgba(8, 18, 37, 0.97));
  box-shadow:
    0 30px 80px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.08);
  isolation: isolate;
}

.contact-card::after {
  position: absolute;
  z-index: -1;
  right: -120px;
  bottom: -145px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(72, 199, 244, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(72,199,244,.018), 0 0 0 82px rgba(122,101,255,.012);
  content: "";
}

.profile {
  position: relative;
  padding: 1px 1px 17px;
  border-bottom: 1px solid var(--line);
}

.profile-kicker {
  margin-bottom: 12px;
  color: #72dfd2;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-monogram {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid rgba(122,101,255,.22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(122,101,255,.18), rgba(72,199,244,.07));
  color: #dcd7ff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.profile h1 {
  max-width: calc(100% - 58px);
  margin: 0;
  font-size: clamp(2.2rem, 11vw, 3.25rem);
  letter-spacing: -.055em;
  line-height: 1;
}

.profile-role {
  margin: 9px 0 0;
  color: #cfd8ea;
  font-size: clamp(.96rem, 4vw, 1.08rem);
  font-weight: 760;
  letter-spacing: .01em;
}

.profile-role span { color: var(--primary-2); }

.profile-description {
  max-width: 35ch;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.profile-signal {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  color: #91a2bc;
  font-size: .7rem;
  font-weight: 720;
}

.actions { display: grid; gap: 9px; }

.action {
  display: grid;
  min-width: 0;
  min-height: 68px;
  grid-template-columns: 42px minmax(0, 1fr) 23px;
  gap: 12px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 17px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.action:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.055);
}

.action-whatsapp {
  border-color: rgba(76, 222, 178, .25);
  background: linear-gradient(110deg, rgba(24,200,176,.16), rgba(55,118,177,.11));
  box-shadow: 0 14px 34px rgba(7, 92, 88, .09), inset 0 1px 0 rgba(255,255,255,.07);
}

.action-linkedin { border-color: rgba(72, 151, 244, .19); }
.action-contact { border-color: rgba(145, 125, 255, .2); }

.action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  color: #76e4d5;
}

.action-linkedin .action-icon { color: #76b5ff; }
.action-website .action-icon { color: #a99cff; }
.action-contact .action-icon { color: #c4b8ff; }

.action-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.action-icon-text { font-size: 1rem; font-weight: 900; }
.action-icon-text::before { content: "in"; }
.action-copy { display: grid; min-width: 0; gap: 1px; }
.action-copy strong { overflow-wrap: anywhere; font-size: .94rem; line-height: 1.2; }
.action-copy small { overflow-wrap: anywhere; color: #91a0b8; font-size: .72rem; line-height: 1.35; }
.action-arrow { display: block; width: 18px; height: 18px; background: currentColor; color: #70809b; }
.action-arrow-up { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11 11 5M6 5h5v5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11 11 5M6 5h5v5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.action-arrow-right { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.action-arrow-down { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M4 9l4 4 4-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M4 9l4 4 4-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.action-whatsapp .action-arrow { color: #6ce2d0; }

.action[aria-disabled="true"] { pointer-events: none; opacity: .72; }

.share-button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 2px;
  padding: 10px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #aab7cc;
  cursor: pointer;
  font-weight: 760;
}

.share-button:hover { background: rgba(255,255,255,.045); color: #fff; }
.share-button svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.share-status { min-height: 0; margin: 0; color: #ffcfaa; font-size: .72rem; text-align: center; }
.share-status:empty { display: none; }

.connect-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 4px 0;
  color: #63718a;
  font-size: .65rem;
}

.connect-footer span::after { margin-left: 8px; content: "/"; }
.connect-footer a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.connect-footer a:hover { color: #aab6cb; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 740px) {
  .connect-app { width: min(100% - 48px, 930px); padding-block: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-bottom)); }
  .connect-header { padding-inline: 7px; }
  .contact-card { grid-template-columns: minmax(270px, .82fr) minmax(360px, 1.18fr); gap: clamp(32px, 6vw, 64px); align-items: center; padding: clamp(36px, 5vw, 58px); }
  .profile { align-self: stretch; display: flex; justify-content: center; flex-direction: column; padding: 0 clamp(22px, 4vw, 46px) 0 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .profile h1 { max-width: 100%; font-size: clamp(3.1rem, 5.4vw, 4.65rem); }
  .profile-monogram { top: auto; right: clamp(22px, 4vw, 46px); bottom: 2px; }
  .profile-description { margin-top: 16px; font-size: 1rem; }
  .profile-signal { margin-top: 20px; }
  .actions { gap: 11px; }
  .action { min-height: 74px; padding-inline: 15px; }
}

@media (max-width: 350px) {
  .connect-app { width: min(100% - 18px, 520px); }
  .contact-card { gap: 13px; padding: 18px 16px; border-radius: 24px; }
  .profile { padding-bottom: 13px; }
  .profile-kicker { margin-bottom: 9px; font-size: .61rem; }
  .profile h1 { font-size: 2.15rem; }
  .profile-description { font-size: .81rem; }
  .profile-signal { margin-top: 9px; }
  .actions { gap: 7px; }
  .action { min-height: 63px; grid-template-columns: 39px minmax(0, 1fr) 20px; gap: 10px; padding: 8px 10px; border-radius: 15px; }
  .action-icon { width: 39px; height: 39px; border-radius: 12px; }
  .action-copy strong { font-size: .9rem; }
  .action-copy small { font-size: .68rem; }
}

@media (max-height: 825px) and (max-width: 739px) {
  .connect-app { padding-top: max(8px, env(safe-area-inset-top)); }
  .connect-header { min-height: 52px; padding-bottom: 5px; }
  .brand img { width: 38px; height: 38px; }
  .contact-card { gap: 12px; padding-block: 17px; }
  .profile { padding-bottom: 12px; }
  .profile-description { margin-top: 7px; }
  .profile-signal { margin-top: 8px; }
  .action { min-height: 61px; }
  .share-button { min-height: 42px; padding-block: 7px; }
  .connect-footer { min-height: 42px; padding-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
