/* Variables for premium style */
:root {
    /* Color Palette */
    --color-bg-ivory: #faf7f2;
    --color-bg-beige: #efebe1;
    --color-primary-green: #1f3d2c;
    --color-accent-gold: #c39a5c;
    --color-accent-gold-hover: #b0874b;
    --color-text-dark: #2a2a2a;
    --color-text-muted: #666666;
    --color-white: #ffffff;
    --color-shadow: rgba(31, 61, 44, 0.15);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-ivory);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle background texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-green);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }
.overflow-hidden { overflow: hidden; }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent-gold);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(195, 154, 92, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(195, 154, 92, 0.4);
}

/* Forms */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: transparent;
    border: 1px solid rgba(42, 42, 42, 0.2);
    border-radius: 4px;
    transition: border-color var(--transition-smooth), background-color var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent-gold);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(195, 154, 92, 0.1);
}

.form-success {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--color-primary-green);
    font-weight: 500;
    padding: 12px 16px;
    background-color: rgba(31, 61, 44, 0.05);
    border-left: 4px solid var(--color-accent-gold);
    border-radius: 4px;
}

/* Animation utilities */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background ornament */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-bg-beige) 0%, transparent 60%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 580px;
    animation: fadeInUp 1s ease-out;
}

.hero-label {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-accent-gold);
    padding-bottom: 4px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--color-accent-gold);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    text-wrap: balance;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.box-image {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px var(--color-shadow));
    /* Soft edges logic if the PNG is just flat flat */
    position: relative;
    z-index: 2;
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-row > input {
    flex: 1;
}

.form-row > button {
    flex: 0 0 auto;
}

/* ---- Production Notice ---- */
.production-notice {
    padding: 80px 0;
    background-color: var(--color-bg-beige);
}

.separator-line {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent-gold);
    margin: 24px auto 0;
}

.production-title {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 16px;
}

.production-text {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    text-wrap: balance;
}

/* ---- Reviews Section ---- */
.reviews {
    padding: 100px 0;
    background-color: var(--color-bg-ivory);
}

.reviews .section-title {
    margin-bottom: 60px;
    font-size: 2rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 24px;
    padding: 0 20px;
}

.review-card {
    flex: 0 0 auto;
    width: 320px;
    background-color: var(--color-white);
    padding: 32px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-card .quote {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary-green);
    font-style: italic;
    margin-bottom: 16px;
}

.review-card .author {
    font-size: 0.9rem;
    color: var(--color-accent-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Playtest Section ---- */
.playtest {
    padding: 100px 0;
    background-color: var(--color-bg-beige);
}

.playtest .section-title {
    margin-bottom: 24px;
    font-size: 2rem;
}

.playtest-text {
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    text-wrap: balance;
}

.playtest-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.playtest-image {
    max-width: calc(50% - 16px);
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.06);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    object-fit: cover;
}

.playtest-image:hover {
    transform: scale(1.03);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}

/* ---- Newsletter / Bottom Form ---- */
.newsletter {
    padding: 100px 0;
    background-color: var(--color-primary-green);
    color: var(--color-white);
}

.newsletter-container {
    display: flex;
    justify-content: center;
}

.newsletter-content {
    width: 100%;
    max-width: 500px;
    background-color: var(--color-white);
    padding: 48px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: var(--color-text-dark);
}

.newsletter-content .section-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 16px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.form-checkbox input {
    margin-top: 4px;
    accent-color: var(--color-accent-gold);
}

.form-checkbox label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.form-checkbox .privacy-link,
.footer-link {
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: color var(--transition-smooth);
}

.form-checkbox .privacy-link:hover,
.footer-link:hover {
    color: var(--color-accent-gold-hover);
    text-decoration: underline;
}

/* ---- Footer ---- */
.site-footer {
    background-color: var(--color-bg-ivory);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-project {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary-green);
    font-weight: 700;
}

.footer-note, .footer-link {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.mobile-product-showcase {
    display: none;
}

.scroll-hint {
    display: none;
}

/* ---- Responsiveness ---- */
@media (max-width: 991px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .hero-form {
        max-width: 450px;
        width: 100%;
        margin: 0 auto;
    }
    
    .hero-description {
        margin: 0 auto 32px;
    }

    .playtest-grid {
        flex-direction: column;
        align-items: center;
    }

    .playtest-image {
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 100vh;
        padding: 0 0 40px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-container {
        padding-top: 0;
        gap: 0;
        margin-top: -10vh; /* optyczne wyśrodkowanie */
    }

    .hero-visual {
        display: none !important;
    }

    .scroll-hint {
        display: block;
        margin-top: 8vh;
        color: var(--color-accent-gold);
        animation: float 2.5s ease-in-out infinite;
    }

    .mobile-product-showcase {
        display: block;
        padding: 80px 0 40px;
        background-color: var(--color-bg-ivory);
    }
    
    .hero-label {
        margin-bottom: 12px;
    }
    
    .hero-title {
        font-size: 2.1rem;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .review-card {
        width: 280px;
    }
    
    .newsletter-content {
        padding: 32px 24px;
    }
}
