@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(31, 41, 55, 0.08);
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
}

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

.navbar {
    background: var(--card);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink);
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

.hero {
    background: linear-gradient(120deg, #0f172a 0%, #111827 40%, #0a3fa3 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.85);
}

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

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(120deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.features {
    padding: 80px 20px;
    background: var(--card);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

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


.feature-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: rgba(37, 99, 235, 0.35);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.about {
    background: var(--card);
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--line);
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.about p {
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--muted);
}

.footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 2rem 20px;
    margin-top: 4rem;
}

/* Dashboard styling */
.dash-page {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, rgba(15, 23, 42, 0.02) 100%);
    min-height: 100vh;
}

.dash-shell {
    max-width: 1100px;
    margin: 32px auto 48px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-header {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dash-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-title h2 {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.dash-title p {
    color: var(--muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

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

.card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    font-weight: 600;
}

.upload-box {
    border: 1.5px dashed rgba(37, 99, 235, 0.35);
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(37,99,235,0.04), rgba(37,99,235,0.02));
}

.upload-box input[type="file"] {
    margin-top: 10px;
}

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

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 640px) {
    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .row-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Auth page styling */
.auth-page {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.15), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.18), transparent 30%),
                var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-shell {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtext {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
}

.field label {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}

.field input {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #f8fafc;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #fff;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.auth-actions a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-actions a:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 1rem;
    text-align: center;
    color: var(--muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
