:root {
  --bg-color: #040719;
  --border-color: rgba(118, 182, 255, 0.35);
  --text-color: #f7f9ff;
  --button-glow: rgba(139, 103, 255, 0.6);
  --icon-size: 48px;
  font-size: clamp(1rem, 4vw, 1.25rem);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background: url("assets/starfield.svg") center / cover no-repeat;
  opacity: 0.92;
  z-index: -2;
}

body::after {
  background:
    radial-gradient(ellipse 26% 38% at 7% 22%, rgba(42, 178, 232, 0.30), transparent 78%),
    radial-gradient(ellipse 35% 25% at 23% 13%, rgba(94, 81, 230, 0.50), transparent 75%),
    radial-gradient(ellipse 29% 39% at 91% 78%, rgba(180, 49, 193, 0.40), transparent 75%),
    radial-gradient(ellipse 39% 22% at 74% 94%, rgba(58, 104, 220, 0.40), transparent 77%),
    radial-gradient(ellipse 24% 29% at 92% 19%, rgba(97, 51, 193, 0.30), transparent 77%),
    radial-gradient(ellipse 30% 19% at 16% 80%, rgba(81, 42, 167, 0.40), transparent 76%),
    radial-gradient(ellipse 42% 95% at 50% 48%, rgba(3, 6, 24, 0.87), transparent 100%);
  z-index: -3;
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 4rem 1.5rem 5rem;
  max-width: 480px;
  margin: 0 auto;
}

header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 2rem);
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(139, 103, 255, 0.45);
}

p.tagline {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(219, 230, 255, 0.85);
  letter-spacing: 0.04em;
}

section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: rgba(193, 206, 255, 0.9);
  text-align: center;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-button {
  display: grid;
  grid-template-columns: var(--icon-size) minmax(0, 1fr);
  align-items: center;
  column-gap: 0.9rem;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgba(33, 41, 82, 0.82), rgba(50, 31, 98, 0.82));
  box-shadow: 0 8px 24px rgba(14, 14, 45, 0.45), inset 0 0 0 rgba(139, 103, 255, 0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(139, 103, 255, 0.65);
  box-shadow: 0 12px 32px rgba(33, 14, 75, 0.7), 0 0 18px var(--button-glow);
}

.link-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(33, 14, 75, 0.6), 0 0 10px rgba(99, 75, 200, 0.6);
}

.icon-wrapper {
  width: var(--icon-size);
  min-height: 52px;
  display: grid;
  place-items: center;
}

.icon-wrapper img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* These original assets include their own clear-space padding. */
.icon-wrapper .icon-youtube {
  width: 48px;
  height: 42px;
}

.icon-wrapper .icon-tiktok {
  width: 52px;
  height: 56px;
}

.link-label {
  font-weight: 400;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
}

footer {
  margin-block-start: 3.2em;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: #cdd7f5;
}

@media (min-width: 640px) {
  body {
    font-size: 18px;
  }

  main {
    padding-top: 5rem;
  }

  .link-button {
    padding: 1rem 1.25rem;
    border-radius: 22px;
  }

}

h1, h2, .tagline {
  font-family: "trajan-sans-pro", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.45;
  font-synthesis: none;
}

.link-label {
  font-family: "trajan-sans-pro", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

footer {
  font-family: "trajan-sans-pro", "Segoe UI", system-ui, sans-serif;
  font-weight: 300;
  font-synthesis: none;
}

.link-button:focus-visible {
  outline: 3px solid #f7f9ff;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  a:hover, a:focus-visible, a::after {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  body::before, body::after {
    display: none;
  }
  a:focus-visible {
    outline-color: Highlight;
  }
}

/* A brief arrival sparkle; reduced motion disables it. */
.business-contact {
  margin: 0.55rem 0 0;
  color: #f4eaff;
  font-family: "trajan-sans-pro", "Segoe UI", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
  font-synthesis: none;
  text-shadow: 0 0 12px rgba(215, 174, 255, 0.45);
}
.business-contact span {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding-inline: 0.5rem;
}
.business-contact span::before,
.business-contact span::after {
  content: "";
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: #ffffff;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  pointer-events: none;
  opacity: 0.65;
  animation: contact-sparkle 4.8s ease-in-out 1;
}
.business-contact span::before {
  left: 7%;
  top: -0.18rem;
}
.business-contact span::after {
  right: 9%;
  bottom: -0.05rem;
  width: 0.35rem;
  height: 0.35rem;
  animation-delay: -2.2s;
}
@keyframes contact-sparkle {
  0%, 35%, 100% { opacity: 0.35; transform: scale(0.8); }
  55%, 70% { opacity: 1; transform: scale(1.1); }
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .business-contact span {
    background: linear-gradient(105deg, #f3dcff 12%, #ffffff 35%, #c6edff 56%, #fff4d9 75%, #f3dcff 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
/* Preserve readable native text when decorative colors are overridden. */
@media (forced-colors: active) {
  .business-contact,
  .business-contact span {
    color: CanvasText;
    background: none;
    text-shadow: none;
  }
  .business-contact span::before,
  .business-contact span::after {
    display: none;
  }
}
