@import "tailwindcss";

* {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

code,
pre {
    font-family: 'Geist Mono', monospace;
}

:root {
    --bg-0: #ffffff;
    --bg-1: #f9fafb;
    --bg-2: #f3f4f6;
    --bg-3: #e5e7eb;
    --text-0: #000000;
    --text-1: #1f2937;
    --text-2: #84949b;
    --border: #d1d5db;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
    --success: #10b981;
    --error: #ef4444;
}

body {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 50%, #f3f4f6 100%);
    color: var(--text-0);
}

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.nav-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    color: var(--text-0);
}

.nav-brand i {
    font-size: 1.5rem;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 200ms;
}

.nav-link:hover {
    color: var(--text-0);
}

/* Hero Section */
.hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-0);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-2);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all 200ms;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-0);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-0);
    transform: translateY(-2px);
}

/* Main Content */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 200ms;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.card-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-2);
    margin-bottom: 1rem;
}

/* Form Elements */
textarea,
input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    background: white;
    color: var(--text-0);
    transition: all 200ms;
}

textarea:focus,
input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

textarea::placeholder {
    color: var(--text-2);
    opacity: 0.6;
}

input::placeholder {
    color: var(--text-2);
    opacity: 0.6;
}

/* Upload Box with Corner Brackets */
.upload-box {
    background: white;
    border: 2px solid var(--accent);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 200ms;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-box::before,
.upload-box::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent);
}

.upload-box::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
    border-radius: 0.75rem 0 0 0;
}

.upload-box::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 0 0.75rem;
}

.upload-box:hover {
    border-color: var(--accent-dark);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.15);
}

.upload-box:hover::before,
.upload-box:hover::after {
    border-color: var(--accent-dark);
}

.upload-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-0);
    margin: 0;
}

.upload-helper {
    font-size: 0.75rem;
    color: var(--text-2);
    margin: 0;
}

/* Upload Input Wrapper */
.upload-input-wrapper {
    position: relative;
}

.upload-input {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-0);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 200ms;
}

.upload-input:hover {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.03);
}

.upload-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: all 200ms;
}

.file-item:hover {
    background: var(--bg-2);
    border-color: var(--accent);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    color: var(--text-1);
}

.file-remove {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0 0.5rem;
    transition: all 200ms;
    font-weight: 600;
}

.file-remove:hover {
    color: var(--text-0);
    transform: scale(1.2);
}

/* Clear Files Action */
.clear-files-action {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-2);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    transition: all 200ms;
}

.clear-files-action:hover {
    color: var(--text-1);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-group .btn {
    flex: 1;
}

/* Results Section */
.results {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-0);
}

.error-box {
    display: none;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 200ms ease;
}

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

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

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

.error-text {
    color: var(--error);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Ranking Card */
.rank-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 200ms;
}

.rank-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.rank-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-number {
    display: inline-block;
    background: var(--bg-2);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rank-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-0);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-preview {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-top: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    text-align: right;
}

.rank-score-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.rank-score-label {
    font-size: 0.75rem;
    color: var(--text-2);
    margin-top: 0.25rem;
}

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--bg-1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.progress-bar {
    height: 4px;
    background: var(--bg-2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    transition: width 600ms cubic-bezier(0.2, 0.8, 0.4, 1);
    border-radius: 2px;
}

/* Skills */
.skills-section {
    margin: 0;
}

.skills-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-1);
    font-weight: 500;
    transition: all 200ms;
}

.skill-badge:hover {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.05);
    color: var(--accent);
}

.skill-more {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-2);
    font-weight: 400;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-2);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-text {
    font-size: 0.9375rem;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.info-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-0);
    margin-bottom: 0.5rem;
}

.info-text {
    font-size: 0.875rem;
    color: var(--text-1);
    line-height: 1.6;
}

/* Docs Section */
.docs-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
    border-bottom: 1px solid var(--border);
}

.docs-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
}

.section-title-large {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-0);
    letter-spacing: -0.01em;
}

.docs-subtitle {
    font-size: 1.0625rem;
    color: var(--text-2);
    line-height: 1.6;
}

.docs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.docs-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.4, 1);
}

.docs-card:hover {
    border-color: var(--accent);
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.12);
    transform: translateY(-4px);
}

.docs-card.warning {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.docs-card.warning:hover {
    border-color: #f59e0b;
    box-shadow: 0 16px 32px rgba(245, 158, 11, 0.12);
}

.docs-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-0);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.docs-card-title i {
    color: var(--accent);
    font-size: 1.25rem;
}

.docs-card.warning .docs-card-title i {
    color: #f59e0b;
}

.docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.docs-list li {
    font-size: 0.9375rem;
    color: var(--text-1);
    line-height: 1.6;
    padding-left: 1.75rem;
    position: relative;
}

.docs-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.docs-card.warning .docs-list li::before {
    content: '⚠';
    color: #f59e0b;
}

.docs-subsection {
    margin-bottom: 1.5rem;
}

.docs-subsection:last-child {
    margin-bottom: 0;
}

.docs-subtitle-small {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-0);
    margin: 0 0 0.75rem 0;
}

.docs-note {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-1);
    border-left: 3px solid var(--accent);
    border-radius: 0.375rem;
}

.docs-caution {
    font-size: 0.875rem;
    color: #d97706;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(217, 119, 6, 0.1);
    border-left: 3px solid #d97706;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Features Section */
.features-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-subtitle {
    font-size: 1.0625rem;
    color: var(--text-2);
    line-height: 1.6;
}

.features-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: all 300ms cubic-bezier(0.2, 0.8, 0.4, 1);
}

.feature-item:hover {
    border-color: var(--accent);
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.12);
    transform: translateX(4px);
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: flex;
    align-items: center;
    font-variant-numeric: tabular-nums;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-0);
    margin: 0;
}

.feature-item-desc {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 2rem;
    margin-top: 2rem;
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-0);
}

.footer-brand i {
    font-size: 1.5rem;
    color: var(--accent);
}

.footer-made-by {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.footer-made-by i {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
    font-size: 1.5rem;
}

.footer-authors {
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-2);
    margin: 0;
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: var(--text-2);
    max-width: 600px;
    margin: 0;
    line-height: 1.6;
    opacity: 0.8;
}

@media (max-width: 640px) {
    .footer {
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-brand {
        font-size: 1.125rem;
    }
    
    .footer-made-by {
        font-size: 1.25rem;
    }
    
    .footer-disclaimer {
        font-size: 0.75rem;
    }
}
/* Loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 0.8s linear infinite;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-0);
    transition: all 200ms;
    font-size: 1rem;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(20deg);
}

/* Dark Mode Styles */
html.dark-mode {
    --bg-0: #000000;
    --bg-1: #0f0f0f;
    --bg-2: #1a1a1a;
    --bg-3: #2d2d2d;
    --text-0: #ffffff;
    --text-1: #e5e5e5;
    --text-2: #a0a0a0;
    --border: #333333;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
}

html.dark-mode body {
    background: linear-gradient(180deg, #000000 0%, #0f0f0f 50%, #1a1a1a 100%);
}

html.dark-mode .nav-bar {
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark-mode .card {
    background: #1a1a1a;
    border-color: #333333;
}

html.dark-mode .card:hover {
    background: #242424;
}

html.dark-mode textarea,
html.dark-mode input[type="text"],
html.dark-mode input[type="file"] {
    background: #0f0f0f;
    border-color: #333333;
    color: var(--text-0);
}

html.dark-mode textarea:focus,
html.dark-mode input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

html.dark-mode .docs-section {
    background: linear-gradient(180deg, #000000 0%, #0f0f0f 100%);
}

html.dark-mode .docs-card {
    background: #1a1a1a;
    border-color: #333333;
}

html.dark-mode .docs-card:hover {
    background: #242424;
    border-color: var(--accent);
}

html.dark-mode .docs-card.warning {
    background: rgba(217, 119, 6, 0.05);
    border-color: #b45309;
}

html.dark-mode .docs-card.warning:hover {
    background: rgba(217, 119, 6, 0.1);
    border-color: #d97706;
}

html.dark-mode .docs-note {
    background: #0f0f0f;
    border-color: var(--accent);
}

html.dark-mode .docs-caution {
    background: rgba(217, 119, 6, 0.1);
    color: #fbbf24;
    border-color: #fbbf24;
}

html.dark-mode .features-section {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

html.dark-mode .feature-item {
    background: #1a1a1a;
    border-color: #333333;
}

html.dark-mode .feature-item:hover {
    background: #242424;
    border-color: var(--accent);
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.12);
}

html.dark-mode .feature-number {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.dark-mode .upload-box {
    background: #1a1a1a;
    border-color: var(--accent);
}

html.dark-mode .upload-box:hover {
    background: #242424;
    border-color: var(--accent-dark);
}

html.dark-mode .upload-box::before,
html.dark-mode .upload-box::after {
    border-color: var(--accent);
}

html.dark-mode .upload-box:hover::before,
html.dark-mode .upload-box:hover::after {
    border-color: var(--accent-dark);
}

html.dark-mode .upload-input {
    background: #0f0f0f;
    border-color: #333333;
    color: var(--text-0);
}

html.dark-mode .upload-input:hover {
    background: #1a1a1a;
    border-color: var(--accent);
}

html.dark-mode .file-item {
    background: #0f0f0f;
    border-color: #333333;
}

html.dark-mode .file-item:hover {
    background: #1a1a1a;
    border-color: var(--accent);
}

html.dark-mode .rank-card {
    background: #1a1a1a;
    border-color: #333333;
}

html.dark-mode .rank-card:hover {
    background: #242424;
    border-color: var(--accent);
}

html.dark-mode .empty-state {
    color: var(--text-2);
}

html.dark-mode .info-box {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border-color: #333333;
}

html.dark-mode .skill-badge {
    background: #0f0f0f;
    border-color: #333333;
    color: var(--text-1);
}

html.dark-mode .skill-badge:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
    color: var(--accent);
}

html.dark-mode footer {
    border-top-color: #333333;
    color: var(--text-2);
}

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .feature-item {
        grid-template-columns: 50px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .feature-number {
        font-size: 1.75rem;
    }

    .feature-item-title {
        font-size: 1rem;
    }

    .feature-item-desc {
        font-size: 0.875rem;
    }

    .docs-container {
        grid-template-columns: 1fr;
    }
}

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

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

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .upload-box {
        padding: 1.5rem;
    }

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

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

    .features-section {
        padding: 2rem 1rem;
    }

    .docs-section {
        padding: 2rem 1rem;
    }

    .features-header {
        margin-bottom: 2.5rem;
    }

    .docs-header {
        margin-bottom: 2.5rem;
    }

    .feature-item {
        grid-template-columns: 45px 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .feature-number {
        font-size: 1.5rem;
    }

    .docs-card {
        padding: 1.5rem;
    }

    .docs-card-title {
        font-size: 1rem;
    }
}

:root {
    --bg-0: #ffffff;
    --bg-1: #f9fafb;
    --bg-2: #f3f4f6;
    --bg-3: #e5e7eb;
    --text-0: #000000;
    --text-1: #1f2937;
    --text-2: #6b7280;
    --border: #d1d5db;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
    --success: #10b981;
    --error: #ef4444;
}

.dark-mode {
    --bg-0: #0f172a;
    --bg-1: #1e293b;
    --bg-2: #334155;
    --bg-3: #475569;
    --text-0: #f8fafc;
    --text-1: #e2e8f0;
    --text-2: #94a3b8;
    --border: #334155;
    --accent: #38bdf8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Geist', sans-serif;
}

body {
    background: var(--bg-0);
    color: var(--text-0);
    line-height: 1.5;
    transition: background 0.3s, color 0.3s;
}

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

/* Nav */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.dark-mode .nav-bar {
    background: rgba(15, 23, 42, 0.8);
}

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

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-0);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand i { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover { color: var(--text-0); }

/* Hero */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
}

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

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

.btn-secondary {
    background: var(--bg-2);
    color: var(--text-0);
    border: 1px solid var(--border);
}

/* App Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 1rem;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 1rem;
}

textarea {
    width: 100%;
    background: var(--bg-0);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    color: var(--text-0);
    resize: vertical;
}

.upload-box {
    border: 2px dashed var(--accent);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

/* Rankings */
.rank-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

/* Sections */
.features-section, .learn-more-section, .docs-section {
    padding: 6rem 0;
}

.section-title-large {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.learn-more-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.docs-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.docs-card-title i { color: var(--accent); }

.docs-list {
    list-style: none;
    color: var(--text-2);
}

.docs-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.docs-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.warning {
    border-left: 4px solid var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-2);
    font-size: 0.875rem;
}

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