* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background: #000;
}

/* Keyboard focus — visible rings without changing mouse hover aesthetics */
a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.95);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.52) 0%,
      rgba(0, 0, 0, 0.58) 45%,
      rgba(0, 0, 0, 0.66) 100%
    ),
    url("img/ART/BG.jpg") center/cover no-repeat fixed,
    linear-gradient(
      135deg,
      #000 0%,
      #0a0a0a 25%,
      #1a1a1a 50%,
      #0f0f0f 75%,
      #1a1a1a 100%
    );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(2rem, env(safe-area-inset-top))
    max(2rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom))
    max(2rem, env(safe-area-inset-left));
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(255, 255, 255, 0.01) 1px,
      transparent 1px
    );
  background-size:
    100px 100px,
    80px 80px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  color: white;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.35rem, 3.5vw, 1.85rem);
}

.hero-content > * {
  max-width: 100%;
}

.main-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
  width: auto;
}

.brand-name {
  font-size: clamp(1.05rem, 2.75vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.94);
  padding-left: 0.32em;
}

.brand-logo {
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
}

/* Hummingbird-only mark — compact, optically centered hero glyph */
.brand-logo--mark {
  width: clamp(4.75rem, 22vw, 7.75rem);
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.5));
}

.runes {
  font-size: 1rem;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.52);
  text-shadow: none;
  text-wrap: balance;
  max-width: min(92vw, 28rem);
}

.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.contact-link {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition:
    color 0.2s ease,
    text-underline-offset 0.2s ease;
}

.contact-link:hover {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.divider {
  color: rgba(255, 255, 255, 0.32);
  font-weight: 300;
  user-select: none;
}

/* Responsive design */
/* Very small screens - iPhone SE and similar (375px) */
@media (max-width: 400px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(1rem, env(safe-area-inset-top))
      max(0.5rem, env(safe-area-inset-right))
      max(1.25rem, env(safe-area-inset-bottom))
      max(0.5rem, env(safe-area-inset-left));
  }

  .hero-content {
    padding: 0 0.5rem;
    gap: 1rem;
    justify-content: center;
  }

  .main-title {
    margin-bottom: 0;
  }

  .brand-logo--mark {
    width: clamp(3.85rem, 26vw, 5.65rem);
  }

  .brand-name {
    font-size: clamp(0.82rem, 4.2vw, 1rem);
    letter-spacing: 0.2em;
    padding-left: 0.2em;
  }

  .runes {
    font-size: 0.68rem;
    margin: 0;
    letter-spacing: 0.16em;
  }

  .contact-links {
    font-size: 0.74rem;
    gap: 0.35rem 0.65rem;
  }

  .contact-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0;
  }

  /* iOS Safari smooth scrolling */
  body {
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent zoom on input focus for iOS */
  .hero-section input,
  .hero-section select,
  .hero-section textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: max(1rem, env(safe-area-inset-top))
      max(1rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
    background-attachment: scroll; /* Remove fixed attachment on mobile for better performance */
  }

  .hero-content {
    gap: 1.75rem;
  }

  .brand-logo--mark {
    width: clamp(4.1rem, 24vw, 6.25rem);
  }

  .runes {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .contact-links {
    flex-direction: row;
    gap: 0.45rem 0.85rem;
  }

  .divider {
    display: inline;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .main-title {
    margin-bottom: 0;
  }

  .brand-logo--mark {
    width: clamp(4rem, 22vw, 6rem);
  }

  .hero-content {
    padding: 0 0.75rem;
    gap: 1.25rem;
    justify-content: center;
  }

  .runes {
    margin-bottom: 0;
  }

  .contact-links {
    font-size: 0.82rem;
    gap: 0.4rem 0.72rem;
  }

  .contact-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0;
  }
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1rem;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-partners {
  margin-bottom: 1.5rem;
  text-align: center;
}

.partners-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.partner-link {
  display: inline-block;
  transition: all 0.3s ease;
}

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

.partner-logo {
  height: 24px;
  width: auto;
  opacity: 0.72;
  transition:
    opacity 0.25s ease,
    filter 0.25s ease,
    transform 0.25s ease;
  filter: grayscale(5%) brightness(1.3) contrast(1.2);
  border-radius: 2px;
}

.partner-link:hover .partner-logo,
.partner-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
  filter: grayscale(0%) brightness(1.3) contrast(1.2);
}

/* Enhanced styling for Bybit logo specifically */
.bybit-logo {
  height: 52px; /* 2x larger than base */
  width: auto;
  filter: grayscale(3%) brightness(1.5) contrast(1.4) saturate(1.1) !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.bybit-logo:hover {
  filter: grayscale(0%) brightness(1.6) contrast(1.5) saturate(1.2) !important;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: white;
  text-decoration: underline;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 300;
}

/* Responsive footer */
/* Very small screens footer */
@media (max-width: 400px) {
  .footer {
    padding: 1.5rem 0.8rem;
  }

  .partners-logos {
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .partner-logo {
    height: 16px;
    max-width: 80px;
  }

  .partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bybit-logo {
    height: 32px;
    max-width: 120px;
  }

  .footer-links {
    font-size: 0.8rem;
    gap: 0.6rem;
  }

  .footer-copyright {
    font-size: 0.75rem;
  }

  .footer-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }

  .footer-divider {
    display: none;
  }

  .partners-logos {
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .partner-logo {
    height: 20px;
    opacity: 0.7;
    filter: grayscale(5%) brightness(1.3) contrast(1.2);
    max-width: 80px;
  }

  .partner-link:hover .partner-logo {
    opacity: 1;
  }

  .partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .partner-link:hover {
    transform: translateY(-1px);
  }

  .bybit-logo {
    height: 44px; /* 2x larger than mobile base */
    filter: grayscale(2%) brightness(1.6) contrast(1.5) saturate(1.2) !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: 120px;
  }
}
