:root {
  --navy: #0c1f40;
  --blue: #1769e0;
  --sky: #55b5ff;
  --yellow: #f4b740;
  --paper: #ffffff;
  --muted: #5d6470;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--navy);
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(145deg, #1769e0, #0c1f40 62%, #08152d);
  color: #090b10;
  font-family: Arial, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary,
a {
  touch-action: manipulation;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.page-shell {
  width: 100%;
  max-width: 448px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 60px rgb(0 0 0 / 0.22);
}

.hero {
  position: relative;
  z-index: 5;
  height: 230px;
  overflow: visible;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}

.gradient-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 30%, rgb(85 181 255 / 0.95), transparent 30%),
    linear-gradient(135deg, #1769e0 0%, #0c1f40 68%);
  filter: saturate(1.08);
}

.gradient-blob {
  position: absolute;
  display: block;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(48px);
  mix-blend-mode: hard-light;
  opacity: 0.55;
}

.blob-one {
  left: 4%;
  top: 0;
  background: #55b5ff;
  animation: blob-one 18s ease-in-out infinite;
}

.blob-two {
  right: 0;
  top: 10%;
  background: #1769e0;
  animation: blob-two 24s linear infinite;
}

.blob-three {
  left: 32%;
  bottom: -40%;
  background: #f4b740;
  opacity: 0.25;
  animation: blob-two 30s linear infinite reverse;
}

@keyframes blob-one {
  0%, 100% { transform: translate(-12%, -10%); }
  50% { transform: translate(24%, 22%); }
}

@keyframes blob-two {
  from { transform: rotate(0deg) translateX(12%); }
  to { transform: rotate(360deg) translateX(12%); }
}

.hero-wave {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 72px;
}

.hero-wave path {
  fill: var(--paper);
}

.avatar-frame {
  position: absolute;
  z-index: 3;
  top: 44px;
  left: 50%;
  width: 200px;
  height: 200px;
  overflow: hidden;
  transform: translateX(-50%);
  border: 4px solid #fff;
  border-radius: 50%;
  background: #dce9f7;
  box-shadow: 0 8px 28px rgb(12 31 64 / 0.2);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.03);
}

.profile-content {
  position: relative;
  z-index: 4;
  padding: 42px 24px max(24px, env(safe-area-inset-bottom));
  background: #fff;
}

.identity {
  text-align: center;
}

.identity h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.4px;
}

.verified {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
}

.verified img {
  filter: brightness(0) invert(1);
}

.identity p {
  max-width: 360px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.browser-notice {
  margin-top: 22px;
  padding: 15px 16px;
  border: 2px solid #111;
  border-radius: 14px;
  background: #fff7d6;
  text-align: left;
}

.browser-notice strong {
  display: block;
  font-size: 14px;
}

.browser-notice p {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.browser-notice button {
  min-height: 42px;
  margin-top: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.social-row a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #111;
  background: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-row a:active {
  transform: scale(0.94);
}

.social-row img {
  object-fit: contain;
}

.social-row a[data-smart-link="whatsapp"] {
  border-color: #25d366;
  background: #effff5;
}

.social-row a[data-smart-link="instagram"] {
  border-color: #c13584;
  background: linear-gradient(135deg, #833ab4, #c13584 45%, #fd1d1d 72%, #fcb045);
  box-shadow: 0 6px 16px rgb(193 53 132 / 0.2);
}

.social-row a[data-smart-link="instagram"] img {
  filter: brightness(0) invert(1);
}

.social-row a[data-smart-link="tiktok"] {
  border-color: #050505;
  background: #050505;
  box-shadow: -3px 3px 0 #25f4ee, 3px -3px 0 #fe2c55;
}

.link-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.bio-link {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.bio-link:active {
  transform: scale(0.985);
}

.bio-link.primary {
  border: 2px solid #128c7e;
  background: linear-gradient(110deg, #e7fff0, #f6fff9);
  color: #073b26;
}

.bio-link.outlined {
  border: 2px solid #111;
  background: #fff;
  color: #111;
}

.link-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.link-label > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bio-link.primary .link-arrow {
  filter: none;
}

.bio-link[data-smart-link="instagram"] {
  border-color: #c13584;
  background: linear-gradient(110deg, #fff5df 0%, #fff0f7 48%, #f3edff 100%);
  box-shadow: inset 5px 0 0 #c13584;
}

.bio-link[data-smart-link="tiktok"] {
  border-color: #111;
  background: linear-gradient(110deg, #eaffff 0%, #fff 48%, #fff0f4 100%);
  box-shadow: inset 5px 0 0 #25f4ee, inset -5px 0 0 #fe2c55;
}

.whatsapp-group {
  display: grid;
  gap: 8px;
}

.copy-number {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 7px 15px;
  border: 1px solid #25d366;
  border-radius: 999px;
  background: #f0fff5;
  color: #0b4b2c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.copy-number:active {
  transform: scale(0.97);
}

.copy-number img {
  flex: 0 0 auto;
}

.link-arrow {
  flex: 0 0 auto;
}

.services summary {
  border-color: var(--blue) !important;
  background: linear-gradient(110deg, #eef5ff, #fff9e9) !important;
  cursor: pointer;
  list-style: none;
}

.services summary::-webkit-details-marker {
  display: none;
}

.service-summary-copy {
  display: grid;
  gap: 2px;
  overflow: visible !important;
  text-align: left;
  white-space: normal !important;
}

.service-summary-copy strong {
  font-size: 15px;
  line-height: 1.1;
}

.service-summary-copy small {
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.detail-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #dce1e8;
  border-radius: 50%;
  background: #f3f5f8;
  transition: transform 0.2s ease;
}

.detail-arrow img {
  display: block;
}

.services[open] .detail-arrow {
  transform: rotate(180deg);
}

.maps-link {
  border-color: #4285f4;
  background: linear-gradient(110deg, #edf4ff 0%, #f2fbf5 38%, #fff9e8 70%, #fff0ef 100%);
  box-shadow: inset 5px 0 0 #4285f4;
}

.map-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  overflow: visible !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  white-space: normal !important;
}

.map-icon img {
  display: block;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0;
  padding: 14px 0 2px;
  list-style: none;
}

.service-card {
  --service-accent: #1769e0;
  --service-bg: #eaf2ff;
  display: flex;
  min-width: 0;
  min-height: 82px;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgb(17 24 39 / 0.08);
  border-left: 5px solid var(--service-accent);
  border-radius: 0;
  background: var(--service-bg);
  box-shadow: 4px 4px 0 rgb(12 31 64 / 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:nth-child(2) { --service-accent: #7c3aed; --service-bg: #f2edff; }
.service-card:nth-child(3) { --service-accent: #07849c; --service-bg: #e7f8fb; }
.service-card:nth-child(4) { --service-accent: #d97706; --service-bg: #fff4d9; }
.service-card:nth-child(5) { --service-accent: #c72f7d; --service-bg: #fff0f7; }
.service-card:nth-child(6) { --service-accent: #15803d; --service-bg: #eaf8ee; }
.service-card:nth-child(7) { --service-accent: #c2410c; --service-bg: #fff0e8; }
.service-card:nth-child(8) { --service-accent: #4f46e5; --service-bg: #eef0ff; }
.service-card:nth-child(9) { --service-accent: #a75b05; --service-bg: #fff7df; }
.service-card:nth-child(10) { --service-accent: #0f766e; --service-bg: #e7f8f5; }

.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0;
  background: var(--service-accent);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--service-accent) 25%, transparent);
}

.service-icon img {
  filter: brightness(0) invert(1);
}

.service-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.service-copy strong {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.service-copy small {
  color: #596170;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.services[open] .service-list {
  animation: service-list-reveal 0.28s ease-out both;
}

.services[open] .service-card {
  animation: service-card-rise 0.38s ease-out both;
}

.services[open] .service-card:nth-child(2) { animation-delay: 0.03s; }
.services[open] .service-card:nth-child(3) { animation-delay: 0.06s; }
.services[open] .service-card:nth-child(4) { animation-delay: 0.09s; }
.services[open] .service-card:nth-child(5) { animation-delay: 0.12s; }
.services[open] .service-card:nth-child(6) { animation-delay: 0.15s; }
.services[open] .service-card:nth-child(7) { animation-delay: 0.18s; }
.services[open] .service-card:nth-child(8) { animation-delay: 0.21s; }
.services[open] .service-card:nth-child(9) { animation-delay: 0.24s; }
.services[open] .service-card:nth-child(10) { animation-delay: 0.27s; }

@keyframes service-list-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes service-card-rise {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (hover: hover) {
  .social-row a:hover {
    transform: translateY(-2px);
  }

  .bio-link:hover {
    transform: scale(1.012);
  }

  .maps-link:hover {
    background: linear-gradient(110deg, #e4efff 0%, #eaf8ef 38%, #fff4d4 70%, #ffe8e6 100%);
  }

  .copy-number:hover {
    border-color: #128c7e;
    background: #e7fff0;
  }

  .service-card:hover {
    transform: translateX(3px);
    box-shadow: 6px 6px 0 rgb(12 31 64 / 0.12);
  }
}

@media (max-width: 360px) {
  .profile-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .identity h1 {
    font-size: 30px;
  }

  .bio-link {
    padding-right: 16px;
    padding-left: 16px;
    font-size: 14px;
  }

  .service-card {
    min-height: 80px;
    padding: 12px;
  }
}

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