/* Design System - CSS Variables */
:root {
    /* Light mode colors (HSL values) */
    --background: hsl(209, 40%, 96%);
    --foreground: hsl(222, 47%, 11%);
    --muted-foreground: hsl(222, 47%, 11%);
    
    /* Font family */
    --font-sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark mode colors */
.dark {
    --background: hsl(222, 47%, 11%);
    --foreground: hsl(210, 40%, 98%);
    --muted-foreground: hsl(210, 40%, 98%);
}

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    transition: background-color 0.7s ease, color 0.7s ease;
    cursor: none;
    user-select: none;
}

/* Main container */
.container {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

/* Grid overlay */
.grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.02;
    background-image: 
        linear-gradient(var(--foreground) 1px, transparent 1px),
        linear-gradient(90deg, var(--foreground) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Logo container */
.logo-container {
    position: relative;
    z-index: 10;
    padding: 0 2rem;
}

/* Logo */
.logo {
    height: auto;
    width: 16rem;
    transition: all 0.7s ease;
}

@media (min-width: 768px) {
    .logo {
        width: 20rem;
    }
}

/* Logo animation when clicked */
.logo.animating {
    transform: scale(0.95);
    opacity: 0.8;
}


/* Copyright */
.copyright {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    opacity: 0.4;
}

/* Custom cursor styles */
.cursor-dot,
.cursor-ring,
.cursor-glow {
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.cursor-dot {
    z-index: 9999;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--foreground);
    mix-blend-mode: difference;
    transition: width 0.15s ease, height 0.15s ease, opacity 0.15s ease;
}

.cursor-dot.clicking {
    width: 12px;
    height: 12px;
}

.cursor-ring {
    z-index: 9998;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--foreground);
    opacity: 0;
    mix-blend-mode: difference;
    transition: left 0.08s ease-out, top 0.08s ease-out, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

.cursor-ring.visible {
    opacity: 0.7;
}

.cursor-ring.clicking {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}

.cursor-glow {
    z-index: 9997;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(210, 40%, 98%, 0.4) 0%, hsla(210, 40%, 98%, 0.1) 40%, transparent 70%);
    opacity: 0;
    transition: left 0.15s ease-out, top 0.15s ease-out, opacity 0.3s ease;
}

.dark .cursor-glow.visible {
    opacity: 0.15;
}

/* Show cursor elements when visible */
.cursor-dot.visible {
    opacity: 1;
}

/* Touch device handling - show default cursor */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
    
    .cursor-dot,
    .cursor-ring,
    .cursor-glow {
        display: none;
    }
}