/* ===========================================
   Cheesemonger - Warm, Appetizing Design
   Color Palette: Golden yellow, warm orange, cream
   =========================================== */

/* CSS Variables */
:root {
    /* Core Colors - Warm Cheese Palette */
    --gold: #D4A24C;
    --gold-light: #E8C47C;
    --gold-pale: #FDF6E8;
    --gold-dark: #B8862A;

    --orange: #E07B3C;
    --orange-light: #F09A5C;
    --orange-pale: #FEF2EB;

    --white: #FFFFFF;
    --off-white: #FDFCFA;
    --cream: #F9F6F1;

    --text-primary: #2A2118;
    --text-secondary: #5C4D3D;
    --text-tertiary: #8A7B6A;

    --divider: #E8DFD3;
    --shadow: rgba(212, 162, 76, 0.15);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --gold: #E8C47C;
        --gold-light: #F0D49C;
        --gold-pale: #2A2118;
        --gold-dark: #D4A24C;

        --orange: #F09A5C;
        --orange-light: #F5B080;
        --orange-pale: #2A2118;

        --white: #1A1612;
        --off-white: #1E1A15;
        --cream: #252019;

        --text-primary: #F5EDE3;
        --text-secondary: #C4B8A8;
        --text-tertiary: #8A7B6A;

        --divider: #3A322A;
        --shadow: rgba(0, 0, 0, 0.3);
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Ambient Glow Effect */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.ambient-glow::before,
.ambient-glow::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: ambientFloat 25s ease-in-out infinite;
}

.ambient-glow::before {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -150px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    animation-delay: -5s;
}

.ambient-glow::after {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: -100px;
    background: radial-gradient(circle, var(--orange-light) 0%, transparent 70%);
    animation-delay: -15s;
}

@keyframes ambientFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(25px, 15px) scale(1.05); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 252, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--divider);
}

@media (prefers-color-scheme: dark) {
    nav {
        background: rgba(26, 22, 18, 0.88);
    }
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s var(--ease-out);
}

.nav-links a:hover {
    color: var(--gold);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out);
}

.mobile-menu.open span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.open span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Content */
main {
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: var(--gold-pale);
    border: 1px solid var(--gold-light);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gold-dark);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.badge-icon {
    font-size: 1rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.hero-line {
    display: block;
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-line:nth-child(3) { animation-delay: 0.3s; }
.hero-line:nth-child(4) { animation-delay: 0.4s; }

.hero-line.highlight {
    color: var(--gold);
    font-style: italic;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 1.75rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 20px var(--shadow), 0 0 0 0 var(--gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow), 0 0 0 4px rgba(212, 162, 76, 0.15);
    background: var(--gold-dark);
}

.btn-primary.large {
    padding: 1.25rem 2.25rem;
    font-size: 1.125rem;
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--divider);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-pale);
}

/* Hero Visual - Floating Cards */
.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    perspective: 1000px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: 16px;
    padding: var(--space-sm) var(--space-md);
    box-shadow: 0 8px 40px var(--shadow);
    transition: transform 0.1s ease-out;
    animation: cardFloat 7s ease-in-out infinite;
    transform-style: preserve-3d;
}

.card-score {
    top: 18%;
    right: 8%;
    text-align: center;
    animation-delay: 0s;
}

.card-photo {
    top: 50%;
    left: 6%;
    animation-delay: -2s;
}

.card-collection {
    bottom: 22%;
    right: 10%;
    text-align: center;
    animation-delay: -4s;
}

.card-type {
    bottom: 28%;
    left: 8%;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation-delay: -3s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

.card-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-xs);
}

.score-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.card-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.photo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.collection-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

.type-badge {
    padding: 0.375rem 0.75rem;
    background: var(--gold-pale);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gold-dark);
}

/* Features Section */
.features {
    padding: var(--space-2xl) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--gold-pale);
    color: var(--gold-dark);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-header h2 em {
    color: var(--gold);
    font-style: italic;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--divider);
    border-radius: 24px;
    padding: var(--space-lg);
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px var(--shadow);
    border-color: var(--gold-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-pale);
    border-radius: 16px;
    color: var(--gold);
    margin-bottom: var(--space-md);
    font-size: 1.75rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Social Proof */
.social-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-md);
    background: var(--white);
    flex-wrap: wrap;
}

.proof-stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
}

.proof-stat.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.proof-divider {
    width: 1px;
    height: 60px;
    background: var(--divider);
}

/* CTA Section */
.cta-section {
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    background: var(--gold);
    color: var(--white);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--gold-dark);
}

.cta-section .btn-primary:hover {
    background: var(--cream);
    transform: translateY(-2px);
}

.cta-note {
    display: block;
    margin-top: var(--space-md);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--white);
    border-top: 1px solid var(--divider);
    padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo-icon {
    font-size: 1.75rem;
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: var(--space-xs);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-sm);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
    transition: color 0.2s var(--ease-out);
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--divider);
    text-align: center;
}

.footer-bottom .copyright {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: var(--space-md);
        flex-direction: column;
        gap: var(--space-sm);
        border-bottom: 1px solid var(--divider);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s var(--ease-out);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding-top: calc(60px + var(--space-lg));
    }

    .hero-visual {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn-primary, .btn-secondary {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .social-proof {
        gap: var(--space-md);
    }

    .proof-divider {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-xl);
}

.legal-page h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.legal-page .updated {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
}

.legal-page h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--gold);
}

.legal-page h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}

.legal-page p, .legal-page li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.legal-page ul {
    margin-left: var(--space-md);
    margin-bottom: var(--space-md);
}

.legal-page a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease-out);
}

.legal-page a:hover {
    border-bottom-color: var(--gold);
}

.legal-page strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-page .summary {
    margin-top: var(--space-xl);
    padding: var(--space-md);
    background: var(--gold-pale);
    border-radius: 12px;
    border-left: 4px solid var(--gold);
}
