:root {
    --primary: #FF4D4D;
    --primary-dark: #CC0000;
    --secondary: #1A1A1A;
    --text-dark: #111111;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
    --border: #E5E5E5;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 12px;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--secondary);
}

a { text-decoration: none; color: inherit; }

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

/* Navigation */
.navbar {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo .dot { color: var(--primary); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--white);
    color: var(--secondary) !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600 !important;
}

.landing-section {
    padding: 40px 0;
}

/* Hero Section */
.hero {
    background: var(--secondary);
    color: var(--white);
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute; 
    top: -15%; 
    left: -10%; 
    width: 120%; 
    height: 200%; 
    opacity: 0.7; 
    transform: rotate(-5deg); 
    z-index: 0; 
    pointer-events: none;
}

.hero-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to bottom, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.7) 50%, rgba(26,26,26,0.95) 100%); 
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    /* Ensure content is above background */
    position: relative; 
    z-index: 2; 
    text-align: center;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: var(--white); /* Ensure title is white in hero */
    line-height: 1.1;
}

.preview-swipe-hint {
    display: none;
    font-size: 0.9rem;
    /*color: rgba(255,255,255,0.85);*/
    margin-top: 6px;
}

@media (max-width: 768px) {
    .preview-swipe-hint {
        display: block;
    }
}

.hero-list {
    display: inline-block;
    text-align: left;
    margin: 30px 0;
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

.hero-cta {
    display: block;
    padding: 15px 40px;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    max-width: 300px;
    margin: 0 auto;
}

/* Masonry Styles */
.masonry-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.masonry-col:nth-child(even) {
    margin-top: 40px;
}

.masonry-card {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-trust {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.hero-trust i { color: var(--primary); margin-right: 5px; }

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

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

.btn-block { display: block; width: 100%; text-align: center; }

.hero-image {
    display: flex;
    justify-content: center;
}

.floating-card {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: rotate(-5deg);
    max-width: 100%;
    width: 350px;
    border: 10px solid white;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* Steps Section */
.steps-section { background: var(--white); text-align: center; }

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

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    padding: 30px 30px 0 30px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-dark); /* Changed to darker red for contrast */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

/* Order Section */
.order-section {
    background: var(--bg-light);
}

.order-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.feature-item .icon { font-size: 2rem; }

/* Style preview carousel */
.style-preview-carousel {
    position: relative;
    margin-top: 10px;
    overflow: hidden;
}

.style-preview-slide {
    inset: 0;
    display: none;
}

.style-preview-slide.active {
    display: block;
}

.card-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
}

.preview-card-img {
    width: 100%;
    max-width: 222px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 3px solid white;
}

.preview-card-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Order Form */
.order-form-wrapper {
    background: white;
    padding: 20px 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 20px;
}

.card-back-options {
    display: flex;
    gap: 10px;
}

.card-back-option {
    flex: 1;
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    text-align: center;
    transition: all 0.2s;
}

.card-back-img {
    display: block;
    width: 60px;
    height: 84px; /* Fixed height (60px * 1.4 aspect ratio) to align "Eigen" box with images */
    object-fit: cover;
    margin: 0 auto 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card-back-label {
    font-weight: 600;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}
.form-header h3 {
    margin-top:0;
    margin-bottom:0;
}
.price-tag {    
    font-weight: 800;
}

.price-tag .amount { font-size: 2rem; }

.modern-form .form-group { margin-bottom: 25px; }

.modern-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.select-wrapper select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-body);
    background: white;
    cursor: pointer;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #FFF5F5;
}

.upload-content p { margin: 10px 0 5px; font-weight: 500; }
.upload-content span { color: var(--primary); text-decoration: underline; }
.upload-content small { color: var(--text-light); display: block; }
.upload-content svg { color: var(--text-light); }

.file-list {
    margin-top: 15px;
    text-align: left;
}

.file-item {
    background: var(--bg-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-note {
    text-align: center;
    color: var(--text-light);
    margin-top: 15px;
    margin-bottom:0;
}
.shipping-note:last-child {
    margin-top: 0;
}

.transformation-section {
    background: white;
    text-align: center;
}

.transformation-section .section-title {
    margin-bottom:2rem;
}

.transformation-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.input-side,
.arrow,
.output-side {
    flex: 0 0 auto;
}

.transformation-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 320px;
    height: 320px;
}

.transformation-input-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    object-fit: cover;
}

.transformation-arrow {
    width: 80px;
    opacity: 0.8;
}

.output-side {
    position: relative;
    height: 335px;
    width: 320px;
}

.transformation-output-card {
    position: absolute;
    width: 145px; /* Smaller cards for 2x2 grid */
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.transformation-card-1 {
    top: -20px;
    left: 0;
    transform: rotate(-5deg);
    z-index: 1;
}

.transformation-card-2 {
    top: -10px;
    left: 160px;
    transform: rotate(5deg);
    z-index: 2;
}

.transformation-card-3 {
    top: 140px;
    left: 10px;
    transform: rotate(-3deg);
    z-index: 3;
}

.transformation-card-4 {
    top: 150px;
    left: 170px;
    transform: rotate(3deg);
    z-index: 4;
}

.seo-section {
    background: var(--bg-light);
}

/* Pricing & Info */
.pricing-info { padding: 60px 0; background: white; }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-box {
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.info-box.highlight {
    background: var(--secondary);
    color: white;
}

.info-box.highlight h4 { color: white; }
.info-box.highlight .text-link { color: var(--primary); text-decoration: underline; }

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li { margin-bottom: 10px; }

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.popup-overlay.visible .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.popup-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.popup-option-btn {
    background: var(--bg-light);
    border: 2px solid var(--border);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-align: left;
}

.popup-option-btn:hover {
    border-color: var(--primary);
    background: #FFF5F5;
}

.popup-other-input {
    margin-top: 10px;
    display: none;
}

.popup-textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 8px;
    min-height: 80px;
    margin-bottom: 10px;
    font-family: inherit;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.stars { color: #FFB800; margin-bottom: 15px; letter-spacing: 2px; }
.author { margin-top: 20px; font-weight: 600; font-size: 0.9rem; color: var(--text-light); }

.shipping-section {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.shipping-section .section-title {
    color: white;
}

.styles-showcase {
    background: var(--bg-light);
}


/* Interactive Card (Styles Showcase) */
.interactive-card {
    transition: z-index 0s, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.interactive-card:hover {
    z-index: 10 !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
    /* Scale up while preserving original rotation/position */
    /* Note: This works because we added custom properties --tx, --ty, --rot to the inline styles */
    transform: translateX(var(--tx)) translateY(var(--ty)) rotate(var(--rot)) scale(1.15) !important;
}

/* FAQ */
.faq-section { background: white; }
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h5 { color: white; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); }
.footer-col .logo { color: white; }
.footer-col a:hover { color: white; }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

.payment-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: white;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.payment-logo {
    height: 35px;
    background: white;
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Simple hide for now */
    .nav-container {
        justify-content: center;
    }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    /* Fix for tiny cards on mobile: zoom in the background */
    .hero-background {
        width: 350%; /* Increased from 120% to 350% */
        left: -125%; /* Center the zoomed background */
        top: -10%;
    }
    
    .hero-title { 
        font-size: 2.2rem; 
    }
    
    .hero-image { order: -1; }
    .order-container { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap:0px;}
    .info-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .payment-logo {
        margin: 0 auto;
    }
    
    .hero-list {
        font-size: 1rem;
        padding: 0 10px;
    }

    .section-title {
        line-height: 1.2;
        font-size:2.2rem;
    }
    .order-container {
        gap:0px;
    }
    .order-form-wrapper {
        background: white;
        padding: 20px;
        box-shadow: none;
    }
    .preview-swipe-hint {
        display: block;
    }
    p#preview-label {
        margin-bottom: 0;
    }

    .transformation-arrow {
        transform: rotate(90deg);
    }
    .transformation-output-card-left {
        left: -20px;
        
    }
    
    .transformation-output-card-right {
        left: 110px;
    }

}
