/* ==========================================================================
   Meatwin Modern Hero Banner (Option 1: Smart SaaS & Dashboard Style)
   Author: Antigravity
   Description: Toss/Channel.io Inspired Modern Hero Slider
   ========================================================================== */

/* Hero Banner Container */
.mw-hero-section {
  position: relative;
  width: 100%;
  background: #f8fafc;
  overflow: hidden;
  padding-top: 80px; /* Header compensation */
  min-height: 700px;
  box-sizing: border-box;
}

/* Ambient Glow & Grid Background */
.mw-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.mw-hero-bg__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 60%, transparent 100%);
  opacity: 0.8;
}

.mw-hero-bg__glow-1 {
  position: absolute;
  top: -10%;
  right: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
  filter: blur(60px);
  border-radius: 50%;
  animation: heroGlowPulse 8s ease-in-out infinite alternate;
}

.mw-hero-bg__glow-2 {
  position: absolute;
  bottom: 5%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  border-radius: 50%;
  animation: heroGlowPulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlowPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.15) translate(20px, -20px); opacity: 1; }
}

/* Swiper Container Custom */
.mw-hero-swiper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mw-hero-slide {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 40px 60px 80px;
  width: 100%;
  flex-shrink: 0;
}

.mw-hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 50px;
}

/* Left Content Column */
.mw-hero-content {
  text-align: left;
}

/* Pill Badge */
.mw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}

.mw-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: mwDotPulse 2s infinite;
}

@keyframes mwDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* Headings */
.mw-hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 20px 0;
  word-break: keep-all;
}

.mw-gradient-text {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.mw-hero-desc {
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 32px 0;
  word-break: keep-all;
  font-weight: 400;
}

/* CTA Buttons */
.mw-hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.mw-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 10px 22px -4px rgba(37, 99, 235, 0.42);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.mw-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.55);
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

.mw-btn-primary svg {
  transition: transform 0.2s ease;
}

.mw-btn-primary:hover svg {
  transform: translateX(3px);
}

.mw-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #334155 !important;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.mw-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
  transform: translateY(-1px);
}

/* Feature Badges list */
.mw-hero-features {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mw-hero-features li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
}

.mw-hero-features li svg {
  color: #2563eb;
  flex-shrink: 0;
}

/* ==========================================================================
   Right Column: Dashboard Mockup Card
   ========================================================================== */
.mw-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.mw-mockup-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12),
              0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.mw-mockup-card:hover {
  transform: translateY(-4px);
}

/* Mockup Header */
.mw-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.mw-mockup-dots {
  display: flex;
  gap: 6px;
}

.mw-mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.mw-mockup-dots span:nth-child(1) { background-color: #ef4444; }
.mw-mockup-dots span:nth-child(2) { background-color: #f59e0b; }
.mw-mockup-dots span:nth-child(3) { background-color: #10b981; }

.mw-mockup-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mw-mockup-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.mw-mockup-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* Mockup Body */
.mw-mockup-body {
  padding: 22px 20px;
}

/* KPI Summary Grid */
.mw-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mw-kpi-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

.mw-kpi-label {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 4px;
}

.mw-kpi-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.mw-kpi-val.highlight {
  color: #2563eb;
}

/* List / Table Preview */
.mw-mockup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mw-mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdfdfe;
  border: 1px solid #eef2f6;
  font-size: 13px;
  transition: all 0.2s ease;
}

.mw-mockup-row:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.mw-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mw-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.mw-row-icon.blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.mw-row-icon.green { background: rgba(16, 185, 129, 0.1); color: #059669; }
.mw-row-icon.purple { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }

.mw-row-name {
  font-weight: 600;
  color: #1e293b;
}

.mw-row-sub {
  font-size: 11px;
  color: #94a3b8;
}

.mw-row-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
}

.mw-status-active {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.mw-status-process {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

/* Progress Bar inside Warehouse List Row */
.mw-row-gauge {
  width: 90px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}

.mw-row-gauge-fill {
  height: 100%;
  border-radius: 9999px;
}

.mw-row-gauge-fill.blue { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.mw-row-gauge-fill.green { background: linear-gradient(90deg, #10b981, #059669); }
.mw-row-gauge-fill.purple { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }

/* Live Notification Mini Toast */
.mw-live-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 13px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.06));
  border: 1px dashed rgba(37, 99, 235, 0.25);
  border-radius: 10px;
  font-size: 11.5px;
  color: #1e3a8a;
  text-align: left;
}

.mw-live-toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: mwDotPulse 2s infinite;
  flex-shrink: 0;
}

/* Floating Glass Cards */
.mw-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  animation: floatCardBounce 5s ease-in-out infinite alternate;
}

.mw-float-card.top-right {
  top: -20px;
  right: -20px;
}

.mw-float-card.bottom-left {
  bottom: -22px;
  left: -20px;
  animation-delay: -2.5s;
}

@keyframes floatCardBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.mw-float-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.mw-float-icon.success {
  background: #ecfdf5;
  color: #10b981;
}

.mw-float-icon.info {
  background: #eff6ff;
  color: #3b82f6;
}

.mw-float-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.mw-float-info span {
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
}

/* ==========================================================================
   Navigation & Tab Indicator Controls
   ========================================================================== */
.mw-hero-controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

/* Tab Navigation (4 Tabs) */
.mw-tab-nav {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 1080px;
}

.mw-tab-btn {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mw-tab-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.mw-tab-btn.active {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.mw-tab-btn::after,
.mw-tab-btn.active::after,
.mw-tab-btn::before,
.mw-tab-btn.active::before {
  display: none !important;
  content: none !important;
}

.mw-tab-num {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 2px;
  display: block;
}

.mw-tab-btn.active .mw-tab-num {
  color: #2563eb;
}

.mw-tab-label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mw-tab-btn.active .mw-tab-label {
  color: #0f172a;
}

/* Tab Progress Line */
.mw-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #2563eb;
  border-radius: 2px;
}

.mw-tab-btn.active .mw-tab-progress {
  animation: tabProgressFill 5s linear forwards;
}

@keyframes tabProgressFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Arrow Navigation */
.mw-nav-arrows {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mw-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  user-select: none;
}

.mw-arrow-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: scale(1.05);
}

.mw-arrow-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1279px) {
  .mw-hero-section {
    padding-top: 80px; /* Safe space below 60px fixed mobile header */
  }
  .mw-hero-slide {
    padding: 35px 40px 70px;
  }
  .mw-hero-controls {
    padding: 0 40px 25px;
  }
  .mw-hero-title {
    font-size: 38px;
  }
  .mw-hero-inner {
    gap: 30px;
  }
}

@media (max-width: 800px) {
  .mw-hero-section {
    min-height: auto;
    padding-top: 80px;
  }
  .mw-hero-slide {
    padding: 24px 32px 55px;
  }
  .mw-hero-controls {
    padding: 0 32px 25px;
  }
  .mw-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .mw-hero-content {
    text-align: center;
  }
  .mw-badge {
    margin: 0 auto 16px;
  }
  .mw-hero-title {
    font-size: 32px;
  }
  .mw-hero-desc {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .mw-hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }
  .mw-hero-features {
    justify-content: center;
  }
  .mw-mockup-wrapper {
    max-width: 480px;
  }
  .mw-float-card.top-right {
    top: -12px;
    right: 0px;
  }
  .mw-float-card.bottom-left {
    bottom: -15px;
    left: 0px;
  }
  /* 4-Tab 2x2 Grid for Tablet */
  .mw-tab-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 600px;
  }
  .mw-hero-controls {
    flex-direction: column;
    gap: 15px;
  }
  .mw-nav-arrows {
    display: none; /* Hide manual arrows on mobile/tablet in favor of swipe/tabs */
  }
}

@media (max-width: 600px) {
  .mw-hero-section {
    padding-top: 75px;
  }
  .mw-hero-slide {
    padding: 12px 20px 40px;
  }
  .mw-hero-controls {
    padding: 0 20px 20px;
  }
  .mw-hero-title {
    font-size: 26px;
    line-height: 1.32;
  }
  .mw-hero-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .mw-btn-primary, .mw-btn-secondary {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    font-size: 15px;
  }
  .mw-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .mw-kpi-item {
    padding: 8px 4px;
  }
  .mw-kpi-label {
    font-size: 10px;
  }
  .mw-kpi-val {
    font-size: 13.5px;
  }
  .mw-mockup-row {
    padding: 8px 10px;
    font-size: 12px;
  }
  .mw-row-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  .mw-float-card {
    padding: 8px 12px;
    border-radius: 10px;
  }
  .mw-float-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .mw-float-info strong {
    font-size: 11.5px;
  }
  .mw-float-info span {
    font-size: 9.5px;
  }
  .mw-float-card.top-right {
    top: -10px;
    right: 5px;
  }
  .mw-float-card.bottom-left {
    bottom: -10px;
    left: 5px;
  }
  /* 4-Tab 2x2 Grid for Mobile */
  .mw-tab-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-width: 100%;
  }
  .mw-tab-btn {
    padding: 8px 10px;
    border-radius: 8px;
  }
  .mw-tab-num {
    font-size: 9.5px;
  }
  .mw-tab-label {
    font-size: 12px;
  }
}

/* ==========================================================================
   Slide 4: 기기 3대 목업 (데스크탑 + 아이폰 + 안드로이드), 이미지 없이 CSS 로 그림
   540 x 420 고정 크기로 배치하고, 좁은 화면에서는 아래 @container 로 통째 축소
   ========================================================================== */
.mw-mockup-wrapper:has(.mw-hero-devices) { container-type: inline-size; }
.mw-hero-devices {
  position: relative;
  width: 540px;
  height: 420px;
  margin: 0 auto;
}

/* 데스크탑 모니터 (뒤쪽 가운데) */
.mw-hdesk { position: absolute; left: 65px; top: 0; width: 410px; }
.mw-hdesk__screen {
  padding: 9px;
  border-radius: 14px 14px 0 0;
  background: #0f172a;
  box-shadow: 0 30px 50px -20px rgba(15, 23, 42, 0.35);
}
.mw-hdesk__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 5px 5px 0 0;
  background: #e2e8f0;
}
.mw-hdesk__bar i { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; }
.mw-hdesk__bar i:nth-child(1) { background: #ef4444; }
.mw-hdesk__bar i:nth-child(2) { background: #f59e0b; }
.mw-hdesk__bar i:nth-child(3) { background: #10b981; }
.mw-hdesk__bar span {
  flex: 1;
  margin: 0 40px 0 14px;
  padding: 1px 0;
  border-radius: 4px;
  background: #fff;
  font-size: 8.5px;
  color: #64748b;
  text-align: center;
}
.mw-hdesk__app {
  display: flex;
  height: 212px;
  overflow: hidden;
  border-radius: 0 0 5px 5px;
  background: #f8fafc;
  text-align: left;
}
.mw-hdesk__side { display: flex; flex-direction: column; gap: 9px; width: 62px; padding: 12px 10px; background: #193172; }
.mw-hdesk__side b { height: 10px; margin-bottom: 6px; border-radius: 3px; background: #1E80C3; }
.mw-hdesk__side i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.mw-hdesk__side i:nth-child(2) { background: rgba(255, 255, 255, 0.75); }
.mw-hdesk__main { flex: 1; padding: 12px; }
.mw-hdesk__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.mw-hdesk__kpis div { padding: 8px 9px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.mw-hdesk__kpis small { display: block; font-size: 8.5px; color: #64748b; }
.mw-hdesk__kpis strong { display: block; margin-top: 2px; font-size: 13px; font-weight: 800; color: #0f172a; }
.mw-hdesk__kpis div:nth-child(2) strong { color: #2563eb; }
.mw-hdesk__table { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; }
.mw-hdesk__table div { display: grid; grid-template-columns: 1fr 1fr 44px; padding: 6px 10px; border-top: 1px solid #f1f5f9; font-size: 9.5px; color: #334155; }
.mw-hdesk__table div:first-child { border-top: 0; }
.mw-hdesk__table em { font-style: normal; font-weight: 800; color: #2563eb; text-align: right; }
.mw-hdesk__chin { height: 16px; border-radius: 0 0 12px 12px; background: linear-gradient(#e2e8f0, #cbd5e1); }
.mw-hdesk__neck { width: 64px; height: 42px; margin: 0 auto; background: linear-gradient(90deg, #cbd5e1, #e2e8f0 50%, #cbd5e1); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.mw-hdesk__base { width: 150px; height: 7px; margin: 0 auto; border-radius: 4px 4px 2px 2px; background: #cbd5e1; box-shadow: 0 6px 12px rgba(15, 23, 42, 0.15); }

/* 휴대폰 (앞쪽 양옆: 왼쪽 안드로이드, 오른쪽 아이폰 / 원래 188x380 을 0.78 배로) */
.mw-hphone {
  position: absolute;
  width: 188px;
  height: 380px;
  padding: 7px;
  box-sizing: border-box;
  box-shadow: 0 30px 50px -18px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.mw-hphone--ios {
  z-index: 3;
  left: 388px;
  top: 104px;
  border-radius: 40px;
  background: linear-gradient(145deg, #5b6474 0%, #262b36 45%, #4a5261 100%); /* 티타늄 프레임 */
  transform: rotate(4deg) scale(0.78);
  transform-origin: top left;
}
.mw-hphone--android {
  z-index: 2;
  left: 10px;
  top: 116px;
  border-radius: 26px;
  background: #111827;
  transform: rotate(-4deg) scale(0.78);
  transform-origin: top left;
}
/* 측면 버튼 */
.mw-hphone::before {
  content: "";
  position: absolute;
  top: 92px;
  width: 3px;
  height: 46px;
  border-radius: 2px;
  background: inherit;
}
.mw-hphone--ios::before { left: -3px; }
.mw-hphone--android::before { right: -3px; top: 70px; height: 56px; }

.mw-hphone__screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #f8fafc;
  color: #0f172a;
  text-align: left;
}
.mw-hphone--ios .mw-hphone__screen { border-radius: 33px; }
.mw-hphone--android .mw-hphone__screen { border-radius: 20px; }

.mw-hphone__status {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  padding: 0 18px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #1e3a8a;
}
.mw-hphone__island { position: absolute; left: 50%; top: 7px; width: 54px; height: 16px; margin-left: -27px; border-radius: 10px; background: #000; }
.mw-hphone__punch { position: absolute; left: 50%; top: 10px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #000; }

.mw-hphone__top {
  padding: 8px 16px 16px;
  background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
}
.mw-hphone__top small { display: block; font-size: 10.5px; opacity: 0.85; }
.mw-hphone__top b { display: block; margin-top: 3px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }

.mw-hphone__list { display: grid; gap: 7px; padding: 10px; }
.mw-hphone__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.mw-hphone__item strong { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.mw-hphone__item span { display: block; font-size: 9.5px; color: #64748b; line-height: 1.3; }
.mw-hphone__item em { font-style: normal; font-size: 13px; font-weight: 800; color: #2563eb; }
.mw-hphone__btn {
  margin-top: 2px;
  padding: 9px 0;
  border: 0;
  border-radius: 9999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
/* 아이폰 홈 인디케이터 / 안드로이드 하단 내비게이션 */
.mw-hphone__home { width: 64px; height: 4px; margin: auto auto 8px; border-radius: 2px; background: #0f172a; }
.mw-hphone__nav { display: flex; justify-content: space-around; margin-top: auto; padding: 8px 30px 9px; }
.mw-hphone__nav i { width: 9px; height: 9px; border: 1.5px solid #64748b; }
.mw-hphone__nav i:nth-child(1) { border-width: 0 1.5px 1.5px 0; transform: rotate(135deg); }   /* 뒤로 */
.mw-hphone__nav i:nth-child(2) { border-radius: 50%; }                                          /* 홈 */
.mw-hphone__nav i:nth-child(3) { border-radius: 2px; }                                          /* 최근 */

/* 들어갈 자리(.mw-mockup-wrapper 폭)가 540px 보다 좁으면 통째로 축소 */
@container (max-width: 539px) { .mw-hero-devices { zoom: 0.88; } }
@container (max-width: 475px) { .mw-hero-devices { zoom: 0.8; } }
@container (max-width: 432px) { .mw-hero-devices { zoom: 0.7; } }
@container (max-width: 378px) { .mw-hero-devices { zoom: 0.64; } }
@container (max-width: 345px) { .mw-hero-devices { zoom: 0.58; } }
/* 기기가 작아지는 폭에서는 떠 있는 카드도 함께 축소 (이 슬라이드만 container 라 다른 슬라이드엔 영향 없음) */
@container (max-width: 432px) { .mw-float-card { zoom: 0.78; } }
