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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

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

a:hover {
    text-decoration: underline;
}

header {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.logo span {
    color: #2563eb;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
}

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

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: #1f2937;
        margin: 5px 0;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
    }
}

.hero {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

.tool-section {
    padding: 3rem 0;
}

.tool-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-group textarea {
    width: 100%;
    height: 250px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.input-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.options {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.options h3 {
    margin-bottom: 1rem;
}

.options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #10b981;
    color: white;
}

.btn-secondary:hover {
    background-color: #059669;
}

.btn-outline {
    background-color: transparent;
    border-color: #e5e7eb;
    color: #1f2937;
}

.btn-outline:hover {
    background-color: #f9fafb;
}

.stats {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 1rem;
}

.stats p {
    font-weight: 600;
}

.stats span {
    color: #2563eb;
}

.features {
    padding: 4rem 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6b7280;
}

.seo-content {
    padding: 4rem 0;
}

.seo-content h2,
.seo-content h3 {
    margin-bottom: 1.5rem;
}

.seo-content p {
    margin-bottom: 1.5rem;
}

.seo-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.seo-content li {
    margin-bottom: 0.75rem;
}

.related-tools {
    padding: 4rem 0;
    background-color: #fff;
}

.related-tools h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    display: block;
    border: 2px solid transparent;
}

.tool-card:hover {
    border-color: #2563eb;
    transform: translateY(-3px);
}

.tool-card h3 {
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.tool-card p {
    color: #6b7280;
}

footer {
    background-color: #1f2937;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
}

footer nav a {
    color: white;
    margin: 0 0.5rem;
}

footer nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
    }
    
    .stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}