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

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

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.logo-text {
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.nav-right {
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 30px;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.95;
}

.hero-description {
    font-size: 16px;
    opacity: 0.9;
}

/* Description Section */
.description-section {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 30px;
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.description-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.description-content h3 {
    font-size: 22px;
    margin: 30px 0 15px 0;
    color: #333;
}

.description-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

.benefits-list,
.use-cases-list {
    list-style: none;
    margin: 20px 0;
}

.benefits-list li,
.use-cases-list li {
    padding: 12px 0;
    font-size: 16px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.benefits-list li:last-child,
.use-cases-list li:last-child {
    border-bottom: none;
}

.benefits-list strong,
.use-cases-list strong {
    color: #667eea;
}

/* Main Container */

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

.content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 50px;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 0;
}

.lang-selector-wrapper {
    display: flex;
    align-items: center;
}

.lang-selector {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
}

.lang-selector:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.25);
}

.lang-selector:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.lang-selector option {
    background: #667eea;
    color: white;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.content {
    padding: 30px;
}

.input-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.textarea-group {
    display: flex;
    flex-direction: column;
}

.textarea-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.textarea-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 200px;
    transition: border-color 0.3s;
}

.textarea-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-compare {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-width: 150px;
}

.btn-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-compare:active {
    transform: translateY(0);
}

.btn-clear {
    background: #f0f0f0;
    color: #333;
    min-width: 150px;
}

.btn-clear:hover {
    background: #e0e0e0;
}

.btn-copy {
    background: #f0f0f0;
    color: #333;
    padding: 8px 16px;
    min-width: auto;
    font-size: 12px;
}

.btn-copy:hover {
    background: #e0e0e0;
}

.results-section {
    display: none;
}

.results-section.active {
    display: block;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.results-header h2 {
    font-size: 18px;
    color: #333;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.stat-added .stat-value {
    color: #10b981;
}

.stat-removed .stat-value {
    color: #ef4444;
}

.stat-changed .stat-value {
    color: #f59e0b;
}

.diff-output {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.diff-line {
    display: flex;
    padding: 2px 0;
}

.diff-line-number {
    display: inline-block;
    width: 40px;
    text-align: right;
    padding-right: 10px;
    color: #999;
    user-select: none;
    flex-shrink: 0;
}

.diff-content {
    flex: 1;
}

.diff-added {
    background-color: #d1fae5;
    color: #065f46;
}

.diff-removed {
    background-color: #fee2e2;
    color: #7f1d1d;
}

.diff-unchanged {
    background-color: #f9f9f9;
    color: #333;
}

.diff-added .diff-line-number {
    color: #10b981;
}

.diff-removed .diff-line-number {
    color: #ef4444;
}

ins {
    background-color: #d1fae5;
    color: #065f46;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
}

del {
    background-color: #fee2e2;
    color: #7f1d1d;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
}

.no-diff {
    padding: 30px;
    text-align: center;
    color: #666;
}

.no-diff-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 60px 30px;
    margin-bottom: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-section .container {
    max-width: 1000px;
}

.faq-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #667eea;
}

.faq-item p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 30px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    text-align: center;
    font-size: 14px;
    color: #95a5a6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-top: 4px solid #667eea;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
}

.contact-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #764ba2;
}

/* Legal Content */
.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
    color: #333;
}

.legal-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

/* FAQ Details */
.faq-detail {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-detail:hover {
    background: #f0f1f5;
    border-color: #667eea;
}

.faq-detail summary {
    font-weight: 600;
    color: #333;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.faq-detail summary::-webkit-details-marker {
    color: #667eea;
}

.faq-detail p {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    line-height: 1.7;
}

.faq-content {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .description-section {
        padding: 25px;
    }

    .content {
        padding: 20px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .header h1 {
        font-size: 24px;
    }

    .lang-selector {
        min-width: 130px;
    }

    .input-section {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .stats {
        flex-direction: column;
        gap: 10px;
    }

    .diff-line-number {
        width: 30px;
        font-size: 11px;
    }

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

    .faq-section {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero {
        padding: 30px 15px;
    }
}

/* Use Case Examples */
.use-case-example {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
    transition: box-shadow 0.3s;
}

.use-case-example:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.example-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.example-icon {
    font-size: 32px;
    margin-right: 20px;
    min-width: 40px;
}

.example-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.example-content p {
    margin: 0 0 15px 0;
    color: #555;
    font-style: italic;
}

.example-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.example-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.example-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

/* Responsive adjustments for use case examples */
@media (max-width: 768px) {
    .use-case-example {
        padding: 20px;
    }

    .example-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .example-icon {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 28px;
    }

    .example-header h3 {
        font-size: 18px;
    }
}
