/* device-mockups.css — CSS-drawn phone and laptop mockups.
   Will be replaced by real image assets later — remove the <link>
   from index.html and delete this file to clean up. */

/* ── From style.css ── */

.app-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  isolation: isolate;
}

.phone-frame {
  position: relative;
  aspect-ratio: 9 / 19;
  background: linear-gradient(145deg, #2a2a2e 0%, #1a1a1c 45%, #0d0d0f 100%);
  border-radius: 48px;
  padding: 10px;
  box-shadow: /* Inner metallic bezel */
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    inset 0 0 0 3px #050506,
    /* Ambient + contact shadow */
    0 2px 4px rgba(0, 0, 0, 0.4),
    var(--shadow-device-light);
}

.phone-frame::before {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, #0a0a0c 0%, #2a2a2e 50%, #0a0a0c 100%);
  border-radius: 2px;
  z-index: 0;
  left: -2px;
  top: 22%;
  width: 3px;
  height: 16%;
  box-shadow: 0 26% 0 0 currentColor,
    0 50% 0 0 currentColor;
  color: #1a1a1c;
}

.phone-frame::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, #0a0a0c 0%, #2a2a2e 50%, #0a0a0c 100%);
  border-radius: 2px;
  z-index: 0;
  right: -2px;
  top: 28%;
  width: 3px;
  height: 12%;
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 1px 2px rgba(0, 0, 0, 0.8);
}

.phone-notch::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a2030, #000 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.phone-pixel .phone-frame {
  background: linear-gradient(145deg, #2a2a2e 0%, #1a1a1c 45%, #0d0d0f 100%);
  border-radius: 40px;
}

.phone-pixel .phone-screen {
  border-radius: 32px;
}

.phone-punch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a2030, #000 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 4;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.laptop-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1800px;
  perspective-origin: 50% 50%;
}

.laptop-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  /* MacBook space-gray bezel — slightly warmer mid-tone than the iPhone
     blacks, so the device looks plausibly metallic, not painted black. */
  background: linear-gradient(145deg, #5a5d61 0%, #4a4d51 45%, #3a3c40 100%);
  padding: 18px 12px 12px;
  border-radius: 18px 18px 3px 3px;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    inset 0 0 0 3px #1a1c1f,
    0 2px 4px rgba(0, 0, 0, 0.4),
    var(--shadow-device-dark);
}

.laptop-screen::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: 12px;
  background: #000;
  border-radius: 0 0 8px 8px;
  z-index: 2;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.laptop-screen::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(calc(-50% + 38px));
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a2030, #000 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  background: #0a0a0c;
}

.laptop-base {
  position: relative;
  width: 112%;
  margin-left: -6%;
  height: 16px;
  background: linear-gradient(180deg,
      #5a5d61 0%,
      #4a4d51 8%,
      #2a2c30 55%,
      #3a3c40 100%);
  border-radius: 0 0 18px 18px;
  transform: translateZ(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.laptop-base::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 110px;
  height: 6px;
  background: linear-gradient(180deg, #030304 0%, #0a0a0c 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9);
}

@media (max-width: 640px) {
  .phone-mockup { width: clamp(160px, 38vw, 220px); }
}

@media (prefers-reduced-motion: reduce) {
  .laptop-glow { animation: none; }
}

.laptop-glow {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 75%;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--yellow-5) 45%, transparent) 0%,
    color-mix(in srgb, var(--yellow-5) 20%, transparent) 35%,
    transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: none;
}

@media (max-width: 900px) {
  }

.phone-mockup {
  width: clamp(170px, 20vw, 240px);
  margin: 0;
  flex-shrink: 0;
}

.laptop-mockup {
  position: relative;
  width: 100%;
  max-width: 620px;
  transform: none;
  transform-style: preserve-3d;
  z-index: 1;
}

