/* CSS Variables */
:root {
    --bg: #ffffff;
    --fg: #0a0a0a;
    --fg-muted: #888888;
    --border: #ececec;
    --accent: #ff3b00;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    cursor: url('../asset/cursor_2.png') 16 16, auto !important;
}

body {
    background-color: #ffffff;
    color: var(--fg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../asset/404_2-Photoroom.png');
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

/* Gradient Accent */
.gradient-accent {
    position: fixed;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(240,240,240,1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    top: -10vw;
    right: -10vw;
    filter: blur(40px);
}

/* Navigation */
nav {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 6px 6px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 20px;
    margin-right: 18px;
}

.nav-links a {
    text-decoration: none;
    color: var(--fg-muted);
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--fg);
}

.nav-divider {
    width: 1px;
    height: 14px;
    background: var(--border);
    margin: 0 4px;
}

.btn-call {
    background: var(--fg);
    color: white;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.btn-call:hover {
    opacity: 0.85;
}

/* Main Content */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    z-index: 3;
}

.hero-text {
    text-align: center;
    position: relative;
    z-index: 3;
}

.error-code {
    font-size: clamp(100px, 15vw, 240px);
    font-weight: 600;
    letter-spacing: -0.06em;
    color: #f0f0f0;
    line-height: 0.8;
    margin-bottom: -20px;
    user-select: none;
}

.status-msg {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--fg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.script-text {
    font-family: 'Caveat', cursive;
    color: var(--fg-muted);
    font-size: 1.1em;
    margin-top: -10px;
    transform: rotate(-3deg);
    display: inline-block;
}

.tg-button {
    display: inline-block;
    margin-top: 50px;
    padding: 8px 18px;
    background: var(--fg);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-size: 20px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    transition: opacity 0.2s ease;
}

.tg-button:hover {
    opacity: 0.85;
}

.tg-button:hover {
    opacity: 0.85;
}

/* Watcher Animation */
.watcher {
    position: absolute;
    width: 300px;
    height: 300px;
    pointer-events: none;
    z-index: 3;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.watcher svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.organic-blob {
    fill: none;
    stroke: var(--fg);
    stroke-width: 0.5;
    opacity: 0.15;
}

.eye {
    fill: var(--fg);
}

/* Falling Notes */
.notes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.falling-note {
    position: absolute;
    opacity: 0.4;
    pointer-events: auto;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.falling-note:hover {
    opacity: 0.7;
}

.falling-note.dragging {
    opacity: 0.8;
    z-index: 1000;
}

/* Footer */
footer {
    padding: 40px;
    position: relative;
    z-index: 3;
}

/* Responsive Design */
@media (max-width: 768px) {
    body::before {
        background-size: auto 50%;
        background-position: left bottom;
    }
    
    .error-code {
        font-size: clamp(100px, 15vw, 200px);
    }
    
    .status-msg {
        font-size: clamp(28px, 5vw, 56px);
    }
    
    .watcher {
        width: 200px;
        height: 200px;
    }
    
    .tg-button {
        margin-top: 30px;
        font-size: 13px;
        padding: 10px 20px;
    }
    
    footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body::before {
        background-size: auto 45%;
        background-position: left bottom;
    }
    
    .error-code {
        font-size: 80px;
        margin-bottom: -10px;
    }
    
    .status-msg {
        font-size: 24px;
    }
    
    .watcher {
        width: 150px;
        height: 150px;
    }
}
