:root {
  color-scheme: dark;
  --ink: #05070c;
  --navy: #071225;
  --navy-raised: #0d1a31;
  --gold: #f7bd35;
  --gold-bright: #ffd866;
  --white: #f8f9fc;
  --muted: #a9b1bf;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 14%, rgba(247, 189, 53, 0.22), transparent 25rem),
    linear-gradient(180deg, #0a172b 0%, var(--ink) 78%);
  color: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", sans-serif;
}

.profile {
  position: relative;
  isolation: isolate;
  width: min(100%, 28rem);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  text-align: center;
}

.profile::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.75rem;
  border: 1px solid rgba(247, 189, 53, 0.2);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(13, 26, 49, 0.68), rgba(5, 10, 19, 0.36));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 1.25rem 4rem rgba(0, 0, 0, 0.24);
}

.logo-shell {
  width: clamp(10.75rem, 46vw, 11.75rem);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0.22rem;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 102, 0.72);
  border-radius: 50%;
  background: var(--navy);
  box-shadow:
    0 1.1rem 3.5rem rgba(0, 0, 0, 0.46),
    0 0 0 0.4rem rgba(247, 189, 53, 0.07);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}

.phone {
  display: inline-block;
  margin: 0 auto;
  color: var(--gold-bright);
  font-size: clamp(1.6rem, 8vw, 1.95rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-decoration: none;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}

.phone:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 0.35rem;
  border-radius: 0.3rem;
}

.social-links {
  display: grid;
  gap: 0.9rem;
}

.social-link {
  min-height: 5rem;
  display: grid;
  grid-template-columns: 3.15rem 1fr 1.5rem;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 1rem 0.6rem 0.7rem;
  border: 1px solid rgba(247, 189, 53, 0.52);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(15, 29, 52, 0.97), rgba(7, 14, 27, 0.98));
  color: var(--white);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.2);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.social-link:hover {
  border-color: var(--gold-bright);
  background: var(--navy-raised);
}

.social-link:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 0.2rem;
}

.social-link[aria-disabled="true"] {
  cursor: default;
}

.icon-tile {
  width: 3.15rem;
  height: 3.15rem;
  display: grid;
  place-items: center;
  border-radius: 0.86rem;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  color: #07101f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.platform-icon {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

.platform-name {
  font-size: 1.08rem;
  font-weight: 730;
  letter-spacing: 0.01em;
}

.arrow {
  color: var(--gold-bright);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

@media (max-height: 40rem) {
  .profile {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .profile::before {
    inset: 0.5rem;
  }

  .logo-shell {
    width: 8.75rem;
  }

  .phone {
    margin: 0 auto;
  }

  .social-links {
    gap: 0.62rem;
  }

  .social-link {
    min-height: 3.9rem;
  }
}

@media (min-width: 42rem) {
  .profile {
    padding-inline: 1.75rem;
  }

  .logo-shell {
    width: 11.5rem;
  }
}
