/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FAF7F0;
    color: #2C3E50;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 165, 116, 0.1);
    color: #8B7355;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 165, 116, 0.2);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    max-width: 100%;
}

.hero-title em {
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
    position: relative;
}

.hero-title em::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
    opacity: 0.3;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: #4A5568;
    font-weight: 400;
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 2rem;
}

.hero-testimonial {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 165, 116, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    max-width: 100%;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-content p {
    font-size: 0.875rem;
    color: #2D3748;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-weight: 400;
}

.testimonial-author {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

.section-title {
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1F2937;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title em {
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 247, 240, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
    z-index: 1000;
    padding: 0;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.25);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(212, 165, 116, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #2C3E50;
    border: 1.5px solid rgba(44, 62, 80, 0.15);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(44, 62, 80, 0.25);
    transform: translateY(-1px);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    border-radius: 14px;
}

/* Hero Section */
.hero {
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FAF7F0 0%, #F5F1E8 100%);
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
    min-height: calc(100vh - 200px);
}

.hero-content {
    max-width: 650px;
    padding-right: 0;
    padding-top: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: center;
}

.hero-guarantees {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #4A5568;
    font-weight: 500;
}

.guarantee-item svg {
    color: #68D391;
    flex-shrink: 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.hero-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 480px;
    width: 100%;
}

.showcase-item.main-photo {
    position: relative;
}

.photo-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 12px;
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
    transition: transform 0.6s ease;
}

.photo-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.actual-photo {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
}

.bw-filter {
    filter: grayscale(100%) sepia(20%) saturate(0.8) contrast(1.2);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    border-radius: 0 0 12px 12px;
}

.after-overlay {
    background: linear-gradient(transparent, rgba(212, 165, 116, 0.9));
}

.overlay-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.before-photo {
    opacity: 1;
    z-index: 1;
}

.after-photo {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    opacity: 0;
    z-index: 2;
    animation: revealPhoto 4s ease-in-out 2s infinite;
}

.restoration-animation {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    pointer-events: none;
    z-index: 3;
}

.magic-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #D4A574;
    border-radius: 50%;
    opacity: 0;
    animation: sparkleAnimation 3s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 40%; right: 25%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 1s; }
.sparkle:nth-child(4) { top: 60%; right: 40%; animation-delay: 1.5s; }
.sparkle:nth-child(5) { top: 80%; left: 60%; animation-delay: 2s; }

.transform-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulseTransform 4s ease-in-out 2s infinite;
}

.photo-story {
    text-align: center;
    margin-top: 2rem;
    padding: 0 1rem;
}

.photo-story h4 {
    color: #2D3748;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.photo-story p {
    color: #718096;
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.5;
}

.how-it-works {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.15);
    margin-top: 1rem;
}

.how-it-works-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    flex: 1;
    max-width: 120px;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.25);
    transition: all 0.3s ease;
}

.step-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.35);
}

.step-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2D3748;
    margin: 0;
    line-height: 1.2;
}

.step-content p {
    font-size: 0.75rem;
    color: #718096;
    margin: 0;
    line-height: 1.3;
    opacity: 0.8;
}

.step-arrow {
    color: #D4A574;
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.step-arrow svg {
    width: 16px;
    height: 16px;
}

.before-after-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.photo-frame {
    text-align: center;
}

.photo-placeholder {
    width: 200px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    margin-bottom: 1rem;
}

.vintage-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.bw-photo {
    background: linear-gradient(135deg, #E5E5E5 0%, #D1D1D1 100%);
    color: #666;
}

.color-photo {
    background: linear-gradient(135deg, #FFB6C1 0%, #FFE4B5 50%, #98FB98 100%);
    color: #2C3E50;
    animation: colorize 2s ease-in-out infinite alternate;
}

.photo-content {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.photo-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #5A6C7D;
}

.transform-arrow {
    color: #D4A574;
    animation: pulse 2s ease-in-out infinite;
}

/* Social Proof Section */
.social-proof {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
    border-top: 1px solid rgba(212, 165, 116, 0.1);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

.social-proof-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.social-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
    margin-top: 0.625rem;
    letter-spacing: 0.02em;
}

.stat-divider {
    color: #D1D5DB;
    font-size: 1.5rem;
}

.featured-testimonials {
    overflow: hidden;
}

.testimonial-scroll {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.testimonial-card {
    flex-shrink: 0;
    width: 380px;
    background: white;
    padding: 2.25rem;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    text-align: left;
    border: 1px solid rgba(212, 165, 116, 0.08);
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
}

.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 1.75rem;
    font-style: italic;
    font-weight: 400;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar.small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
}

.testimonial-name {
    font-weight: 600;
    color: #1F2937;
    font-size: 0.9rem;
}

.testimonial-location {
    font-size: 0.8rem;
    color: #6B7280;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

.features-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    max-width: 650px;
    margin: 1.5rem auto 0;
    line-height: 1.65;
    font-weight: 400;
}

.features-showcase {
    margin-bottom: 6rem;
}

.feature-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    background: linear-gradient(135deg, #FAF7F0 0%, #F5F1E8 100%);
    padding: 4rem;
    border-radius: 28px;
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(212, 165, 116, 0.08);
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-image.before {
    z-index: 1;
}

.slider-image.after {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.damage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(139, 69, 19, 0.3) 2px, transparent 3px),
        linear-gradient(45deg, transparent 48%, rgba(160, 82, 45, 0.2) 49%, rgba(160, 82, 45, 0.2) 51%, transparent 52%);
    z-index: 1;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    z-index: 3;
    cursor: ew-resize;
}

.slider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-circle::before {
    content: '←';
    color: #D4A574;
    font-weight: bold;
    margin-right: 2px;
}

.slider-circle::after {
    content: '→';
    color: #D4A574;
    font-weight: bold;
    margin-left: 2px;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
}

.slider-arrows {
    display: flex;
    align-items: center;
    gap: 0px;
    color: #D4A574;
}

/* Hero slider specific styles */
#heroSlider {
    max-width: 400px;
    height: 500px;
    margin: 0 auto;
}

#heroSlider .comparison-slider {
    height: 500px;
}

#heroSlider .slider-image.after {
    clip-path: polygon(var(--slider-position, 50%) 0%, 100% 0%, 100% 100%, var(--slider-position, 50%) 100%);
}

.spotlight-title {
    font-size: 1.875rem;
    color: #1F2937;
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.spotlight-description {
    font-size: 1.0625rem;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.spotlight-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

.mini-icon {
    font-size: 1.2rem;
    width: 32px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #FAF7F0 0%, #F5F1E8 100%);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 165, 116, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4A574 0%, #E8B4A0 100%);
}

.feature-card.premium {
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(212, 165, 116, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.75rem;
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.25);
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1F2937;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.feature-description {
    color: #4B5563;
    line-height: 1.6;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.feature-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.25);
    letter-spacing: 0.02em;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
    color: white;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer */
.footer {
    background: #1A1A1A;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-tagline {
    opacity: 0.7;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    max-height: 75vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #E5E5E5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    color: #2C3E50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #5A6C7D;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: #F5F5F5;
}

.modal-body {
    padding: 1.25rem;
}

/* Enhanced Auth Modal Styles */
.auth-modal {
    max-width: 450px;
}



.auth-error {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    color: #DC2626;
    font-size: 0.9rem;
}

.auth-success {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    color: #16A34A;
    font-size: 0.9rem;
}

.social-auth {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1.5px solid #E5E5E5;
    border-radius: 12px;
    background: white;
    color: #2C3E50;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    border-color: #667EEA;
    background: #F8F9FF;
}

.auth-btn:active {
    transform: translateY(1px);
}

.google-btn:hover {
    border-color: #4285F4;
    background: #F8F9FF;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    color: #5A6C7D;
    font-size: 0.9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E5E5E5;
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}



.form-group label {
    font-weight: 500;
    color: #2C3E50;
    font-size: 0.9rem;
}

.input-field {
    padding: 1rem;
    border: 1.5px solid #E5E5E5;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #667EEA;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field::placeholder {
    color: #9CA3AF;
}

.auth-submit-btn {
    margin-top: 0.5rem;
    position: relative;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E5E5;
}

.auth-footer p {
    color: #5A6C7D;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.auth-link {
    background: none;
    border: none;
    color: #667EEA;
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
    font-size: inherit;
}

.auth-link:hover {
    color: #5A67D8;
}

.forgot-password {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.auth-btn:hover {
    border-color: #D4A574;
    background: #FAF7F0;
}

.apple-btn {
    background: #000;
    color: white;
    border-color: #000;
}

.apple-btn:hover {
    background: #333;
}



.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-field {
    padding: 1rem;
    border: 1.5px solid #E5E5E5;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: #D4A574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* Onboarding Modal */
.onboarding-modal {
    max-width: 600px;
    max-height: 80vh;
    margin: 10% auto;
}

.onboarding-slides {
    position: relative;
    min-height: 400px;
}

.slide {
    display: none;
    padding: 3rem 2rem 2rem;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.slide.active {
    display: block;
}

.slide-image {
    margin-bottom: 2rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-demo {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: white;
    position: relative;
    overflow: hidden;
}

.restore-demo {
    background: linear-gradient(135deg, #8B7355 0%, #A0956B 100%);
}

.colorize-demo {
    background: linear-gradient(135deg, #FFB6C1 0%, #98FB98 100%);
}

.print-demo {
    background: linear-gradient(135deg, #D4A574 0%, #E8B4A0 100%);
}

.slide h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.slide p {
    color: #5A6C7D;
    line-height: 1.7;
    font-size: 1rem;
}

.slide-controls {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid #E5E5E5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slide-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E5E5E5;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dot.active {
    background: #D4A574;
}

.slide-actions {
    display: flex;
    gap: 1rem;
}

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

@keyframes revealPhoto {
    0%, 30% { opacity: 0; }
    50%, 80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes sparkleAnimation {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0) rotate(0deg);
    }
    20%, 80% { 
        opacity: 1; 
        transform: scale(1) rotate(180deg);
        box-shadow: 0 0 20px #D4A574;
    }
}

@keyframes pulseTransform {
    0%, 30% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}



@keyframes colorize {
    0% { filter: hue-rotate(0deg) saturate(1); }
    100% { filter: hue-rotate(10deg) saturate(1.2); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 1200px) {
    .hero-container {
        max-width: 1500px;
        padding: 0 4rem;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 700px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 3.5vw, 3.25rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-showcase {
        max-width: 520px;
    }
    
    .hero-testimonial {
        margin-bottom: 1.75rem;
    }
    
    .hero-actions {
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 1600px) {
    .hero-container {
        max-width: 1700px;
        padding: 0 5rem;
        gap: 2.5rem;
    }
    
    .hero-content {
        max-width: 750px;
    }
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: #2C3E50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: white;
    border-top: 1px solid #E5E5E5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1001;
}

.mobile-nav-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav {
        position: relative; /* Ensure mobile menu positions correctly */
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    /* Hero Section Mobile Fixes */
    .hero {
        padding-top: 2rem; /* Reduced space to clear fixed nav */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 0; /* Remove extra padding since hero has it */
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* Features Section Mobile Fixes */
    .features-showcase {
        flex-direction: column;
        gap: 2rem;
    }
    
    .feature-spotlight {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .spotlight-media {
        order: 2; /* Move image below text on mobile */
        width: 100%;
    }
    
    .spotlight-content {
        order: 1;
        width: 100%;
    }
    
    /* Make comparison slider work on mobile */
    .comparison-slider {
        position: relative;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        height: 400px;
    }
    
    .slider-image.before {
        display: block; /* Show the before image on mobile */
    }
    
    .slider-image.after {
        width: 100%;
        position: absolute;
    }
    
    .slider-handle {
        display: block; /* Show the slider handle on mobile */
    }
    
    .slider-circle {
        width: 50px;
        height: 50px; /* Larger touch target for mobile */
    }
    
    .spotlight-features {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .mini-feature {
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .before-after-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .transform-arrow {
        transform: rotate(90deg);
    }
    
    .photo-placeholder {
        width: 160px;
        height: 220px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    /* Additional mobile improvements */
    .hero-content {
        padding-top: 0.5rem; /* Just a little space between header and badge on mobile */
    }
    
    .hero-badge {
        margin-top: 0; /* Remove extra margin since hero has padding now */
    }
    
    .hero-guarantees {
        gap: 0.75rem; /* Reduce gap to fit all items on one line */
        flex-wrap: nowrap; /* Prevent wrapping */
        justify-content: center;
    }
    
    .guarantee-item {
        font-size: 0.7rem; /* Slightly smaller text */
        gap: 0.3rem; /* Reduce gap between icon and text */
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .features-container,
    .cta-container,
    .footer-container,
    .social-proof-container {
        padding: 0 1rem;
    }
    
    /* Social Proof Mobile Improvements */
    .social-stats {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .stat-item {
        text-align: center;
        min-width: 80px;
    }
    
    .testimonial-scroll {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .slide {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .slide-controls {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .how-it-works {
        flex-direction: row;
        gap: 0.75rem;
        padding: 1.5rem 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .how-it-works-step {
        max-width: 100px;
        min-width: 80px;
        flex-shrink: 0;
    }
    
    .step-arrow {
        transform: rotate(0deg);
        flex-shrink: 0;
        margin: 0 0.25rem;
    }
    
    .step-arrow svg {
        width: 12px;
        height: 12px;
    }
    
    .step-content h4 {
        font-size: 0.75rem;
    }
    
    .step-content p {
        font-size: 0.65rem;
    }
    
    .step-icon {
        width: 36px;
        height: 36px;
    }
}