/* === RESET & VARIABLES === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: #C9A84C;
    --accent-dim: rgba(201, 168, 76, 0.12);
    --bg: #08080A;
    --text: #F0EDE6;
    --muted: rgba(240, 237, 230, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* === AMBIENT ORBS === */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 900px; height: 900px;
    top: -25%; right: -15%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    animation: orbDrift 18s ease-in-out infinite alternate;
}

.orb-2 {
    width: 600px; height: 600px;
    bottom: -20%; left: -10%;
    background: radial-gradient(circle, #1a1040 0%, transparent 70%);
    opacity: 0.2;
    animation: orbDrift 22s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.12); }
}

/* === GRID OVERLAY === */
.grid-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    pointer-events: none;
}

/* === INTERACTIVE GRID FLASHLIGHT === */
.grid-glow {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(600px circle at var(--glow-x, -999px) var(--glow-y, -999px), black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(600px circle at var(--glow-x, -999px) var(--glow-y, -999px), black 0%, transparent 100%);
    transition: mask-image 0.1s ease, -webkit-mask-image 0.1s ease;
}

/* === VERTICAL ACCENT LINE === */
.v-line {
    position: fixed;
    left: 4rem;
    top: 0;
    width: 1px;
    height: 100vh;
    background: linear-gradient(to bottom, transparent 5%, var(--accent-dim) 30%, var(--accent-dim) 70%, transparent 95%);
    z-index: 1;
    pointer-events: none;
}

/* === NOISE TEXTURE === */
.noise {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    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)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.035;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 100;
    animation: grain 0.4s steps(4) infinite;
}

@keyframes grain {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5%, -5%); }
    50% { transform: translate(5%, -10%); }
    75% { transform: translate(-10%, 5%); }
    100% { transform: translate(5%, 5%); }
}

/* === EDGE VIGNETTE === */
.vignette {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(8, 8, 10, 0.6) 100%);
    pointer-events: none;
    z-index: 2;
}

/* === PAGE LAYOUT === */
.page {
    position: relative;
    z-index: 3;
    padding: 2.5rem 4rem;
    min-height: 100vh;
}

/* === TOP BAR === */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: fadeDown 1s ease forwards 0.2s;
}

.logo {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover { color: var(--text); }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.topbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.topbar-nav a:hover { color: var(--text); }
.topbar-nav a:hover::after { width: 100%; }

.back-link {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover { color: var(--accent); }

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.status-dot {
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

/* === FOOTER LINKS === */
.links {
    display: flex;
    gap: 2.5rem;
}

.links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.links a:hover { color: var(--text); }
.links a:hover::after { width: 100%; }

.bottombar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.2s;
}

.copyright {
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.12);
}

/* === CURSOR GLOW === */
.cursor-glow {
    position: fixed;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translate(-50%, -50%);
}

body:hover .cursor-glow { opacity: 1; }

/* Static mode for screenshots */
body.static * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* === ANIMATIONS === */
@keyframes revealUp {
    to { transform: translateY(0); }
}

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

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes expandRight {
    from { opacity: 0; width: 0; }
    to { opacity: 1; width: 60px; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .page { padding: 1.5rem; }
    .v-line { display: none; }
    .orb-1 { width: 500px; height: 500px; filter: blur(100px); }
    .orb-2 { width: 350px; height: 350px; filter: blur(100px); }
    .grid-overlay { background-size: 50px 50px; }
    .grid-glow { display: none; }
    .cursor-glow { display: none; }
    .topbar { flex-wrap: wrap; gap: 0.75rem; }
    .topbar-right { gap: 1rem; }
    .status-badge { display: none; }
    .bottombar { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .links { gap: 1.5rem; flex-wrap: wrap; }
    .copyright { margin-top: 0.5rem; }
}

@media (max-width: 480px) {
    .page { padding: 1.25rem; }
    .orb-1 { width: 350px; height: 350px; opacity: 0.1; }
    .orb-2 { width: 250px; height: 250px; opacity: 0.15; }
    .logo { font-size: 0.65rem; }
    .topbar-nav a { font-size: 0.65rem; }
    .links { gap: 1.25rem; }
    .links a { font-size: 0.7rem; }
}
