/* ===== Base Styles =====
   Fonts, variables, reset, body, decorative grain overlay
*/

/* Self-hosted NB International Pro */
@font-face {
    font-family: 'NB International Pro';
    src: url('/fonts/NB-International-Pro-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NB International Pro';
    src: url('/fonts/NB-International-Pro-Light.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --accent: #d94a6e;
    --accent-rgb: 217, 74, 110;
    --text-light: #ffffff;
    --text-muted: #999999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'NB International Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.9) 0%,
        rgba(10, 10, 10, 0.78) 12%,
        rgba(10, 10, 10, 0.62) 25%,
        rgba(10, 10, 10, 0.43) 38%,
        rgba(10, 10, 10, 0.25) 52%,
        rgba(10, 10, 10, 0.10) 66%,
        rgba(10, 10, 10, 0.03) 80%,
        rgba(10, 10, 10, 0) 100%
    );
}

.logo {
    font-family: 'NB International Pro', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.scroll-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Decorative grain */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Rotate device overlay */
.rotate-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-darker);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem;
}

.rotate-overlay .rotate-icon {
    width: 48px;
    height: 48px;
    border: 2px solid var(--text-muted);
    border-radius: 8px;
    position: relative;
    animation: rotatePhone 2s ease-in-out infinite;
}

.rotate-overlay .rotate-icon::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 3px;
    border-radius: 2px;
    background: var(--text-muted);
}

@keyframes rotatePhone {
    0%, 30% { transform: rotate(0deg); }
    50%, 80% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

.rotate-overlay .rotate-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.05em;
}
