:root {
  --brand: #9f009f;
  --brand-deep: #760078;
  --brand-bright: #bd12bd;
  --brand-soft: #f8eafa;
  --ink: #161319;
  --muted: #5d5963;
  --line: #dedce2;
  --surface: #ffffff;
  --shadow: 0 12px 34px rgb(39 20 48 / 9%);
  --shadow-soft: 0 8px 22px rgb(34 24 39 / 7%);
  --radius: 22px;
  --focus: 0 0 0 4px rgb(159 0 159 / 18%);
}

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

html {
  min-width: 320px;
  background: #fafafa;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 24%, rgb(182 76 206 / 11%), transparent 24rem),
    radial-gradient(circle at 16% 88%, rgb(159 0 159 / 7%), transparent 22rem),
    #fbfbfc;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.links-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: start center;
  overflow: hidden;
}

.links-page::before,
.links-page::after {
  position: fixed;
  z-index: 0;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgb(170 25 184 / 8%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.links-page::before {
  top: 13rem;
  right: -25rem;
  box-shadow:
    -3rem 4rem 0 -1px rgb(170 25 184 / 4%),
    -7rem 9rem 0 -1px rgb(170 25 184 / 3%);
}

.links-page::after {
  bottom: -28rem;
  left: -22rem;
}

.links-card {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-height: 100vh;
  padding: 30px clamp(20px, 6vw, 52px) 34px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 97%), rgb(255 255 255 / 91%)),
    var(--surface);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  width: clamp(180px, 40vw, 250px);
  border-radius: 10px;
}

.brand:focus-visible,
.language-button:focus-visible,
.link-button:focus-visible,
.social-links a:focus-visible,
.site-address:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.language-switcher {
  display: flex;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow-soft);
}

.language-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-items: center;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.language-button:hover {
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.language-button.is-active {
  border-color: var(--brand);
  background: #fff;
}

.language-button img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.intro {
  max-width: 650px;
  margin: 68px auto 38px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 7.4vw, 4.25rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

h1 strong {
  display: block;
  color: var(--brand);
  font-weight: inherit;
}

.subtitle {
  max-width: 550px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 3.4vw, 1.48rem);
  line-height: 1.45;
}

.primary-links {
  display: grid;
  gap: 12px;
}

.link-button {
  display: grid;
  min-height: 82px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 88%);
  box-shadow: var(--shadow-soft);
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-button:hover {
  border-color: rgb(159 0 159 / 45%);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.link-button--primary {
  min-height: 92px;
  border: 0;
  color: #fff;
  background: linear-gradient(105deg, var(--brand-bright), var(--brand-deep));
  box-shadow: 0 14px 30px rgb(129 0 131 / 20%);
  font-size: clamp(1.28rem, 4vw, 1.65rem);
  font-weight: 760;
  grid-template-columns: 1fr 36px;
}

.link-button--primary:hover {
  box-shadow: 0 18px 34px rgb(129 0 131 / 28%);
}

.link-button--specialist {
  border-color: rgb(159 0 159 / 38%);
  background: linear-gradient(105deg, #fff, #fcf5fd);
}

.link-button--whatsapp {
  border-color: rgb(37 211 102 / 42%);
  background: linear-gradient(105deg, #f4fff7, #e9fcef);
}

.link-button--whatsapp:hover {
  border-color: #25d366;
  box-shadow: 0 12px 28px rgb(18 140 74 / 16%);
}

.link-icon--whatsapp {
  color: #128c4a;
  border-color: rgb(37 211 102 / 24%);
  background: #ffffff;
}

.link-button--whatsapp .arrow {
  color: #128c4a;
}

.link-icon {
  display: grid;
  width: 50px;
  height: 50px;
  color: var(--brand);
  border: 1px solid rgb(159 0 159 / 14%);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, var(--brand-soft));
  box-shadow: 0 6px 16px rgb(159 0 159 / 8%);
  font-size: 1.75rem;
  font-weight: 500;
  place-items: center;
}

.link-icon--spark {
  font-size: 1.5rem;
}

.link-label {
  min-width: 0;
  font-size: clamp(1.06rem, 3.6vw, 1.35rem);
  font-weight: 690;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.arrow {
  color: var(--brand);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 160ms ease;
}

.link-button--primary .arrow {
  color: #fff;
}

.link-button:hover .arrow {
  transform: translateX(4px);
}

.proof {
  display: flex;
  margin-top: 22px;
  padding: 19px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 88%);
  box-shadow: var(--shadow-soft);
  align-items: center;
  gap: 16px;
}

.proof-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 50%;
  background: var(--brand);
  font-size: 1.4rem;
  font-weight: 800;
  place-items: center;
}

.proof p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 3vw, 1.08rem);
  font-weight: 620;
  line-height: 1.45;
}

.proof p span {
  color: var(--brand);
}

.links-footer {
  display: grid;
  margin-top: 30px;
  justify-items: center;
  gap: 22px;
}

.social-links {
  display: flex;
  gap: 18px;
}

.social-links a {
  display: grid;
  width: 54px;
  height: 54px;
  color: var(--brand);
  border: 1px solid rgb(159 0 159 / 12%);
  border-radius: 50%;
  background: var(--brand-soft);
  font-size: 1.35rem;
  font-weight: 800;
  place-items: center;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-links a:hover {
  color: #fff;
  background: var(--brand);
  transform: translateY(-2px);
}

.instagram-mark {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 7px;
}

.instagram-mark::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.instagram-mark::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.youtube-mark {
  font-size: 1.15rem;
  transform: translateX(1px);
}

.site-address {
  display: inline-flex;
  color: #77737b;
  border-radius: 8px;
  font-size: 0.95rem;
  align-items: center;
  gap: 9px;
}

.site-address span {
  color: var(--brand);
  font-size: 0.55rem;
}

@media (min-width: 800px) {
  .links-page {
    padding: 38px 20px;
  }

  .links-card {
    min-height: auto;
    border: 1px solid rgb(31 20 35 / 7%);
    border-radius: 34px;
    box-shadow: 0 24px 80px rgb(46 28 51 / 10%);
  }
}

@media (max-width: 560px) {
  .links-card {
    padding: 22px 16px 30px;
  }

  .brand {
    width: 170px;
  }

  .language-switcher {
    padding: 4px;
  }

  .language-button {
    width: 38px;
    height: 38px;
    padding: 4px;
  }

  .language-button img {
    width: 28px;
    height: 28px;
  }

  .intro {
    margin: 52px auto 32px;
  }

  .eyebrow {
    font-size: 0.62rem;
  }

  .link-button {
    min-height: 76px;
    padding: 12px 16px;
    border-radius: 18px;
    grid-template-columns: 48px minmax(0, 1fr) 26px;
    gap: 11px;
  }

  .link-button--primary {
    min-height: 84px;
    grid-template-columns: 1fr 30px;
  }

  .link-icon {
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
  }

  .arrow {
    font-size: 1.65rem;
  }

  .proof {
    padding: 17px;
  }

  .proof p span {
    display: none;
  }

  .proof p {
    display: grid;
    gap: 2px;
  }
}

@media (max-width: 390px) {
  .topbar {
    gap: 10px;
  }

  .brand {
    width: 148px;
  }

  .language-button {
    width: 34px;
    height: 34px;
  }

  .language-button img {
    width: 25px;
    height: 25px;
  }

  .link-label {
    font-size: 1rem;
  }
}

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