*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #070b12;
  --surface: rgba(12, 18, 30, 0.72);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f0f4fa;
  --muted: #a8b4c8;
  --accent: #6ea8ff;
  --accent-hover: #93beff;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem 2rem;
  background: linear-gradient(to bottom, rgba(7, 11, 18, 0.85), transparent);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.logo:hover {
  color: var(--accent);
}

/* Hero */
main {
  flex: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") center center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(7, 11, 18, 0.55) 0%, rgba(7, 11, 18, 0.35) 40%, rgba(7, 11, 18, 0.88) 100%),
    linear-gradient(135deg, rgba(14, 32, 64, 0.4) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.hero-label {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(110, 168, 255, 0.35);
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-desc {
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.repo-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
}

.repo-card:hover {
  border-color: rgba(110, 168, 255, 0.45);
  background: rgba(18, 28, 48, 0.82);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.repo-card svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.repo-card span {
  font-size: 0.9375rem;
}

.repo-card .arrow {
  color: var(--accent);
  font-size: 1.125rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: -4rem;
  padding: 2rem;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.copyright {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .hero-content {
    padding: 5rem 1.25rem 3rem;
  }

  .repo-card {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
}
