:root {
  color-scheme: light;
  --page: #f4f6f8;
  --page-deep: #e8edf2;
  --content-bg: #edf2f6;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --ink: #101820;
  --muted: #657380;
  --line: rgba(31, 74, 105, 0.14);
  --brand: #23658d;
  --brand-deep: #123b55;
  --green: #1eaa83;
  --green-bright: #31d2a1;
  --amber: #d89b45;
  --hero-ink: #f7f9fb;
  --hero-muted: #b8c5cf;
  --shadow: 0 18px 48px rgba(26, 47, 66, 0.12);
  --dock: rgba(249, 251, 253, 0.88);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #090e14;
  --page-deep: #0c131c;
  --content-bg: #111b26;
  --surface: rgba(23, 36, 49, 0.82);
  --surface-strong: rgba(25, 40, 54, 0.96);
  --ink: #f3f7f8;
  --muted: #91a2ad;
  --line: rgba(142, 181, 202, 0.2);
  --brand: #68b7e3;
  --brand-deep: #173f58;
  --green: #35d3a4;
  --green-bright: #52e2b6;
  --amber: #e4ad60;
  --hero-ink: #f7fbff;
  --hero-muted: #a9c1ce;
  --shadow: 0 24px 62px rgba(0, 0, 0, 0.34);
  --dock: rgba(10, 17, 25, 0.88);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--content-bg);
  color: var(--ink);
  transition: background-color 220ms ease, color 220ms ease;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
}

.page-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--content-bg);
  padding: 0 0 calc(88px + env(safe-area-inset-bottom));
}

.profile-hero {
  width: 100%;
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background:
    linear-gradient(142deg, rgba(30, 94, 132, 0.46), transparent 42%),
    linear-gradient(165deg, #102b3b 0%, #0b1117 58%, #17130e 100%);
  color: var(--hero-ink);
}

:root[data-theme="dark"] .profile-hero {
  background:
    linear-gradient(142deg, rgba(31, 103, 149, 0.44), transparent 42%),
    linear-gradient(160deg, #102d42 0%, #0a1018 60%, #14111d 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  min-height: 240px;
  margin: 0 auto;
  padding: 17px 16px 24px;
}

.profile-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: 58px;
  right: max(-82px, calc((100vw - 1040px) / 2 - 82px));
  border: 1px solid rgba(191, 225, 226, 0.13);
  border-radius: 42px;
  transform: rotate(12deg);
  pointer-events: none;
}

.brand-header,
.profile {
  position: relative;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-lockup > div {
  min-width: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  object-fit: contain;
  padding: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.brand-title,
.brand-domain,
.profile-role,
.section-kicker,
.section-heading h2,
.page-footer p {
  margin: 0;
}

.brand-title {
  max-width: none;
  color: #91cdec;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
  white-space: nowrap;
}

.brand-domain {
  max-width: 172px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--hero-muted);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.09);
  color: #f5fbff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.theme-toggle {
  padding: 0;
  transition: background 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-icon {
  width: 17px;
  height: 17px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon,
:root[data-theme="dark"] .theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.profile {
  display: block;
  max-width: 620px;
  margin-top: 25px;
}

.avatar-ring {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(145deg, #77c6ed, #286f9c 64%, #d8a15b);
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.28);
}

.avatar-anchor {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1040px;
  height: 0;
  margin: 0 auto;
}

.profile-avatar {
  position: absolute;
  top: -85px;
  left: 20px;
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid #10262a;
  border-radius: 50%;
  background: #10262a;
  object-fit: cover;
}

.profile-copy {
  min-width: 0;
}

.profile-copy h1 {
  margin: 0;
  color: var(--hero-ink);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.profile-role {
  margin-top: 7px;
  color: #70c1eb;
  font-size: 13px;
  font-weight: 800;
}

.content {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0 auto;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: var(--content-bg);
  padding: 94px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

:root[data-theme="dark"] .content {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section-heading,
.event-banner,
.contact-panel,
.page-footer {
  width: calc(100% - 24px);
  max-width: 992px;
  margin-right: auto;
  margin-left: auto;
}

.section-heading,
.event-banner,
.contact-panel {
  max-width: 840px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 5px 7px;
}

.section-kicker {
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
}

.availability {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.availability span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(26, 170, 131, 0.1);
  animation: availability-pulse 1.8s ease-in-out infinite;
}

.event-banner {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 84%, var(--brand) 6%);
  padding: 8px 12px;
}

.event-banner[hidden] {
  display: none;
}

.event-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: rgba(35, 101, 141, 0.12);
  color: var(--brand);
}

.event-icon svg {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-banner small,
.event-banner strong {
  display: block;
}

.event-banner small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-banner strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.app-dock {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
}

:root[data-theme="dark"] .app-dock {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.contact-row {
  display: flex;
  min-width: 0;
  aspect-ratio: 1.12;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: 0 12px 30px rgba(26, 47, 66, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  padding: 8px 6px;
  animation: content-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
  backdrop-filter: blur(24px) saturate(1.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.contact-row:hover {
  border-color: color-mix(in srgb, var(--brand) 42%, transparent);
  box-shadow: 0 16px 34px rgba(26, 70, 101, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transform: translateY(-2px);
}

.contact-row:nth-child(2) {
  animation-delay: 45ms;
}

.contact-row:nth-child(3) {
  animation-delay: 90ms;
}

.contact-row:nth-child(4) {
  animation-delay: 135ms;
}

.contact-row:nth-child(5) {
  animation-delay: 180ms;
}

.contact-row:nth-child(6) {
  animation-delay: 225ms;
}

.row-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
}

.row-icon svg {
  width: 21px;
  height: 21px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-icon-blue {
  background: rgba(53, 143, 194, 0.12);
  color: #287cad;
}

.row-icon-green {
  background: rgba(26, 170, 131, 0.12);
  color: var(--green);
}

.row-icon-amber {
  background: rgba(216, 155, 69, 0.13);
  color: var(--amber);
}

.row-icon-violet {
  background: rgba(122, 92, 196, 0.12);
  color: #765bc3;
}

.row-icon-instagram {
  background: rgba(214, 58, 135, 0.11);
  color: #ca3c83;
}

.row-icon-linkedin {
  background: rgba(10, 102, 194, 0.12);
  color: #0a66c2;
}

.row-icon-phone,
.row-icon-qr,
.row-icon-share {
  background: rgba(35, 101, 141, 0.12);
  color: var(--brand);
}

.row-icon-whatsapp {
  background: rgba(30, 170, 131, 0.13);
  color: var(--green);
}

.row-icon-calendar {
  background: rgba(224, 165, 64, 0.13);
  color: #bf7a16;
}

.desktop-action {
  display: none;
}

.row-copy {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.row-copy strong,
.row-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-copy strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.row-copy small {
  display: none;
}

.row-arrow {
  display: none;
}

.page-footer {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 8px 6px;
  color: var(--muted);
}

.page-footer img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  opacity: 0.6;
}

:root[data-theme="dark"] .page-footer img {
  padding: 2px;
  background: white;
  opacity: 0.8;
}

.page-footer p {
  font-size: 11px;
  font-weight: 650;
}

.modal-layer[hidden] {
  display: none;
}

.modal-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 12px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 14, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.qr-dialog {
  position: relative;
  width: min(100%, 390px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  padding: 18px;
  animation: modal-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.modal-header p,
.modal-header h2,
.qr-help {
  margin: 0;
}

.modal-header p {
  color: var(--brand);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-header h2 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 20px;
}

.modal-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--muted);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
}

.qr-frame {
  width: min(72vw, 250px);
  margin: 18px auto 12px;
  overflow: hidden;
  border: 10px solid white;
  border-radius: 20px;
  background: white;
  box-shadow: 0 16px 38px rgba(16, 39, 57, 0.12);
}

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

.qr-help {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.copy-link-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  border-radius: 15px;
  background: var(--brand-deep);
  color: white;
  font-size: 13px;
  font-weight: 850;
}

.copy-link-button svg {
  width: 17px;
  height: 17px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.modal-open {
  overflow: hidden;
}

.app-dock {
  position: fixed;
  z-index: 30;
  right: 10px;
  left: 10px;
  bottom: max(9px, env(safe-area-inset-bottom));
  width: auto;
  max-width: 500px;
  min-height: 74px;
  margin-right: auto;
  margin-left: auto;
  border-radius: 27px;
  background: var(--dock);
  animation: dock-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dock-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 72px 1fr 1fr;
  min-height: 74px;
  align-items: center;
  padding: 5px 7px;
}

.dock-action {
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 17px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dock-action:hover {
  background: rgba(41, 124, 173, 0.08);
  color: var(--ink);
}

.dock-action:active {
  transform: scale(0.94);
}

.dock-action svg {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-main-wrap {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 64px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dock-main {
  position: absolute;
  top: -22px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 5px solid color-mix(in srgb, var(--dock) 92%, transparent);
  border-radius: 50%;
  background: linear-gradient(145deg, #38daa8, #149a75);
  color: white;
  box-shadow: 0 13px 28px rgba(20, 154, 117, 0.36);
  transition: transform 160ms ease;
}

.dock-main:hover {
  transform: translateY(-2px);
}

.dock-main:active {
  transform: scale(0.94);
}

.dock-main svg {
  width: 25px;
  height: 25px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes dock-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes availability-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(30, 170, 131, 0.08);
    transform: scale(0.94);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(30, 170, 131, 0.18);
    transform: scale(1.08);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 700px) {
  .profile-hero {
    min-height: 280px;
  }

  .hero-inner {
    min-height: 280px;
    padding: 20px 24px 26px;
  }

  .profile {
    max-width: 760px;
    margin-top: 25px;
  }

  .avatar-ring {
    width: 170px;
    height: 170px;
  }

  .profile-avatar {
    top: -85px;
    left: 24px;
  }

  .profile-copy h1 {
    font-size: 48px;
  }

  .content {
    padding: 105px 0 0;
  }

  .contact-panel {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .modal-layer {
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-shell {
    padding-bottom: 24px;
  }

  .section-heading,
  .event-banner,
  .contact-panel {
    max-width: 760px;
  }

  .contact-panel {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .desktop-action {
    display: flex;
  }

  .app-dock {
    display: none;
  }
}

@media (max-width: 360px) {
  .profile-hero {
    min-height: 225px;
  }

  .hero-inner {
    min-height: 225px;
    padding: 14px 13px 21px;
  }

  .brand-domain {
    max-width: 136px;
  }

  .brand-lockup {
    gap: 7px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 9px;
  }

  .header-actions {
    gap: 5px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .profile {
    margin-top: 20px;
  }

  .avatar-ring {
    width: 170px;
    height: 170px;
  }

  .profile-avatar {
    top: -85px;
    left: 15px;
  }

  .profile-copy h1 {
    font-size: 30px;
  }

  .content {
    padding-top: 98px;
  }

  .section-heading,
  .contact-panel,
  .page-footer {
    width: calc(100% - 18px);
  }

  .dock-inner {
    grid-template-columns: 1fr 1fr 64px 1fr 1fr;
    padding-inline: 4px;
  }

  .dock-action {
    font-size: 8px;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .page-shell {
    padding-bottom: 0;
  }

  .profile-hero,
  .hero-inner {
    min-height: 230px;
  }

  .hero-inner {
    padding: 18px 24px 24px;
  }

  .profile {
    margin-top: 20px;
  }

  .profile-copy h1 {
    font-size: 42px;
  }

  .avatar-ring {
    width: 170px;
    height: 170px;
  }

  .profile-avatar {
    top: -85px;
  }

  .content {
    min-height: 0;
    padding-top: 100px;
    padding-bottom: 24px;
  }

  .app-dock {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    width: calc(100% - 32px);
    max-width: 500px;
    margin: 24px auto max(8px, env(safe-area-inset-bottom));
    animation: none;
  }

  .dock-main {
    top: -18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
