/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: #e6e6e6;
}

/* ======================================
   BACKGROUND SCREENSHOT MOSAIC
   ====================================== */

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 320px;
}

.background-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

/* DARK OVERLAY FOR READABILITY */
.background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.85)
  );
}

/* ======================================
   PAGE LAYOUT
   ====================================== */

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

/* ======================================
   18+ WARNING
   ====================================== */

.warning {
  max-width: 420px;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #333;
  padding: 14px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  text-align: center;
}

/* ======================================
   IPHONE-STYLE CARD
   ====================================== */

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* ICON AS CARD BACKGROUND */
.phone-icon-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/icon.png");
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.35);
  transform: scale(1.2);
}

/* CONTENT OVERLAY */
.phone-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 56px 24px 40px;
  background: linear-gradient(
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.65)
  );
}

/* ======================================
   TEXT
   ====================================== */

h1 {
  margin: 0;
  font-size: 2rem;
}

.tagline {
  margin: 14px 0 26px;
  color: #d0d0d0;
}

/* ======================================
   BUTTON
   ====================================== */

.appstore-button {
  display: inline-block;
  padding: 14px 22px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
}

.appstore-button:hover {
  opacity: 0.85;
}

/* ======================================
   MOBILE TUNING
   ====================================== */

@media (max-width: 768px) {
  .background-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-auto-rows: 260px;
  }

  h1 {
    font-size: 1.8rem;
  }
}
