:root {
    --ink: #10201d;
    --muted: #63716e;
    --line: #dce5e2;
    --paper: #fbfdfc;
    --surface: #ffffff;
    --forest: #0d443a;
    --forest-deep: #071f1b;
    --mint: #c8f16d;
    --mint-soft: #effbd7;
    --teal: #1aa184;
    --amber: #ffbd59;
    --danger: #bd3e48;
    --shadow: 0 18px 55px rgba(10, 42, 35, .1);
    --radius: 22px;
    --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100vw - 1240px) / 2));
    border-bottom: 1px solid rgba(220, 229, 226, .8);
    background: rgba(251, 253, 252, .9);
    backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -.035em; }
.brand i { color: var(--teal); font-style: normal; }
.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px 12px 4px 12px;
    color: var(--forest-deep);
    background: var(--mint);
    font-size: 13px;
    letter-spacing: -.06em;
}
.main-nav, #auth-navigation { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: #334641; font-size: 14px; font-weight: 630; }
.main-nav a:hover { color: var(--teal); }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 24px; }

main { min-height: calc(100vh - var(--header-height)); }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.page-section { padding: 72px 0; }
.section-tint { background: #f1f7f4; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2, .page-title { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -.055em; }
.section-head p, .page-lead { max-width: 620px; margin: 10px 0 0; color: var(--muted); }
.eyebrow { margin: 0 0 13px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.hero {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    display: grid;
    align-items: center;
    color: white;
    background: var(--forest-deep);
}
.hero::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 70% 45%, rgba(31, 168, 137, .25), transparent 30%), radial-gradient(circle at 20% 20%, rgba(200, 241, 109, .1), transparent 22%);
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; padding: 90px 0; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(50px, 7vw, 84px); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--mint); }
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 26px 0 32px; color: #c5d2ce; font-size: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    color: white;
    background: var(--forest);
    font-size: 14px;
    font-weight: 720;
    transition: transform .18s, background .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--forest-deep); background: var(--mint); }
.btn-primary:hover { background: #dbff86; }
.btn-secondary { color: var(--ink); background: white; border-color: var(--line); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.3); }
.btn-danger { background: var(--danger); }
.btn-small { min-height: 38px; padding: 0 15px; font-size: 13px; }
.btn:disabled { cursor: wait; opacity: .65; transform: none; }
.hero-panel { position: relative; min-height: 420px; }
.orbit {
    position: absolute;
    inset: 30px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    animation: spin 28s linear infinite;
}
.orbit::before, .orbit::after { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 30px var(--mint); }
.orbit::before { left: 7%; top: 22%; }
.orbit::after { right: 3%; bottom: 28%; }
@keyframes spin { to { transform: rotate(360deg); } }
.impact-card {
    position: absolute;
    width: 245px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: rgba(255,255,255,.09);
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
    backdrop-filter: blur(14px);
}
.impact-card strong { display: block; color: var(--mint); font-size: 38px; letter-spacing: -.05em; }
.impact-card span { color: #c6d4d0; font-size: 13px; }
.impact-card.one { top: 35px; right: 10px; }
.impact-card.two { bottom: 45px; left: 0; }
.impact-card.three { right: 0; bottom: 80px; width: 175px; }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.trust-item { padding: 28px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; font-size: 22px; letter-spacing: -.04em; }
.trust-item span { color: var(--muted); font-size: 13px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.innovation-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(12, 58, 48, .04);
    transition: transform .2s, box-shadow .2s;
}
.innovation-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { position: relative; height: 190px; background: linear-gradient(135deg, #d9eee6, #edf6d6); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--forest); font-size: 45px; font-weight: 800; opacity: .5; }
.score-pill { position: absolute; right: 14px; top: 14px; padding: 7px 11px; border-radius: 999px; color: white; background: rgba(7, 31, 27, .9); font-size: 12px; font-weight: 760; }
.card-body { padding: 21px; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--teal); font-size: 11px; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.card-body h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.18; letter-spacing: -.035em; }
.card-body p { display: -webkit-box; overflow: hidden; margin: 0 0 18px; color: var(--muted); font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.progress { overflow: hidden; width: 100%; height: 7px; margin: 13px 0 8px; border-radius: 10px; background: #e8efec; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--mint)); }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.category-card:hover { border-color: var(--teal); }
.category-icon { display: grid; width: 42px; height: 42px; margin-bottom: 28px; place-items: center; border-radius: 12px; background: var(--mint-soft); font-size: 20px; }
.category-card strong { display: block; }
.category-card span { color: var(--muted); font-size: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; counter-reset: steps; }
.step { position: relative; padding-top: 60px; counter-increment: steps; }
.step::before { content: "0" counter(steps); position: absolute; top: 0; color: var(--teal); font-weight: 800; }
.step h3 { margin: 0 0 8px; font-size: 22px; }
.step p { color: var(--muted); }

.page-hero { padding: 70px 0 38px; }
.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 12px; margin: 28px 0 32px; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: #42534f; font-size: 12px; font-weight: 720; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #ccd8d4;
    border-radius: 12px;
    outline: none;
    color: var(--ink);
    background: white;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26, 161, 132, .12); }
.field-help { color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: span 2; }

.auth-layout { min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: .85fr 1.15fr; }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: end; padding: 70px; color: white; background: var(--forest-deep); }
.auth-aside::before { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; top: -80px; border: 1px solid rgba(200,241,109,.25); border-radius: 50%; box-shadow: 0 0 0 70px rgba(200,241,109,.03), 0 0 0 140px rgba(200,241,109,.02); }
.auth-aside h1 { position: relative; max-width: 500px; margin: 0; font-size: clamp(40px, 5vw, 66px); line-height: 1; letter-spacing: -.06em; }
.auth-aside p { position: relative; max-width: 490px; color: #b9c9c5; }
.auth-main { display: grid; padding: 70px 30px; place-items: center; }
.auth-card { width: min(500px, 100%); }
.auth-card h2 { margin: 0; font-size: 38px; letter-spacing: -.05em; }
.auth-card > p { color: var(--muted); }
.auth-card form { display: grid; gap: 17px; margin-top: 28px; }
.auth-switch { margin-top: 22px; color: var(--muted); font-size: 14px; }
.text-link { color: var(--teal); font-weight: 700; }

.form-shell { padding-bottom: 90px; }
.form-card { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.submission-steps { display: flex; gap: 8px; margin-bottom: 30px; }
.submission-step { flex: 1; padding: 10px; border-bottom: 3px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 720; }
.submission-step.active { border-color: var(--teal); color: var(--forest); }
.drop-zone { padding: 30px; border: 1.5px dashed #aac0b9; border-radius: 16px; text-align: center; background: #f8fbfa; }
.drop-zone input { max-width: 100%; }
.recorder { display: flex; align-items: center; gap: 15px; padding: 17px; border-radius: 15px; background: var(--mint-soft); }
.record-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--danger); }
.recording .record-dot { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 34px; padding-bottom: 80px; }
.detail-cover { overflow: hidden; height: 430px; border-radius: 26px; background: linear-gradient(135deg, #c9e9df, #eff8d5); }
.detail-cover img, .detail-cover video { width: 100%; height: 100%; object-fit: cover; }
.detail-content h1 { margin: 24px 0 15px; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -.06em; }
.detail-summary { color: #495a56; font-size: 17px; }
.detail-section { padding: 32px 0; border-top: 1px solid var(--line); }
.detail-section h2 { margin-top: 0; font-size: 25px; letter-spacing: -.04em; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; list-style: none; }
.tag { padding: 8px 12px; border-radius: 999px; background: var(--mint-soft); font-size: 13px; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.score-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.score-card strong { display: block; font-size: 27px; letter-spacing: -.04em; }
.score-card span { color: var(--muted); font-size: 12px; }
.side-card { position: sticky; top: calc(var(--header-height) + 20px); padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.big-rating { display: flex; align-items: end; gap: 8px; margin-bottom: 20px; }
.big-rating strong { font-size: 50px; line-height: 1; letter-spacing: -.06em; }
.big-rating span { color: var(--muted); }
.funding-numbers { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; }
.side-actions { display: grid; gap: 10px; margin-top: 22px; }

.dashboard-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; padding: 50px 0 90px; }
.dashboard-menu { position: sticky; top: calc(var(--header-height) + 25px); align-self: start; display: grid; gap: 5px; }
.dashboard-menu button { padding: 11px 14px; border: 0; border-radius: 10px; text-align: left; color: var(--muted); background: transparent; cursor: pointer; }
.dashboard-menu button.active, .dashboard-menu button:hover { color: var(--forest); background: #eaf4f0; font-weight: 700; }
.dashboard-main h1 { margin-top: 0; font-size: 42px; letter-spacing: -.055em; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 25px 0 34px; }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 5px; font-size: 29px; letter-spacing: -.05em; }
.data-list { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.data-row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(90px, .7fr)); align-items: center; gap: 15px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.data-row:last-child { border: 0; }
.data-row small { color: var(--muted); }
.status { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; color: var(--forest); background: var(--mint-soft); font-size: 11px; font-weight: 730; text-transform: capitalize; }

.empty-state { padding: 65px 25px; border: 1px dashed #b9c9c4; border-radius: 20px; text-align: center; }
.empty-state h3 { margin: 0 0 7px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.loading-view { min-height: 60vh; display: grid; align-content: center; justify-items: center; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin .75s linear infinite; }
.skeleton { min-height: 250px; border-radius: 20px; background: linear-gradient(100deg, #edf2f0 25%, #f9fbfa 40%, #edf2f0 60%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

.toast-container { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 10px; }
.toast { max-width: 360px; padding: 15px 18px; border-radius: 13px; color: white; background: var(--forest-deep); box-shadow: var(--shadow); animation: toast-in .25s ease; }
.toast.error { background: #8f2831; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.modal-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; padding: 20px; place-items: center; background: rgba(3, 18, 15, .65); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 30px; border-radius: 22px; background: white; }
.modal-close { position: absolute; right: 16px; top: 12px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 27px; }
.modal-card h2 { margin-top: 0; font-size: 30px; letter-spacing: -.04em; }
.modal-card form { display: grid; gap: 16px; }
.hidden { display: none !important; }

.leaderboard { display: grid; gap: 12px; }
.leader-row { display: grid; grid-template-columns: 50px 80px 1fr auto; align-items: center; gap: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.leader-rank { text-align: center; color: var(--teal); font-size: 22px; font-weight: 800; }
.leader-thumb { overflow: hidden; width: 80px; height: 62px; border-radius: 11px; background: var(--mint-soft); }
.leader-thumb img { width: 100%; height: 100%; object-fit: cover; }
.leader-value { font-size: 20px; font-weight: 760; }

.site-footer { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 45px; padding: 55px max(24px, calc((100vw - 1180px) / 2)); color: #afc0bb; background: var(--forest-deep); }
.footer-brand { color: white; }
.site-footer p { max-width: 450px; font-size: 13px; }
.footer-links { display: grid; align-content: start; gap: 10px; font-size: 13px; }
.footer-links a:hover { color: var(--mint); }
.copyright { align-self: end; white-space: nowrap; }

@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-panel { display: none; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .filters { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .side-card { position: static; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-aside { min-height: 330px; padding: 45px 30px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    :root { --header-height: 68px; --radius: 18px; }
    .site-header { padding: 0 20px; }
    .nav-toggle { display: block; }
    .main-nav { position: absolute; left: 15px; right: 15px; top: 63px; display: none; align-items: stretch; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow); }
    .main-nav.open, .main-nav #auth-navigation { display: grid; gap: 15px; }
    .hero { min-height: 620px; }
    .hero-inner { padding: 75px 0; }
    .hero h1 { font-size: 51px; }
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-right: 0; }
    .card-grid, .steps, .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .section-head { display: block; }
    .page-section { padding: 50px 0; }
    .filters { grid-template-columns: 1fr; }
    .form-card { padding: 22px; }
    .submission-step span { display: none; }
    .detail-cover { height: 270px; }
    .score-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-layout { grid-template-columns: 1fr; padding-top: 30px; }
    .dashboard-menu { position: static; display: flex; overflow-x: auto; }
    .dashboard-menu button { white-space: nowrap; }
    .data-row { grid-template-columns: 1fr auto; }
    .data-row > *:nth-child(3) { display: none; }
    .leader-row { grid-template-columns: 35px 60px 1fr; }
    .leader-thumb { width: 60px; height: 52px; }
    .leader-value { display: none; }
    .site-footer { grid-template-columns: 1fr; }
}

.admin-panel { padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
