:root {
  --bg: #040612;
  --bg-soft: rgba(10, 18, 45, 0.62);
  --line: rgba(123, 156, 255, 0.28);
  --text: #e9f0ff;
  --muted: #9cb2de;
  --primary: #3dd9ff;
  --secondary: #8d5bff;
  --glow: 0 0 24px rgba(61, 217, 255, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Noto Sans SC", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #11204f 0%, #060a1c 35%, #03040c 100%);
  min-height: 100%;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(transparent 31px, rgba(141, 91, 255, 0.08) 32px),
    linear-gradient(90deg, transparent 31px, rgba(61, 217, 255, 0.08) 32px);
  background-size: 32px 32px;
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(5, 8, 22, 0.62);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1.3px;
  color: var(--primary);
  text-shadow: var(--glow);
  font-weight: 600;
}

nav {
  display: flex;
  gap: 10px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary);
}

main {
  width: min(1100px, 92%);
  margin: 34px auto 80px;
  display: grid;
  gap: 22px;
}

.hero,
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(12, 20, 49, 0.7), rgba(5, 9, 24, 0.84));
  border-radius: 18px;
  box-shadow: inset 0 0 45px rgba(61, 217, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 62px);
}

.kicker {
  font-family: "Orbitron", sans-serif;
  color: var(--primary);
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  margin: 0;
}

h1 {
  margin: 12px 0 14px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.2;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 740px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tip {
  margin: 12px 0 0;
  color: #8ea6d4;
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #011120;
  background: linear-gradient(120deg, var(--primary), #86f2ff);
  box-shadow: var(--glow);
  font-weight: 700;
}

.btn.ghost {
  color: var(--text);
  border-color: rgba(141, 91, 255, 0.65);
  background: rgba(141, 91, 255, 0.09);
}

.hero-grid {
  position: absolute;
  right: -40px;
  bottom: -36px;
  display: grid;
  grid-template-columns: repeat(2, 120px);
  gap: 12px;
  transform: rotate(12deg);
}

.hero-grid span {
  width: 120px;
  height: 120px;
  border: 1px solid rgba(61, 217, 255, 0.22);
  background: rgba(61, 217, 255, 0.05);
}

.panel {
  padding: clamp(20px, 3vw, 30px);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
}

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid rgba(141, 91, 255, 0.22);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(18, 26, 58, 0.74), rgba(11, 17, 40, 0.78));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 217, 255, 0.45);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.qr-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.qr-modal.show {
  display: grid;
}

.qr-dialog {
  width: min(360px, 92vw);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(61, 217, 255, 0.45);
  background: linear-gradient(160deg, rgba(12, 20, 49, 0.9), rgba(5, 9, 24, 0.95));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  text-align: center;
}

.qr-dialog h3 {
  margin: 0 0 14px;
  color: var(--primary);
}

.qr-dialog img {
  width: min(260px, 70vw);
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(61, 217, 255, 0.25);
  background: #fff;
}

.qr-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(141, 91, 255, 0.65);
  border-radius: 999px;
  background: rgba(141, 91, 255, 0.12);
  color: #dfe9ff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

footer {
  width: min(1100px, 92%);
  margin: -36px auto 24px;
  color: #86a0d4;
  font-size: 0.9rem;
  text-align: center;
}

footer p {
  margin: 6px 0;
}

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-grid {
    opacity: 0.35;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }
}
