* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    background: #f5f3f0;
    min-height: 100vh;
    padding: 20px;
    color: #2c2c2c;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

header {
    background: #2c3e50;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.input-section {
    padding: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.input-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
    color: #2c3e50;
}

.keyboard-info {
    background: #e8f4f8;
    border-left: 4px solid #34495e;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 0.95em;
    color: #2c3e50;
}

.keyboard-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.keyboard-info kbd {
    background: #34495e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.85em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    padding: 12px 20px;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    color: #999;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
}

.tab-btn:hover {
    color: #34495e;
}

.tab-btn.active {
    color: #34495e;
    border-bottom-color: #34495e;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 600;
    color: #555;
    font-size: 1.05em;
}

input[type="url"] {
    padding: 12px 15px;
    border: 2px solid #e0ddd8;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="url"]:focus {
    outline: none;
    border-color: #34495e;
    box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.1);
}

textarea {
    padding: 12px 15px;
    border: 2px solid #e0ddd8;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #34495e;
    box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.1);
}

.btn-primary {
    padding: 12px 30px;
    background: #34495e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2c3e50;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.error-message {
    color: #d32f2f;
    font-weight: 500;
    min-height: 20px;
}

.reader-section {
    padding: 30px;
}

.controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.keyboard-shortcuts {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    padding: 0 20px 15px 20px;
    font-size: 0.9em;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f8f8;
    margin: -20px -20px 20px -20px;
    padding: 15px 20px;
    border-radius: 6px;
}

.keyboard-shortcuts .shortcut {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

.keyboard-shortcuts kbd {
    background: #2c3e50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.85em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #34495e;
}

.keyboard-shortcuts kbd:hover {
    background: #34495e;
    transform: scale(1.05);
}

.btn-control {
    padding: 10px 20px;
    background: white;
    border: 2px solid #34495e;
    color: #34495e;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-control:hover {
    background: #34495e;
    color: white;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.speed-control label {
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

input[type="range"] {
    width: 150px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #34495e;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #2c3e50;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #34495e;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #2c3e50;
}

#speedDisplay {
    font-weight: 700;
    color: #34495e;
    min-width: 45px;
    text-align: right;
}

.word-display {
    font-size: 5.5em;
    font-weight: 400;
    text-align: center;
    padding: 80px 40px;
    background: #fafaf8;
    border: 1px solid #e0ddd8;
    border-radius: 8px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    line-height: 1.1;
    font-family: 'Georgia', serif;
    letter-spacing: -0.02em;
}

.word-display .highlight {
    color: #d32f2f;
}

.word-display .punctuation {
    color: #666;
    font-weight: 600;
    margin-left: 0.1em;
}

.progress {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: #34495e;
    width: 0%;
    transition: width 0.2s;
}

.progress-text {
    text-align: center;
    color: #999;
    font-size: 0.95em;
}

footer {
    background: #f8f8f8;
    padding: 20px;
    text-align: center;
    color: #999;
    border-top: 1px solid #e0e0e0;
}

/* SEO & Content Sections */
.benefits-section {
    padding: 60px 30px;
    background: #fafaf8;
    border-top: 1px solid #e0e0e0;
}

.benefits-section h2,
.features-section h2,
.how-it-works-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8em;
    color: #2c3e50;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

.features-section {
    padding: 60px 30px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.features-list {
    max-width: 900px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #f8f8f8;
    border-left: 4px solid #34495e;
    border-radius: 4px;
    color: #333;
    line-height: 1.6;
}

.how-it-works-section {
    padding: 60px 30px;
    background: #fafaf8;
    border-top: 1px solid #e0e0e0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.step h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.step p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Ad Spaces (Invisible placeholder - ready for monetization) */
.ad-placeholder {
    min-height: 250px;
    margin: 30px 0;
    background: #fafaf8;
    border: 1px dashed #e0e0e0;
    display: none;
}

.ad-placeholder.active {
    display: block;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }

    .word-display {
        font-size: 2.5em;
        padding: 40px 20px;
    }

    .speed-control {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
    }

    .controls {
        flex-direction: column;
    }

    .btn-control {
        width: 100%;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .benefits-section,
    .features-section,
    .how-it-works-section {
        padding: 40px 20px;
    }

    .benefits-section h2,
    .features-section h2,
    .how-it-works-section h2 {
        font-size: 1.5em;
    }
}
