:root {
  --background: #020812;
  --background-secondary: #041426;
  --panel: #071626;
  --panel-secondary: #0a1c30;
  --text-primary: #f6f8fc;
  --text-secondary: #aeb9c7;
  --gold: #d8aa42;
  --gold-light: #f2cb68;
  --gold-dark: #89631e;
  --blue: #1677f2;
  --blue-light: #62acff;
  --border: rgba(216, 170, 66, 0.42);
  --border-strong: rgba(242, 203, 104, 0.72);
  --border-soft: rgba(255, 255, 255, 0.09);
  --shadow-deep: 0 28px 80px rgba(0, 0, 0, 0.32);
  --font-title: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--background);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(22, 119, 242, 0.13), transparent 25rem),
    radial-gradient(circle at 50% 54%, rgba(4, 66, 130, 0.12), transparent 37rem),
    linear-gradient(180deg, var(--background) 0%, #03101f 52%, var(--background) 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.background-decor {
  position: absolute;
  inset: 0 0 auto;
  height: 930px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.background-decor::before,
.background-decor::after {
  content: "";
  position: absolute;
  inset: 0;
}

.background-decor::before {
  opacity: 0.64;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(98, 172, 255, 0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle at 17% 31%, rgba(216, 170, 66, 0.88) 0 1px, transparent 1.7px),
    radial-gradient(circle at 24% 8%, rgba(98, 172, 255, 0.66) 0 1px, transparent 1.7px),
    radial-gradient(circle at 33% 22%, rgba(246, 248, 252, 0.58) 0 1px, transparent 1.7px),
    radial-gradient(circle at 43% 5%, rgba(216, 170, 66, 0.75) 0 1px, transparent 1.7px),
    radial-gradient(circle at 57% 19%, rgba(98, 172, 255, 0.68) 0 1px, transparent 1.7px),
    radial-gradient(circle at 66% 10%, rgba(216, 170, 66, 0.78) 0 1px, transparent 1.7px),
    radial-gradient(circle at 76% 29%, rgba(246, 248, 252, 0.55) 0 1px, transparent 1.7px),
    radial-gradient(circle at 89% 13%, rgba(216, 170, 66, 0.7) 0 1px, transparent 1.7px),
    radial-gradient(circle at 94% 38%, rgba(98, 172, 255, 0.7) 0 1px, transparent 1.7px);
}

.background-decor::after {
  background: radial-gradient(ellipse at center top, transparent 36%, rgba(2, 8, 18, 0.92) 82%);
}

.orbit {
  position: absolute;
  left: 50%;
  border: 1px solid rgba(98, 172, 255, 0.1);
  border-radius: 50%;
  transform: translateX(-50%);
}

.orbit-one {
  top: -310px;
  width: 1040px;
  height: 710px;
}

.orbit-two {
  top: -390px;
  width: 1330px;
  height: 890px;
  border-color: rgba(216, 170, 66, 0.08);
}

.orbit-three {
  top: -470px;
  width: 1640px;
  height: 1080px;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 910px);
  margin: 0 auto;
  padding-top: 70px;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-frame {
  position: relative;
  width: 164px;
  height: 164px;
  padding: 3px;
  border: 1px solid rgba(242, 203, 104, 0.86);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(242, 203, 104, 0.35), rgba(137, 99, 30, 0.05));
  box-shadow:
    0 0 0 5px rgba(216, 170, 66, 0.04),
    0 18px 46px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(216, 170, 66, 0.12);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.verified-badge {
  position: absolute;
  right: -4px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 4px solid var(--background);
  border-radius: 50%;
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 24px rgba(22, 119, 242, 0.38);
}

.verified-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.profile-header h1 {
  margin: 22px 0 0;
  font-family: var(--font-title);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.profile-handle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 1px;
  color: var(--blue-light);
  font-family: var(--font-title);
  font-size: clamp(1.08rem, 2.4vw, 1.34rem);
  font-weight: 700;
  text-decoration: none;
}

.profile-handle:hover {
  color: #8bc2ff;
}

.profile-handle:focus-visible,
.social-links a:focus-visible,
.link-card:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 5px;
}

.profile-bio {
  max-width: 620px;
  margin: 5px auto 0;
  color: #d7dee7;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.52;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: rgba(7, 22, 38, 0.76);
  color: var(--gold-light);
  text-decoration: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  background: rgba(10, 28, 48, 0.92);
  color: white;
}

.social-links svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links .icon-fill {
  fill: currentColor;
  stroke: none;
}

.main-links {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.link-card {
  --card-accent: rgba(216, 170, 66, 0.46);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--card-accent);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 38%),
    linear-gradient(125deg, rgba(7, 22, 38, 0.98), rgba(4, 15, 29, 0.98));
  color: var(--text-primary);
  box-shadow: var(--shadow-deep), inset 0 1px rgba(255, 255, 255, 0.035);
  text-decoration: none;
  isolation: isolate;
  opacity: 0;
  transform: translateY(12px);
  animation: card-enter 520ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.link-card:nth-child(2) {
  animation-delay: 70ms;
}

.link-card:nth-child(3) {
  animation-delay: 140ms;
}

.link-card:nth-child(4) {
  animation-delay: 210ms;
}

.link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at 82% 45%, rgba(22, 119, 242, 0.1), transparent 45%);
  transition: opacity 200ms ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), 0 0 32px rgba(216, 170, 66, 0.075);
}

.link-card:hover::after {
  opacity: 1;
}

.link-card:active {
  transform: scale(0.99);
}

.card-number {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 4;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(2, 8, 18, 0.8);
  color: var(--gold-light);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.card-media {
  position: relative;
  display: block;
  min-width: 0;
  margin: 16px 0 16px 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: #020713;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 238px;
  object-fit: cover;
  transition: transform 240ms ease;
}

.link-card:hover .card-media img {
  transform: scale(1.015);
}

.card-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 48px 26px 28px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(2, 8, 18, 0.44);
}

.card-icon-blue {
  color: var(--blue-light);
}

.card-icon-gold {
  color: var(--gold-light);
}

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

.card-title {
  display: block;
  max-width: 390px;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.7vw, 1.78rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.card-description {
  display: block;
  max-width: 390px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.45;
}

.card-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid rgba(216, 170, 66, 0.72);
  border-radius: 10px;
  color: var(--gold-light);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.card-cta svg,
.card-arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-cta svg {
  transition: transform 180ms ease;
}

.link-card:hover .card-cta svg {
  transform: translateX(3px);
}

.card-arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--gold-light);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.link-card:hover .card-arrow {
  transform: translate(3px, -50%);
}

.contact-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 30% 50%, rgba(22, 119, 242, 0.18), transparent 38%),
    linear-gradient(140deg, #031124, #020812 58%, #061b32);
}

.contact-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(98, 172, 255, 0.07) 37% 38%, transparent 39% 100%),
    linear-gradient(70deg, transparent 0 52%, rgba(216, 170, 66, 0.06) 53% 54%, transparent 55% 100%);
}

.contact-orbit {
  position: absolute;
  left: -30%;
  width: 100%;
  height: 72%;
  border: 1px solid rgba(98, 172, 255, 0.14);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.contact-orbit-two {
  width: 123%;
  height: 92%;
  border-color: rgba(216, 170, 66, 0.09);
}

.contact-whatsapp {
  position: absolute;
  left: 30px;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(216, 170, 66, 0.48);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(2, 8, 18, 0.62);
  box-shadow: 0 0 34px rgba(216, 170, 66, 0.1);
}

.contact-whatsapp svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-copy {
  position: relative;
  display: flex;
  width: 60%;
  margin-left: 30%;
  flex-direction: column;
  align-items: flex-start;
}

.contact-label {
  color: var(--blue-light);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.contact-copy strong {
  margin-top: 7px;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.18;
}

.contact-copy small {
  max-width: 220px;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  line-height: 1.4;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - 40px, 910px);
  margin: 42px auto 0;
  padding-bottom: calc(52px + env(safe-area-inset-bottom));
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-ornament {
  display: grid;
  width: min(100%, 650px);
  grid-template-columns: 1fr 30px 1fr;
  align-items: center;
  gap: 12px;
}

.footer-ornament span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 170, 66, 0.7));
}

.footer-ornament span:last-child {
  background: linear-gradient(90deg, rgba(216, 170, 66, 0.7), transparent);
}

.footer-ornament svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .footer-logo {
  width: min(70vw, 280px);
  height: auto;
  margin-top: 22px;
  opacity: 0.94;
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--blue-light);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.site-footer b {
  padding: 0 4px;
  color: var(--gold);
}

@keyframes card-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .background-decor {
    height: 760px;
  }

  .orbit-one {
    top: -245px;
    width: 720px;
    height: 520px;
  }

  .orbit-two {
    top: -315px;
    width: 920px;
    height: 660px;
  }

  .orbit-three {
    display: none;
  }

  .page-shell,
  .site-footer {
    width: min(100% - 32px, 560px);
  }

  .page-shell {
    padding-top: 48px;
  }

  .avatar-frame {
    width: 124px;
    height: 124px;
  }

  .verified-badge {
    right: -5px;
    bottom: 6px;
    width: 35px;
    height: 35px;
    border-width: 3px;
  }

  .verified-badge svg {
    width: 20px;
    height: 20px;
  }

  .profile-header h1 {
    margin-top: 18px;
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .profile-bio {
    max-width: 420px;
    margin-top: 3px;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .social-links {
    margin-top: 22px;
  }

  .social-links a {
    width: 48px;
    height: 48px;
  }

  .main-links {
    gap: 16px;
    margin-top: 34px;
  }

  .link-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    border-radius: 24px;
  }

  .card-media {
    width: auto;
    aspect-ratio: 16 / 9;
    margin: 12px 12px 0;
    border-radius: 16px;
  }

  .card-media img {
    min-height: 0;
    object-position: center top;
  }

  .card-content {
    padding: 22px 22px 24px;
  }

  .card-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
  }

  .card-title {
    max-width: none;
    padding-right: 16px;
    font-size: clamp(1.3rem, 6.2vw, 1.52rem);
  }

  .card-description {
    max-width: none;
    margin-top: 9px;
    font-size: 0.93rem;
  }

  .card-cta {
    width: 100%;
    justify-content: space-between;
    margin-top: 17px;
  }

  .card-arrow {
    display: none;
  }

  .contact-preview {
    min-height: 0;
  }

  .contact-whatsapp {
    left: 7%;
    width: 76px;
    height: 76px;
  }

  .contact-whatsapp svg {
    width: 46px;
    height: 46px;
  }

  .contact-copy {
    width: 63%;
    margin-left: 30%;
  }

  .contact-label {
    font-size: 0.52rem;
  }

  .contact-copy strong {
    font-size: clamp(0.95rem, 4.3vw, 1.2rem);
  }

  .contact-copy small {
    font-size: 0.62rem;
  }

  .site-footer {
    margin-top: 34px;
  }
}

@media (max-width: 390px) {
  .page-shell,
  .site-footer {
    width: calc(100% - 32px);
  }

  .profile-bio br {
    display: none;
  }

  .card-number {
    top: 11px;
    left: 11px;
    min-width: 40px;
    height: 40px;
  }

  .card-content {
    padding-inline: 20px;
  }

  .contact-whatsapp {
    left: 6%;
    width: 68px;
    height: 68px;
  }

  .contact-copy {
    width: 66%;
    margin-left: 29%;
  }

  .site-footer p {
    max-width: 300px;
    font-size: 0.56rem;
    line-height: 1.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .link-card {
    opacity: 1;
    transform: none;
  }
}
