/* =========================================================
   VOTEBOX V0.1
   Main Stylesheet
   ========================================================= */


/* ================= GLOBAL ================= */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", sans-serif;
    background: #f7f8fa;
    color: #111827;
    line-height: 1.6;
}


button,
a {
    font-family: inherit;
}


button {
    cursor: pointer;
    border: none;
}


a {
    text-decoration: none;
    color: inherit;
}


.container {
    width: min(1180px, 92%);
    margin: auto;
}


/* ================= NAVBAR ================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(247, 248, 250, 0.92);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid #e5e7eb;
}


.nav-content {
    height: 76px;

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


.logo {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 20px;

    font-weight: 800;

    letter-spacing: -0.5px;
}


.logo-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #111827;

    color: white;

    font-weight: 800;
}


nav {
    display: flex;
    gap: 34px;
}


nav a {
    font-size: 14px;

    color: #667085;

    transition: 0.2s;
}


nav a:hover {
    color: #111827;
}


.nav-button {
    background: #111827;

    color: white;

    padding: 11px 18px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 600;

    transition: 0.2s;
}


.nav-button:hover {
    transform: translateY(-2px);
}


/* ================= HERO ================= */

.hero {
    padding: 100px 0 110px;

    background:
        radial-gradient(
            circle at 75% 20%,
            #e8edf5 0,
            transparent 28%
        ),
        #f7f8fa;
}


.hero-content {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 90px;

    align-items: center;
}


.badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 12px;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 100px;

    font-size: 12px;

    font-weight: 600;

    color: #475467;

    margin-bottom: 25px;
}


.status-dot {
    width: 7px;
    height: 7px;

    background: #22c55e;

    border-radius: 50%;
}


.hero h1 {
    font-size: clamp(46px, 6vw, 76px);

    line-height: 1.02;

    letter-spacing: -4px;

    max-width: 700px;
}


.hero h1 span,
.section-heading h2 span,
.center-heading h2 span,
.roadmap-content h2 span,
.audit-intro h2 span {
    color: #667085;
}


.hero-text > p {
    margin-top: 25px;

    max-width: 590px;

    font-size: 17px;

    color: #667085;
}


.hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 34px;
}


.primary-button,
.secondary-button {
    padding: 13px 19px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 700;

    transition: 0.2s;
}


.primary-button {
    background: #111827;

    color: white;
}


.primary-button:hover {
    transform: translateY(-2px);

    background: #000;
}


.secondary-button {
    background: white;

    border: 1px solid #d9dde5;

    color: #344054;
}


.secondary-button:hover {
    border-color: #98a2b3;
}


.primary-button.small {
    padding: 10px 16px;
}


/* ================= HERO STATS ================= */

.hero-stats {
    display: flex;

    gap: 40px;

    margin-top: 55px;
}


.hero-stats div {
    display: flex;

    flex-direction: column;
}


.hero-stats strong {
    font-size: 20px;
}


.hero-stats span {
    font-size: 11px;

    color: #98a2b3;

    margin-top: 2px;
}


/* ================= HERO CARD ================= */

.hero-card {
    background: #111827;

    color: white;

    padding: 30px;

    border-radius: 18px;

    box-shadow:
        0 25px 60px rgba(16, 24, 40, 0.15);
}


.card-top {
    display: flex;

    justify-content: space-between;

    font-size: 10px;

    font-weight: 700;

    color: #98a2b3;

    letter-spacing: 1px;
}


.live {
    color: #86efac;
}


.hero-card h3 {
    margin-top: 40px;

    font-size: 25px;
}


.hero-card > p {
    color: #98a2b3;

    font-size: 13px;
}


.progress-section {
    margin-top: 38px;
}


.progress-label {
    display: flex;

    justify-content: space-between;

    font-size: 11px;

    color: #98a2b3;
}


.progress-bar {
    height: 5px;

    background: #374151;

    margin-top: 10px;

    border-radius: 10px;

    overflow: hidden;
}


.progress {
    width: 68%;

    height: 100%;

    background: white;
}


.election-info {
    display: grid;

    grid-template-columns: 1fr 1fr;

    margin-top: 30px;

    border-top: 1px solid #374151;

    padding-top: 22px;
}


.election-info div {
    display: flex;

    flex-direction: column;
}


.election-info span {
    color: #98a2b3;

    font-size: 10px;
}


.election-info strong {
    font-size: 13px;

    margin-top: 4px;
}


.card-button {
    width: 100%;

    margin-top: 25px;

    padding: 13px;

    border-radius: 8px;

    font-weight: 700;

    transition: 0.2s;
}


.card-button:hover {
    transform: translateY(-2px);
}


/* ================= SECTIONS ================= */

.section {
    padding: 100px 0;
}


.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 40px;

    margin-bottom: 45px;
}


.section-heading h2,
.center-heading h2,
.roadmap-content h2 {
    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.1;

    letter-spacing: -2px;
}


.section-heading > p {
    max-width: 340px;

    color: #667085;

    font-size: 14px;
}


.eyebrow {
    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: #98a2b3;

    margin-bottom: 13px;
}


/* ================= ELECTION CARD ================= */

.election-card {
    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    padding: 28px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;
}


.election-main {
    display: flex;

    align-items: center;

    gap: 20px;
}


.election-icon {
    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    background: #f2f4f7;

    border-radius: 12px;

    font-size: 23px;
}


.election-status {
    font-size: 11px;

    font-weight: 700;

    color: #16a34a;
}


.election-main h3 {
    font-size: 19px;

    margin: 5px 0;
}


.election-main p {
    font-size: 13px;

    color: #667085;
}


.election-details {
    display: flex;

    align-items: center;

    gap: 35px;
}


.election-details div {
    display: flex;

    flex-direction: column;
}


.election-details span {
    font-size: 10px;

    color: #98a2b3;
}


.election-details strong {
    font-size: 13px;

    margin-top: 3px;
}


/* ================= CANDIDATES ================= */

.candidates-section {
    background: white;
}


.candidate-grid {
    display: grid;

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

    gap: 15px;
}


.candidate-card {
    border: 1px solid #e5e7eb;

    border-radius: 14px;

    padding: 28px;

    background: #f9fafb;

    transition: 0.25s;
}


.candidate-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 40px rgba(16, 24, 40, 0.08);
}


.candidate-avatar {
    width: 58px;
    height: 58px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #111827;

    color: white;

    font-weight: 700;

    margin-bottom: 35px;
}


.candidate-info span {
    font-size: 10px;

    color: #98a2b3;

    text-transform: uppercase;
}


.candidate-info h3 {
    margin-top: 5px;

    font-size: 19px;
}


.candidate-info p {
    color: #667085;

    font-size: 12px;
}


.candidate-button {
    background: transparent;

    padding: 0;

    margin-top: 28px;

    font-size: 12px;

    font-weight: 700;
}


/* ================= WHY VOTEBOX ================= */

.why-section {
    background: #eef0f3;
}


.center-heading {
    text-align: center;

    max-width: 700px;

    margin: auto auto 60px;
}


.center-heading > p:last-child {
    margin-top: 18px;

    color: #667085;

    font-size: 14px;
}


.why-grid {
    display: grid;

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

    gap: 12px;
}


.why-card {
    background: white;

    border-radius: 12px;

    padding: 28px;

    min-height: 210px;
}


.why-card > span {
    color: #98a2b3;

    font-size: 11px;
}


.why-card h3 {
    margin-top: 55px;

    font-size: 19px;
}


.why-card p {
    margin-top: 8px;

    color: #667085;

    font-size: 12px;
}


/* ================= DARK SECTION ================= */

.dark-section {
    background: #111827;

    color: white;
}


.dark-section .center-heading > p:last-child {
    color: #98a2b3;
}


.steps {
    display: grid;

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

    gap: 1px;

    background: #374151;

    border: 1px solid #374151;
}


.step {
    padding: 35px;

    background: #111827;
}


.step-number {
    font-size: 11px;

    color: #98a2b3;

    margin-bottom: 55px;
}


.step h3 {
    font-size: 19px;

    margin-bottom: 10px;
}


.step p {
    color: #98a2b3;

    font-size: 13px;
}


/* ================= TECHNOLOGY ================= */

.technology-grid {
    display: grid;

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

    gap: 14px;
}


.tech-card {
    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 28px;

    min-height: 190px;

    transition: 0.25s;
}


.tech-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(16, 24, 40, 0.07);
}


.tech-number {
    font-size: 11px;

    color: #98a2b3;

    margin-bottom: 35px;
}


.tech-card h3 {
    font-size: 17px;

    margin-bottom: 8px;
}


.tech-card p {
    font-size: 12px;

    color: #667085;
}


/* ================= ARCHITECTURE ================= */

.architecture-section {
    background: #111827;

    color: white;
}


.architecture-section .section-heading > p {
    color: #98a2b3;
}


.architecture {
    display: grid;

    grid-template-columns:
        1fr auto
        1fr auto
        1fr auto
        1fr;

    align-items: center;

    gap: 15px;

    margin-top: 60px;
}


.architecture-node {
    border: 1px solid #374151;

    padding: 30px 20px;

    min-height: 150px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    border-radius: 10px;
}


.architecture-node span {
    color: #667085;

    font-size: 10px;

    margin-bottom: auto;
}


.architecture-node strong {
    font-size: 14px;
}


.architecture-node small {
    color: #98a2b3;

    font-size: 10px;

    margin-top: 3px;
}


.highlight-node {
    background: white;

    color: #111827;
}


.highlight-node small {
    color: #667085;
}


.architecture-arrow {
    color: #667085;

    font-size: 20px;
}


.architecture-note {
    margin-top: 25px;

    padding: 18px 22px;

    border: 1px solid #374151;

    border-radius: 8px;

    display: flex;

    align-items: center;

    gap: 25px;
}


.architecture-note span {
    font-size: 9px;

    letter-spacing: 1px;

    color: #86efac;

    font-weight: 800;
}


.architecture-note p {
    font-size: 11px;

    color: #98a2b3;
}


/* ================= AUDIT ================= */

.audit-section {
    background: #0b0f19;

    color: white;
}


.audit-layout {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 100px;

    align-items: center;
}


.audit-intro h2 {
    font-size: clamp(35px, 4vw, 52px);

    letter-spacing: -2px;

    line-height: 1.05;
}


.audit-intro > p:not(.eyebrow) {
    color: #98a2b3;

    margin-top: 20px;

    font-size: 13px;

    max-width: 430px;
}


.future-badge {
    display: inline-block;

    margin-top: 28px;

    border: 1px solid #374151;

    padding: 8px 12px;

    border-radius: 100px;

    color: #98a2b3;

    font-size: 10px;
}


.audit-panel {
    background: #111827;

    border: 1px solid #374151;

    border-radius: 15px;

    padding: 28px;
}


.audit-header {
    display: flex;

    justify-content: space-between;

    padding-bottom: 22px;

    border-bottom: 1px solid #374151;
}


.audit-header > div:first-child {
    display: flex;

    flex-direction: column;
}


.audit-header span {
    color: #98a2b3;

    font-size: 10px;
}


.audit-header strong {
    margin-top: 4px;

    font-size: 14px;
}


.verified {
    color: #86efac;

    font-size: 10px;

    font-weight: 700;
}


.audit-events {
    padding: 10px 0;
}


.audit-event {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px 0;
}


.audit-check {
    width: 27px;
    height: 27px;

    border: 1px solid #374151;

    border-radius: 50%;

    display: grid;

    place-items: center;

    color: #86efac;

    font-size: 10px;
}


.audit-event > div:last-child {
    display: flex;

    flex-direction: column;
}


.audit-event strong {
    font-size: 12px;
}


.audit-event span {
    color: #667085;

    font-size: 9px;
}


.audit-event.pending {
    opacity: 0.5;
}


.integrity {
    border-top: 1px solid #374151;

    padding-top: 20px;
}


.integrity > span {
    font-size: 9px;

    color: #667085;
}


.integrity > div {
    display: flex;

    gap: 12px;

    align-items: center;

    margin-top: 12px;

    font-size: 10px;
}


.verified-text {
    color: #86efac;
}


/* ================= ROADMAP ================= */

.roadmap-section {
    background: #eef0f3;
}


.roadmap-content {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 100px;
}


.roadmap-description {
    margin-top: 25px;

    color: #667085;

    max-width: 430px;

    font-size: 14px;
}


.roadmap {
    border-left: 1px solid #d0d5dd;
}


.roadmap-item {
    display: flex;

    gap: 22px;

    padding: 20px 0 20px 25px;

    position: relative;
}


.roadmap-item::before {
    content: "";

    position: absolute;

    left: -5px;

    top: 27px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #d0d5dd;
}


.roadmap-item.active::before {
    background: #111827;
}


.roadmap-item > span {
    font-size: 11px;

    color: #98a2b3;
}


.roadmap-item strong {
    font-size: 14px;
}


.roadmap-item p {
    font-size: 12px;

    color: #667085;
}


/* ================= FOOTER ================= */

footer {
    background: #0b0f19;

    color: white;

    padding: 45px 0;
}


.footer-content {
    display: flex;

    justify-content: space-between;

    align-items: center;
}


footer .logo {
    color: white;
}


footer .logo-mark {
    background: white;

    color: #111827;
}


footer p {
    color: #98a2b3;

    font-size: 11px;

    margin-top: 10px;
}


.footer-right {
    display: flex;

    gap: 25px;

    color: #667085;

    font-size: 11px;
}


/* ================= TOAST ================= */

.toast {
    position: fixed;

    bottom: 25px;

    right: 25px;

    background: #111827;

    color: white;

    padding: 14px 18px;

    border-radius: 8px;

    font-size: 12px;

    transform: translateY(100px);

    opacity: 0;

    transition: 0.3s;

    z-index: 1000;
}


.toast.show {
    transform: translateY(0);

    opacity: 1;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 850px) {

    nav {
        display: none;
    }


    .hero-content,
    .roadmap-content,
    .audit-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }


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


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


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


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


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


    .architecture-arrow {
        transform: rotate(90deg);

        text-align: center;
    }


    .election-card,
    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }


    .election-details {
        width: 100%;

        justify-content: space-between;
    }

}


/* ================= MOBILE ================= */

@media (max-width: 550px) {

    .hero {
        padding: 70px 0;
    }


    .hero h1 {
        letter-spacing: -2px;
    }


    .hero-buttons,
    .hero-stats {
        flex-direction: column;
    }


    .hero-stats {
        gap: 18px;
    }


    .technology-grid,
    .steps,
    .why-grid {
        grid-template-columns: 1fr;
    }


    .election-details {
        flex-wrap: wrap;

        gap: 20px;
    }


    .architecture-note {
        flex-direction: column;

        align-items: flex-start;
    }


    .integrity > div {
        flex-wrap: wrap;
    }


    .footer-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;
    }

}