/* Base Styles & Variables */
:root {
    --primary: #2563EB;
    --primary-light: #EFF6FF;
    --primary-hover: #1D4ED8;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-extra-light: #F1F5F9;
    --text-dark: #0F172A;
    --text-gray: #475569;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --section-padding: 8rem 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    letter-spacing: -0.04em;
}

h1 { font-size: clamp(3rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.75rem; }

p {
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.25rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background-color: #FFFFFF;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-dark);
    transform: translateY(-3px) scale(1.02);
}

.btn-large {
    padding: 1.25rem 3.5rem;
    font-size: 1.125rem;
}

.btn.small {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    padding: 1.25rem 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    padding: 0.875rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
}

/* Sections */
section {
    padding: var(--section-padding);
}

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

.section-header {
    margin-bottom: 5rem;
    max-width: 800px;
}

.section-header p {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Hero Visual Mockup */
.mockup-window {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
}

.mockup-body {
    display: flex;
    flex: 1;
}

.mockup-sidebar {
    width: 80px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-light);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-line {
    height: 8px;
    border-radius: 2px;
    background: #D1D5DB;
    width: 100%;
}

.mockup-line.w-75 {
    width: 75%;
}

.mockup-line.w-50 {
    width: 50%;
}

.mockup-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mockup-element {
    height: 24px;
    border-radius: 4px;
}

.mockup-element.primary {
    background: var(--primary);
    width: 60%;
    opacity: 0.1;
}

.mockup-element.secondary {
    background: var(--border-color);
}

.grid-mockup {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.grid-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    height: 80px;
    border-radius: 4px;
}

/* Trust Section */
.trust-section {
    padding: 3.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid transparent;
    /* removing bottom border to flow better */
}

.trust-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 1.5rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    opacity: 0.7;
}

.logo-placeholder {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #4B5563;
}

/* Services Category Grid */
.services-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-category-card {
    background: var(--bg-white);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.category-icon {
    color: var(--primary);
    background: var(--primary-light);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.category-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-list {
    margin-top: auto;
    list-style: none;
    padding: 0;
}

.category-list li {
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.category-list li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
}

/* Deliverables Block */
.deliverables-block {
    background: var(--bg-white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 4rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.deliverables-block h3 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

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

.deliverable-item {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.deliverable-item span {
    color: #10B981;
    font-weight: 900;
}

.services-cta {
    text-align: center;
}

/* Templates Marketplace Custom Styles */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.template-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-soft);
}

.template-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.template-preview-high {
    height: 220px;
    background: var(--bg-light);
    position: relative;
    padding: 1rem;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E2E8F0 0%, #F1F5F9 100%);
    border-radius: 8px;
}

.placeholder-img.business { background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%); }
.placeholder-img.portfolio { background: linear-gradient(135deg, #F3E8FF 0%, #FAF5FF 100%); }

.tag-pill {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.template-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.template-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.template-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.template-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Product Demo Section */
.product-demo {
    padding: 8rem 0;
}

.mockup-window.large {
    height: 600px;
    width: 100%;
    margin: 0 auto;
    background: #FFFFFF;
}

.mockup-tab {
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
}

.mockup-tab.active {
    background: #FFFFFF;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.toolbar-mock {
    height: 50px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-light);
}

.tool-circle { width: 14px; height: 14px; border-radius: 50%; background: #E2E8F0; }
.tool-circle.primary { background: var(--primary); }
.tool-rect { width: 60px; height: 12px; border-radius: 6px; background: #E2E8F0; margin-left: auto; }

.editor-workspace {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    height: calc(100% - 50px);
}

.layers-panel, .properties-panel {
    background: #F8FAFC;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.properties-panel { border-right: none; border-left: 1px solid var(--border-color); }

.layer-item {
    padding: 10px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.layer-item:hover { background: #F1F5F9; }
.layer-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.canvas { padding: 3rem; background: #FFF; position: relative; overflow: hidden; }
.canvas-element.title { height: 40px; width: 60%; background: #F1F5F9; border-radius: 6px; margin-bottom: 16px;}
.canvas-element.text { height: 20px; width: 90%; background: #F1F5F9; border-radius: 6px; margin-bottom: 40px;}

.canvas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.canvas-card { height: 180px; border: 2px dashed #E2E8F0; border-radius: 12px;}

/* Pricing Section */
.pricing-section {
    padding: 8rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.pricing-card {
    background: var(--bg-white);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    padding: 4.5rem 2.5rem;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.pricing-card .badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #FFF;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pricing-header h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-gray); font-weight: 600; }
.pricing-header .price { font-size: 4rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.5rem; letter-spacing: -0.04em; }
.pricing-header .price span { font-size: 1.25rem; color: var(--text-muted); font-weight: 500; }

.pricing-features {
    margin: 3rem 0;
    text-align: left;
    list-style: none;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-gray);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 900;
    font-size: 1.1rem;
}

.w-100 { width: 100%; }

/* CTA Update */
.cta-banner {
    background: var(--text-dark);
    color: #FFFFFF;
    border: none;
    padding: 6rem 4rem;
    border-radius: var(--radius-lg);
}

.cta-banner h2 { color: #FFFFFF; font-size: 3.5rem; letter-spacing: -0.03em; }
.cta-banner p { color: #94A3B8; font-size: 1.25rem; }

.cta-actions { display: flex; justify-content: center; margin-top: 2.5rem; }

.cta-banner .btn-outline {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.3);
}

.cta-banner .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #FFFFFF;
}

/* Contact Section Adjustment */
.contact-section {
    padding: 8rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.info-item svg {
    color: var(--primary);
    background: rgba(29, 78, 216, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
}

.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-light);
    font-family: inherit;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
    background: var(--bg-white);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    max-width: 250px;
}

.link-group h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.link-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-group a,
.social-icons a {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.link-group a:hover,
.social-icons a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

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

    .mobile-menu-btn {
        display: block;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .templates-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .hidden-mobile {
        display: none;
    }

    .footer-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}