:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background-color: #f8fafc;
    --card-color: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: var(--card-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header h1 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Card Styles */
.card {
    background: var(--card-color);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.section-header h2 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.form-group label i {
    color: var(--primary-color);
    width: 16px;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    transition: var(--transition);
    background: var(--card-color);
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* File Upload Styles */
.file-upload-area {
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    background: var(--background-color);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.file-upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    opacity: 0.7;
}

.file-upload-area p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.file-upload-area span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-info {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--success-color);
    color: white;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: slideInUp 0.3s ease;
}

.file-info.show {
    display: block;
}

/* Button Styles */
.primary-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

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

.secondary-btn {
    background: var(--card-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.tertiary-btn {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.action-buttons button {
    flex: 1;
    max-width: 300px;
}

/* Loading Spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 24px;
}

.loading h3 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.loading p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.hidden {
    display: none !important;
}

/* Results Styling */
.results-section {
    animation: fadeInUp 0.6s ease;
}

.score-card {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--border-radius);
}

.overall-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0%, #e2e8f0 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    transition: var(--transition);
}

.score-circle-inner {
    width: 130px;
    height: 130px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.1);
}

.score-circle-inner span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.score-circle-inner small {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

.score-text {
    text-align: left;
    max-width: 300px;
}

.score-text h3 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.75rem;
}

.score-text p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Charts */
.charts-container {
    margin-bottom: 40px;
}

.chart-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.chart-card h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-card h4 i {
    color: var(--primary-color);
}

/* Scores Grid */
.scores-section {
    margin-bottom: 40px;
}

.scores-section h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scores-section h4 i {
    color: var(--primary-color);
}

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

.score-item {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.score-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.score-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: auto;
    overflow: hidden;
}

.score-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease-in-out;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Analysis Cards */
.analysis-card {
    margin-bottom: 30px;
    padding: 30px;
}

.analysis-card h4 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-card h4 i {
    color: var(--primary-color);
}

.card-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Keywords */
.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    transition: var(--transition);
    animation: fadeIn 0.5s ease;
}

.keyword:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Suggestions */
.suggestions-list {
    list-style: none;
}

.suggestions-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 32px;
    animation: slideInRight 0.5s ease;
}

.suggestions-list li:before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 16px;
    font-size: 1.2rem;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

/* Summary */
.summary-content {
    position: relative;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
}

.summary-content i.fa-quote-left {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.summary-content p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    padding-left: 32px;
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 40px;
}

.footer-content {
    background: var(--card-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    text-align: center;
}

.footer-info p {
    margin-bottom: 8px;
    color: var(--text-color);
}

.footer-info p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-info p:last-child {
    color: var(--text-light);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
    margin-top: 20px;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

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

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .header h1 {
        font-size: 2.25rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .card {
        padding: 30px 20px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .overall-score {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .score-text {
        text-align: center;
    }

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

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons button {
        max-width: 100%;
    }

    .footer-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }

    .logo {
        gap: 10px;
    }

    .logo-img {
        height: 48px;
        width: 48px;
    }

    .site-nav {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .score-circle {
        width: 140px;
        height: 140px;
    }

    .score-circle-inner {
        width: 110px;
        height: 110px;
    }

    .score-circle-inner span {
        font-size: 2rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* Print Styles */
@media print {

    .primary-btn,
    .secondary-btn,
    .tertiary-btn,
    .footer {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #000;
    }

    body {
        background: white !important;
    }
}










/* Add these new styles to your existing CSS */


/* Header layout & navigation */
.page-header {
    text-align: left;
}

.page-header .header-content {
    max-width: 100%;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

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

.logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-img {
    height: 52px;
    width: 52px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

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

.logo-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

.nav-toggle {
    display: none;
    background: var(--card-color);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px 14px;
    transition: var(--transition);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 10px 25px -10px rgba(37, 99, 235, 0.6);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

.nav-link.active {
    color: var(--primary-dark);
    background: rgba(37, 99, 235, 0.12);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-dark);
}

.hero-content {
    text-align: left;
    max-width: 720px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Chart Responsiveness Improvements */
.chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
    overflow-x: auto;
}

.chart-wrapper canvas {
    max-width: 100%;
    height: auto !important;
}

/* Enhanced Mobile Styles */
@media (max-width: 992px) {
    .header-bar {
        flex-wrap: wrap;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .header-bar {
        padding-bottom: 0;
        border-bottom: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 16px);
        right: 0;
        min-width: 240px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: var(--card-color);
        border-radius: var(--border-radius);
        padding: 18px;
        border: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
        z-index: 10;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
    }

    .hero-content {
        text-align: center;
    }

    .logo-copy {
        align-items: flex-start;
    }

    .chart-wrapper {
        height: 300px;
        min-width: 500px;
        /* Ensure chart has minimum width for readability */
    }

    .chart-card {
        overflow-x: auto;
    }

    /* Improved score circle for mobile */
    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-circle-inner {
        width: 100px;
        height: 100px;
    }

    .score-circle-inner span {
        font-size: 1.75rem;
    }

    /* Better form layout for mobile */
    .form-grid {
        gap: 16px;
    }

    .file-upload-area {
        padding: 30px 15px;
    }

    .file-upload-area i {
        font-size: 2.5rem;
    }

    /* Improved action buttons for mobile */
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .action-buttons button {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .chart-wrapper {
        height: 250px;
        min-width: 400px;
    }

    .logo {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .logo-img {
        height: 35px;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .card {
        padding: 20px 15px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* Additional responsive improvements for very small screens */
@media (max-width: 360px) {
    .chart-wrapper {
        height: 200px;
        min-width: 320px;
    }

    .container {
        padding: 10px;
    }

    .header {
        padding: 20px 15px;
    }
}

/* Print styles for results */
@media print {

    .header-bar,
    .nav-toggle,
    .site-nav,
    .primary-btn,
    .secondary-btn,
    .tertiary-btn,
    .footer {
        display: none !important;
    }

    .chart-wrapper {
        height: 300px !important;
        min-width: auto !important;
        page-break-inside: avoid;
    }

    .card {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    body {
        background: white !important;
    }
}







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

.feature-card {
    background: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Benefits List */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
}

.benefit-item i {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.benefit-item h4 {
    margin-bottom: 8px;
    color: var(--text-color);
}

.benefit-item p {
    color: var(--text-light);
    margin: 0;
}

/* Documentation Page Styles */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 8px;
    color: var(--text-color);
}

.step-content p {
    color: var(--text-light);
    margin: 0;
}

.docs-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.doc-section {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.doc-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.doc-section h3 {
    margin-bottom: 16px;
    color: var(--text-color);
}

.doc-section p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.doc-section ul {
    color: var(--text-light);
    margin-left: 20px;
}

.doc-section li {
    margin-bottom: 8px;
}

/* Score Guide */
.score-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.score-range {
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--border-color);
}

.score-range.excellent {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.score-range.good {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.score-range.average {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.score-range.poor {
    border-color: #64748b;
    background: rgba(100, 116, 139, 0.1);
}

.range {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.description {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Code Block */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-top: 16px;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* FAQ Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h4 {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .score-guide {
        grid-template-columns: 1fr;
    }

    .doc-section ul {
        margin-left: 0;
        padding-left: 20px;
    }
}
