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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 2px 0;
    border-radius: 2px;
}

main {
    min-height: calc(100vh - 200px);
    padding: 1.5rem 0;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: -1.5rem -20px 1.5rem -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.features {
    padding: 1.5rem 0;
}

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

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

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

.tools-section {
    padding: 1.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

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

.tool-link {
    display: inline-block;
    margin-top: 1rem;
    color: #2563eb;
    font-weight: 600;
}

.ad-section-top,
.ad-section-middle {
    padding: 2rem 0;
}

.ad-placeholder {
    background: #e5e7eb;
    border: 2px dashed #9ca3af;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    color: #6b7280;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works,
.use-cases,
.faq-section {
    padding: 2rem 0;
}

.steps-grid,
.use-cases-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.step-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 auto 0.75rem;
}

.step-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.use-case-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.use-case-card h3 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-item h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #60a5fa;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

.counter-section,
.page-calculator-section,
.page-content-section {
    padding: 2rem 0;
}

.page-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    color: #1f2937;
}

.page-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

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

.text-area-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.text-input {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
    font-family: inherit;
}

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

.text-area-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.stats-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stats-container h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    color: #2563eb;
    font-size: 1.25rem;
    font-weight: 700;
}

.info-section {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-section h2 {
    margin-bottom: 1rem;
    color: #1f2937;
}

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

.input-section,
.result-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.input-field,
.select-field {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
}

.input-field:focus,
.select-field:focus {
    outline: none;
    border-color: #2563eb;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.result-section h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.result-display {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.result-number {
    font-size: 3rem;
    font-weight: 700;
}

.result-label {
    font-size: 1.25rem;
    opacity: 0.9;
}

.result-note {
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
}

.reference-table {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.reference-table h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.reference-table-content {
    width: 100%;
    border-collapse: collapse;
}

.reference-table-content th,
.reference-table-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.reference-table-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

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

.content-wrapper h2 {
    margin: 2rem 0 1rem;
    color: #1f2937;
}

.content-wrapper h2:first-child {
    margin-top: 0;
}

.content-wrapper p {
    margin-bottom: 1rem;
}

.content-wrapper ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.content-wrapper a {
    color: #2563eb;
    text-decoration: none;
}

.content-wrapper a:hover {
    text-decoration: underline;
}

.last-updated {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.75rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: flex;
    }

    main {
        padding: 1rem 0;
    }

    .hero {
        padding: 2.5rem 0;
        margin: -1rem -20px 1rem -20px;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .features,
    .tools-section,
    .how-it-works,
    .use-cases,
    .faq-section {
        padding: 1.25rem 0;
    }

    .counter-container,
    .calculator-container {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .features-grid,
    .tools-grid,
    .steps-grid,
    .use-cases-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }

    .feature-card,
    .tool-card,
    .step-card,
    .use-case-card,
    .faq-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .features-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .text-area-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer {
        padding: 2rem 0 0.75rem;
        margin-top: 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }
}
