/* ================================================================
   LayPic - Landing / Content Pages
   Modern, responsive design – no frameworks
   ================================================================ */

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

/* === Custom Properties === */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #a5b4fc;
    --color-primary-bg: #eef2ff;
    --color-text: #1a1a2e;
    --color-text-muted: #475569;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-border: #e2e8f0;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --header-height: 64px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.7;
    background: var(--color-bg);
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
}

img { max-width: 100%; height: auto; display: block; }
.lp-header, .lp-hero, .lp-section, .lp-cta-banner, .lp-footer { overflow: hidden; }
.lp-section-inner, .lp-hero-inner, .lp-cta-banner-inner,
.lp-footer-inner, .lp-faq-list { min-width: 0; word-break: break-word; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

/* === Header === */
.lp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 clamp(16px, 4vw, 40px);
}

.lp-header-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-logo { display: flex; align-items: center; gap: 8px; }
.lp-logo img { height: 32px; width: auto; }

.lp-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-header-nav a {
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: 8px;
    transition: all 0.15s;
}
.lp-header-nav a:hover { color: var(--color-primary); background: var(--color-primary-bg); }

/* === Buttons === */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    max-width: 100%;
}

.lp-btn-primary {
    background: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.lp-btn-primary:hover {
    background: #4338ca;
    color: #fff;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.lp-btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.lp-btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.lp-btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 14px;
}

.lp-btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* === Hero === */
.lp-hero {
    padding: calc(var(--header-height) + 60px) clamp(16px, 4vw, 40px) 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #faf5ff 100%);
    position: relative;
    overflow: hidden;
}

.lp-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: 0;
    width: 50%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.lp-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.lp-hero-text { position: relative; z-index: 2; }

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
}

.lp-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 20px;
}

.lp-hero h1 span {
    background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.lp-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.lp-hero-image {
    position: relative;
    z-index: 2;
}

.lp-hero-image img {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.lp-hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.lp-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lp-hero-trust-icon {
    width: 16px;
    height: 16px;
    color: #22c55e;
}

/* === Sections === */
.lp-section {
    padding: clamp(48px, 8vw, 100px) clamp(16px, 4vw, 40px);
}

.lp-section-alt { background: var(--color-bg-alt); }

.lp-section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.lp-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.lp-section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.lp-section-header p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* === Feature Grid === */
.lp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.lp-feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    text-align: center;
}

.lp-feature-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.lp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.lp-feature-icon svg {
    width: 24px;
    height: 24px;
}

.lp-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.lp-feature-card p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* === Steps / How-to === */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    counter-reset: step;
}

.lp-step {
    text-align: center;
    position: relative;
    counter-increment: step;
    min-width: 0;
}

.lp-step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 18px;
}

.lp-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.lp-step p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 300px;
    margin: 0 auto;
}

/* === CTA Banner === */
.lp-cta-banner {
    padding: clamp(48px, 8vw, 80px) clamp(16px, 4vw, 40px);
    background: linear-gradient(135deg, var(--color-primary) 0%, #8b5cf6 100%);
    text-align: center;
    color: #fff;
}

.lp-cta-banner-inner {
    max-width: 700px;
    margin: 0 auto;
}

.lp-cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.lp-cta-banner p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.7;
}

.lp-cta-banner .lp-btn {
    background: #fff;
    color: var(--color-primary-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    font-weight: 800;
}
.lp-cta-banner .lp-btn:hover {
    background: #f0f0ff;
    color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* === FAQ === */
.lp-faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.lp-faq-item {
    border-bottom: 1px solid var(--color-border);
}

.lp-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
    line-height: 1.5;
}

.lp-faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-text-light);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.lp-faq-item.open .lp-faq-question::after {
    content: '\2212';
}

.lp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lp-faq-item.open .lp-faq-answer {
    max-height: 500px;
}

.lp-faq-answer p {
    padding: 0 0 20px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* === Gallery Showcase === */
.lp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.lp-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-alt);
    position: relative;
}

.lp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lp-gallery-item:hover img {
    transform: scale(1.04);
}

/* === Testimonials === */
.lp-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.lp-testimonial {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px;
}

.lp-testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.lp-testimonial p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}

.lp-testimonial-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

/* === Footer === */
.lp-footer {
    background: var(--color-bg-dark);
    color: #94a3b8;
    padding: 48px clamp(16px, 4vw, 40px) 32px;
}

.lp-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.lp-footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 320px;
}

.lp-footer-title {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.lp-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-footer-links a {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: color 0.15s;
}
.lp-footer-links a:hover { color: #fff; }

.lp-footer-bottom {
    max-width: var(--max-width);
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    font-size: 0.78rem;
    text-align: center;
}

/* === Header nav button fix === */
.lp-header-nav .lp-btn-primary { color: #fff; }
.lp-header-nav .lp-btn-primary:hover { color: #fff; }

/* === Language Switcher === */
.lp-lang-switch {
    display: inline-flex;
    gap: 4px;
}
.lp-lang-btn {
    padding: 4px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    line-height: 1.4;
}
.lp-lang-btn.active {
    background: var(--color-primary-dark);
    color: #fff;
    border-color: var(--color-primary-dark);
}
.lp-lang-btn:hover:not(.active) {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

/* === Hamburger === */
.lp-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.lp-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s;
}
.lp-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.lp-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.lp-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Mobile Nav (slide-in from right) === */
.lp-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--color-border);
    padding: calc(var(--header-height) + 24px) 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 101;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lp-mobile-nav.open { transform: translateX(0); }
.lp-mobile-nav a {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 10px;
    transition: all 0.15s;
}
.lp-mobile-nav a:hover {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}
.lp-mobile-nav .lp-btn-primary { margin-top: 8px; color: #fff; text-align: center; }
.lp-mobile-nav .lp-lang-switch { padding: 8px 0; }

.lp-mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.15s;
}
.lp-mobile-nav-close:hover {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

/* Backdrop overlay */
.lp-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 100;
}
.lp-nav-backdrop.open { display: block; }

/* === Content Block (text + image) === */
.lp-content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 64px);
    align-items: center;
}
.lp-content-block.reverse .lp-content-image { order: -1; }

.lp-content-text h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.lp-content-text p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}
.lp-content-text p + p { margin-top: 12px; }

.lp-content-image img {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    height: auto;
}

/* === Checklist === */
.lp-checklist {
    list-style: none;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lp-checklist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    transition: all 0.2s;
}

.lp-checklist-item:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
    transform: translateX(4px);
}

.lp-checklist-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-checklist-icon svg {
    width: 20px;
    height: 20px;
}

/* === Video Section === */
.lp-video-wrapper {
    max-width: 840px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    aspect-ratio: 16 / 9;
    background: #000;
}
.lp-video-wrapper iframe,
.lp-video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* === Responsive === */
@media (max-width: 900px) {
    .lp-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .lp-hero-subtitle { margin-left: auto; margin-right: auto; }
    .lp-hero-actions { justify-content: center; }
    .lp-hero-trust { justify-content: center; }
    .lp-hero-image { order: -1; max-width: 500px; margin: 0 auto; }

    .lp-content-block {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .lp-content-block.reverse .lp-content-image { order: 0; }
    .lp-content-text { text-align: center; }

    .lp-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .lp-footer-brand p { margin-left: auto; margin-right: auto; }
    .lp-footer-links { align-items: center; }
}

@media (max-width: 768px) {
    .lp-header-nav { display: none; }
}

@media (max-width: 600px) {
    .lp-hero { padding-top: calc(var(--header-height) + 36px); padding-bottom: 48px; }
    .lp-hero-actions { flex-direction: column; align-items: stretch; }
    .lp-btn-lg { padding: 16px 28px; font-size: 1rem; }
    .lp-features { grid-template-columns: 1fr; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-hero-trust { flex-direction: column; gap: 8px; }
    .lp-testimonials { grid-template-columns: 1fr; }
    .lp-gallery { grid-template-columns: 1fr 1fr; }
    .lp-section-header h2 { word-break: break-word; }
    .lp-hero-inner, .lp-footer-inner, .lp-features,
    .lp-steps, .lp-testimonials, .lp-gallery { min-width: 0; }
}

@media (max-width: 400px) {
    .lp-gallery { grid-template-columns: 1fr; }
    .lp-hero { padding-left: 12px; padding-right: 12px; }
    .lp-section { padding-left: 12px; padding-right: 12px; }
    .lp-btn-lg { padding: 14px 20px; font-size: 0.95rem; }
}
