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

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #6366f1;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
}

.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-icon svg {
        width: 24px;
        height: 24px;
        fill: white;
    }

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

    .logo-text span {
        color: var(--primary);
    }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

    .nav-links a {
        color: var(--gray-600);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .nav-links a:hover, .nav-links a.active {
            color: var(--primary);
        }

    .nav-links .dropdown {
        position: relative;
    }

    .nav-links .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        min-width: 200px;
        padding: 8px 0;
        z-index: 100;
    }

    .nav-links .dropdown:hover .dropdown-menu {
        display: block;
    }

    .nav-links .dropdown-menu a {
        display: block;
        padding: 10px 16px;
        color: var(--gray-600);
    }

        .nav-links .dropdown-menu a:hover {
            background: var(--gray-100);
        }

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.hero {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    padding: 80px 24px;
    text-align: center;
    color: white;
}

    .hero h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

        .hero h1 span {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

    .hero p {
        font-size: 1.2rem;
        color: var(--gray-400);
        max-width: 700px;
        margin: 0 auto;
    }

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

    .section-header h2 {
        font-size: 2.5rem;
        color: var(--dark);
        margin-bottom: 15px;
    }

    .section-header p {
        color: var(--gray-600);
        max-width: 600px;
        margin: 0 auto;
    }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 25px;
}

.value-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--gray-600);
}

.stats-section {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--gray-400);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

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

.team-avatar {
    height: 180px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
}

.team-info {
    padding: 25px;
}

    .team-info h4 {
        color: var(--dark);
        margin-bottom: 5px;
    }

    .team-info p {
        color: var(--primary);
        font-size: 0.9rem;
        font-weight: 500;
    }

.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    color: white;
}

    .cta-section h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .cta-section p {
        opacity: 0.9;
        margin-bottom: 30px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s;
}

    .cta-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

.footer {
    background: var(--darker);
    color: var(--gray-400);
    padding: 40px 24px;
    text-align: center;
    margin-top: 60px;
}

@media (max-width: 1024px) {
    .values-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .values-grid, .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

    .modal-overlay.active {
        display: flex;
    }

.modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

    .modal-header h2 {
        color: var(--dark);
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .modal-header p {
        color: var(--gray-600);
        font-size: 0.95rem;
    }

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.modal-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-100);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

    .modal-form input:focus {
        outline: none;
        border-color: var(--primary);
    }

    .modal-form input::placeholder {
        color: var(--gray-400);
    }

.modal-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .modal-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(14,165,233,0.4);
    }

    .modal-submit:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
}

    .modal-close:hover {
        color: var(--gray-600);
    }

.modal-wrapper {
    position: relative;
}

.form-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

    .form-error.show {
        display: block;
    }

/* Multi-Language Feature Section */
.language-feature {
    background: white;
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.language-feature-header {
    text-align: center;
    margin-bottom: 40px;
}

    .language-feature-header h2 {
        font-size: 2rem;
        color: var(--dark);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

        .language-feature-header h2 svg {
            width: 40px;
            height: 40px;
            fill: var(--primary);
        }

    .language-feature-header p {
        color: var(--gray-600);
    }

.language-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.language-card {
    background: linear-gradient(135deg, var(--gray-100), white);
    border: 2px solid var(--gray-100);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

    .language-card:hover {
        border-color: var(--primary);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(14,165,233,0.15);
    }

.language-flag {
    font-size: 48px;
    margin-bottom: 15px;
}

.language-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.language-native {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.language-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .language-grid {
        grid-template-columns: 1fr;
    }
}

/* Readability Feature Section */
.readability-feature {
    background: white;
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.readability-feature-header {
    text-align: center;
    margin-bottom: 40px;
}

    .readability-feature-header h2 {
        font-size: 2rem;
        color: var(--dark);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

        .readability-feature-header h2 svg {
            width: 40px;
            height: 40px;
            fill: var(--primary);
        }

    .readability-feature-header p {
        color: var(--gray-600);
    }

.readability-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.readability-info h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.readability-info p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.readability-benefits {
    list-style: none;
}

    .readability-benefits li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 15px;
        color: var(--gray-600);
    }

        .readability-benefits li svg {
            width: 24px;
            height: 24px;
            fill: var(--primary);
            flex-shrink: 0;
            margin-top: 2px;
        }

.readability-demo {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid var(--primary);
}

.readability-demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

    .readability-demo-header svg {
        width: 28px;
        height: 28px;
        fill: var(--primary);
    }

    .readability-demo-header span {
        font-weight: 600;
        color: var(--dark);
        font-size: 1.1rem;
    }

.grade-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.grade-circle-demo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.grade-info {
    flex: 1;
}

    .grade-info .grade-label {
        font-size: 0.85rem;
        color: var(--gray-600);
    }

    .grade-info .grade-value {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--dark);
    }

.grade-scale {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.scale-item {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    border-radius: 8px;
    font-size: 0.75rem;
}

    .scale-item.easy {
        background: rgba(16, 185, 129, 0.15);
        color: #059669;
    }

    .scale-item.medium {
        background: rgba(245, 158, 11, 0.15);
        color: #d97706;
    }

    .scale-item.hard {
        background: rgba(239, 68, 68, 0.15);
        color: #dc2626;
    }

    .scale-item strong {
        display: block;
        font-size: 0.85rem;
        margin-bottom: 2px;
    }

@media (max-width: 900px) {
    .readability-content {
        grid-template-columns: 1fr;
    }
}

/* Smart Simplification Feature Section */
.simplify-feature {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 80px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
}

.simplify-feature-header {
    text-align: center;
    margin-bottom: 40px;
}

    .simplify-feature-header h2 {
        font-size: 2rem;
        color: var(--dark);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

        .simplify-feature-header h2 svg {
            width: 40px;
            height: 40px;
            fill: #10b981;
        }

    .simplify-feature-header p {
        color: var(--gray-600);
    }

.simplify-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.simplify-info h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.simplify-info p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.simplify-benefits {
    list-style: none;
}

    .simplify-benefits li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 15px;
        color: var(--gray-600);
    }

        .simplify-benefits li svg {
            width: 24px;
            height: 24px;
            fill: #10b981;
            flex-shrink: 0;
            margin-top: 2px;
        }

.simplify-demo {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
}

.simplify-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.comparison-box {
    padding: 16px;
    border-radius: 12px;
}

    .comparison-box.before {
        background: #fef2f2;
        border: 2px solid #fca5a5;
    }

    .comparison-box.after {
        background: #ecfdf5;
        border: 2px solid #6ee7b7;
    }

.comparison-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comparison-box.before .comparison-label {
    color: #dc2626;
}

.comparison-box.after .comparison-label {
    color: #059669;
}

.comparison-label svg {
    width: 16px;
    height: 16px;
}

.comparison-box.before .comparison-label svg {
    fill: #dc2626;
}

.comparison-box.after .comparison-label svg {
    fill: #059669;
}

.comparison-text {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.comparison-grade {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.comparison-box.before .comparison-grade {
    background: #fee2e2;
    color: #dc2626;
}

.comparison-box.after .comparison-grade {
    background: #d1fae5;
    color: #059669;
}

.simplify-improvement {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    color: white;
}

.simplify-improvement-value {
    font-size: 2rem;
    font-weight: 700;
}

.simplify-improvement-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .simplify-content {
        grid-template-columns: 1fr;
    }

    .simplify-comparison {
        grid-template-columns: 1fr;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #6366f1;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
}

.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-icon svg {
        width: 24px;
        height: 24px;
        fill: white;
    }

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

    .logo-text span {
        color: var(--primary);
    }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

    .nav-links a {
        color: var(--gray-600);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .nav-links a:hover, .nav-links a.active {
            color: var(--primary);
        }

    .nav-links .dropdown {
        position: relative;
    }

    .nav-links .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        min-width: 200px;
        padding: 8px 0;
        z-index: 100;
    }

    .nav-links .dropdown:hover .dropdown-menu {
        display: block;
    }

    .nav-links .dropdown-menu a {
        display: block;
        padding: 10px 16px;
        color: var(--gray-600);
    }

        .nav-links .dropdown-menu a:hover {
            background: var(--gray-100);
        }

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.hero {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    padding: 80px 24px;
    text-align: center;
    color: white;
}

    .hero h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

        .hero h1 span {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

    .hero p {
        font-size: 1.2rem;
        color: var(--gray-400);
        max-width: 700px;
        margin: 0 auto;
    }

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

    .section-header h2 {
        font-size: 2.5rem;
        color: var(--dark);
        margin-bottom: 15px;
    }

    .section-header p {
        color: var(--gray-600);
        max-width: 600px;
        margin: 0 auto;
    }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 25px;
}

.value-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--gray-600);
}

.stats-section {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--gray-400);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

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

.team-avatar {
    height: 180px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
}

.team-info {
    padding: 25px;
}

    .team-info h4 {
        color: var(--dark);
        margin-bottom: 5px;
    }

    .team-info p {
        color: var(--primary);
        font-size: 0.9rem;
        font-weight: 500;
    }

.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    color: white;
}

    .cta-section h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .cta-section p {
        opacity: 0.9;
        margin-bottom: 30px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s;
}

    .cta-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

.footer {
    background: var(--darker);
    color: var(--gray-400);
    padding: 40px 24px;
    text-align: center;
    margin-top: 60px;
}

@media (max-width: 1024px) {
    .values-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .values-grid, .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

    .modal-overlay.active {
        display: flex;
    }

.modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

    .modal-header h2 {
        color: var(--dark);
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .modal-header p {
        color: var(--gray-600);
        font-size: 0.95rem;
    }

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.modal-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-100);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

    .modal-form input:focus {
        outline: none;
        border-color: var(--primary);
    }

    .modal-form input::placeholder {
        color: var(--gray-400);
    }

.modal-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .modal-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(14,165,233,0.4);
    }

    .modal-submit:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
}

    .modal-close:hover {
        color: var(--gray-600);
    }

.modal-wrapper {
    position: relative;
}

.form-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

    .form-error.show {
        display: block;
    }

/* Multi-Language Feature Section */
.language-feature {
    background: white;
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.language-feature-header {
    text-align: center;
    margin-bottom: 40px;
}

    .language-feature-header h2 {
        font-size: 2rem;
        color: var(--dark);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

        .language-feature-header h2 svg {
            width: 40px;
            height: 40px;
            fill: var(--primary);
        }

    .language-feature-header p {
        color: var(--gray-600);
    }

.language-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.language-card {
    background: linear-gradient(135deg, var(--gray-100), white);
    border: 2px solid var(--gray-100);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

    .language-card:hover {
        border-color: var(--primary);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(14,165,233,0.15);
    }

.language-flag {
    font-size: 48px;
    margin-bottom: 15px;
}

.language-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.language-native {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.language-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .language-grid {
        grid-template-columns: 1fr;
    }
}

/* Readability Feature Section */
.readability-feature {
    background: white;
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.readability-feature-header {
    text-align: center;
    margin-bottom: 40px;
}

    .readability-feature-header h2 {
        font-size: 2rem;
        color: var(--dark);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

        .readability-feature-header h2 svg {
            width: 40px;
            height: 40px;
            fill: var(--primary);
        }

    .readability-feature-header p {
        color: var(--gray-600);
    }

.readability-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.readability-info h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.readability-info p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.readability-benefits {
    list-style: none;
}

    .readability-benefits li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 15px;
        color: var(--gray-600);
    }

        .readability-benefits li svg {
            width: 24px;
            height: 24px;
            fill: var(--primary);
            flex-shrink: 0;
            margin-top: 2px;
        }

.readability-demo {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid var(--primary);
}

.readability-demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

    .readability-demo-header svg {
        width: 28px;
        height: 28px;
        fill: var(--primary);
    }

    .readability-demo-header span {
        font-weight: 600;
        color: var(--dark);
        font-size: 1.1rem;
    }

.grade-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.grade-circle-demo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.grade-info {
    flex: 1;
}

    .grade-info .grade-label {
        font-size: 0.85rem;
        color: var(--gray-600);
    }

    .grade-info .grade-value {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--dark);
    }

.grade-scale {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.scale-item {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    border-radius: 8px;
    font-size: 0.75rem;
}

    .scale-item.easy {
        background: rgba(16, 185, 129, 0.15);
        color: #059669;
    }

    .scale-item.medium {
        background: rgba(245, 158, 11, 0.15);
        color: #d97706;
    }

    .scale-item.hard {
        background: rgba(239, 68, 68, 0.15);
        color: #dc2626;
    }

    .scale-item strong {
        display: block;
        font-size: 0.85rem;
        margin-bottom: 2px;
    }

@media (max-width: 900px) {
    .readability-content {
        grid-template-columns: 1fr;
    }
}

/* Smart Simplification Feature Section */
.simplify-feature {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 80px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
}

.simplify-feature-header {
    text-align: center;
    margin-bottom: 40px;
}

    .simplify-feature-header h2 {
        font-size: 2rem;
        color: var(--dark);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

        .simplify-feature-header h2 svg {
            width: 40px;
            height: 40px;
            fill: #10b981;
        }

    .simplify-feature-header p {
        color: var(--gray-600);
    }

.simplify-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.simplify-info h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.simplify-info p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.simplify-benefits {
    list-style: none;
}

    .simplify-benefits li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 15px;
        color: var(--gray-600);
    }

        .simplify-benefits li svg {
            width: 24px;
            height: 24px;
            fill: #10b981;
            flex-shrink: 0;
            margin-top: 2px;
        }

.simplify-demo {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
}

.simplify-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.comparison-box {
    padding: 16px;
    border-radius: 12px;
}

    .comparison-box.before {
        background: #fef2f2;
        border: 2px solid #fca5a5;
    }

    .comparison-box.after {
        background: #ecfdf5;
        border: 2px solid #6ee7b7;
    }

.comparison-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comparison-box.before .comparison-label {
    color: #dc2626;
}

.comparison-box.after .comparison-label {
    color: #059669;
}

.comparison-label svg {
    width: 16px;
    height: 16px;
}

.comparison-box.before .comparison-label svg {
    fill: #dc2626;
}

.comparison-box.after .comparison-label svg {
    fill: #059669;
}

.comparison-text {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.comparison-grade {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.comparison-box.before .comparison-grade {
    background: #fee2e2;
    color: #dc2626;
}

.comparison-box.after .comparison-grade {
    background: #d1fae5;
    color: #059669;
}

.simplify-improvement {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    color: white;
}

.simplify-improvement-value {
    font-size: 2rem;
    font-weight: 700;
}

.simplify-improvement-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .simplify-content {
        grid-template-columns: 1fr;
    }

    .simplify-comparison {
        grid-template-columns: 1fr;
    }
}



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

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #6366f1;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

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

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-icon svg {
        width: 24px;
        height: 24px;
        fill: white;
    }

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

    .logo-text span {
        color: var(--primary);
    }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

    .nav-links a {
        color: var(--gray-600);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        transition: color 0.2s;
        padding: 8px 0;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary);
        }

    .nav-links .dropdown {
        position: relative;
    }

    .nav-links .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        min-width: 200px;
        padding: 8px 0;
        z-index: 100;
    }

    .nav-links .dropdown:hover .dropdown-menu {
        display: block;
    }

    .nav-links .dropdown-menu a {
        display: block;
        padding: 10px 16px;
        color: var(--gray-700);
    }

        .nav-links .dropdown-menu a:hover {
            background: var(--gray-100);
            color: var(--primary);
        }

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

    .page-header h1 {
        font-size: 2rem;
        color: var(--dark);
        margin-bottom: 12px;
    }

    .page-header p {
        color: var(--gray-500);
        font-size: 1.1rem;
    }

/* Two Column Layout */
.content-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

/* Patient Selection Panel */
.patient-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .panel-title svg {
        width: 24px;
        height: 24px;
        fill: var(--primary);
    }

.search-box {
    position: relative;
    margin-bottom: 20px;
}

    .search-box input {
        width: 100%;
        padding: 12px 16px 12px 44px;
        border: 2px solid var(--gray-200);
        border-radius: 10px;
        font-size: 0.95rem;
        transition: border-color 0.2s;
    }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
        }

    .search-box svg {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        fill: var(--gray-400);
    }

.patient-list {
    max-height: 500px;
    overflow-y: auto;
}

.patient-card {
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

    .patient-card:hover {
        border-color: var(--primary);
        background: rgba(14, 165, 233, 0.05);
    }

    .patient-card.selected {
        border-color: var(--primary);
        background: rgba(14, 165, 233, 0.1);
    }

.patient-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.patient-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

    .patient-info span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

.generate-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .generate-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    }

    .generate-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .generate-btn svg {
        width: 20px;
        height: 20px;
        fill: white;
    }

/* Summary Panel */
.summary-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 30px;
    min-height: 600px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-100);
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.summary-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .action-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .action-btn svg {
        width: 18px;
        height: 18px;
    }

/* Language Selector */
.language-selector {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

    .language-selector label {
        display: block;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--gray-600);
        margin-bottom: 10px;
    }

.language-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

    .language-select:focus {
        outline: none;
        border-color: var(--primary);
    }

.language-flag {
    margin-right: 8px;
}

/* Translation Badge */
.translation-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 12px;
}

    .translation-badge svg {
        width: 16px;
        height: 16px;
        fill: white;
    }

/* Summary Content */
.summary-content {
    white-space: pre-wrap;
    font-family: 'Inter', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.summary-placeholder {
    text-align: center;
    padding: 80px 40px;
    color: var(--gray-400);
}

    .summary-placeholder svg {
        width: 80px;
        height: 80px;
        fill: var(--gray-300);
        margin-bottom: 20px;
    }

    .summary-placeholder h3 {
        font-size: 1.25rem;
        color: var(--gray-500);
        margin-bottom: 10px;
    }

    .summary-placeholder p {
        font-size: 0.95rem;
    }

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

    .stat-item .label {
        color: var(--gray-500);
    }

    .stat-item .value {
        font-weight: 600;
        color: var(--dark);
    }

.stat-badge {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Chunks Reference Section */
.chunks-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid var(--gray-100);
}

.chunks-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

    .chunks-section-title svg {
        width: 20px;
        height: 20px;
        fill: var(--primary);
    }

    .chunks-section-title .toggle-icon {
        margin-left: auto;
        transition: transform 0.3s;
    }

        .chunks-section-title .toggle-icon.expanded {
            transform: rotate(180deg);
        }

.chunks-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .chunks-container {
        grid-template-columns: 1fr;
    }
}

.chunks-column {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 16px;
}

.chunks-column-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .chunks-column-title svg {
        width: 18px;
        height: 18px;
        fill: var(--primary);
    }

.chunk-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .chunk-card:last-child {
        margin-bottom: 0;
    }

    .chunk-card.guideline {
        border-left-color: var(--success);
    }

.chunk-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chunk-card.guideline .chunk-type {
    color: var(--success);
}

.chunk-guideline-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.chunk-content {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
}

.chunks-empty {
    text-align: center;
    padding: 20px;
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* Human-readable Guideline Cards */
.guideline-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid var(--success);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

    .guideline-card:last-child {
        margin-bottom: 0;
    }

.guideline-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.guideline-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .guideline-icon svg {
        width: 20px;
        height: 20px;
        fill: white;
    }

.guideline-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
}

.guideline-category {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guideline-summary {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 10px;
}

.guideline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.guideline-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.guidelines-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Readability Score Section */
.readability-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    display: none;
}

    .readability-card.show {
        display: block;
    }

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

.readability-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

    .readability-title svg {
        width: 24px;
        height: 24px;
        fill: var(--primary);
    }

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

.grade-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.grade-label {
    font-size: 0.85rem;
    color: var(--gray-600);
}

    .grade-label strong {
        display: block;
        font-size: 1rem;
        color: var(--dark);
    }

.readability-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
}

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

.readability-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.readability-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.readability-interpretation {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.interpretation-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .interpretation-icon.easy {
        background: rgba(16, 185, 129, 0.1);
    }

        .interpretation-icon.easy svg {
            fill: var(--success);
        }

    .interpretation-icon.medium {
        background: rgba(245, 158, 11, 0.1);
    }

        .interpretation-icon.medium svg {
            fill: var(--warning);
        }

    .interpretation-icon.hard {
        background: rgba(239, 68, 68, 0.1);
    }

        .interpretation-icon.hard svg {
            fill: var(--danger);
        }

.interpretation-text {
    font-size: 0.9rem;
    color: var(--gray-700);
}

    .interpretation-text strong {
        color: var(--dark);
    }

@media (max-width: 768px) {
    .readability-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Simplify Button */
.simplify-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .simplify-btn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }

    .simplify-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .simplify-btn svg {
        width: 18px;
        height: 18px;
        fill: white;
    }

/* Simplify Modal */
.simplify-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

    .simplify-modal.active {
        display: flex;
    }

.simplify-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.simplify-modal-header {
    padding: 24px 30px;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 10;
}

.simplify-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

    .simplify-modal-title svg {
        width: 28px;
        height: 28px;
        fill: var(--success);
    }

.close-modal-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .close-modal-btn:hover {
        background: var(--gray-200);
    }

    .close-modal-btn svg {
        width: 24px;
        height: 24px;
        fill: var(--gray-500);
    }

.simplify-modal-body {
    padding: 30px;
}

/* Improvement Summary Card */
.improvement-summary {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid var(--success);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
}

.improvement-summary-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .improvement-summary-title svg {
        width: 24px;
        height: 24px;
        fill: var(--success);
    }

.improvement-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.improvement-metric {
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 16px;
}

.improvement-metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success);
}

    .improvement-metric-value.negative {
        color: var(--danger);
    }

    .improvement-metric-value.warning {
        color: var(--warning);
    }

.improvement-metric-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.target-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 16px;
}

    .target-badge.success {
        background: rgba(16, 185, 129, 0.15);
        color: #059669;
    }

    .target-badge.warning {
        background: rgba(245, 158, 11, 0.15);
        color: #d97706;
    }

    .target-badge svg {
        width: 18px;
        height: 18px;
    }

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .improvement-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

.comparison-column {
    background: var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-header {
    padding: 16px 20px;
    background: var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .comparison-header.simplified {
        background: linear-gradient(135deg, var(--success), #059669);
        color: white;
    }

.comparison-title {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .comparison-title svg {
        width: 20px;
        height: 20px;
    }

.comparison-header.simplified .comparison-title svg {
    fill: white;
}

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

.comparison-grade-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.comparison-header.simplified .comparison-grade-circle {
    background: rgba(255, 255, 255, 0.2);
}

.comparison-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.comparison-text {
    white-space: pre-wrap;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-700);
}

/* Use Simplified Button */
.use-simplified-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .use-simplified-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }

    .use-simplified-btn svg {
        width: 20px;
        height: 20px;
        fill: white;
    }

/* Loading State */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

    .loading-overlay.active {
        display: flex;
    }

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--gray-600);
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .patient-panel {
        position: relative;
        top: 0;
    }
}


body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-icon svg {
        width: 24px;
        height: 24px;
        fill: white;
    }

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

    .logo-text span {
        color: var(--primary);
    }

.nav-links {
    display: flex;
    gap: 20px;
}

    .nav-links a {
        color: var(--gray-600);
        text-decoration: none;
        font-weight: 500;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.2s;
    }

        .nav-links a:hover {
            background: var(--gray-100);
            color: var(--primary);
        }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

.page-header {
    margin-bottom: 40px;
}

    .page-header h1 {
        font-size: 2rem;
        color: var(--dark);
        margin-bottom: 10px;
    }

    .page-header p {
        color: var(--gray-600);
    }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin-bottom: 15px;
    }

        .stat-card .stat-icon.blue {
            background: rgba(14, 165, 233, 0.1);
        }

        .stat-card .stat-icon.green {
            background: rgba(16, 185, 129, 0.1);
        }

        .stat-card .stat-icon.purple {
            background: rgba(99, 102, 241, 0.1);
        }

        .stat-card .stat-icon.orange {
            background: rgba(249, 115, 22, 0.1);
        }

    .stat-card .stat-value {
        font-size: 2rem;
        font-weight: 700;
        color: var(--dark);
    }

    .stat-card .stat-label {
        color: var(--gray-600);
        font-size: 0.9rem;
        margin-top: 5px;
    }

.table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.table-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .table-header h2 {
        font-size: 1.25rem;
        color: var(--dark);
    }

.table-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-dark);
    }

.btn-danger {
    background: var(--danger);
    color: white;
}

    .btn-danger:hover {
        background: #dc2626;
    }

.btn-outline {
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
}

    .btn-outline:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--gray-100);
}

th {
    text-align: left;
    padding: 16px 24px;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
}

tbody tr:hover {
    background: var(--gray-100);
}

tbody tr:last-child td {
    border-bottom: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.user-details .user-name {
    font-weight: 500;
    color: var(--dark);
}

.user-details .user-email {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-blue {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.timestamp {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
}

    .empty-state svg {
        width: 80px;
        height: 80px;
        fill: var(--gray-400);
        margin-bottom: 20px;
    }

    .empty-state h3 {
        color: var(--dark);
        margin-bottom: 10px;
    }

    .empty-state p {
        color: var(--gray-600);
    }

.loading {
    text-align: center;
    padding: 60px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    th, td {
        padding: 12px 16px;
    }

    .nav-links {
        display: none;
    }
}



