:root {
  --bg: #050b18;
  --bg-soft: #091327;
  --surface: #0d1930;
  --surface-hover: #12213d;
  --line: #223758;
  --line-strong: #31517e;
  --text: #f5f8fc;
  --text-muted: #aab8cc;
  --blue: #4ea1ff;
  --blue-bright: #78b9ff;
  --blue-dark: #102d55;
  --focus: #91c8ff;
  --success: #70d6b1;
  --radius: 18px;
  --shadow: 0 16px 46px rgb(0 0 0 / 32%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgb(42 101 170 / 24%), transparent 38rem),
    linear-gradient(180deg, var(--bg-soft) 0, var(--bg) 46%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 11% 18%, #fff 0 1px, transparent 1.3px),
    radial-gradient(circle at 83% 27%, #a9d2ff 0 1px, transparent 1.3px),
    radial-gradient(circle at 72% 76%, #fff 0 0.8px, transparent 1.1px),
    radial-gradient(circle at 21% 72%, #6caeff 0 0.8px, transparent 1.1px);
  background-size: 31rem 31rem, 37rem 37rem, 29rem 29rem, 41rem 41rem;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: #021020;
  background: var(--focus);
  border-radius: 8px;
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding: 32px 0 24px;
}

.profile {
  text-align: center;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 124px;
  height: 124px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(132 185 243 / 28%);
  border-radius: 50%;
  background: #000;
  box-shadow: 0 14px 38px rgb(0 0 0 / 42%), 0 0 0 6px rgb(64 137 219 / 7%);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 19px 0 7px;
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 34rem;
  margin: 10px auto 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.links-section {
  margin-top: 28px;
}

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

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  gap: 13px;
  min-height: 84px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(17 31 56 / 96%), rgb(9 19 36 / 96%));
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  align-items: center;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.link-card.is-featured {
  min-height: 94px;
  border-color: #3978bc;
  background:
    linear-gradient(145deg, rgb(22 61 105 / 95%), rgb(11 29 53 / 97%));
  box-shadow: 0 12px 30px rgb(0 66 145 / 19%);
}

.link-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue-bright);
  border: 1px solid rgb(106 172 245 / 28%);
  border-radius: 12px;
  background: rgb(40 100 170 / 16%);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.is-featured .link-icon {
  color: #fff;
  border-color: rgb(123 190 255 / 46%);
  background: rgb(58 137 224 / 31%);
}

.link-copy {
  min-width: 0;
}

.link-title {
  display: block;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.25;
}

.link-description {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.79rem;
  line-height: 1.35;
}

.link-arrow {
  color: var(--blue-bright);
  font-size: 1.25rem;
  line-height: 1;
  text-align: right;
  transition: transform 160ms ease;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, rgb(17 31 56 / 96%), rgb(9 19 36 / 96%));
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.contact-card .link-card {
  grid-template-columns: 42px minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-email {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--blue-bright);
  font-size: 0.76rem;
  line-height: 1.35;
}

.copy-button {
  min-width: 82px;
  min-height: 48px;
  margin: 14px 14px 14px 0;
  padding: 0 13px;
  align-self: center;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--blue-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 760;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.copy-button[data-copied="true"] {
  color: #d9fff0;
  border-color: #347b64;
  background: #103b31;
}

.browser-guidance {
  margin: 13px 4px 0;
  padding: 11px 13px;
  color: #c7d7e8;
  border-left: 3px solid var(--blue);
  background: rgb(16 42 75 / 52%);
  font-size: 0.79rem;
  line-height: 1.45;
}

footer {
  margin-top: 28px;
  color: #70819a;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

footer p {
  margin: 0;
}

.footer-note {
  margin-top: 3px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  color: #e8fff7;
  border: 1px solid #347b64;
  border-radius: 12px;
  background: #103b31;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  margin: 0 auto;
  max-width: 620px;
  padding: 12px;
  color: #fff;
  border-radius: 10px;
  background: #7b2d2d;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.link-card:hover,
.link-card:focus-visible {
  z-index: 1;
  border-color: var(--line-strong);
  background-color: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgb(0 0 0 / 28%);
}

.link-card:hover .link-arrow,
.link-card:focus-visible .link-arrow {
  transform: translateX(3px);
}

.link-card:active,
.copy-button:active {
  transform: scale(0.985);
}

.link-card:focus-visible,
.copy-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.copy-button:hover {
  border-color: #4d7db5;
  background: #153c6a;
}

@media (min-width: 620px) {
  .page-shell {
    padding-top: 52px;
  }

  .brand-mark {
    width: 136px;
    height: 136px;
  }

  .links-section {
    margin-top: 32px;
  }

  .link-card {
    padding: 17px 18px;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: min(100% - 24px, 640px);
    padding-top: 22px;
  }

  .brand-mark {
    width: 104px;
    height: 104px;
  }

  .eyebrow {
    margin-top: 14px;
  }

  .intro {
    font-size: 0.91rem;
  }

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

  .link-card {
    min-height: 78px;
    padding: 13px;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 11px;
  }

  .link-card.is-featured {
    min-height: 84px;
  }

  .link-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .link-title {
    font-size: 0.92rem;
  }

  .link-description {
    font-size: 0.73rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card .link-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding-bottom: 7px;
  }

  .copy-button {
    width: calc(100% - 26px);
    min-height: 44px;
    margin: 3px 13px 13px;
  }
}

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