/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px 15px;
}

h1 {
  color: #7c6fff;
  font-size: 1.2rem;
  margin-bottom: 30px;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-align: center;
  font-weight: 300;
}

h1 {
  color: #7c6fff;
  font-size: 1.4rem;
  margin-bottom: 50px;
  letter-spacing: 8px;
  text-transform: uppercase;
  text-align: center;
  font-weight: 300;
}

/* ===== GRID ===== */
.phone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  justify-items: center;
  width: 100%;
  max-width: 820px;
}

/* ===== PHONE SHELL ===== */
.phone {
  width: 140px;
  height: 300px;
  border-radius: 28px;
  border: 4px solid #0a0a12;
  box-shadow:
    0 0 0 1px #1a1a2e,
    0 14px 36px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(124,111,255,0.06),
    inset 0 0 12px rgba(0,0,0,0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  z-index: 1;
}

.phone:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 0 1px #2a2a40,
    0 0 20px rgba(124, 111, 255, 0.3),
    0 14px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(124,111,255,0.12),
    inset 0 0 18px rgba(124,111,255,0.05),
    inset 0 0 12px rgba(0,0,0,0.4);
  border-color: #7c6fff;
  z-index: 10;
}

/* ===== SIDE BUTTONS ===== */
.phone::before {
  content: '';
  position: absolute;
  right: -6px;
  top: 74px;
  width: 4px;
  height: 38px;
  background: linear-gradient(180deg, #2a2a40, #1a1a2a);
  border-radius: 0 2px 2px 0;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.06);
}

.phone::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 64px;
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, #2a2a40, #1a1a2a);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 38px 0 #1a1a2a, inset 0 1px 1px rgba(255,255,255,0.06);
}

/* ===== SCREEN ===== */
.screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

/* ===== SCREEN IMAGE ===== */
.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ===== PHONE LABEL ===== */
.phone-label {
  font-size: 11px;
  color: #505070;
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s ease;
  text-align: center;
}

.wrapper:hover .phone-label {
  color: #7c6fff;
}

/* ===== WRAPPER ===== */
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .phone-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .phone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 400px) {
  .phone-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body {
    padding: 15px 10px;
  }
}
