:root {
  --bg-1: #f3f6fb;
  --bg-2: #e9eef8;
  --card: rgba(255, 255, 255, 0.84);
  --card-border: #d9e1f0;
  --text-main: #27364d;
  --text-soft: #6e7f99;
  --accent-a: #dbe8ff;
  --accent-b: #ecf2ff;
  --link-bg: #ffffff;
  --link-border: #dfe6f3;
  --link-hover: #f6f9ff;
  --primary: #1f57cf;
  --primary-2: #3067de;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 10%, rgba(62, 140, 255, 0.5) 0%, rgba(62, 140, 255, 0) 42%),
    radial-gradient(circle at 86% 88%, rgba(255, 166, 41, 0.5) 0%, rgba(255, 166, 41, 0) 38%),
    radial-gradient(circle at 52% 26%, rgba(114, 179, 255, 0.36) 0%, rgba(114, 179, 255, 0) 44%),
    radial-gradient(circle at 72% 16%, rgba(255, 198, 100, 0.3) 0%, rgba(255, 198, 100, 0) 36%),
    linear-gradient(150deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom));
}

.card {
  width: min(100%, 460px);
  backdrop-filter: blur(14px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 1.75rem 1.25rem;
  box-shadow: 0 16px 35px rgba(36, 53, 86, 0.14);
  position: relative;
  animation: rise 0.7s ease-out;
}

.profile {
  text-align: center;
  margin-bottom: 1.25rem;
}

.logo {
  width: min(100%, 210px);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
  background: #ffffff;
  padding: 0.7rem;
  border-radius: 18px;
  border: 1px solid #e2e8f5;
  filter: drop-shadow(0 8px 20px rgba(34, 51, 84, 0.15));
}

.company-name {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-signature {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #7f91ae;
}

.tagline {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.links-wrap {
  margin-top: 1.35rem;
}

.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.72rem;
}

.link-item {
  opacity: 0;
  transform: translateY(10px);
  animation: staggerIn 0.45s ease-out forwards;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  text-decoration: none;
  color: var(--text-main);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--link-border);
  background: var(--link-bg);
  padding: 0.72rem 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

.link-content {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.68rem;
}

.icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf3ff;
}

.link-icon {
  font-size: 0.98rem;
  width: 1rem;
  text-align: center;
  color: #3f74db;
}

.link-label {
  font-size: 0.97rem;
  line-height: 1.2;
}

.link-arrow {
  color: #9aaac3;
  font-size: 0.8rem;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(35, 53, 90, 0.14);
  background: var(--link-hover);
}

.social-link:focus-visible {
  outline: 2px solid #9db5e8;
  outline-offset: 3px;
}

.social-link.instagram .link-icon {
  color: #de4c86;
}

.social-link.linkedin .link-icon {
  color: #1969b9;
}

.social-link.facebook .link-icon {
  color: #2f65d9;
}

.social-link.whatsapp .link-icon {
  color: #16a34a;
}

.social-link.email .link-icon {
  color: #d97706;
}

.social-link.featured {
  background: linear-gradient(130deg, var(--primary-2), var(--primary));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 87, 207, 0.32);
}

.social-link.featured .icon-wrap {
  background: rgba(255, 255, 255, 0.16);
}

.social-link.featured .link-icon,
.social-link.featured .link-arrow {
  color: #ffffff;
}

.social-link.featured .link-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.93rem;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.95;
  z-index: -1;
}

.bg-shape-1 {
  width: 430px;
  height: 430px;
  background: radial-gradient(circle at 34% 34%, rgba(66, 146, 255, 0.72) 0%, rgba(124, 184, 255, 0.5) 56%, rgba(124, 184, 255, 0) 100%);
  top: -145px;
  left: -145px;
}

.bg-shape-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 32% 32%, rgba(255, 163, 34, 0.7) 0%, rgba(255, 195, 99, 0.48) 58%, rgba(255, 195, 99, 0) 100%);
  bottom: -132px;
  right: -110px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .page {
    align-items: start;
    padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(1rem, env(safe-area-inset-bottom));
  }

  .card {
    width: 100%;
    border-radius: 20px;
    padding: 1.05rem 0.85rem 0.9rem;
  }

  .profile {
    margin-bottom: 1rem;
  }

  .logo {
    width: min(100%, 180px);
    margin-bottom: 0.75rem;
    padding: 0.52rem;
    border-radius: 14px;
  }

  .company-name {
    font-size: 1.34rem;
  }

  .brand-signature {
    font-size: 0.8rem;
    margin-top: 0.08rem;
  }

  .links-wrap {
    margin-top: 1rem;
  }

  .links-list {
    gap: 0.58rem;
  }

  .social-link {
    min-height: 52px;
    border-radius: 11px;
    padding: 0.6rem 0.75rem;
  }

  .icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .link-icon {
    font-size: 0.9rem;
  }

  .link-label {
    font-size: 0.92rem;
  }

  .link-arrow {
    font-size: 0.72rem;
  }

  .social-link.featured .link-label {
    font-size: 0.86rem;
  }

  .bg-shape-1 {
    width: 300px;
    height: 300px;
    top: -120px;
    left: -120px;
  }

  .bg-shape-2 {
    width: 250px;
    height: 250px;
    bottom: -105px;
    right: -95px;
  }
}

@media (max-width: 360px) {
  .card {
    border-radius: 18px;
    padding: 0.95rem 0.72rem 0.82rem;
  }

  .logo {
    width: min(100%, 164px);
  }

  .company-name {
    font-size: 1.26rem;
  }

  .social-link {
    min-height: 50px;
    padding: 0.56rem 0.68rem;
  }

  .icon-wrap {
    width: 26px;
    height: 26px;
  }

  .link-label {
    font-size: 0.88rem;
  }

  .social-link.featured .link-label {
    font-size: 0.82rem;
  }
}

@media (hover: none) {
  .social-link:hover {
    transform: none;
    box-shadow: none;
    background: var(--link-bg);
  }

  .social-link.featured:hover {
    background: linear-gradient(130deg, var(--primary-2), var(--primary));
    box-shadow: 0 10px 22px rgba(31, 87, 207, 0.32);
  }
}
