/* ==========================================
   BASE STYLES - REZY WARM THEME
   ========================================== */

:root {
    /* Colors - Exact Mobile App Palette */
    --color-bg: #FFFFFF;
    --color-bg-alt: #FAFAFA;
    --color-bg-elevated: #FFFFFF;
    --color-surface: #F7F5F2;
    --color-surface-hover: #F0EDE8;
    --color-card: #F7F3EF;
    --color-card-alt: #FAF8F5;
    --color-border: #E8E4DF;
    --color-text: #2C2825;
    --color-text-soft: #5C5652;
    --color-text-muted: #8A857F;
    --color-text-subtle: #A89B8E;
    
    /* Brand Colors */
    --color-primary: #2A2620;
    --color-primary-muted: #6B5B4F;
    --color-accent: #2D6A4F;
    --color-accent-light: rgba(45, 106, 79, 0.08);
    --color-accent-glow: rgba(45, 106, 79, 0.15);
    --color-interactive: #6B5B4F;
    --color-interactive-hover: #5C4D42;
    
    /* Semantic */
    --color-success: #2D6A4F;
    --color-warning: #B45309;
    --color-error: #991B1B;
    
    /* Chart/Visualization */
    --color-chart-green: #6B8E7B;
    --color-chart-tan: #D4C4B5;
    --color-chart-gold: #C4A77D;
    --color-chart-neutral: #A89B8E;
    
    /* Gradients */
    --gradient-warm: linear-gradient(135deg, #F7F3EF 0%, #FAF8F5 100%);
    --gradient-accent: linear-gradient(135deg, #2D6A4F 0%, #3D8B6A 100%);
    --gradient-gold: linear-gradient(135deg, #C4A77D 0%, #D4B88E 100%);
    
    /* Typography */
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.75rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.5rem;
    --font-size-5xl: 4.5rem;
    --font-size-display: clamp(2.5rem, 8vw, 5rem);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Layout */
    --container-max: 1200px;
    --container-padding: var(--space-6);
    
    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    
    /* Shadows - More dramatic */
    --shadow-sm: 0 1px 3px rgba(44, 40, 37, 0.04);
    --shadow-md: 0 4px 16px rgba(44, 40, 37, 0.08);
    --shadow-lg: 0 12px 40px rgba(44, 40, 37, 0.12);
    --shadow-xl: 0 24px 80px rgba(44, 40, 37, 0.16);
    --shadow-2xl: 0 40px 120px rgba(44, 40, 37, 0.2);
    
    /* Z-index */
    --z-cursor: 9999;
    --z-nav: 1000;
    --z-modal: 2000;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--color-accent);
    color: white;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
button {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

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

/* Lists */
ul, ol {
    list-style: none;
}

/* Inputs */
input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Headings - Serif */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* ==========================================
   CUSTOM CURSOR - Light Theme
   ========================================== */

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-cursor);
    pointer-events: none;
}

.cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s var(--ease-out-expo);
}

.cursor-ring {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    transition: transform 0.3s var(--ease-out-expo),
                width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                opacity 0.3s ease;
}

.cursor.hover .cursor-ring {
    width: 50px;
    height: 50px;
    opacity: 0.6;
}

.cursor.click .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
}

/* ==========================================
   SCROLL PROGRESS
   ========================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--color-accent);
    z-index: var(--z-nav);
    transform-origin: left;
    transform: scaleX(0);
}

/* ==========================================
   NAVIGATION
   ========================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-8);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(253, 252, 250, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: var(--font-size-xl);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-out-expo);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: 100px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: transform 0.3s var(--ease-out-expo),
                box-shadow 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-cta svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-cta:hover svg {
    transform: translateX(3px);
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-cta span {
        display: none;
    }
    
    .nav-cta {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-top: var(--space-4);
    max-width: 500px;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
