/* ============================================================
   Mac Laptop — Intro (밝은 파스텔 톤)
============================================================ */

/* === Intro Layout === */
.intro-root {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  isolation: isolate;
  background: var(--wallpaper-image) center center / cover no-repeat;
  overflow: hidden;
}

.intro-root::before {
  content: '';
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 20% 25%, rgba(116, 192, 190, 0.3) 0%, transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(205, 242, 240, 0.35) 0%, transparent 28%),
    radial-gradient(circle at 60% 80%, rgba(28, 74, 223, 0.18) 0%, transparent 32%),
    radial-gradient(circle at 30% 88%, rgba(130, 203, 186, 0.25) 0%, transparent 30%),
    radial-gradient(circle at 80% 55%, rgba(85, 173, 197, 0.22) 0%, transparent 28%);
  filter: blur(70px);
  z-index: -1;
  opacity: 0.8;
  animation: meshFloat 32s ease-in-out infinite alternate;
}

/* 떠다니는 빛 입자 */
.intro-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(2px 2px at 12% 15%, rgba(116, 192, 190, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 28% 78%, rgba(85, 173, 197, 0.6), transparent),
    radial-gradient(2px 2px at 48% 32%, rgba(205, 242, 240, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 65% 70%, rgba(28, 74, 223, 0.45), transparent),
    radial-gradient(2px 2px at 78% 22%, rgba(116, 192, 190, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 88% 58%, rgba(85, 173, 197, 0.55), transparent),
    radial-gradient(2px 2px at 92% 88%, rgba(123, 163, 232, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 18% 92%, rgba(130, 203, 186, 0.55), transparent),
    radial-gradient(2px 2px at 52% 8%, rgba(205, 242, 240, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 38% 52%, rgba(85, 173, 197, 0.5), transparent);
  opacity: 0.9;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.intro-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 173, 197, 0.3) 0%, transparent 60%);
  filter: blur(80px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.intro-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 1.8s var(--easing), filter 1.8s var(--easing);
}
.intro-stage.visible { opacity: 1; filter: blur(0); pointer-events: auto; }

/* === Brand on Intro === */
.intro-brand {
  text-align: center;
  margin-bottom: 8px;
}
.intro-logo {
  font-size: 42px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 12px rgba(85, 173, 197, 0.5));
}
.intro-os-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0F2879 0%, #1C4ADF 50%, #55ADC5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro-os-version {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* === Mac Laptop (uploaded baseline, modified) === */
.mac-laptop {
  transform: scale(0.85);
  filter: drop-shadow(0 30px 50px rgba(28, 74, 223, 0.3));
  transform-origin: center center;
}

/* 화면을 가득 채우는 줌인 */
.mac-laptop.is-zooming {
  animation: laptopFill 2.2s cubic-bezier(0.25, 0, 0.4, 1) forwards;
}

@keyframes laptopFill {
  0%   { transform: scale(0.85); opacity: 1; filter: blur(0); }
  50%  { opacity: 1; filter: blur(0); }
  80%  { opacity: 0.4; filter: blur(8px); }
  100% { transform: scale(4.5); opacity: 0; filter: blur(20px); }
}

.mac-screen {
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px #c8cacb, inset 0 0 0 10px #000;
  height: 318px;
  width: 518px;
  margin: 0 auto;
  padding: 9px 9px 23px 9px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(
    135deg,
    #CDF2F0 0%,
    #74C0BE 25%,
    #55ADC5 50%,
    #7BA3E8 75%,
    #1C4ADF 100%
  );
  transform-style: preserve-3d;
  transform: perspective(1900px) rotateX(-88.5deg);
  transform-origin: 50% 100%;
}

.mac-laptop:not(.is-open) .mac-screen { animation: hover 4s ease-in-out infinite alternate; }
@keyframes hover {
  0%   { transform: perspective(1900px) rotateX(-88.5deg) translateY(0); }
  100% { transform: perspective(1900px) rotateX(-87deg) translateY(-6px); }
}
.mac-laptop.is-open .mac-screen { animation: open 2.4s var(--easing) forwards; }
@keyframes open {
  0%   { transform: perspective(1900px) rotateX(-88.5deg); }
  100% { transform: perspective(1000px) rotateX(0deg); }
}

.mac-screen::before {
  content: '';
  width: 518px;
  height: 12px;
  position: absolute;
  background: linear-gradient(#979899, transparent);
  top: -3px;
  transform: rotateX(90deg);
  border-radius: 5px 5px;
}

.mac-display {
  position: absolute;
  inset: 9px 9px 23px 9px;
  border-radius: 12px;
  overflow: hidden;
}
.mac-camera {
  width: 100px; height: 12px;
  position: absolute;
  background-color: #000;
  top: 0; left: 50%;
  transform: translate(-50%, 0);
  border-radius: 0 0 6px 6px;
  z-index: 2;
}

.mac-screen::after {
  background: linear-gradient(to bottom, #272727, #0d0d0d);
  border-radius: 0 0 20px 20px;
  bottom: 2px;
  content: '';
  height: 24px;
  left: 2px;
  position: absolute;
  width: 514px;
}

.mac-base {
  background: radial-gradient(circle at center, #e2e3e4 85%, #a9abac 100%);
  border: solid #a0a3a7;
  border-radius: 2px 2px 12px 12px;
  border-width: 1px 2px 0 2px;
  box-shadow: inset 0 -2px 8px 0 #6c7074;
  height: 24px;
  margin-top: -10px;
  position: relative;
  width: 620px;
  z-index: 9;
}
.mac-base::after {
  background: #e2e3e4;
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 0 4px 2px #babdbf;
  content: '';
  height: 10px;
  left: 50%;
  margin-left: -60px;
  position: absolute;
  top: 0;
  width: 120px;
}
.mac-base::before {
  background: 0 0;
  border-radius: 0 0 3px 3px;
  bottom: -2px;
  box-shadow: -270px 0 #272727, 250px 0 #272727;
  content: '';
  height: 2px;
  left: 50%;
  margin-left: -10px;
  position: absolute;
  width: 40px;
}
.mac-hinge { display: none; }

/* === Intro CTA === */
.intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-100);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 12px 30px rgba(85, 173, 197, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.25s var(--easing);
  position: relative;
  letter-spacing: -0.01em;
}
.intro-cta:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(85, 173, 197, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.intro-cta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.8s ease-in-out infinite;
}
.intro-cta-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--ink-400);
}

.intro-footer {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-400);
  letter-spacing: 0.04em;
}

/* === Boot Screen === */
.stage-boot {
  background: var(--wallpaper-image) center center / cover no-repeat;
  z-index: 10;
}

.boot-apple {
  font-size: 64px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 24px rgba(85, 173, 197, 0.5));
  animation: bootPulse 1.6s ease-in-out infinite alternate;
}
@keyframes bootPulse {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

.boot-progress {
  width: 220px;
  height: 4px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.boot-progress-bar {
  height: 100%;
  width: 0;
  background: var(--grad-accent);
  border-radius: 999px;
  transition: width 1.4s ease-out;
  box-shadow: 0 0 12px rgba(85, 173, 197, 0.6);
}

.boot-log {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  width: 320px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-400);
}
.boot-log li {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  padding: 2px 0;
}
.boot-log li::before { content: '› '; color: var(--accent); }
.boot-log li.show { opacity: 1; transform: translateY(0); }
.boot-log li.boot-ready { color: #059669; font-weight: 600; }
.boot-log li.boot-ready::before { content: '✓ '; color: #059669; }
