:root {
    /* Design System */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(240, 10%, 3.9%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(240, 10%, 3.9%);
    --primary: #e60012; /* Yamaha Red */
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(240, 4.8%, 95.9%);
    --secondary-foreground: hsl(240, 5.9%, 10%);
    --muted: hsl(240, 4.8%, 95.9%);
    --muted-foreground: hsl(240, 3.8%, 46.1%);
    --border: hsl(240, 5.9%, 90%);
    --ring: #e60012;
    --radius: 0.25rem;
    --font-main: 'Inter', sans-serif;
    --font-headings: 'Inter', sans-serif;
    --transition-speed: 0.2s;
}

/* 1. Global Styles & Preloader */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

body.sidebar-open {
    overflow: hidden;
}

h1, h2, h3, h4, .section-title {
    font-family: var(--font-headings);
    font-weight: 900;
    color: var(--card-foreground);
    letter-spacing: -0.05em;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* 2. Content Layout */
.content-section {
    padding: 5rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.content-section--full-width {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* 3. Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Mobile Overrides */
@media (max-width: 768px) {
    .content-section {
        padding: 3.5rem 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}
