:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-main: #0f172a;
    --bg-sidebar: #1e293b;
    --bg-card: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --border-hover: #475569;
    --danger: #ef4444;
    --success: #10b981;
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 380px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.brand {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.brand-icon {
    font-size: 24px;
    color: var(--primary);
}

.brand h1 {
    font-size: 20px;
    font-weight: 700;
}

.brand span {
    color: var(--primary);
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 15px 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 10px 10px 35px;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
}

.categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    scrollbar-width: none;
    /* Firefox */
}

.categories::-webkit-scrollbar {
    display: none;
}

/* Chrome */

.cat-chip {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.cat-chip:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

.cat-chip.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.template-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.template-card {
    background-color: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--border-hover);
}

.template-card.active {
    border-color: var(--primary);
}

.template-preview {
    height: 140px;
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.template-info {
    padding: 12px;
}

.template-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.template-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Forms */
.form-header {
    margin-bottom: 20px;
}

.form-header h3 {
    margin-bottom: 5px;
}

.form-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px;
    border-radius: var(--radius);
    outline: none;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    background: none;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background-color: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background-color: var(--bg-sidebar);
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--border-hover);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    width: auto;
}

/* SEO Links */
.seo-footer-links {
    padding: 0 20px 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.seo-footer-links a {
    color: var(--text-muted);
    font-size: 11px;
    text-decoration: none;
}

.seo-footer-links a:hover {
    color: var(--text-main);
}

/* Preview Area */
.preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
    position: relative;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
}

.preview-header {
    height: 60px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: var(--bg-sidebar);
    z-index: 10;
}

.device-toggles {
    display: flex;
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 4px;
}

.device-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    width: 40px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.device-btn.active {
    background-color: var(--border-hover);
    color: var(--text-main);
}

.preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
    transition: all 0.3s ease;
}

.preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: width 0.3s, height 0.3s;
}

.preview-container.desktop .preview-frame {
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.preview-container.tablet .preview-frame {
    width: 768px;
    height: 1024px;
}

.preview-container.mobile .preview-frame {
    width: 375px;
    height: 812px;
}

.preview-overlay {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.preview-overlay.empty {
    opacity: 1;
    pointer-events: all;
}

.overlay-content {
    background-color: var(--bg-sidebar);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    max-width: 400px;
}

.overlay-content i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.overlay-content h2 {
    margin-bottom: 10px;
}

.overlay-content p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.template-card {
    animation: fadeIn 0.3s ease forwards;
}

/* -----------------------------
   LANDING PAGE STYLES
----------------------------- */

.landing-view {
    height: 100vh;
    width: 100vw;
    overflow-y: auto;
    background-color: #0f172a;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Landing Nav */
.landing-nav {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img,
.brand-icon-img {
    height: 32px;
    width: auto;
    border-radius: 8px;
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.landing-hero {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.15), transparent 50%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text h1 span {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

.trust-badges {
    display: flex;
    gap: 20px;
    color: #64748b;
    font-size: 14px;
}

.trust-badges span i {
    color: #10b981;
    margin-right: 6px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* General Sections */
.landing-section {
    padding: 100px 0;
}

.bg-alt {
    background-color: #1e293b;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    margin-bottom: 15px;
}

.section-header p {
    color: #94a3b8;
    font-size: 18px;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    background: #0f172a;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    border: 4px solid #1e293b;
}

.step-icon {
    font-size: 48px;
    color: #3b82f6;
    margin: 30px 0 20px;
}

.step-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.step-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-box {
    background: #1e293b;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.5);
}

.feature-box i {
    font-size: 32px;
    color: #a855f7;
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-box p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 15px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #0f172a;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 24px 24px;
    color: #94a3b8;
    line-height: 1.6;
    display: block;
    /* Keeping it simple for static display, or we could add JS toggle */
}

/* CTA Block */
.section-highlight {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    padding: 80px 0;
}

.section-highlight h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.section-highlight p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.text-center {
    text-align: center;
}

/* Footer */
.landing-footer {
    background: #0f172a;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.footer-brand img {
    height: 32px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .trust-badges {
        justify-content: center;
    }

    .steps-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
    }
}