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

:root {
  --blue-deep: #0a1628;
  --blue-mid: #1a3a6b;
  --blue-bright: #4a9eff;
  --blue-glow: #7ec8ff;
  --blue-frost: rgba(174, 214, 255, 0.12);
  --text: #e8f4ff;
  --text-muted: rgba(232, 244, 255, 0.55);
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Syne", system-ui, sans-serif;
  background: var(--blue-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Background video */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--blue-deep);
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.15);
  pointer-events: none;
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain-shift 0.5s steps(8) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, -3%); }
  50% { transform: translate(3%, 1%); }
  75% { transform: translate(-1%, 4%); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(6, 16, 31, 0.35) 100%);
}

/* Fully transparent nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: transparent;
  border: none;
}

.nav-logo {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-glow);
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  background: #a8d8ff;
  box-shadow: 0 0 24px rgba(126, 200, 255, 0.35);
}

/* Hero */
.hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-title {
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow:
    0 0 80px rgba(74, 158, 255, 0.35),
    0 0 160px rgba(74, 158, 255, 0.15);
  user-select: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.btn-ca {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(10, 22, 40, 0.45);
  border: 1px solid rgba(126, 200, 255, 0.2);
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-ca:hover {
  color: var(--text);
  border-color: rgba(126, 200, 255, 0.4);
  background: rgba(10, 22, 40, 0.65);
}

.btn-ca.is-copied {
  color: var(--blue-glow);
  border-color: rgba(126, 200, 255, 0.5);
}

.btn-ca-label {
  color: var(--blue-glow);
}

.btn-ca-address {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.btn {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  transition: all 0.25s ease;
}

.btn-primary {
  color: var(--blue-deep);
  background: var(--blue-glow);
}

.btn-primary:hover {
  background: #a8d8ff;
  box-shadow: 0 0 32px rgba(126, 200, 255, 0.4);
}

.btn-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #000;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn-x svg {
  width: 1rem;
  height: 1rem;
  fill: #fff;
}

.btn-x:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.btn-secondary {
  color: var(--text);
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(232, 244, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(10, 22, 40, 0.75);
  border-color: rgba(232, 244, 255, 0.7);
  box-shadow: 0 0 24px rgba(126, 200, 255, 0.2);
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  perspective: 1200px;
  background: rgba(4, 10, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.is-open {
  opacity: 1;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
  background: linear-gradient(145deg, rgba(18, 38, 68, 0.97) 0%, rgba(8, 18, 34, 0.98) 100%);
  border: 1px solid rgba(126, 200, 255, 0.22);
  border-radius: 1.25rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 48px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: rotateX(8deg) translateY(32px) scale(0.94);
  transform-style: preserve-3d;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.modal.is-open {
  transform: rotateX(0deg) translateY(0) scale(1);
  opacity: 1;
}

.modal--wide {
  max-width: 42rem;
}

.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(126, 200, 255, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(126, 200, 255, 0.12);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(126, 200, 255, 0.12);
  border-color: rgba(126, 200, 255, 0.3);
}

.modal-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 2rem 2.25rem 0;
  color: var(--blue-glow);
}

.modal-body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 1.25rem 2.25rem 2.25rem;
}

.modal-lead {
  font-size: 0.925rem;
  line-height: 1.75;
  color: rgba(232, 244, 255, 0.75);
  margin-bottom: 1.5rem;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-list li {
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(126, 200, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-list strong {
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-list li span {
  font-size: 0.85rem;
  line-height: 1.65;
}

.modal-note {
  font-size: 0.8rem;
  color: rgba(126, 200, 255, 0.65);
  padding-top: 0.25rem;
  border-top: 1px solid rgba(126, 200, 255, 0.1);
}

.pfp-intro {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(232, 244, 255, 0.7);
  margin-bottom: 1.5rem;
  text-align: center;
}

.pfp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pfp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(126, 200, 255, 0.1);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pfp-card:hover {
  border-color: rgba(126, 200, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.pfp-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

.pfp-card span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-glow);
}

@media (max-width: 640px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .hero-actions {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 18rem;
  }

  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .btn-primary {
    flex: 1;
    text-align: center;
  }

  .pfp-grid {
    grid-template-columns: 1fr;
  }
}
