:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-soft: rgba(37, 99, 235, 0.08);
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 45%),
        radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.05), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
}

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

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
}

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

.content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.upload-hero .hero-card {
    background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%);
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-text p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
}

.hero-card-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-card-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.upload-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.upload-card,
.uploads-list {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.upload-side {
    display: flex;
    align-items: stretch;
}

.upload-side-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    width: 100%;
}

.upload-side-card h3 {
    margin-bottom: 1rem;
}

.upload-side-card ul {
    padding-left: 1.2rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-radius: 999px;
    font-weight: 600;
}

.upload-header h2 {
    margin-bottom: 0.5rem;
}

.upload-header p {
    color: var(--muted);
}

.upload-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.upload-drop {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    gap: 0.5rem;
}

.upload-drop input {
    display: none;
}

.upload-drop i {
    font-size: 2rem;
    color: var(--primary);
}

.file-name {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 600;
}

.uploads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.uploads-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.uploads-list li {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.uploads-list a {
    color: var(--primary-dark);
    text-decoration: none;
}

.uploads-list a:hover {
    text-decoration: underline;
}

.empty-state {
    color: var(--muted);
}

.footer {
    padding: 2rem 3rem;
    background: #0f172a;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-right: 1rem;
}

.footer-links a:hover {
    color: #fff;
}

.muted-link {
    opacity: 0.7;
}

.muted-link:hover {
    opacity: 1;
}

/* Landing Page */
.landing-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

.landing-text h1 {
    font-size: clamp(2.2rem, 3vw, 3.3rem);
    margin-bottom: 1.2rem;
}

.landing-text p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--muted);
    font-weight: 600;
}

.trust-row i {
    color: var(--primary);
    margin-right: 0.4rem;
}

.landing-card {
    background: linear-gradient(160deg, #ffffff 0%, #eef2ff 100%);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.5rem;
}

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

.metric span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.metric small {
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.card-tile {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--text);
}

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

.landing-section {
    padding: 2.5rem 0;
}

.landing-section.alt {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.section-header {
    margin-bottom: 2rem;
    display: grid;
    gap: 0.75rem;
}

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

.section-header p {
    color: var(--muted);
}

.feature-grid,
.sector-grid,
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card,
.sector-card,
.resource-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.75rem;
}

.feature-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.landing-cta {
    margin-top: 2rem;
    padding: 2.5rem 3rem;
    border-radius: var(--radius);
    background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.landing-cta p {
    opacity: 0.9;
    margin: 0;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .content {
        padding: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .landing-cta {
        padding: 2rem;
    }
}
