/* =========================================
   Section 1: Hero 首屏区域
   ========================================= */
.hero-section {
    position: absolute; top: 0; left: 0; width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center;
    background-color: var(--desk-bg); background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px); background-size: 24px 24px; z-index: 10;
}
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.4) 0%, transparent 70%); pointer-events: none; z-index: 1; }
.blueprint-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; color: var(--blueprint-line); }
.bp-svg { position: absolute; }
.bp-top-left { top: 5vh; left: 5vw; width: 350px; height: 350px; } 
.bp-right { top: 15vh; right: -2vw; width: 500px; height: 500px; } 
.bp-bottom-left { bottom: 5vh; left: 8vw; width: 350px; height: 250px; opacity: 0.8; } 
.bp-top-right { top: -2vh; right: 28vw; width: 250px; height: 350px; opacity: 0.6; transform: rotate(10deg); }
.bp-bottom-right { bottom: 8vh; right: 8vw; width: 350px; height: 300px; opacity: 0.7; }
.bp-mid-left { top: 35vh; left: 2vw; width: 250px; height: 250px; opacity: 0.5; }

.browser-window {
    position: relative; width: 90vw; max-width: 1100px; height: 82vh; max-height: 700px; background: rgba(255, 255, 255, 0.6); border-radius: 14px; box-shadow: 0 40px 80px rgba(80, 60, 40, 0.15), 0 10px 20px rgba(80, 60, 40, 0.08), 0 0 0 1px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9); z-index: 10; display: flex; flex-direction: column; transform-origin: center center; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.browser-header { height: 52px; background: rgba(250, 249, 248, 0.85); border-bottom: 1px solid rgba(0,0,0,0.06); border-radius: 14px 14px 0 0; display: flex; align-items: center; padding: 0 20px; position: relative; }
.window-dots { width: 12px; height: 12px; background-color: #FF5F56; border-radius: 50%; box-shadow: 20px 0 0 #FFBD2E, 40px 0 0 #27C93F; opacity: 0.85; border: 0.5px solid rgba(0,0,0,0.15); }
.address-bar { position: absolute; left: 50%; transform: translateX(-50%); width: 340px; height: 30px; background: rgba(0,0,0,0.04); border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,0.02); box-shadow: inset 0 1px 3px rgba(0,0,0,0.03), 0 1px 0 rgba(255,255,255,0.8); transition: all 0.2s ease; }
.address-bar:hover { background: #FFFFFF; box-shadow: 0 4px 12px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.06); }
.address-bar::before { content: 'https://project.mule.page'; font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(42, 36, 33, 0.7); font-weight: 500; letter-spacing: 0.2px; display: flex; align-items: center; gap: 6px; }
.address-bar::after { content: ''; display: inline-block; width: 10px; height: 10px; background: currentColor; opacity: 0.2; mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14L21 3" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14L21 3" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>'); position: absolute; right: 10px; pointer-events: none; }

.browser-content-container {
    flex: 1; border-radius: 0 0 14px 14px; overflow: hidden; position: relative; background: rgba(255, 255, 255, 0.95);
}
.hero-content {
    width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; position: relative; background-image: radial-gradient(rgba(42, 36, 33, 0.06) 1px, transparent 1px); background-size: 24px 24px; z-index: 2;
}
.hero-content::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 40%, rgba(255,255,255,0.9) 100%); pointer-events: none; z-index: -1; }

/* =========================================
   Browser Inner Illustrations (NEW)
   ========================================= */
.browser-illustrations {
    position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
}

/* AI Agent Cursor */
.illus-cursor {
    position: absolute; top: 18%; right: 26%; display: flex; flex-direction: column; align-items: flex-start;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); z-index: 10;
}
.cursor-tag {
    background: #007AFF; color: white; font-size: 10px; font-family: 'Inter', sans-serif;
    font-weight: 600; padding: 2px 10px; border-radius: 12px; border-top-left-radius: 2px;
    margin-top: -2px; margin-left: 12px; box-shadow: 0 2px 4px rgba(0, 122, 255, 0.15);
}

/* Drag Elements Base */
.drag-element {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0,0,0,0.04); border-radius: 12px; padding: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.02);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; flex-direction: column; gap: 8px; z-index: 10;
}
.drag-label {
    font-size: 10px; font-family: 'Space Mono', monospace; font-weight: 700;
    color: rgba(42, 36, 33, 0.5); align-self: flex-start;
}

/* 1. Theme Palette */
.drag-palette {
    position: absolute; top: 22%; left: 8%; width: 120px;
    transform: rotate(-6deg);
}
.palette-colors {
    display: flex; gap: 4px; width: 100%;
}
.palette-colors div {
    flex: 1; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.03);
}

/* 2. UI Block Skeleton */
.drag-ui-block {
    position: absolute; bottom: 20%; right: 5%; width: 140px;
    transform: rotate(6deg);
}
.ui-skeleton-header {
    width: 100%; height: 32px; background: rgba(0,0,0,0.04); border-radius: 6px; margin-bottom: 4px;
}
.ui-skeleton-line {
    width: 100%; height: 6px; background: rgba(0,0,0,0.03); border-radius: 3px;
}
.ui-skeleton-line.short {
    width: 60%;
}

/* UI Outline Box drawn by AI Agent */
.ui-draw-box {
    position: absolute; top: 12%; right: 18%; width: 140px; height: 90px;
    border-radius: 8px;
    background: rgba(0, 122, 255, 0.02);
    z-index: 5;
    /* CSS animation to simulate drawing effect */
    background-image: linear-gradient(90deg, rgba(0, 122, 255, 0.4) 50%, transparent 50%), linear-gradient(90deg, rgba(0, 122, 255, 0.4) 50%, transparent 50%), linear-gradient(0deg, rgba(0, 122, 255, 0.4) 50%, transparent 50%), linear-gradient(0deg, rgba(0, 122, 255, 0.4) 50%, transparent 50%);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 8px 1px, 8px 1px, 1px 8px, 1px 8px;
    background-position: left top, right bottom, left bottom, right top;
    border: none;
    animation: draw-border 20s infinite linear; /* 减慢动画速度，更自然 */
}

@keyframes draw-border {
    0% { background-position: left top, right bottom, left bottom, right top; }
    100% { background-position: left -40px top, right 40px bottom, left bottom -40px, right top 40px; }
}

.badge-container { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 1.5px; }
.badge-dark { background-color: var(--text-main); color: #fff; padding: 4px 10px 4px 4px; border-radius: 6px; font-weight: 700; height: 28px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(42, 36, 33, 0.1); border: 1px solid rgba(255,255,255,0.1); } 
.badge-light { color: var(--text-gray); font-weight: 600; }
h1 { font-size: 80px; font-weight: 900; line-height: 1.05; color: var(--text-main); letter-spacing: -2px; margin-bottom: 24px; } h1 em { font-style: italic; color: var(--accent-orange); font-weight: 800; padding-right: 8px; }
p.subhead { font-size: 19px; font-weight: 500; color: var(--text-gray); line-height: 1.6; margin-bottom: 40px; max-width: 600px; }
.inline-mulerun-logo { display: inline-block; vertical-align: baseline; position: relative; top: 3px; }
.cta-button { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 32px; font-size: 15px; font-weight: 500; color: #ffffff; background-color: var(--text-main); border-radius: 6px; text-decoration: none; position: relative; z-index: 50; transition: all 0.2s ease; border: none; cursor: pointer; font-family: inherit;}
.cta-button:hover { background-color: var(--accent-orange); transform: translateY(-2px); }

/* 拟物层 */
.skeu-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; perspective: 1000px; } .skeu-obj { position: absolute; }
.skeu-mouse { bottom: 6vh; right: 12vw; width: 82px; height: 135px; background: linear-gradient(145deg, #FFFFFF 0%, #F2F2F2 40%, #E0E0E0 100%); border-radius: 41px 41px 45px 45px / 60px 60px 65px 65px; transform: rotate(-18deg); box-shadow: -20px 25px 35px var(--shadow-warm), -5px 10px 15px rgba(0,0,0,0.08), inset -3px -5px 10px rgba(0,0,0,0.08), inset 3px 3px 6px rgba(255,255,255,1), inset -10px -10px 20px rgba(0,0,0,0.03); border: 1px solid rgba(255,255,255,0.9); } .skeu-mouse::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 55px; background: linear-gradient(to right, rgba(0,0,0,0.08), rgba(255,255,255,0.8), rgba(0,0,0,0.05)); border-radius: 0 0 2px 2px; } .skeu-mouse-wheel { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 12px; height: 28px; background: repeating-linear-gradient(to bottom, #666 0px, #666 2px, #444 2px, #444 4px); border-radius: 6px; box-shadow: inset 0 2px 6px rgba(0,0,0,0.9), 0 2px 3px rgba(255,255,255,1), inset 0 -2px 3px rgba(0,0,0,0.7); border: 1px solid #222; }
.post-it { top: 25vh; left: 8vw; width: 160px; height: 160px; background: linear-gradient(135deg, #FFF69B 0%, #F5E850 100%); transform: rotate(-6deg); box-shadow: 3px 8px 15px rgba(80, 60, 40, 0.12), inset 2px 2px 5px rgba(255,255,255,0.5); border-bottom-right-radius: 25px 4px; border-bottom-left-radius: 2px; display: flex; align-items: center; justify-content: center; flex-direction: column; } .post-it::after { content: ''; position: absolute; bottom: 0; right: 0; width: 30px; height: 30px; background: linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.1) 100%); border-bottom-right-radius: 25px 4px; } .post-it-text { font-family: 'Caveat', cursive; font-size: 28px; color: #332C24; transform: rotate(-3deg); line-height: 1.2; text-align: center; } .post-it-text span { color: var(--accent-orange); font-size: 14px; display: block; margin-top: 5px; }
.yellow-pencil { top: 5vh; right: 18vw; width: 400px; height: 16px; background: linear-gradient(to bottom, #E8A110 0%, #F7C036 30%, #DF9A0B 60%, #B87C00 100%); transform: rotate(35deg); border-radius: 2px; box-shadow: -15px 25px 25px var(--shadow-warm), inset 0 2px 3px rgba(255,255,255,0.4); } .yellow-pencil::before { content: ''; position: absolute; right: -25px; top: 0; width: 25px; height: 16px; background: repeating-linear-gradient(to right, #C5A059, #EED592 2px, #9A7731 4px); } .yellow-pencil-eraser { position: absolute; right: -45px; top: 0; width: 20px; height: 16px; background: linear-gradient(to bottom, #F09B9B, #D87575); border-radius: 0 4px 4px 0; } .yellow-pencil::after { content: ''; position: absolute; left: -35px; top: 0; width: 35px; height: 16px; background: linear-gradient(to bottom, #E8CEAB, #CBA273, #A97B4A); clip-path: polygon(100% 0, 100% 100%, 0 50%); } .yellow-pencil-lead { position: absolute; left: -35px; top: 6px; width: 10px; height: 4px; background: #222; clip-path: polygon(100% 0, 100% 100%, 0 50%); z-index: 2; }
.block-eraser { bottom: 12vh; left: 18vw; width: 65px; height: 30px; background: #FAFAFA; transform: rotate(-25deg); border-radius: 3px; box-shadow: 10px 15px 20px var(--shadow-warm), inset -2px -2px 5px rgba(0,0,0,0.05); } .block-eraser::before { content: 'MULE'; position: absolute; top: -1px; left: 15px; width: 35px; height: 32px; background: #2B4570; color: #FFF; font-family: 'Space Mono', monospace; font-size: 8px; font-weight: bold; display: flex; align-items: center; justify-content: center; letter-spacing: 1px; box-shadow: 2px 0 3px rgba(0,0,0,0.1), -1px 0 2px rgba(0,0,0,0.1); }
.keycap { width: 55px; height: 55px; background: linear-gradient(180deg, #FDFDFD 0%, #F4F0EA 100%); border-radius: 8px; box-shadow: inset 0 1px 1px #FFF, inset 0 -2px 2px rgba(160, 140, 120, 0.1), 0 8px 0 #D4C9BD, 0 10px 15px rgba(80, 60, 40, 0.15); border: 1px solid rgba(232, 224, 213, 0.8); transform-style: preserve-3d; } 
.keycap::before { content: attr(data-key); position: absolute; top: 0; left: 0; right: 0; bottom: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #7A6F66; transform: translateZ(1px); } 
.keycap.cmd { top: 40vh; right: 7vw; transform: rotate(15deg) translateZ(10px); } 
.keycap.enter { top: 52vh; right: 9vw; width: 75px; transform: rotate(8deg) translateZ(20px); background: linear-gradient(180deg, #FAFAFA 0%, #F0EBE3 100%); border: 1px solid #D4C9BD; box-shadow: inset 0 1px 1px #FFF, 0 8px 0 #C4BAAE, 0 12px 20px rgba(80, 60, 40, 0.2); } 
.keycap.enter::before { content: ''; position: absolute; top: 4px; left: 6px; right: 6px; bottom: 12px; background: linear-gradient(180deg, #E85D04 0%, #D65503 100%); border-radius: 4px; box-shadow: inset 0 2px 4px rgba(255,255,255,0.2), inset 0 -2px 4px rgba(0,0,0,0.15); border: 1px solid #C44C00; z-index: 1; }
.keycap.enter::after { content: attr(data-key); position: absolute; top: 4px; left: 6px; right: 6px; bottom: 12px; display: flex; align-items: center; justify-content: center; color: #FFF; font-size: 12px; font-weight: 800; z-index: 2; transform: translateZ(2px); text-shadow: 0 -1px 0 rgba(0,0,0,0.2); }

/* ========== Tablet ========== */
@media (max-width: 1024px) and (min-width: 769px) {
    .bp-svg { transform: scale(0.7); }
    .bp-right { width: 350px; height: 350px; }
    .browser-window { width: 80vw; max-width: 700px; height: 70vh; }
    .address-bar { width: 240px; }
    h1 { font-size: 56px; }
    p.subhead { font-size: 17px; }
    .skeu-mouse { display: none; }
    .post-it { width: 120px; height: 120px; } .post-it-text { font-size: 22px; }
    .keycap.cmd, .keycap.enter { display: none; }
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
    .blueprint-layer { display: none; }
    .skeu-layer { display: none; }
    .browser-illustrations { display: none; } /* 移动端隐藏这些插画以防拥挤 */
    .browser-window { width: 94vw; height: 75vh; border-radius: 10px; }
    .browser-header { height: 40px; padding: 0 12px; border-radius: 10px 10px 0 0; }
    .window-dots { width: 8px; height: 8px; box-shadow: 14px 0 0 #FFBD2E, 28px 0 0 #27C93F; }
    .address-bar { width: 180px; height: 24px; }
    .address-bar::before { font-size: 10px; }
    .browser-content-container { border-radius: 0 0 10px 10px; }
    .hero-content { padding: 24px 20px; }
    .badge-container { margin-bottom: 20px; gap: 8px; font-size: 10px; }
    h1 { font-size: 40px; letter-spacing: -1px; margin-bottom: 16px; }
    p.subhead { font-size: 15px; margin-bottom: 28px; max-width: 100%; }
    .inline-mulerun-logo { width: 80px; height: 20px; }
    .cta-button { height: 40px; padding: 0 24px; font-size: 14px; }
    .scroll-indicator { font-size: 9px; bottom: 2vh; }
}
