
    :root {
        --primary: #4f46e5;
        --secondary: #7c3aed;
        --bg: #f8fafc;
        --bg-glass: rgba(255, 255, 255, 0.7);
        --text-main: #0f172a;
        --text-muted: #64748b;
        --border: rgba(255, 255, 255, 0.5);
        --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
        --radius: 16px;
        --font: 'Inter', system-ui, -apple-system, sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    
    body {
        font-family: var(--font);
        background: var(--bg);
        color: var(--text-main);
        line-height: 1.6;
        overflow-x: hidden;
        background-image: 
            radial-gradient(at 0% 0%, hsla(253,16%,7%,0.05) 0, transparent 50%), 
            radial-gradient(at 50% 0%, hsla(225,39%,30%,0.05) 0, transparent 50%), 
            radial-gradient(at 100% 0%, hsla(339,49%,30%,0.05) 0, transparent 50%);
        background-attachment: fixed;
    }

    a { color: var(--primary); text-decoration: none; transition: 0.2s; }
    a:hover { color: var(--secondary); }

    .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

    /* Glassmorphism */
    .glass-card {
        background: var(--bg-glass);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    /* Buttons */
    .btn {
        display: inline-flex; align-items: center; justify-content: center;
        padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 500;
        cursor: pointer; transition: all 0.3s; border: none; font-size: 1rem;
    }
    .btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39); }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.39); color: white; }
    .btn-secondary { background: white; color: var(--primary); border: 1px solid #e2e8f0; }
    .btn-secondary:hover { background: #f1f5f9; }
    .btn-outline { background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted); }
    .btn-large { padding: 0.8rem 2rem; font-size: 1.125rem; }
    .btn-block { width: 100%; }

    /* Header */
    .header {
        position: sticky; top: 0; z-index: 100;
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding: 1rem 0;
    }
    .header-container { display: flex; justify-content: space-between; align-items: center; }
    .logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; color: var(--text-main); }
    .nav { display: flex; gap: 1.5rem; }
    .nav a { color: var(--text-main); font-weight: 500; }
    .nav a:hover { color: var(--primary); }
    .header-actions { display: flex; align-items: center; gap: 1rem; }
    .menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text-main); }

    /* Hero */
    .hero { padding: 5rem 0; position: relative; overflow: hidden; }
    .hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
    .hero-content h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; background: linear-gradient(135deg, var(--text-main), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .hero-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2rem; }
    .hero-buttons { display: flex; gap: 1rem; margin-bottom: 3rem; }
    
    .hero-stats { display: flex; gap: 2rem; }
    .stat { font-size: 0.875rem; color: var(--text-muted); }
    .stat .counter { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }

    /* Mockup Animation */
    .mockup { padding: 1rem; height: 300px; display: flex; flex-direction: column; background: rgba(255,255,255,0.9); border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
    .mockup-header { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; }
    .dot { width: 12px; height: 12px; border-radius: 50%; }
    .dot.red { background: #ff5f56; }
    .dot.yellow { background: #ffbd2e; }
    .dot.green { background: #27c93f; }
    .typing-line { height: 12px; background: #e2e8f0; border-radius: 6px; margin-bottom: 1rem; animation: pulse 2s infinite ease-in-out; }
    .width-100 { width: 100%; } .width-80 { width: 80%; } .width-60 { width: 60%; } .width-90 { width: 90%; } .width-40 { width: 40%; }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    /* Sections */
    .section-title { text-align: center; font-size: 2.25rem; margin-bottom: 3rem; }
    .features, .how-it-works, .use-cases { padding: 5rem 0; }
    .bg-light { background: rgba(255,255,255,0.5); }
    
    .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
    .feature-card { padding: 2rem; text-align: left; transition: transform 0.3s; }
    .feature-card:hover { transform: translateY(-5px); }
    .icon-wrap { font-size: 2.5rem; margin-bottom: 1rem; }
    
    .steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .step { text-align: center; }
    .step-num { width: 48px; height: 48px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin: 0 auto 1rem; }
    
    .use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
    .use-case-card { padding: 1.5rem; text-align: center; font-weight: 500; font-size: 1.1rem; }

    /* Tool Layout */
    .tool-layout { display: grid; grid-template-columns: 350px 1fr; gap: 2rem; padding: 2rem 1.5rem; align-items: start; }
    .tool-sidebar { padding: 1.5rem; }
    .sidebar-title { margin-bottom: 1.5rem; font-size: 1.25rem; }
    .form-group { margin-bottom: 1rem; }
    .form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.875rem; font-weight: 500; }
    .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #cbd5e1; border-radius: 8px; font-family: var(--font); outline: none; transition: border 0.3s; }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    
    .editor-toolbar { padding: 0.5rem 1rem; display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
    .editor-toolbar button { background: none; border: none; padding: 0.4rem 0.8rem; border-radius: 4px; cursor: pointer; font-weight: 500; transition: background 0.2s; }
    .editor-toolbar button:hover { background: rgba(0,0,0,0.05); }
    .divider { width: 1px; height: 24px; background: #cbd5e1; margin: 0 0.5rem; }
    .spacer { flex: 1; }
    .editor-stats { font-size: 0.875rem; color: var(--text-muted); }
    
    .editor-content { padding: 2rem; min-height: 600px; outline: none; background: white; margin-bottom: 1rem; line-height: 1.8; }
    .placeholder-text { color: #94a3b8; font-style: italic; }
    
    .editor-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

    /* Blog & Pages */
    .page-header { padding: 4rem 0 2rem; text-align: center; }
    .page-header h1 { font-size: 3rem; margin-bottom: 1rem; }
    .page-content { padding: 3rem; margin: 2rem auto; }
    .page-content h1, .page-content h2 { margin-bottom: 1rem; margin-top: 2rem; }
    .page-content p { margin-bottom: 1rem; }
    .page-content ul { margin-left: 2rem; margin-bottom: 1rem; }
    
    .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; padding-bottom: 4rem; }
    .blog-card { display: flex; flex-direction: column; overflow: hidden; }
    .blog-img { height: 200px; width: 100%; }
    .blog-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
    .blog-date { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
    .blog-content h3 { margin-bottom: 1rem; color: var(--text-main); }
    .blog-content p { color: var(--text-muted); margin-bottom: 1.5rem; flex: 1; }
    .read-more { font-weight: 600; color: var(--primary); margin-top: auto; }

    .blog-article { max-width: 800px; margin: 3rem auto; }
    .article-header { margin-bottom: 2rem; text-align: center; }
    .article-meta { color: var(--text-muted); display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
    .article-body { padding: 3rem; background: white; }
    .article-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.5rem; }
    .article-body p { margin-bottom: 1.5rem; }
    .article-body ul { margin-bottom: 1.5rem; margin-left: 2rem; }
    .toc { background: #f8fafc; padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; }
    .toc ul { list-style: none; margin: 0; }
    .author-box { padding: 1.5rem; display: flex; align-items: center; gap: 1rem; background: white; }
    .mt-4 { margin-top: 2rem; }

    /* FAQ */
    .faq-list { max-width: 800px; margin: 0 auto 4rem; padding: 1rem; }
    .faq-item { border-bottom: 1px solid #e2e8f0; }
    .faq-item:last-child { border-bottom: none; }
    .faq-question { width: 100%; text-align: left; padding: 1.5rem 1rem; background: none; border: none; font-size: 1.1rem; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font); color: var(--text-main); }
    .faq-answer { padding: 0 1rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); }
    .faq-item.active .faq-answer { max-height: 200px; padding-bottom: 1.5rem; }
    .faq-item.active .icon { transform: rotate(45deg); }

    /* Footer */
    .footer { background: #0f172a; color: #cbd5e1; padding: 4rem 0 2rem; margin-top: 4rem; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
    .footer-col h3 { color: white; margin-bottom: 1rem; font-size: 1.25rem; }
    .footer-col h4 { color: white; margin-bottom: 1rem; }
    .footer-col ul { list-style: none; }
    .footer-col ul li { margin-bottom: 0.5rem; }
    .footer-col a { color: #cbd5e1; }
    .footer-col a:hover { color: white; }
    .footer-bottom { border-top: 1px solid #334155; padding-top: 2rem; text-align: center; font-size: 0.875rem; }

/* Additions for better mobile responsiveness */

/* Better Layout additions */
html, body {
    overflow-x: hidden;
    width: 100%;
}

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

.template-body {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 1.5rem;
    font-family: serif;
    color: #333;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Base Responsive Fixes */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }
    .tool-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 2rem;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Container Padding */
    .container { padding: 0 1rem; }
    .page-content { padding: 1.5rem; }
    .tool-layout { padding: 1rem; }
    
    /* Navigation / Hamburger Menu */
    .menu-toggle { display: block; }
    .nav {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease-in-out;
        z-index: 99;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .nav.active {
        left: 0;
    }
    .nav a {
        font-size: 1.25rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    /* Typo & Typography */
    .hero-content h1 { font-size: 2.25rem; }
    .section-title { font-size: 1.75rem; }
    .page-header h1 { font-size: 2.25rem; }
    
    /* Grids & Cards */
    .feature-grid, .steps-grid, .use-case-grid {
        grid-template-columns: 1fr;
    }
    .form-row { grid-template-columns: 1fr; }
    
    /* Components */
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    .article-body { padding: 1.5rem; }
    .template-body { padding: 1.5rem; }
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .editor-actions {
        flex-direction: column;
    }
    .editor-actions .btn {
        width: 100%;
    }
    .editor-toolbar {
        justify-content: center;
    }
    .header-actions .btn-primary {
        display: none;
    }
}

/* Fix for long words causing horizontal scrolling */
body {
    word-break: break-word;
}
