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

html, body {
  height: 100%; overflow: hidden;
  font-family: -apple-system, 'SF Pro Display', BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── DYNAMIC BACKGROUND ── */
.bg-orbs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: orbFloat ease-in-out infinite alternate;
}
.orb1 {
  width: 600px; height: 600px;
  top: -150px; left: -150px;
  background: radial-gradient(circle, rgba(99,102,241,0.55), transparent 70%);
  animation-duration: 14s; animation-delay: 0s;
}
.orb2 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(168,85,247,0.45), transparent 70%);
  animation-duration: 18s; animation-delay: -4s;
}
.orb3 {
  width: 550px; height: 550px;
  bottom: -150px; right: -50px;
  background: radial-gradient(circle, rgba(59,130,246,0.40), transparent 70%);
  animation-duration: 16s; animation-delay: -8s;
}
.orb4 {
  width: 400px; height: 400px;
  bottom: -80px; left: -80px;
  background: radial-gradient(circle, rgba(16,185,129,0.28), transparent 70%);
  animation-duration: 20s; animation-delay: -2s;
}
.orb5 {
  width: 350px; height: 350px;
  top: 40%; left: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139,92,246,0.22), transparent 70%);
  animation-duration: 12s; animation-delay: -6s;
}
@keyframes orbFloat {
  0%   { transform: translate(0px, 0px) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.05); }
  66%  { transform: translate(-20px, 40px) scale(0.97); }
  100% { transform: translate(30px, 20px) scale(1.03); }
}
.orb5 { animation-name: orbFloat5; }
@keyframes orbFloat5 {
  0%   { transform: translate(-50%,-50%) scale(1); }
  50%  { transform: translate(calc(-50% + 60px), calc(-50% - 40px)) scale(1.08); }
  100% { transform: translate(calc(-50% - 40px), calc(-50% + 30px)) scale(0.95); }
}

/* ── WALLPAPER ── */
body {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(99,102,241,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(168,85,247,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 60% 80%, rgba(59,130,246,0.20) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(16,185,129,0.12) 0%, transparent 50%),
    linear-gradient(135deg, #0f0c29 0%, #1a1040 40%, #0d1b2a 100%);
}

canvas#bg {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
}

.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}

/* ── MENUBAR ── */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 28px;
  background: rgba(10,8,28,0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center;
  padding: 0 14px;
}
.menubar-apple {
  font-size: 15px; color: rgba(255,255,255,0.9);
  cursor: default; line-height: 1; margin-right: 6px;
}
.menubar-items { display: flex; align-items: center; gap: 2px; }
.menubar-item {
  font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,0.72);
  padding: 2px 9px; border-radius: 5px;
  cursor: default; letter-spacing: -0.1px;
  transition: background 0.15s;
}
.menubar-item:hover { background: rgba(255,255,255,0.12); }
.menubar-item.bold { font-weight: 700; color: rgba(255,255,255,0.92); }
.menubar-right {
  margin-left: auto;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.82); letter-spacing: -0.2px;
}

.menubar-apple-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 300;
}
.menubar-apple-btn:hover,
.menubar-apple-btn.active { background: rgba(255,255,255,0.14); }

.apple-menu {
  position: fixed; top: 28px; left: 8px;
  width: 231px;
  background: rgba(28,24,52,0.82);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 10px;
  padding: 5px 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  z-index: 999;
  display: none;
}
.apple-menu.show {
  display: block;
  animation: menuDrop 0.18s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes menuDrop {
  from { opacity:0; transform:scale(0.95) translateY(-6px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.apple-menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 14px;
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.85);
  cursor: default;
  transition: background 0.1s;
  border-radius: 5px; margin: 0 4px;
  letter-spacing: -0.1px;
}
.apple-menu-item:hover { background: rgba(99,102,241,0.6); color: #fff; }
.apple-menu-item.bold { font-weight: 600; }
.apple-menu-item .shortcut { color: rgba(255,255,255,0.32); font-size: 12px; }
.apple-menu-item:hover .shortcut { color: rgba(255,255,255,0.65); }
.apple-menu-sep {
  height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0;
}

/* ── DESKTOP ── */
.desktop {
  position: fixed; inset: 0; padding-top: 28px;
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
}

/* ── WINDOW — soft, pill-ish shape ── */
.window {
  width: 400px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(18,14,42,0.60);
  backdrop-filter: blur(48px) saturate(200%) brightness(1.12);
  -webkit-backdrop-filter: blur(48px) saturate(200%) brightness(1.12);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,0.5),
    0 40px 100px rgba(0,0,0,0.55),
    0 8px 28px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  animation: windowOpen 0.5s cubic-bezier(0.34,1.46,0.64,1) both;
  cursor: default;
}
@keyframes windowOpen {
  from { opacity:0; transform:scale(0.86) translateY(24px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

/* ── TITLEBAR ── */
.titlebar {
  height: 42px;
  display: flex; align-items: center;
  padding: 0 18px;
  position: relative;
  cursor: grab;
  background: rgba(255,255,255,0.03);
}
.titlebar:active { cursor: grabbing; }

.traffic-lights {
  display: flex; align-items: center; gap: 7px; z-index: 1;
}
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: filter 0.12s;
}
.dot:hover { filter: brightness(1.15); }
.dot.red    { background: #ff5f57; box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.3), 0 0 6px rgba(255,95,87,0.4); }
.dot.yellow { background: #febc2e; box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.3), 0 0 6px rgba(254,188,46,0.35); }
.dot.green  { background: #28c840; box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.3), 0 0 6px rgba(40,200,64,0.35); }
.dot-icon { opacity: 0; font-size: 7px; font-weight: 900; color: rgba(0,0,0,0.45); }
.traffic-lights:hover .dot-icon { opacity: 1; }

.titlebar-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.5); letter-spacing: -0.2px;
  pointer-events: none;
}

/* soft divider */
.title-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.07) 30%, rgba(255,255,255,0.07) 70%, transparent 95%);
  margin: 0 1px;
}

/* ── BODY ── */
.window-body {
  padding: 28px 26px 26px;
  display: flex; flex-direction: column; align-items: center;
}

/* ── PROFILE ── */
.profile {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-bottom: 24px;
  animation: rise 0.6s 0.18s cubic-bezier(0.22,1,0.36,1) both;
}
.avatar {
  width: 74px; height: 74px; border-radius: 50%;
  background: linear-gradient(145deg, #2c2650, #161228);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 300; letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px; overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.04),
    0 0 0 8px rgba(255,255,255,0.02),
    0 8px 28px rgba(0,0,0,0.55);
}
.avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.profile-name {
  font-size: 18px; font-weight: 600; letter-spacing: -0.35px;
  color: rgba(255,255,255,0.92); margin-bottom: 5px;
}
.profile-bio {
  font-size: 12px; color: rgba(255,255,255,0.36);
  line-height: 1.55; margin-top: 0px; margin-bottom: -15px;
}

/* soft sep */
.sep {
  width: 85%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent);
  margin-bottom: 20px;
}

/* ── LINKS — pill shape, soft glass ── */
.links {
  width: 100%; display: flex; flex-direction: column; gap: 10px;
}

.link-btn {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px;
  text-decoration: none; color: rgba(255,255,255,0.86);
  border-radius: 18px;
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.052);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.11),
    inset 0 -1px 0 rgba(0,0,0,0.14),
    0 2px 12px rgba(0,0,0,0.25);
  transition:
    background 0.2s, border-color 0.2s, box-shadow 0.2s,
    transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  animation: rise 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.link-btn:nth-child(1){ animation-delay:0.32s; }
.link-btn:nth-child(2){ animation-delay:0.41s; }
.link-btn:nth-child(3){ animation-delay:0.50s; }

.link-btn::before {
  content:''; position:absolute; top:0; left:14%; right:14%; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20) 40%, rgba(255,255,255,0.20) 60%, transparent);
  pointer-events:none; border-radius:100%;
}
.link-btn::after {
  content:''; position:absolute; top:0; left:0; width:48%; height:52%;
  background: radial-gradient(ellipse at top left, rgba(255,255,255,0.055) 0%, transparent 68%);
  border-radius:inherit; pointer-events:none;
}

.link-btn:hover {
  background: rgba(255,255,255,0.085);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 8px 28px rgba(0,0,0,0.38);
}
.link-btn:active { transform: scale(0.988); }

.icon-wrap {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
  transition: background 0.18s;
}
.link-btn:hover .icon-wrap { background: rgba(255,255,255,0.11); }
.icon-wrap svg { width: 16px; height: 16px; }

.link-info { flex:1; }
.link-platform { font-size:13.5px; font-weight:500; color:rgba(255,255,255,0.88); letter-spacing:-0.15px; margin-bottom:2px; }
.link-handle   { font-size:11px; color:rgba(255,255,255,0.34); }

.arrow { color:rgba(255,255,255,0.22); flex-shrink:0; transition:transform 0.18s, color 0.18s; }
.link-btn:hover .arrow { transform:translateX(3px); color:rgba(255,255,255,0.50); }

.win-footer {
  margin-top:18px; font-size:10.5px; color:rgba(255,255,255,0.16); letter-spacing:0.2px;
  animation: rise 0.5s 0.65s both;
}

@keyframes rise {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}

.window {
  opacity: 0;
  transform: scale(0.82) translateY(28px);
  filter: blur(8px);
  animation: windowEntrance 0.40s 0.85s cubic-bezier(0.34,1.46,0.64,1) forwards;
}
@keyframes windowEntrance {
  0%   { opacity:0; transform:scale(0.82) translateY(28px); filter:blur(8px); }
  60%  { filter:blur(0px); }
  100% { opacity:1; transform:scale(1) translateY(0); filter:blur(0px); }
}

.boot-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: #08061a;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  animation: bootOut 0.5s 0.75s cubic-bezier(0.4,0,0.2,1) forwards;
}
.boot-logo {
  opacity: 0;
  animation: bootLogoIn 0.4s 0.1s ease forwards, bootLogoOut 0.3s 0.6s ease forwards;
}
.boot-logo svg { width: 48px; height: 48px; fill: rgba(255,255,255,0.7); }
@keyframes bootLogoIn  { from { opacity:0; transform:scale(0.8); } to { opacity:1; transform:scale(1); } }
@keyframes bootLogoOut { to   { opacity:0; transform:scale(1.1); } }
@keyframes bootOut     { to   { opacity:0; } }

@media (max-width: 768px) {
  /* sembunyikan semua elemen desktop */
  .menubar, 
  .desktop, 
  .boot-overlay, 
  .window { 
    display: none !important; 
  }

  /* tampilkan pesan peringatan */
  .mobile-warning {
    display: flex !important;
    position: fixed; inset: 0;
    align-items: center; justify-content: center;
    background: #08061a;
    color: white;
    font-family: sans-serif;
    text-align: center;
    padding: 20px;
  }
}

/* pastikan default-nya disembunyikan */
.mobile-warning { display: none; }
/* ── ABOUT THIS MAC WINDOW ── */
.atm-win { border-radius: 18px; overflow: hidden; }

.atm-gray {
  background: rgba(255,255,255,0.14) !important;
  box-shadow: none !important;
}
.atm-gray .dot-icon { display: none; }

.atm-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px 22px;
  text-align: center;
}

.atm-laptop-wrap {
  width: 200px;
  margin-bottom: 16px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.55));
}
.atm-laptop { width: 100%; }

.atm-model {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.atm-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 18px;
  letter-spacing: -0.1px;
}

.atm-specs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 8px 0;
  margin-bottom: 18px;
}
.atm-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: 12px;
}
.atm-label {
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  min-width: 92px;
  text-align: right;
  flex-shrink: 0;
  font-size: 11.5px;
}
.atm-val {
  color: rgba(255,255,255,0.82);
  text-align: left;
  font-size: 11.5px;
  line-height: 1.4;
}

.atm-more-btn {
  padding: 7px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.80);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: -0.1px;
  backdrop-filter: blur(10px);
  transition: background 0.18s, border-color 0.18s;
  font-family: inherit;
  margin-bottom: 16px;
}
.atm-more-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.28);
}

.atm-footer {
  font-size: 10px;
  color: rgba(255,255,255,0.22);
  line-height: 1.7;
  letter-spacing: 0.1px;
}
