/* ========================================
   LIT Longevity - Main Styles
   Japanese-crafted luxury aesthetic
   ======================================== */

:root {
    /* Color Palette - Japanese Luxury */
    --color-dark-navy: #0a1628;
    --color-navy: #122a43;
    --color-navy-light: #1a3a5c;
    --color-champagne-gold: #c9a962;
    --color-gold-light: #dfc07a;
    --color-gold-dark: #a68b4b;
    --color-soft-white: #f8f6f3;
    --color-white: #ffffff;
    --color-cream: #f5f1eb;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #4a4a4a;
    --color-text-muted: #7a7a7a;
    --color-border: #e5e0d8;
    --color-success: #2d8659;
    --color-error: #c45c5c;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.16);
    --shadow-gold: 0 4px 20px rgba(201, 169, 98, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-soft-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-dark-navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Section Styles */
section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tagline {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-champagne-gold);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 2px;
    transition: var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-champagne-gold), var(--color-gold-dark));
    color: var(--color-dark-navy);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-champagne-gold));
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-champagne-gold);
    color: var(--color-champagne-gold);
}

.btn-outline:hover {
    background: var(--color-champagne-gold);
    color: var(--color-dark-navy);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-champagne-gold));
    color: var(--color-dark-navy);
    border: 1px solid var(--color-gold-light);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--color-champagne-gold); }

/* Image Placeholder */
.image-placeholder {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-champagne-gold);
    min-height: 300px;
    padding: var(--space-xl);
}

.image-placeholder span {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.image-placeholder p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --space-3xl: 4rem;
        --space-2xl: 3rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--space-2xl) 0;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
    }
    
    /* Mobile-specific fixes */
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .stacks-grid {
        grid-template-columns: 1fr !important;
    }
    
    .product-card {
        padding: 1rem !important;
    }
    
    .product-price {
        font-size: 1.25rem !important;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .quiz-question {
        font-size: 1.125rem !important;
    }
    
    .quiz-options {
        gap: 0.5rem !important;
    }
    
    .quiz-option {
        padding: 1rem !important;
        min-height: 60px;
    }
    
    /* More mobile fixes */
    .about-grid, .why-grid, .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center !important;
    }
    
    .stack-card {
        padding: 1.5rem !important;
    }
    
    .section-header {
        padding: 0 1rem !important;
    }
    
    h2.section-title {
        font-size: 1.75rem !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}