:root {
    --primary: #DE7429;
    --secondary: #2C29DE;
    --background: #FAFAFA;
    --foreground: #1E1E1E;
    --text-muted: #666666;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 6px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.site-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--secondary);
    opacity: 0; /* Initial state for fade-in */
    transform: translateY(10px); /* Initial state for slide-up */
    animation: fadeInUp 0.6s ease forwards;
}

/* Typography */
h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

p.subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Branding Elements */
.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.logo {
    max-height: 60px;
    /* Fallback styling if image is missing during dev */
    font-style: italic;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    width: 100%;
    transition: var(--transition);
}

.btn:hover {
    background-color: #c56522; /* Slightly darker shade of primary */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(222, 116, 41, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid #e0e0e0;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    color: var(--foreground);
    border-color: #d0d0d0;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 404 Specific */
.error-code {
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        box-shadow: none;
        border: 1px solid #eee;
        border-top: 4px solid var(--secondary);
    }
}
