:root {
    --bg: #fffaf4;
    --surface: rgba(255,255,255,.74);
    --surface-strong: #ffffff;

    --text: #171717;
    --muted: #6f6a63;

    --accent: #f07c22;
    --accent-deep: #d95f0a;
    --accent-soft: #fff0df;

    --line: rgba(50,35,20,.10);

    --shadow:
        0 24px 70px rgba(80,45,15,.10);

    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 85% 5%,
            #ffe4c4 0,
            transparent 27%
        ),
        radial-gradient(
            circle at 8% 45%,
            #fff1df 0,
            transparent 25%
        ),
        var(--bg);
}

.site-header {
    max-width: 1220px;
    margin: auto;

    padding: 26px 30px;

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

.brand {
    display: flex;
    gap: 12px;
    align-items: center;

    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    color: white;
    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-deep)
        );

    font-weight: 900;
    font-size: 21px;

    box-shadow:
        0 12px 28px rgba(240,124,34,.28);
}

.brand-name {
    font-weight: 850;
    font-size: 24px;
    letter-spacing: -.8px;
}

.india-first {
    padding: 10px 15px;

    background: rgba(255,255,255,.6);
    border: 1px solid var(--line);

    border-radius: 999px;

    font-weight: 700;
    font-size: 13px;

    backdrop-filter: blur(16px);
}

main {
    max-width: 1220px;
    margin: auto;
    padding: 30px;
}

.hero {
    min-height: 590px;

    display: grid;
    grid-template-columns:
        minmax(0,1.25fr)
        minmax(320px,.75fr);

    gap: 42px;

    align-items: center;

    padding: 54px;

    border: 1px solid var(--line);

    border-radius: 38px;

    background:
        rgba(255,255,255,.63);

    box-shadow: var(--shadow);

    backdrop-filter: blur(25px);
}

.eyebrow {
    font-size: 12px;
    font-weight: 900;

    letter-spacing: 2.3px;

    color: var(--accent-deep);
}

h1 {
    margin:
        18px 0 22px;

    max-width: 720px;

    font-size:
        clamp(46px,7vw,82px);

    line-height: .98;

    letter-spacing: -4px;
}

.lead {
    max-width: 650px;

    font-size:
        clamp(18px,2vw,23px);

    line-height: 1.55;

    color: var(--muted);
}

.hero-actions {
    margin-top: 34px;

    display: flex;
    flex-wrap: wrap;

    gap: 13px;
}

.primary-button,
.secondary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 23px;

    border-radius: 16px;

    text-decoration: none;

    font-weight: 850;
}

.primary-button {
    color: white;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-deep)
        );

    box-shadow:
        0 15px 32px rgba(240,124,34,.24);
}

.secondary-button {
    color: var(--text);

    border: 1px solid var(--line);

    background: rgba(255,255,255,.72);
}

.strategy {
    margin-top: 25px;

    font-size: 14px;

    color: var(--muted);
}

.guide-card {
    padding: 32px;

    border-radius: 30px;

    background:
        linear-gradient(
            160deg,
            #fff7ed,
            #ffffff
        );

    border: 1px solid var(--line);

    box-shadow:
        0 20px 50px rgba(70,40,15,.08);
}

.guide-avatar {
    min-height: 220px;

    display: grid;
    place-items: center;
}

.fox {
    position: relative;

    width: 150px;
    height: 135px;
}

.fox-face {
    position: absolute;

    left: 15px;
    top: 29px;

    width: 120px;
    height: 105px;

    border-radius:
        48% 48% 55% 55%;

    background:
        linear-gradient(
            150deg,
            #ff9a43,
            #e76616
        );

    transform: rotate(45deg);

    box-shadow:
        0 22px 45px rgba(232,100,20,.22);
}

.fox-ear {
    position: absolute;
    top: 0;

    width: 56px;
    height: 70px;

    background: #ee721c;

    border-radius:
        10px 40px 8px 40px;
}

.fox-ear.left {
    left: 8px;
    transform: rotate(-18deg);
}

.fox-ear.right {
    right: 8px;
    transform:
        scaleX(-1)
        rotate(-18deg);
}

.eye,
.nose {
    position: absolute;

    z-index: 3;

    background: #2a1a11;
}

.eye {
    width: 9px;
    height: 9px;

    border-radius: 50%;
}

.left-eye {
    top: 35px;
    left: 33px;
}

.right-eye {
    top: 65px;
    right: 28px;
}

.nose {
    width: 13px;
    height: 13px;

    border-radius: 50%;

    right: 10px;
    bottom: 12px;
}

.guide-label {
    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.8px;

    color: var(--accent-deep);
}

.guide-copy h2 {
    margin: 7px 0 8px;

    font-size: 30px;

    letter-spacing: -1px;
}

.guide-copy p {
    margin: 0;

    color: var(--muted);

    line-height: 1.6;
}

.features {
    margin-top: 24px;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 16px;
}

.features article {
    min-height: 200px;

    padding: 25px;

    border-radius: 24px;

    border: 1px solid var(--line);

    background:
        rgba(255,255,255,.66);

    backdrop-filter: blur(16px);
}

.features article > span {
    color: var(--accent-deep);

    font-size: 12px;
    font-weight: 900;
}

.features h3 {
    margin: 30px 0 8px;

    font-size: 22px;
}

.features p {
    margin: 0;

    color: var(--muted);

    line-height: 1.55;
}

.vision {
    margin-top: 24px;

    padding: 55px;

    border-radius: 30px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #24201d,
            #433427
        );
}

.vision h2 {
    margin: 12px 0;

    max-width: 700px;

    font-size:
        clamp(32px,5vw,52px);

    letter-spacing: -2px;
}

.vision p {
    max-width: 700px;

    color: #dbd1c8;

    font-size: 18px;
    line-height: 1.6;
}

footer {
    max-width: 1220px;

    margin: 24px auto 0;

    padding: 30px;

    display: flex;
    flex-wrap: wrap;

    gap: 14px 28px;

    color: var(--muted);

    font-size: 13px;
}

footer strong {
    color: var(--text);
}

@media (max-width: 850px) {

    .site-header {
        padding:
            18px 20px;
    }

    main {
        padding: 15px;
    }

    .hero {
        grid-template-columns: 1fr;

        padding:
            38px 24px;

        border-radius: 28px;
    }

    h1 {
        letter-spacing: -2.5px;
    }

    .guide-card {
        padding: 24px;
    }

    .features {
        grid-template-columns:
            repeat(2,1fr);
    }

    .vision {
        padding:
            38px 25px;
    }

}

@media (max-width: 520px) {

    .brand-name {
        font-size: 21px;
    }

    .india-first {
        font-size: 11px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

}

/* MATCHORA-002 */

.auth-shell {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 30px;
}

.auth-card,
.profile-shell {
    width: 100%;

    max-width: 760px;

    padding: 40px;

    border-radius: 30px;

    border: 1px solid var(--line);

    background:
        rgba(255,255,255,.76);

    box-shadow: var(--shadow);

    backdrop-filter: blur(22px);
}

.profile-shell {
    max-width: 980px;

    margin: 20px auto;
}

.auth-brand {
    margin-bottom: 35px;
}

.auth-title,
.profile-title,
.dashboard-title {
    margin:
        10px 0 12px;

    font-size:
        clamp(34px,5vw,54px);

    line-height: 1.02;

    letter-spacing: -2px;
}

.auth-copy,
.profile-heading p {
    color: var(--muted);

    line-height: 1.6;
}

.profile-form {
    display: grid;

    gap: 18px;

    margin-top: 28px;
}

.profile-form label {
    display: grid;

    gap: 8px;

    font-size: 13px;

    font-weight: 800;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
    width: 100%;

    padding:
        14px 15px;

    border-radius: 14px;

    border:
        1px solid var(--line);

    background:
        rgba(255,255,255,.85);

    color: var(--text);

    font: inherit;

    outline: none;
}

.profile-form textarea {
    resize: vertical;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
    border-color:
        rgba(240,124,34,.65);

    box-shadow:
        0 0 0 4px
        rgba(240,124,34,.10);
}

.form-button {
    border: 0;

    cursor: pointer;

    font: inherit;
}

.form-error {
    margin-top: 20px;

    padding: 14px 16px;

    border-radius: 14px;

    background: #fff0ef;

    color: #a52820;

    font-size: 13px;

    font-weight: 700;
}

.auth-footer {
    margin-top: 24px;

    color: var(--muted);

    font-size: 13px;
}

.auth-footer a,
.simple-link,
.dashboard-nav a {
    color: var(--accent-deep);

    font-weight: 800;

    text-decoration: none;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 16px;
}

.dashboard-nav {
    display: flex;

    align-items: center;

    gap: 18px;

    font-size: 13px;

    color: var(--muted);
}

.dashboard-hero {
    padding:
        45px 0 35px;

    display: flex;

    justify-content: space-between;

    gap: 30px;

    align-items: flex-end;
}

.completion-card {
    min-width: 230px;

    padding: 22px;

    border-radius: 22px;

    border: 1px solid var(--line);

    background:
        rgba(255,255,255,.72);

    box-shadow:
        0 18px 45px
        rgba(60,35,15,.08);
}

.completion-card span {
    display: block;

    color: var(--muted);

    font-size: 12px;

    font-weight: 800;
}

.completion-card strong {
    display: block;

    margin-top: 6px;

    font-size: 34px;
}

.progress-track {
    height: 7px;

    margin-top: 13px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(0,0,0,.07);
}

.progress-fill {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--accent-deep)
        );
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 18px;
}

.dashboard-card {
    padding: 28px;

    border-radius: 24px;

    border: 1px solid var(--line);

    background:
        rgba(255,255,255,.72);

    min-height: 265px;
}

.dashboard-card h2 {
    margin:
        15px 0 10px;

    font-size: 25px;
}

.dashboard-card p {
    color: var(--muted);

    line-height: 1.6;
}

.card-kicker {
    color: var(--accent-deep);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.8px;
}

.empty-state {
    margin-top: 28px;

    padding: 15px;

    border-radius: 14px;

    background: var(--accent-soft);

    color: var(--accent-deep);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;
}

.mitra-panel {
    background:
        linear-gradient(
            155deg,
            #fff2df,
            rgba(255,255,255,.82)
        );
}

.admin-table-wrap {
    overflow-x: auto;

    margin-top: 25px;
}

.admin-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 13px;

    text-align: left;

    border-bottom:
        1px solid var(--line);
}

.admin-table th {
    color: var(--muted);
}

@media (max-width: 850px) {

    .dashboard-hero {
        flex-direction: column;

        align-items: stretch;
    }

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

    .completion-card {
        min-width: 0;
    }

}

@media (max-width: 600px) {

    .auth-shell {
        padding: 15px;
    }

    .auth-card,
    .profile-shell {
        padding: 25px 20px;

        border-radius: 24px;
    }

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

    .dashboard-nav span {
        display: none;
    }

}

/* MATCHORA-002R2 */

.homepage-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-nav-button {
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
}

@media (max-width: 600px) {

    .homepage-nav {
        gap: 7px;
    }

    .home-nav-button {
        min-height: 38px;
        padding: 0 12px;
        font-size: 11px;
    }

}

/* MATCHORA-003A */

.collector-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;

    padding: 35px 0 25px;
}

.collector-lead {
    max-width: 760px;
}

.collector-stats {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.collector-stats article {
    padding: 20px;

    border: 1px solid var(--line);
    border-radius: 20px;

    background:
        rgba(255,255,255,.72);
}

.collector-stats span {
    display: block;

    color: var(--muted);

    font-size: 11px;
    font-weight: 800;
}

.collector-stats strong {
    display: block;

    margin-top: 6px;

    font-size: 31px;
}

.collector-layout {
    display: grid;

    grid-template-columns:
        1.3fr .7fr;

    gap: 18px;

    margin-top: 20px;
}

.collector-form-card {
    min-height: 0;
}

.collector-policy {
    margin-top: 24px;

    padding: 16px;

    border-radius: 16px;

    background: var(--accent-soft);

    font-size: 12px;
}

.collector-policy p {
    margin-bottom: 0;
}

.collector-flow {
    display: grid;

    gap: 9px;

    margin-top: 22px;
}

.collector-flow span {
    padding: 12px 14px;

    border-radius: 12px;

    background:
        rgba(255,255,255,.7);

    border: 1px solid var(--line);

    font-size: 13px;
    font-weight: 800;
}

.collector-section {
    margin-top: 20px;

    padding: 28px;

    border-radius: 24px;

    border: 1px solid var(--line);

    background:
        rgba(255,255,255,.72);
}

.collector-section h2 {
    margin:
        8px 0 18px;

    font-size: 27px;
}

.status-pill {
    display: inline-flex;

    padding:
        6px 10px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 900;

    text-transform: uppercase;
}

.status-pending {
    background: #fff3d8;
}

.status-approved {
    background: #e4f8e8;
}

.status-rejected {
    background: #ffe9e7;
}

.candidate-shell {
    max-width: 1100px;
}

.candidate-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin:
        20px 0 26px;
}

.candidate-meta span {
    padding:
        9px 13px;

    border-radius: 999px;

    background:
        var(--accent-soft);

    font-size: 12px;
}

.candidate-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap: 14px;

    margin-bottom: 25px;
}

.candidate-grid > div {
    padding: 18px;

    border-radius: 18px;

    border: 1px solid var(--line);

    background:
        rgba(255,255,255,.7);
}

.candidate-grid p {
    margin-bottom: 0;

    line-height: 1.5;
}

.candidate-thesis {
    margin-bottom: 28px;

    padding: 20px;

    border-radius: 18px;

    background:
        rgba(255,255,255,.7);

    border: 1px solid var(--line);
}

.candidate-thesis p {
    line-height: 1.7;

    color: var(--muted);
}

.evidence-cell {
    max-width: 420px;

    color: var(--muted);

    line-height: 1.45;
}

.review-actions {
    display: flex;

    gap: 12px;

    margin-top: 28px;
}

.review-actions form {
    margin: 0;
}

.danger-button {
    border: 1px solid #e9b6b1;

    color: #a52820;

    cursor: pointer;
}

@media (max-width: 900px) {

    .collector-stats {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .collector-layout {
        grid-template-columns: 1fr;
    }

    .candidate-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

}

@media (max-width: 600px) {

    .collector-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .collector-section {
        padding: 20px;
    }

    .review-actions {
        flex-direction: column;
    }

}

/* MATCHORA-003B */

.discovery-panel {
    margin-top: 20px;

    padding: 28px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 28px;

    border-radius: 24px;

    border: 1px solid var(--line);

    background:
        linear-gradient(
            145deg,
            rgba(255,243,222,.86),
            rgba(255,255,255,.78)
        );
}

.discovery-panel h2 {
    margin:
        8px 0 10px;

    font-size: 27px;
}

.discovery-panel p {
    color: var(--muted);

    line-height: 1.6;
}

.discovery-form {
    display: grid;

    gap: 14px;

    align-content: center;
}

.discovery-form label {
    display: grid;

    gap: 8px;

    font-size: 12px;

    font-weight: 800;
}

.discovery-form input {
    width: 100%;

    padding:
        14px 15px;

    border-radius: 14px;

    border: 1px solid var(--line);

    background:
        rgba(255,255,255,.86);

    font: inherit;
}

.discovery-status {
    grid-column:
        1 / -1;

    min-height: 0;

    color:
        var(--accent-deep);

    font-size: 13px;
}

@media (max-width: 800px) {

    .discovery-panel {
        grid-template-columns:
            1fr;
    }

}

/* MATCHORA-003B-R1 */

.discovery-note {
    display: inline-block;

    padding: 10px 13px;

    border-radius: 12px;

    background:
        rgba(255,255,255,.72);

    border:
        1px solid var(--line);

    color: var(--muted);

    line-height: 1.45;
}

#discovery-query:focus {
    border-color:
        rgba(240,124,34,.7);

    box-shadow:
        0 0 0 4px
        rgba(240,124,34,.10);
}

/* MATCHORA-003C */

.section-heading-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-refresh-button {
    min-height: 38px;

    padding: 0 14px;

    border-radius: 12px;

    border: 1px solid var(--line);

    background:
        rgba(255,255,255,.86);

    color: var(--text);

    cursor: pointer;

    font: inherit;
    font-size: 12px;
    font-weight: 850;
}

.mini-refresh-button:hover {
    border-color:
        rgba(240,124,34,.45);

    background:
        var(--accent-soft);
}

.refresh-state {
    min-width: 60px;

    color: var(--muted);

    font-size: 11px;
}

.status-fetching {
    background: #e9f2ff;
}

.status-blocked {
    background: #ffe9d5;
}

.status-failed {
    background: #ffe9e7;
}

.status-fetched {
    background: #e4f8e8;
}

@media (max-width: 650px) {

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

}
