/* 히어로 — 중앙 Z-레이아웃 + 맥 윈도우 + 좌우 분할 */

.page-marketing .mk-hero__stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 3rem);
  width: 100%;
}

.page-marketing .mk-hero__copy--center {
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 2vw, 1.5rem);
}

.page-marketing .mk-h1--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin-bottom: 1.25rem;
  font-size: inherit;
}

.page-marketing .mk-h1__primary {
  display: block;
  font-size: clamp(1.5rem, 2.8vw + 0.5rem, 2.75rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--mk-ink);
}

.page-marketing .mk-h1__secondary {
  display: block;
  font-size: clamp(1rem, 1.6vw + 0.4rem, 1.625rem);
  font-weight: 600;
  line-height: 1.45;
  color: #a1a1aa;
}

.page-marketing .mk-h1__secondary em {
  color: var(--mk-accent);
  font-weight: 700;
}

@media (min-width: 768px) {
  .page-marketing .mk-h1--hero {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .page-marketing .mk-h1__primary,
  .page-marketing .mk-h1__secondary {
    white-space: nowrap;
  }
}

.page-marketing .mk-lead--pain {
  margin: 0 auto;
  max-width: none;
  width: 100%;
  font-size: clamp(0.9375rem, 1.1vw + 0.5rem, 1.125rem);
  line-height: 1.7;
  color: #71717a;
}

@media (min-width: 768px) {
  .page-marketing .mk-lead--pain {
    max-width: none;
  }
}

.page-marketing .mk-hero__actions--center {
  justify-content: center;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .page-marketing .mk-hero__actions--center {
    flex-direction: row;
    max-width: 36rem;
  }

  .page-marketing .mk-hero__actions--center .mk-btn--hero-cta {
    flex: 1.35;
  }

  .page-marketing .mk-hero__actions--center .mk-btn--outline {
    flex: 0.65;
  }
}

.page-marketing .mk-btn--hero-cta {
  box-shadow:
    0 4px 28px var(--mk-accent-glow),
    0 0 0 1px rgba(255, 107, 53, 0.25) inset;
}

.page-marketing .mk-hero__visual-wide {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  animation: mk-float 7s ease-in-out infinite;
}

/* macOS 브라우저 윈도우 — 다크 크롬, 내부 컨텐츠는 라이트 */
.mk-mac-window {
  border-radius: 0.85rem;
  overflow: hidden;
  background: #1a1a1c;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mk-mac-window__chrome {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(180deg, #323234 0%, #262628 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mk-mac-window__lights {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 1;
}

.mk-mac-window__lights span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.12);
}

.mk-mac-window__lights span:nth-child(1) { background: #ff5f57; }
.mk-mac-window__lights span:nth-child(2) { background: #febc2e; }
.mk-mac-window__lights span:nth-child(3) { background: #28c840; }

.mk-mac-window__url {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(72%, 18rem);
  padding: 0.38rem 0.85rem;
  border-radius: 0.45rem;
  background: #1e1e22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.6875rem;
  font-weight: 500;
  color: #a1a1aa;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mk-mac-window__viewport {
  padding: clamp(0.75rem, 2vw, 1.15rem);
  background: #121214;
}

/* 좌: 인기글 · 우: 관제 — 윈도우 안쪽 라이트 카드 */
.mk-hero-dash-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 16rem;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 900px) {
  .mk-hero-dash-split {
    min-height: 17rem;
  }
}

@media (min-width: 720px) {
  .mk-hero-dash-split {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (min-width: 1200px) {
  .mk-hero-dash-split {
    min-height: 18rem;
  }
}

.mk-hero-dash-split__cafe {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
  overflow: hidden;
}

@media (min-width: 720px) {
  .mk-hero-dash-split__cafe {
    border-bottom: none;
    border-right: none;
  }
}

.mk-cafe-pop--split {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 우측 관제 패널 — 라이트 톤 (카페 UI와 통일) */
.mk-dp-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 1rem 1rem;
  background: #f7f9fc;
  color: #333;
  font-size: 0.75rem;
  border-left: 1px solid #e8ecf0;
}

.mk-dp-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e8ecf0;
}

.mk-dp-panel__brand {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #ff6b35;
  letter-spacing: 0.03em;
}

.mk-dp-panel__ai-tag {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.06rem 0.32rem;
  border-radius: 0.22rem;
  font-size: 0.5625rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.35);
  vertical-align: 0.08em;
}

.mk-dp-panel__ai {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, #f3f0ff 0%, #faf8ff 100%);
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mk-dp-panel__ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.mk-dp-panel__ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.5625rem;
  font-weight: 800;
  color: #6d28d9;
  letter-spacing: 0.02em;
}

.mk-dp-panel__ai-badge i {
  font-size: 0.625rem;
  color: #8b5cf6;
}

.mk-dp-panel__ai-status {
  font-size: 0.5625rem;
  font-weight: 700;
  color: #7c3aed;
  white-space: nowrap;
}

.mk-dp-panel__ai-status.is-pulse {
  animation: mk-ai-status-pulse 1.4s ease-in-out infinite;
}

@keyframes mk-ai-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.mk-dp-panel__ai-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

.mk-dp-panel__ai-steps span {
  padding: 0.22rem 0.15rem;
  border-radius: 0.28rem;
  text-align: center;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #999;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(124, 58, 237, 0.08);
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.mk-dp-panel__ai-steps span.is-active {
  color: #6d28d9;
  background: #fff;
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.15);
  animation: mk-ai-step-glow 1.5s ease-in-out infinite;
}

.mk-dp-panel__ai-steps span.is-done {
  color: #03a94d;
  background: rgba(232, 248, 240, 0.9);
  border-color: rgba(3, 169, 77, 0.2);
}

@keyframes mk-ai-step-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(124, 58, 237, 0); }
  50% { box-shadow: 0 0 14px rgba(124, 58, 237, 0.22); }
}

.mk-dp-panel__ai-thought {
  margin: 0;
  font-size: 0.5625rem;
  line-height: 1.45;
  color: #666;
  font-weight: 500;
}

.mk-dp-panel__ai-thought.is-flash {
  animation: mk-ai-thought-flash 0.55s ease;
}

@keyframes mk-ai-thought-flash {
  0%, 100% { color: #666; }
  40% { color: #6d28d9; }
}

.mk-dp-panel__live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: #03a94d;
}

.mk-dp-panel__live time {
  font-variant-numeric: tabular-nums;
  color: #999;
}

.mk-dp-panel__block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mk-dp-panel__label {
  font-size: 0.625rem;
  color: #999;
  font-weight: 500;
}

.mk-dp-panel__keyword {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
}

.mk-dp-panel__rank-card {
  padding: 0.7rem 0.75rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid #e3e8ef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.35s, box-shadow 0.35s;
}

.mk-dp-panel__rank-card.is-pulse-warn {
  border-color: #ff9800;
  box-shadow:
    0 0 0 2px rgba(255, 152, 0, 0.22),
    0 0 24px rgba(255, 152, 0, 0.18);
  animation: mk-panel-glow-warn 1.1s ease-in-out infinite;
}

.mk-dp-panel__rank-card.is-pulse-danger {
  border-color: #ef5350;
  box-shadow:
    0 0 0 2px rgba(240, 68, 82, 0.25),
    0 0 28px rgba(240, 68, 82, 0.2);
  animation: mk-panel-glow-danger 1.1s ease-in-out infinite;
}

.mk-dp-panel__rank-card.is-phase-hit {
  animation: mk-panel-flash 0.55s ease;
}

@keyframes mk-panel-flash {
  0% { transform: scale(1); }
  35% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

@keyframes mk-panel-glow-warn {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.15), 0 0 16px rgba(255, 152, 0, 0.1); }
  50% { box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.35), 0 0 32px rgba(255, 152, 0, 0.22); }
}

@keyframes mk-panel-glow-danger {
  0%, 100% { box-shadow: 0 0 0 2px rgba(240, 68, 82, 0.18), 0 0 18px rgba(240, 68, 82, 0.12); }
  50% { box-shadow: 0 0 0 3px rgba(240, 68, 82, 0.4), 0 0 36px rgba(240, 68, 82, 0.26); }
}

.mk-dp-panel__rank-row {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin: 0.2rem 0 0.4rem;
}

.mk-dp-panel__rank-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #111;
  font-variant-numeric: tabular-nums;
}

.mk-dp-panel__rank-num.is-swap {
  animation: mk-rank-swap 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes mk-rank-swap {
  0% { transform: translateY(8px); opacity: 0.4; }
  100% { transform: none; opacity: 1; }
}

.mk-dp-panel__rank-unit {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #888;
}

.mk-dp-panel__delta {
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
}

.mk-dp-panel__delta.is-drop {
  background: #ffebee;
  color: #e53935;
}

.mk-dp-panel__delta.is-out {
  background: #f0f0f0;
  color: #666;
}

.mk-dp-panel__status {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
}

.mk-dp-panel__status.is-ok {
  background: #e8f8f0;
  color: #03a94d;
}

.mk-dp-panel__status.is-warn {
  background: #fff3e0;
  color: #e65100;
}

.mk-dp-panel__status.is-danger {
  background: #ffebee;
  color: #e53935;
}

.mk-dp-panel__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.mk-dp-panel__metric {
  padding: 0.5rem 0.6rem;
  border-radius: 0.4rem;
  background: #fff;
  border: 1px solid #e8ecf0;
}

.mk-dp-panel__metric-val {
  display: block;
  margin-top: 0.12rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
}

.mk-dp-panel__metric-val.is-tick {
  color: #e53935;
}

.mk-dp-panel__log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-height: 2.2rem;
  max-height: 3.2rem;
  overflow: hidden;
}

.mk-dp-panel__log li {
  padding: 0.32rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.625rem;
  color: #999;
  border-left: 2px solid #e0e0e0;
  background: #fff;
}

.mk-dp-panel__log li.is-active {
  color: #555;
  border-left-color: #ff6b35;
  background: #fff8f5;
  font-weight: 600;
}

.mk-dp-panel__log li.is-warn {
  border-left-color: #ff9800;
  color: #e65100;
  background: #fff8ee;
  font-weight: 700;
  animation: mk-log-flash-warn 0.6s ease;
}

.mk-dp-panel__log li.is-danger {
  border-left-color: #e53935;
  color: #c62828;
  background: #fff5f5;
  font-weight: 700;
  animation: mk-log-flash-danger 0.6s ease;
}

@keyframes mk-log-flash-warn {
  0%, 100% { background: #fff8ee; }
  40% { background: #ffe8c8; }
}

@keyframes mk-log-flash-danger {
  0%, 100% { background: #fff5f5; }
  40% { background: #ffdede; }
}

.mk-dp-panel__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.4rem;
  background: #fff8f5;
  border: 1px solid #ffd4c2;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.45;
  color: #555;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mk-dp-panel__alert.is-flash-warn {
  background: #fff3e0;
  border-color: #ffb74d;
  box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
  animation: mk-alert-flash-warn 0.65s ease;
}

.mk-dp-panel__alert.is-flash-danger {
  background: #ffebee;
  border-color: #ef9a9a;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.22);
  animation: mk-alert-flash-danger 0.65s ease;
}

.mk-dp-panel__alert.is-flash-ok {
  animation: mk-alert-flash-ok 0.45s ease;
}

@keyframes mk-alert-flash-warn {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.02); box-shadow: 0 0 20px rgba(255, 152, 0, 0.25); }
}

@keyframes mk-alert-flash-danger {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.02); box-shadow: 0 0 24px rgba(229, 57, 53, 0.28); }
}

@keyframes mk-alert-flash-ok {
  0%, 100% { background: #fff8f5; }
  40% { background: #e8f8f0; }
}

.mk-dp-panel__alert em {
  color: #ff6b35;
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  .page-marketing .mk-hero__visual-wide,
  .mk-dp-panel__rank-num.is-swap,
  .mk-dp-panel__ai-status.is-pulse,
  .mk-dp-panel__ai-steps span.is-active,
  .mk-dp-panel__ai-thought.is-flash {
    animation: none !important;
  }
}
