:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --card: #1e293b;
    --card-hover: #263449;
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-2: #22c55e;
    --border: rgba(148, 163, 184, 0.2);
    --warning: #f59e0b;
    --radius: 18px;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 28rem),
    var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
}

a.clean {
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(15, 23, 42, 0.78);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: grid;
    place-items: center;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
}

.brand-mark span {
    color: #020617;
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

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

.hero {
    padding: 88px 0 52px;
    text-align: center;
}


h1 {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 32px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.submit-actions {
    justify-content: flex-start;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: rgba(30, 41, 59, 0.82);
    color: var(--text);
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--card-hover);
    border-color: rgba(56, 189, 248, 0.5);
}

.button.primary {
    color: #020617;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 36px auto 0;
    max-width: 760px;
}

.stat {
    padding: 18px;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.section-header p {
    margin: 10px 0 0;
    max-width: 640px;
    color: var(--muted);
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 22px;
}

.search {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.75);
    color: var(--text);
    outline: none;
    font-size: 1rem;
}

.search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter {
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(30, 41, 59, 0.75);
    color: var(--muted);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
}

.filter.active,
.filter:hover {
    color: #020617;
    border-color: transparent;
    background: var(--accent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.78);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: rgba(56, 189, 248, 0.35);
}

.card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.project-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-size: 1.35rem;
}

.status {
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #052e16;
    background: #86efac;
    white-space: nowrap;
}

.status.prototype {
    color: #451a03;
    background: #fcd34d;
}

.status.archived {
    color: #f8fafc;
    background: #64748b;
}

.card h3 {
    margin: 0 0 8px;
    line-height: 1.15;
    font-size: 1.28rem;
    letter-spacing: -0.03em;
}

.card p {
    margin: 0 0 16px;
    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 18px;
}

.tag {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.card-links a {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.92rem;
}

.card-links a:hover {
    text-decoration: underline;
}

.empty {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.45);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-box {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(30, 41, 59, 0.65);
}

.info-box h3 {
    margin: 0 0 8px;
    letter-spacing: -0.03em;
}

.info-box p {
    color: var(--muted);
    margin: 0;
}

.submit {
    padding: 34px;
    border-radius: 28px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(34, 197, 94, 0.12)),
    rgba(30, 41, 59, 0.7);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
}

.submit h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.submit p {
    margin: 0;
    color: var(--muted);
}

.submit-card {
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border);
}

.submit-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

footer {
    padding: 36px 0 52px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 880px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .toolbar,
    .submit {
        grid-template-columns: 1fr;
    }

    .grid,
    .info-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .section-header {
        align-items: start;
        flex-direction: column;
    }
}
