/* ==================================================
   Global
   ================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;

    width: 100%;
    max-width: 100%;
    overflow-x: hidden;

    background: #080a08;
    color: #f6f5ef;

    font-family: Inter, Arial, sans-serif;
}

img {
    max-width: 100%;
}

input,
select,
button {
    font: inherit;
}


/* ==================================================
   Header / Navigation
   ================================================== */

header {
    height: 72px;

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

    padding: 0 max(24px, 6vw);

    border-bottom: 1px solid #252925;

    position: sticky;
    top: 0;

    background: #080a08e8;
    backdrop-filter: blur(12px);

    z-index: 5;
}

.brand {
    display: inline-flex;
    align-items: center;

    font-weight: 950;
    color: white;

    text-decoration: none;
    letter-spacing: -1px;

    min-width: 0;
}

.brand-logo {
    display: block;

    width: 220px !important;
    height: auto !important;

    max-width: 220px !important;
    max-height: 54px !important;

    object-fit: contain;

    flex-shrink: 0;
}

.brand span,
.hero em,
.how em {
    color: #16d96b;
    font-style: normal;
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a {
    color: #bbb;
    text-decoration: none;
}


/* ==================================================
   Buttons
   ================================================== */

button,
.cta {
    border: 0;

    cursor: pointer;

    font-weight: 850;
}

nav button,
.cta,
.primary {
    background: #16d96b;
    color: #061208;

    padding: 13px 18px;

    border-radius: 8px;
}


/* ==================================================
   Hero
   ================================================== */

.hero {
    min-height: 620px;

    padding: 100px max(24px, 8vw);

    background:
        radial-gradient(circle at 75% 35%,
            #123d22 0,
            transparent 35%);
}

.eyebrow,
small {
    color: #16d96b;

    font-weight: 900;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(70px, 12vw, 170px);

    line-height: 0.78;
    letter-spacing: -8px;

    margin: 35px 0;
}

.hero p {
    font-size: 20px;

    color: #a9ada9;

    max-width: 600px;

    line-height: 1.6;

    margin-bottom: 38px;
}

.cta {
    text-decoration: none;
    display: inline-block;
}


/* ==================================================
   Leaderboard
   ================================================== */

.board {
    padding: 80px max(24px, 8vw);

    background: #101310;
}

.boardHead {
    display: flex;

    justify-content: space-between;
    align-items: end;

    margin-bottom: 25px;
}

.board h2,
.how h2 {
    font-size: clamp(38px, 5vw, 70px);

    margin: 8px 0;
}


/* ==================================================
   Form Controls
   ================================================== */

select,
input {
    background: #171b17;
    color: white;

    border: 1px solid #353b35;
    border-radius: 7px;

    padding: 13px;
}


/* ==================================================
   Leaderboard Rows
   ================================================== */

.row {
    display: grid;

    grid-template-columns:
        65px minmax(0, 1fr) 160px 130px;

    gap: 15px;

    align-items: center;

    border-top: 1px solid #2a2e2a;

    padding: 20px 5px;
}

.rank {
    font-size: 26px;
    font-weight: 950;
}

.biz {
    min-width: 0;
}

.biz strong {
    font-size: 20px;
}

.biz small {
    display: block;

    color: #888;

    letter-spacing: 0;

    margin-top: 4px;
}

.money {
    font-weight: 900;
    font-size: 19px;
}

.outbid {
    background: transparent;

    color: #16d96b;

    border: 1px solid #16d96b;
    border-radius: 6px;

    padding: 11px;
}


/* ==================================================
   How It Works
   ================================================== */

.how {
    padding: 90px max(24px, 8vw);
}

.steps {
    display: grid;

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

    gap: 20px;
}

.steps article {
    background: #111411;

    border: 1px solid #292d29;
    border-radius: 12px;

    padding: 30px;
}

.steps b {
    color: #16d96b;

    font-size: 30px;
}

.steps p {
    color: #999;

    line-height: 1.5;
}


/* ==================================================
   Social Links
   ================================================== */

.social-links {
    display: flex;

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

    gap: 28px;
    flex-wrap: wrap;

    margin-top: 55px;
    padding-top: 30px;

    border-top: 1px solid #292d29;
}

.social-links a {
    color: #999;

    text-decoration: none;

    font-weight: 700;

    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #16d96b;
}

.social-links i {
    font-size: 20px;

    margin-right: 7px;

    vertical-align: middle;
}


/* ==================================================
   Dialog / Modal
   ================================================== */

dialog {
    background: #101310;
    color: white;

    border: 1px solid #343a34;
    border-radius: 14px;

    width: min(480px, 92vw);

    padding: 28px;
}

dialog::backdrop {
    background: #000b;
}

.x {
    float: right;

    background: none;

    color: white;

    font-size: 25px;
}

.x+h2 {
    font-size: 32px;
}


/* ==================================================
   Dialog Forms
   ================================================== */

label {
    display: grid;

    gap: 8px;

    margin: 15px 0;

    color: #aaa;
}

.primary {
    width: 100%;

    margin-top: 10px;
}

.fine {
    color: #777;

    font-size: 12px;

    text-align: center;
}


/* ==================================================
   Business Links
   ================================================== */

.business-link {
    color: inherit;

    text-decoration: none;
}

.business-link:hover {
    color: #16d96b;

    text-decoration: underline;
}


/* ==================================================
   Platform / URL Fields
   ================================================== */

.platform-url-row {
    display: grid;

    grid-template-columns: 140px 1fr;

    gap: 12px;
}

.platform-url-row label {
    margin: 15px 0;
}

.platform-url-row select,
.platform-url-row input {
    width: 100%;
}


/* ==================================================
   Toast Notification
   ================================================== */

#toast {
    position: fixed;

    right: 20px;
    bottom: 20px;

    background: #16d96b;
    color: #061208;

    padding: 14px 20px;

    border-radius: 8px;

    font-weight: 800;

    opacity: 0;

    transform: translateY(10px);

    transition: 0.2s;

    z-index: 20;

    max-width: calc(100vw - 40px);
}

#toast.show {
    opacity: 1;

    transform: none;
}

/* ==================================================
   Talk Board
   ================================================== */
.talk-board {
    width: calc(100% - 40px);
    max-width: 900px;

    margin: 60px auto;
    padding: 28px;

    background: #101510;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;

    box-sizing: border-box;
}

.talk-header {
    margin-bottom: 24px;
}

.talk-header small {
    color: #16d96b;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.talk-header h2 {
    margin: 5px 0;
    color: #ffffff;
}

.talk-header p {
    margin: 0;
    color: #aeb8ae;
}


/* Compose */

.talk-compose {
    padding: 20px;

    background: #151b15;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.talk-compose label {
    display: block;
    margin: 12px 0 6px;

    color: #aeb8ae;
    font-size: 13px;
    font-weight: 700;
}

.talk-compose select,
.talk-compose textarea {
    width: 100%;

    padding: 12px;

    background: #0b0e0b;
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;

    font: inherit;
}

.talk-compose textarea {
    resize: vertical;
    min-height: 90px;
}

.talk-compose textarea:focus,
.talk-compose select:focus {
    outline: none;
    border-color: #16d96b;
}


/* Counter + Post button */

.talk-compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 12px;
}

#messageCounter {
    color: #777;
    font-size: 12px;
}

#postMessageBtn {
    width: auto !important;
    min-width: 110px;
    display: inline-flex !important;

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

    padding: 10px 20px;
    margin: 0;

    flex: 0 0 auto;

    white-space: nowrap;
}

 


/* Feed */

.talk-feed-header {
    margin: 28px 0 12px;

    color: #ffffff;
}

#messageFeed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.talk-loading {
    color: #777;
    text-align: center;
}


/* Individual post - we'll populate these with JS */

.talk-post {
    padding: 16px 18px;

    background: #151b15;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.talk-post-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.talk-business {
    color: #ffffff;
    font-weight: 800;
}

.talk-rank {
    color: #16d96b;
    font-weight: 800;
}

.talk-meta {
    color: #777;
    font-size: 12px;
}

.talk-message {
    margin-top: 10px;

    color: #e4e8e4;
    font-size: 15px;
    line-height: 1.5;
}


/* Mobile */

@media (max-width: 600px) {

    .talk-board {
        margin: 35px 12px;
        padding: 18px;
    }

    .talk-compose {
        padding: 15px;
    }

    .talk-post-header {
        flex-direction: column;
        gap: 3px;
    }
}

/* ==================================================
   Tablet / Mobile
   ================================================== */

@media (max-width: 768px) {

    /* Header */

    header {
        height: 64px;

        padding: 0 16px;

        gap: 12px;
    }

    .brand {
        flex: 1;

        min-width: 0;
    }

    .brand-logo {
        width: 400px !important;
        height: 100 !important;

        max-width: 400px !important;
        max-height: 100px !important;

        object-fit: contain;
    }

    .business-count {
        margin-top: 24px;
        text-align: center;
    }

    .business-badge {
        display: inline-block;

        padding: 10px 18px;

        background: #151b15;
        border: 1px solid #16d96b;
        border-radius: 999px;

        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
    }

    #businessCount {
        color: #16d96b;
        font-size: 18px;
        font-weight: 900;
    }

    .powered-by {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;

        margin: 28px 0 8px 0 !important;
        padding: 0 !important;
    }

    .powered-by p {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

        text-align: center !important;
        color: #ffffff !important;
        font-size: 12px;
    }

    .powered-by a,
    .powered-by a:link,
    .powered-by a:visited,
    .powered-by a:hover,
    .powered-by a:active {
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 700;
    }

    .site-links {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin: 22px auto 0;
        text-align: center;
    }

    .site-links a,
    .site-links a:link,
    .site-links a:visited,
    .site-links a:hover,
    .site-links a:active,
    .site-links a:focus {
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .site-links span {
        color: #ffffff;
    }

    nav {
        gap: 10px;

        flex-shrink: 0;
    }

    nav a {
        display: none;
    }

    nav button {
        padding: 10px 12px;

        font-size: 13px;

        white-space: nowrap;
    }


    /* Hero */

    .hero {
        min-height: auto;

        padding: 70px 20px;

        background:
            radial-gradient(circle at 80% 25%,
                #123d22 0,
                transparent 45%);
    }

    .eyebrow {
        font-size: 12px;

        line-height: 1.5;

        letter-spacing: 1.5px;
    }

    .hero h1 {
        font-size: clamp(58px, 19vw, 95px);

        line-height: 0.82;

        letter-spacing: -4px;

        margin: 28px 0;
    }

    .hero p {
        font-size: 17px;

        line-height: 1.55;

        margin-bottom: 30px;
    }

    .cta {
        width: 100%;

        padding: 15px 18px;

        text-align: center;
    }


    /* Leaderboard */

    .board {
        padding: 55px 16px;
    }

    .boardHead {
        flex-direction: column;

        align-items: stretch;

        gap: 18px;

        margin-bottom: 25px;
    }

    .boardHead select {
        width: 100%;
    }

    .board h2 {
        font-size: 38px;

        line-height: 1.05;
    }

    .row {
        grid-template-columns:
            42px minmax(0, 1fr) auto;

        gap: 10px;

        padding: 18px 0;
    }

    .rank {
        font-size: 21px;
    }

    .biz strong {
        display: block;

        font-size: 17px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }

    .biz small {
        font-size: 12px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }

    .money {
        font-size: 15px;

        text-align: right;

        white-space: nowrap;
    }

    .outbid {
        grid-column: 2 / 4;

        width: 100%;

        padding: 12px;
    }


    /* How It Works */

    .how {
        padding: 60px 16px;
    }

    .how h2 {
        font-size: 38px;

        line-height: 1.05;
    }

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

        gap: 14px;
    }

    .steps article {
        padding: 24px;
    }


    /* Social Links */

    .social-links {
        flex-direction: column;

        align-items: flex-start;

        gap: 18px;

        margin-top: 40px;
        padding-top: 25px;
    }

    .social-links a {
        font-size: 15px;

        overflow-wrap: anywhere;
    }


    /* Dialogs */

    dialog {
        width: calc(100% - 24px);

        max-width: none;

        padding: 22px 18px;

        margin: auto;

        border-radius: 12px;
    }

    dialog form {
        width: 100%;
    }

    dialog h2 {
        font-size: 28px;
    }

    dialog input,
    dialog select {
        width: 100%;

        min-height: 48px;

        font-size: 16px;
    }

    .platform-url-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .primary {
        min-height: 50px;

        font-size: 15px;
    }


    /* Toast */

    #toast {
        left: 16px;
        right: 16px;

        bottom: 16px;

        width: auto;

        text-align: center;
    }
}


/* ==================================================
   Small Phones
   ================================================== */

@media (max-width: 420px) {

    header {
        padding: 0 12px;
    }

    .brand-logo {
        width: 120px !important;

        max-width: 120px !important;
    }

    nav button {
        padding: 9px 10px;

        font-size: 12px;
    }

    .hero {
        padding: 55px 16px;
    }

    .hero h1 {
        font-size: 17vw;

        letter-spacing: -3px;

        line-height: 0.85;
    }

    .hero p {
        font-size: 16px;
    }

    .board,
    .how {
        padding-left: 14px;
        padding-right: 14px;
    }

    .board h2,
    .how h2 {
        font-size: 32px;
    }

    .row {
        grid-template-columns:
            34px minmax(0, 1fr) auto;

        gap: 8px;
    }

    .rank {
        font-size: 18px;
    }

    .biz strong {
        font-size: 15px;
    }

    .biz small {
        font-size: 11px;
    }

    .money {
        font-size: 13px;
    }

    .outbid {
        grid-column: 2 / 4;
    }

    .steps article {
        padding: 20px;
    }

    .social-links {
        align-items: stretch;
    }

    .social-links a {
        display: block;
    }

    dialog {
        width: calc(100% - 16px);

        padding: 20px 16px;
    }
}