/* UNDERSTREET RECORDS — responsive one-page site */

:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.62);
  --accent: #db1f26;
  --card-bg: rgba(0, 0, 0, 0.48);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: #000;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58)),
    url("images/background.png") center / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 18%, rgba(0, 0, 0, 0.58) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 4px
    );
}

.page {
  min-height: 100vh;
}

.hero {
  width: min(1180px, 92%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 6vh 0 4vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  display: block;
  width: min(900px, 72vw);
  max-height: 46vh;
  height: auto;
  object-fit: contain;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.35));
  animation: fadeIn 0.8s ease both;
}

.tagline {
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.7;
  letter-spacing: 0.22em;
  font-size: clamp(0.78rem, 1.25vw, 1rem);
  text-transform: uppercase;
  color: var(--text);
  animation: fadeIn 1s 0.08s ease both;
}

.tagline p {
  margin: 0;
}

.tagline span {
  color: var(--accent);
}

.socials {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.5rem;
  animation: fadeIn 1s 0.16s ease both;
}

.social-card {
  min-height: 138px;
  padding: 18px 8px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.social-card:hover {
  transform: translateY(-5px);
  background: rgba(20, 20, 20, 0.74);
  border-color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.icon {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border: 2px solid #fff;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.social-card span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer {
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.barcode {
  width: 78px;
  height: 34px;
  margin: 0.9rem auto 0;
  opacity: 0.9;
  background:
    repeating-linear-gradient(
      90deg,
      #fff 0 2px,
      transparent 2px 4px,
      #fff 4px 5px,
      transparent 5px 8px
    );
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablets */
@media (max-width: 1050px) {
  .socials {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .social-card:last-child {
    grid-column: 1 / -1;
  }
}

/* Phones */
@media (max-width: 680px) {
  body::before {
    background-position: center top;
    background-attachment: scroll;
  }

  .hero {
    width: 100%;
    min-height: 100svh;
    padding:
      calc(22px + env(safe-area-inset-top))
      14px
      calc(30px + env(safe-area-inset-bottom));
    justify-content: flex-start;
  }

  .logo {
    width: min(82vw, 560px);
    max-height: none;
    margin: 54px auto 46px;
  }

  .tagline {
    margin: 0 auto 30px;
    font-size: 12px;
    line-height: 1.75;
    letter-spacing: 0.16em;
  }

  .socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
  }

  .social-card {
    min-height: 144px;
    padding: 20px 8px;
  }

  .icon {
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    border-radius: 18px;
    font-size: 24px;
  }

  .social-card span {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .social-card:last-child {
    grid-column: 1 / -1;
    min-height: 116px;
  }

  .footer {
    margin-top: 30px;
    padding-bottom: 20px;
    font-size: 10px;
  }
}

/* Very small phones */
@media (max-width: 390px) {
  .logo {
    width: 86vw;
    margin-top: 44px;
    margin-bottom: 38px;
  }

  .tagline {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .social-card {
    min-height: 132px;
  }

  .icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .social-card span {
    font-size: 11px;
  }
}


.icon i {
  font-size: 1.45em;
  line-height: 1;
}

.social-card[href="#"] {
  cursor: default;
}


/* Demo modal */
body.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal.active {
  display: flex;
}

.modal-box {
  position: relative;
  width: min(430px, 100%);
  padding: 34px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(12, 12, 12, 0.97);
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  animation: modalIn 0.22s ease both;
}

.modal-close-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.modal-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border: 2px solid #fff;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.modal-box h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: 0.1em;
}

.email-display {
  width: 100%;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 15px;
  word-break: break-word;
  cursor: pointer;
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.modal-button {
  width: 100%;
  min-height: 46px;
  padding: 13px 16px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-button.primary {
  background: #fff;
  color: #000;
}

.modal-button.ghost {
  border-color: rgba(255, 255, 255, 0.38);
}

.copy-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 680px) {
  .modal {
    padding:
      calc(18px + env(safe-area-inset-top))
      16px
      calc(18px + env(safe-area-inset-bottom));
  }

  .modal-box {
    width: 100%;
    max-width: 390px;
    padding: 32px 18px 20px;
  }

  .modal-box h2 {
    font-size: 21px;
  }

  .email-display {
    font-size: 14px;
  }

  .modal-button {
    min-height: 48px;
  }
}
