:root {
  color-scheme: dark;
  --background: #080b10;
  --text: #f3f6fb;
  --muted: rgba(243, 246, 251, 0.76);
  --accent: #79dce9;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(
      900px 520px at 12% -8%,
      rgba(95, 196, 219, 0.16),
      transparent 62%
    ),
    radial-gradient(
      820px 480px at 92% 4%,
      rgba(80, 215, 189, 0.13),
      transparent 60%
    ),
    linear-gradient(180deg, #0a0d13 0%, #07090d 72%, #090c11 100%);
  font-family:
    "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(76px, 10vh, 104px) clamp(22px, 6vw, 72px) 64px;
}

.title-group {
  width: min(1060px, 100%);
  text-align: center;
}

h1,
p {
  margin: 0;
}

.project-name {
  display: block;
  font-size: clamp(2.7rem, 7vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.48);
}

.paper-title {
  display: block;
  max-width: 980px;
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.status,
.repo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em;
  padding: 0.5em 1.25em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.repo-link {
  gap: 0.5rem;
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.105);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.repo-link svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.repo-link:hover {
  border-color: rgba(121, 220, 233, 0.48);
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(121, 220, 233, 0.08);
  transform: translateY(-2px);
}

.repo-link:focus-visible {
  outline: 3px solid rgba(121, 220, 233, 0.56);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 72px;
  }

  .project-name {
    font-size: clamp(2.5rem, 13vw, 3rem);
  }

  .paper-title {
    margin-top: 0.8rem;
    font-size: clamp(1rem, 4.8vw, 1.2rem);
    line-height: 1.35;
  }

  .actions {
    margin-top: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .repo-link {
    transition: none;
  }
}
