/* ==========================================================================
   iPhone 16 Pro Hardware Enclosure & Mobile Chrome
   Cloned for JYLTOW Fleet 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: 16px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 60%), #030712;
}

/* Outer Titanium Frame (iPhone 16 Pro Chassis) */
.iphone-frame {
  width: 380px;
  max-width: 95vw;
  height: 760px;
  max-height: calc(100vh - 80px);
  background: #090d16;
  border: 11px solid #1e293b;
  border-radius: 52px;
  position: relative;
  box-shadow: 
    0 25px 60px -10px rgba(0, 0, 0, 0.9), 
    0 0 40px rgba(37, 99, 235, 0.25),
    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: #ffffff;
  position: relative;
  z-index: 1000;
  flex-shrink: 0;
}

.status-time {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.dynamic-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

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

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

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

/* iOS Home Indicator Bar */
.ios-home-indicator-wrap {
  height: 24px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 900;
}

.ios-home-bar {
  width: 130px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 10px;
}

/* ==========================================================================
   Conversion Bottom Dock
   ========================================================================== */
.mobile-demo-dock {
  width: 100%;
  max-width: 680px;
  margin: 12px auto 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 200;
}

.dock-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.dock-text p {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 2px 0 0;
}

.dock-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-dock-primary {
  background: #2563eb;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-dock-primary:hover {
  background: #1d4ed8;
}

.btn-dock-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.btn-dock-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   Responsive Adaptations for Mobile Screens (Viewport <= 520px)
   Enables true native full-screen mobile app layout without double borders
   ========================================================================== */
@media (max-width: 520px) {
  html, body {
    height: 100%;
    overflow: hidden;
    background: #030712;
  }

  .mobile-stage-wrapper {
    padding: 0;
    justify-content: stretch;
    height: 100%;
    background: #030712;
  }

  .iphone-frame {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }

  .iphone-frame::before {
    display: none;
  }

  .iphone-screen {
    border-radius: 0;
    height: 100%;
  }

  .ios-status-bar {
    padding: 8px 16px 0;
    height: 38px;
  }

  .dynamic-island {
    width: 96px;
    height: 24px;
    top: 6px;
  }

  .ios-home-indicator-wrap {
    height: 16px;
  }

  .ios-home-bar {
    width: 100px;
    height: 4px;
  }

  .mobile-demo-dock {
    display: none;
  }
}

