:root {
  --bg: #000;
  --card-border: rgba(255, 32, 32, 0.55);
  --text: #f7f7f7;
  --muted: #d3d3d5;
  --accent: #ff2020;
  --accent-soft: #ff6969;
  --glow: rgba(255, 32, 32, 0.3);
  --shadow: rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  isolation: isolate;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.58)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 64px
    );
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(255, 0, 30, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.48));
  mix-blend-mode: screen;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  overflow: hidden;
}

.card {
  position: relative;
  container-type: inline-size;
  width: min(calc(100vw - 36px), 560px);
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--card-border);
  border-radius: 32px;
  background:
    linear-gradient(180deg, #0a0a0a, #040404),
    linear-gradient(135deg, rgba(255, 0, 38, 0.12), transparent 36%);
  backdrop-filter: blur(10px) saturate(115%);
  box-shadow:
    0 24px 60px var(--shadow),
    0 0 48px rgba(255, 0, 38, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  animation: card-in 700ms ease-out;
}

.card::after {
  display: none;
}

.share-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--text);
  background: #151515;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.share-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.share-button:hover,
.share-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 32, 32, 0.62);
  background: #1f1f1f;
  box-shadow: 0 12px 26px rgba(255, 32, 32, 0.14);
}

.share-button.is-copied {
  border-color: rgba(255, 32, 32, 0.9);
  background: #2a0c0c;
}

.brand-logo {
  display: block;
  width: min(220px, 58vw);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 22px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 34px var(--glow),
    0 0 60px rgba(255, 0, 38, 0.22);
}

.hero-copy {
  text-align: center;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: calc(100% - 28px);
  margin: 0 auto;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.05rem, 8.1cqw, 2.9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.tagline {
  max-width: 440px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.link-grid {
  display: grid;
  gap: 14px;
}

.link-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, #202020, #0c0c0c),
    linear-gradient(120deg, rgba(255, 28, 28, 0.2), rgba(0, 0, 0, 0.1) 60%);
  transform: translateY(18px);
  opacity: 0;
  animation: rise-in 600ms ease-out forwards;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.link-button:nth-child(2) {
  animation-delay: 90ms;
}

.link-button:nth-child(3) {
  animation-delay: 140ms;
}

.link-button:nth-child(4) {
  animation-delay: 190ms;
}

.link-button:nth-child(5) {
  animation-delay: 240ms;
}

.link-button:nth-child(6) {
  animation-delay: 290ms;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 28, 28, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    linear-gradient(120deg, rgba(255, 28, 28, 0.23), transparent 64%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 34, 34, 0.96), rgba(160, 0, 0, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(255, 28, 28, 0.22);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.label-wrap {
  position: absolute;
  left: 50%;
  max-width: calc(100% - 136px);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.label {
  font-size: 1.02rem;
  font-weight: 800;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .page-shell {
    place-items: start center;
    padding: 20px 14px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 26px;
  }

  .share-button {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  .share-button svg {
    width: 18px;
    height: 18px;
  }

  .brand-logo {
    width: min(190px, 56vw);
  }

  h1 {
    max-width: calc(100% - 18px);
    font-size: clamp(1.95rem, 9vw, 2.22rem);
    line-height: 0.9;
  }

  .tagline {
    font-size: 0.92rem;
  }

  .link-button {
    min-height: 72px;
    padding: 14px;
    gap: 14px;
  }

  .icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .label-wrap {
    max-width: calc(100% - 112px);
  }
}
