/* Critical CSS moved to index.ejs inline for LCP optimization */
:root {
    --primary: #ff4757;
    --primary-dark: #e84118;
    --secondary: #2f3542;
    --text: #57606f;
    --light: #f1f2f6;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, rgba(100, 10, 20, 0.1) 0%, rgba(140, 20, 40, 0.1) 100%);
    --glass: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08)
}

/* Ensure variables are available but other critical styles are handled via inline CSS */


.features {
    padding: 100px 10%;
    background: var(--white);
    text-align: center
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 60px;
    color: #888
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px
}

.feature-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid #eee
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary)
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 71, 87, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--secondary)
}

.themes-section {
    padding: 100px 10%;
    background: #f8f9fa;
    text-align: center
}

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

@media (max-width:1200px) {
    .theme-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:900px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:600px) {
    .theme-grid {
        grid-template-columns: 1fr
    }
}

.theme-preview-card {
    background: var(--white);
    border-radius: 24px;
    /* More rounded */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer, deeper shadow */
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Apple-like ease */
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle border */
}

.theme-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.theme-img-container {
    width: 100%;
    height: 280px;
    /* Taller image area */
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.theme-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block !important;
}

.theme-preview-card:hover .theme-img {
    transform: scale(1.08);
    /* Gentle zoom */
}

/* Updated High-Res Images for Premium Feel */
.kardelen {
    background-image: url('https://images.unsplash.com/photo-1518199266791-5375a83190b7?auto=format&fit=crop&w=600&q=80');
}

.vintage {
    background-image: url('https://images.unsplash.com/photo-1579783902614-a3fb3927b6a5?auto=format&fit=crop&w=600&q=80');
}

.neon {
    background-image: url('https://images.unsplash.com/photo-1563089145-599997674d42?auto=format&fit=crop&w=600&q=80');
}

.twilight {
    background-image: url('https://images.unsplash.com/photo-1534447677768-be436bb09401?auto=format&fit=crop&w=600&q=80');
}

.minimal-light {
    background-image: url('https://images.unsplash.com/photo-1494438639946-1ebd1d20bf85?auto=format&fit=crop&w=600&q=80');
}

.dark-neon {
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=600&q=80');
}

.glassmorphism {
    background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=600&q=80');
}

.aurora {
    background-image: url('https://images.unsplash.com/photo-1531366936337-7c912a4589a7?auto=format&fit=crop&w=600&q=80');
}

.theme-info {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.theme-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.theme-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
    font-weight: 400;
}

.theme-info>div {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

.theme-info form {
    flex: 1;
    display: flex
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 50px;
    background: var(--secondary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
    height: 40px;
    font-weight: 500
}

.btn-sm:hover {
    opacity: 0.9;
    transform: translateY(-2px)
}

.btn-outline-sm {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary)
}

.btn-outline-sm:hover {
    background: var(--secondary);
    color: white
}

.steps-section {
    padding: 100px 10%;
    background: var(--white)
}

.step-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px
}

.step-img {
    flex: 1;
    min-width: 300px
}

.step-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow)
}

.step-list {
    flex: 1;
    min-width: 300px
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    min-width: 60px
}

.step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary)
}

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

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2)
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999
}

.form-group {
    margin-bottom: 20px
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none
}

.btn-full {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s
}

.btn-full:hover {
    background: var(--primary-dark)
}

.live-preview-section {
    padding: 100px 10%;
    background: #fff;
    overflow: hidden
}

.preview-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px
}

.preview-text {
    flex: 1;
    min-width: 300px
}

.preview-features {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.p-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--secondary)
}

.p-feat i {
    color: var(--primary)
}

.phone-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px
}

.phone-frame {
    width: 360px;
    height: 720px;
    background: #000;
    border-radius: 50px;
    border: 8px solid #1a1a1a;
    position: relative;
    box-shadow: 0 0 0 2px #333, 0 30px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 0.3s ease
}

.phone-frame:hover {
    transform: translateY(-5px)
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 100
}

.phone-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff
}

.faq-section {
    padding: 100px 10%;
    background: #f8f9fa
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--secondary);
    transition: 0.3s
}

.faq-question:hover {
    color: var(--primary)
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: #666;
    line-height: 1.6
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px
}

.faq-icon {
    transition: 0.3s
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary)
}

footer {
    background: var(--secondary);
    color: white;
    padding: 80px 10% 30px
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px
}

.footer-col h4 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Dancing Script', cursive;
    color: var(--primary)
}

.footer-col h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white
}

.footer-links li {
    margin-bottom: 10px
}

.footer-links a {
    color: #bbb
}

.footer-links a:hover {
    color: var(--primary)
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;

    color: #888;
    font-size: 0.9rem;
}

/* PREMIUM MOBILE FEATURES (CSS ONLY) */

/* 1. Floating Background Elements */
.floating-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-item {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 50%;
    animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

/* 2. Pulse Animation for CTA */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 71, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* PHONE SLIDER STYLES */
.phone-frame-wrapper {
    width: 342px;
    /* Reduced by 5% (360 -> 342) */
    height: 684px;
    /* Reduced by 5% (720 -> 684) */
    background: #000;
    border-radius: 40px;
    border: 10px solid #1a1a1a;
    /* Slightly thinner bezel */
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.25),
        /* Realistic soft shadow */
        0 10px 20px rgba(0, 0, 0, 0.1);
    /* Close ambient shadow */
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
}

.phone-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.phone-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    overflow: hidden;
    /* Force clipping */
    border-radius: 32px;
    /* Match screen radius */
    z-index: 1;
}

.phone-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.phone-slide iframe {
    width: 125%;
    /* Virtual width: ~427px (342 * 1.25) */
    height: 125%;
    transform: scale(0.80);
    /* Scale down to fit 342px container */
    transform-origin: 0 0;
    border: none;
    display: block;
}

.slide-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* 3. Horizontal Snap Scroll (Mobile Only) */
@media (max-width: 768px) {
    .theme-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 30px;
        /* More space for shadow */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
        touch-action: pan-x pan-y;
        /* Explicitly allow vertical scroll */
        /* Prevent vertical scroll blocking */
        overscroll-behavior-y: auto;
    }

    .theme-preview-card {
        min-width: 85%;
        /* Slightly narrower to see next card */
        scroll-snap-align: center;
    }

    /* Hide scrollbar for cleaner look */
    .theme-grid::-webkit-scrollbar {
        display: none;
    }
}

/* Live Preview Section - Unifying Background with Hero */
.live-preview-section {
    background: radial-gradient(circle at 50% 50%, #fff5f5 0%, #fdfbf7 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 10%;
}

.live-preview-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/cream-paper.png");
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.live-preview-section .preview-container {
    position: relative;
    z-index: 1;
}