/* ── Reset & Base ─────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #003366;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Floating Cards ──────────────────────────── */
.cards-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.floating-card {
  position: absolute;
  will-change: transform;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.floating-card.card-ace {
  left: 12%;
  top: 20%;
  width: 180px;
}

.floating-card.card-king {
  right: 34%;
  top: 2%;
  width: 190px;
}

/* ── Center Stage ─────────────────────────────── */
.center-stage {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.glow {
  position: absolute;
  width: 1700px;
  height: 1700px;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

.glow img {
  width: 100%;
  height: 100%;
}

.phones {
  position: relative;
  z-index: 2;
  width: 1209px;
}

.phones img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Content ──────────────────────────────────── */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  gap: 8px;
  margin-left: -40px;
}

.logo {
  width: 300px;
}

.logo img {
  width: 100%;
  height: auto;
}

.headline {
  width: 600px;
}

.headline img {
  width: 100%;
  height: auto;
}

.cta-link {
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-link:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.cta-link:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
  border-radius: 8px;
}

.cta-link img {
  width: 420px;
  height: auto;
  display: block;
}

/* ── Footer ───────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 8px;
  z-index: 10;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

/* ── Responsive ───────────────────────────────── */

/* Large desktop */
@media (min-width: 1400px) {
  .phones { width: 1209px; }
  .glow   { width: 1700px; height: 1700px; }
}

/* Medium screens */
@media (max-width: 1399px) {
  .phones { width: 900px; }
  .glow   { width: 1300px; height: 1300px; }
  .floating-card.card-king { right: 32%; }
}

/* Tablet */
@media (max-width: 899px) {
  .center-stage {
    flex-direction: column;
    gap: 20px;
  }

  .phones {
    width: 85vw;
    max-width: 600px;
  }

  .glow {
    width: 90vw;
    max-width: 650px;
    height: auto;
    aspect-ratio: 1;
  }

  .content {
    margin-left: 0;
    gap: 12px;
  }

  .logo { width: 220px; }
  .headline { width: 320px; }
  .cta-link img { width: 300px; }

  .floating-card.card-ace {
    left: 2%;
    top: 15%;
    width: 80px;
  }

  .floating-card.card-king {
    right: 2%;
    top: 5%;
    width: 90px;
  }
}

/* Mobile */
@media (max-width: 599px) {
  .phones {
    width: 90vw;
  }

  .glow {
    width: 85vw;
  }

  .logo { width: 180px; }
  .headline { width: 260px; }
  .cta-link img { width: 250px; }

  .floating-card.card-ace {
    left: 0;
    top: 10%;
    width: 60px;
  }

  .floating-card.card-king {
    right: 0;
    top: 3%;
    width: 70px;
  }
}

/* Very small screens */
@media (max-width: 379px) {
  .phones { width: 92vw; }
  .glow   { width: 80vw; }
  .logo { width: 150px; }
  .headline { width: 220px; }
  .cta-link img { width: 200px; }
}

/* ── Reduced Motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .floating-card {
    animation: none !important;
    transform: none !important;
  }
}
