:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: Georgia, "Times New Roman", serif;
  color: #f9f0cf;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(135, 206, 250, 0.18), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(255, 120, 180, 0.16), transparent 28%),
    linear-gradient(135deg, #030711 0%, #071120 35%, #120b22 70%, #0a0813 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(60% 70% at 30% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(70% 80% at 70% 30%, rgba(182, 147, 255, 0.18), transparent 45%),
    radial-gradient(85% 100% at 50% 50%, rgba(255, 255, 255, 0.08), transparent 60%);
  filter: blur(30px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -15% -10% auto -10%;
  height: 60vh;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.02) 60%, transparent 100%);
  transform: rotate(-18deg);
  filter: blur(22px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  opacity: 0.8;
}

.star::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  animation: pulse 2s ease-in-out infinite;
}

.card {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 24px;
  background: rgba(4, 10, 24, 0.78);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.14), 0 0 80px rgba(170, 128, 255, 0.2);
  backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.logo {
  width: 96px;
  height: 96px;
  position: relative;
  top: -8px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: none;
  background: transparent;
}

h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffe082;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6), 0 0 20px rgba(0, 255, 255, 0.35);
}

.subtitle {
  margin: 0 0 22px;
  font-size: 1.05rem;
  color: #c8d7ff;
  opacity: 0.9;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-btn,
.pdf-btn {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(180, 120, 255, 0.38);
  border-radius: 14px;
  color: #fff4bb;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(210, 140, 255, 0.18), rgba(255, 180, 220, 0.12));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  min-height: 46px;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.2;
}

.link-btn {
  flex: 1;
}

.pdf-btn {
  padding: 10px 14px;
  min-width: clamp(58px, 8vw, 72px);
  width: clamp(58px, 8vw, 72px);
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.link-btn:hover,
.pdf-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 160, 255, 0.8);
  box-shadow: 0 0 18px rgba(210, 140, 255, 0.28);
}

.signature {
  margin-top: 24px;
  font-size: 0.95rem;
  color: #b8b8ff;
  opacity: 0.85;
}

.starfield .star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  opacity: 0.8;
}

.starfield .star::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.55;
  }
}

@media (max-width: 600px) {
  .link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .link-btn,
  .pdf-btn {
    width: 100%;
    min-width: 0;
  }

  .pdf-btn {
    justify-content: center;
  }
}
