/* ==========================================================================
   iPhone 16 Pro Hardware Enclosure & Mobile Chrome
   Engineered for JYLTOW Pro Mechanic Mobile App Showcase
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #030712;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}

/* Ambient Stage Background */
.mobile-stage-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(234, 88, 12, 0.14) 0%, rgba(16, 185, 129, 0.06) 45%, transparent 70%), #030712;
}

/* Demo Control Bar */
.demo-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 440px;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.demo-brand-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.demo-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: demoPulse 2s infinite;
}

@keyframes demoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.demo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.demo-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.demo-btn.primary {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
}

.demo-btn.primary:hover {
  background: #c2410c;
  border-color: #c2410c;
}

/* Outer Titanium Frame (iPhone 16 Pro Chassis) */
.iphone-frame {
  width: 390px;
  max-width: 95vw;
  height: 775px;
  max-height: calc(100vh - 75px);
  background: #090d16;
  border: 11px solid #1e293b;
  border-radius: 52px;
  position: relative;
  box-shadow: 
    0 25px 65px -10px rgba(0, 0, 0, 0.95), 
    0 0 50px rgba(234, 88, 12, 0.2),
    inset 0 0 4px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Reflection Sheen */
.iphone-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 99;
}

/* OLED Screen Viewport */
.iphone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 41px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Dynamic Island & iOS Native Status Bar
   ========================================================================== */
.ios-status-bar {
  height: 44px;
  padding: 10px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  z-index: 1000;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.status-time {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 1001;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.island-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0d1424;
  border: 1.5px solid #1e293b;
}

.island-sensor {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111827;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Home Bar Indicator (Bottom Swipe Area) */
.ios-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 4.5px;
  background: #0f172a;
  border-radius: 10px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.8;
}
