:root {
  --navy-950: #090d1e;
  --navy-900: #11172f;
  --navy-800: #182344;
  --blue: #4a90e2;
  --blue-light: #70b7ff;
  --pink: #d24c9f;
  --yellow: #f2c94c;
  --text: #f7f8ff;
  --muted: #b8c0da;
  --card: rgba(255, 255, 255, 0.075);
  --card-hover: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 70px rgba(2, 5, 18, 0.45);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--navy-950); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(74, 144, 226, 0.24), transparent 34rem),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 48%, #171433);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  opacity: .36;
}

.ambient-one {
  top: 12%;
  left: -7rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(210, 76, 159, .38), transparent 67%);
}

.ambient-two {
  right: -8rem;
  bottom: 4%;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(74, 144, 226, .32), transparent 67%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 620px);
  margin-inline: auto;
  padding: 24px 0 38px;
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.icon-button,
.language-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.icon-button { padding: 0; }
.icon-button svg { width: 20px; height: 20px; fill: currentColor; }
.language-button { font-weight: 800; letter-spacing: .04em; }

.icon-button:hover,
.language-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .22);
}

.icon-button:focus-visible,
.language-button:focus-visible,
.link-card:focus-visible {
  outline: 3px solid rgba(242, 201, 76, .78);
  outline-offset: 3px;
}

.profile {
  text-align: center;
  margin-bottom: 27px;
}

.logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 17px;
}

.logo {
  display: block;
  width: 118px;
  height: 118px;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.status-dot {
  position: absolute;
  inset-inline-end: -3px;
  bottom: 8px;
  width: 25px;
  height: 25px;
  border: 5px solid var(--navy-900);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 5px 18px rgba(242, 201, 76, .36);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--blue-light);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 9vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.tagline {
  margin: 12px 0 0;
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 650;
}

.intro {
  margin: 12px auto 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.65;
}

.links { display: grid; gap: 13px; }

.link-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 13px 17px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--text);
  background: var(--card);
  box-shadow: 0 12px 35px rgba(1, 4, 14, .18);
  backdrop-filter: blur(14px);
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .23);
  background: var(--card-hover);
  box-shadow: 0 18px 42px rgba(1, 4, 14, .28);
}

.link-card.featured {
  background: linear-gradient(120deg, rgba(74, 144, 226, .22), rgba(210, 76, 159, .13));
  border-color: rgba(112, 183, 255, .28);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, .09);
}

.link-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-icon svg .fill-icon { fill: currentColor; stroke: none; }
.x-icon { font-size: 1.32rem; font-weight: 700; }

.link-copy { min-width: 0; }
.link-copy strong,
.link-copy small { display: block; }
.link-copy strong { font-size: 1rem; line-height: 1.35; }
.link-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: start;
}

.link-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}

.link-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-card:hover .link-arrow { color: var(--yellow); transform: translate(2px, -2px); }

footer {
  padding: 30px 12px 0;
  color: var(--muted);
  text-align: center;
  font-size: .82rem;
  line-height: 1.6;
}

footer p { margin: 0; }
.copyright { margin-top: 4px; opacity: .7; direction: ltr; }

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 24px);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: var(--navy-950);
  background: var(--yellow);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
  font-size: .85rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .page-shell { padding-top: 34px; }
  .profile { margin-bottom: 31px; }
  .link-card { min-height: 82px; }
}

@media (max-width: 390px) {
  .page-shell { width: min(100% - 22px, 620px); }
  .link-card { grid-template-columns: 44px 1fr auto; padding-inline: 13px; border-radius: 19px; }
  .link-icon { width: 44px; height: 44px; border-radius: 13px; }
}

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