:root {
    --brand: #5151e5;
    --brand-dark: #3d3db8;
    --brand-light: #ededfd;
    --brand-lighter: #f5f5ff;
    --success: #17c653;
    --success-light: #dfffea;
    --success-dark: #0f6b2e;
    --warning: #f6c000;
    --warning-light: #fff8dd;
    --warning-dark: #7a5800;
    --danger: #f1416c;
    --danger-light: #fff5f8;
    --gray-100: #f9f9f9;
    --gray-200: #f1f1f2;
    --gray-300: #e1e3ea;
    --gray-400: #b5b5c3;
    --gray-500: #a1a5b7;
    --gray-600: #7e8299;
    --gray-700: #5e6278;
    --gray-800: #3f4254;
    --gray-900: #181c32;
    --white: #fff;
    --body-bg: #f5f8fa;
    --radius: 0.625rem;
    --radius-sm: 0.475rem;
    --radius-lg: 0.85rem;
    --shadow: 0 0 20px rgba(56, 71, 109, 0.09);
    --shadow-md: 0 4px 24px rgba(56, 71, 109, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--body-bg);
    color: var(--gray-900);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: 65px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 12px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-text {
    font-size: 15px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: 0;
}

.logo-text span {
    color: var(--brand);
}

.topbar-nav {
    display: flex;
    gap: 2px;
    flex: 1;
    margin-left: 8px;
}

.nav-btn {
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.15s;
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--brand-lighter);
    color: var(--brand);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.account-menu {
    position: relative;
}

.account-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    background: var(--warning-light);
    color: var(--warning-dark);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.account-trigger::-webkit-details-marker {
    display: none;
}

.account-trigger span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--danger);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 400;
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.account-dropdown a,
.account-dropdown button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 7px;
    color: var(--gray-700);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    background: var(--brand-lighter);
    color: var(--brand);
}

.account-dropdown form {
    margin: 0;
}

.account-badge {
    float: right;
    min-width: 20px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.front-bell {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 17px;
}

.front-bell span {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 14px;
    text-align: center;
}

.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    border: 0;
    background: none;
    color: var(--gray-500);
    cursor: pointer;
    font-family: "Inter", sans-serif;
}

.lang-btn.active {
    background: var(--brand);
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    line-height: 1;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-light {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-light:hover {
    background: var(--gray-200);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-primary-outline {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn-primary-outline:hover {
    background: var(--brand-lighter);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: var(--success-dark);
}

.btn-sm {
    padding: 6px 13px;
    font-size: 12px;
}

.btn-lg {
    padding: 11px 22px;
    font-size: 14px;
}

.btn-xl {
    padding: 13px 26px;
    font-size: 15px;
    border-radius: var(--radius);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-success {
    background: var(--success-light);
    color: var(--success-dark);
}

.countdown {
    font-size: 11px;
    color: var(--warning-dark);
    background: var(--warning-light);
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 700;
}

.winner-tag {
    font-size: 11px;
    color: var(--success-dark);
    background: var(--success-light);
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 700;
}

.winner-tag.muted {
    color: var(--gray-700);
    background: var(--gray-200);
}

.screen {
    min-height: 100vh;
    padding-top: 65px;
}

.hero-section {
    background: linear-gradient(135deg, #f0f0ff 0%, #f5f8fa 55%, #eefaf5 100%);
    padding: 64px 32px 72px;
    border-bottom: 1px solid var(--gray-200);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand-light);
    color: var(--brand);
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--brand);
    border-radius: 50%;
    display: inline-block;
}

h1 {
    margin: 0 0 16px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    color: var(--gray-900);
}

h1 .accent {
    color: var(--brand);
}

.hero-sub {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0 0 28px;
    max-width: 660px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    flex-wrap: wrap;
}

.hstat-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0;
}

.hstat-label {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 1px;
    font-weight: 500;
}

.auction-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.auction-hd {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.auction-label-sm {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.auction-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.auction-sub {
    font-size: 12px;
    color: var(--gray-500);
}

.auction-badges {
    display: flex;
    gap: 7px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.auction-body {
    padding: 16px 20px;
}

.prog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--gray-500);
    margin-bottom: 6px;
    font-weight: 500;
}

.prog-wrap {
    background: var(--gray-200);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 4px;
}

.ametrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.ametric {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
}

.ametric-l {
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}

.ametric-v {
    font-size: 14px;
    font-weight: 800;
    color: var(--gray-900);
}

.auction-preview {
    padding: 0 20px 18px;
}

.preview-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--gray-200);
}

.preview-row strong {
    display: block;
    font-size: 12.5px;
}

.preview-row small {
    color: var(--gray-500);
    font-size: 11.5px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.avatar-green {
    background: var(--success-light);
    color: var(--success-dark);
}

.sec-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.how-section {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 72px 32px;
}

.eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 8px;
}

h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--gray-900);
    line-height: 1.25;
}

.sec-sub {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.75;
    max-width: 500px;
    margin: 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.step-card {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.step-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform 0.25s;
    transform-origin: left;
}

.step-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.step-card:hover::after {
    transform: scaleX(1);
}

.step-num-wrap {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand);
}

.step-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 6px;
}

.step-desc {
    font-size: 12.5px;
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0;
}

.forwho-section {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.forwho-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.forwho-panel {
    padding: 56px 52px;
    border-right: 1px solid var(--gray-200);
}

.forwho-panel:last-child {
    border-right: none;
}

.forwho-visual {
    height: 230px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 26px;
    box-shadow: var(--shadow);
    position: relative;
    background: linear-gradient(135deg, #ececff, #f9f9ff);
}

.buyer-visual::before,
.supplier-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(81, 81, 229, 0.22), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(23, 198, 83, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.1));
}

.visual-card {
    position: absolute;
    border: 1px solid rgba(81, 81, 229, 0.13);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(56, 71, 109, 0.14);
}

.visual-card.main {
    left: 36px;
    top: 42px;
    width: 58%;
    height: 118px;
}

.visual-card.main::before,
.visual-card.main::after,
.visual-card.small::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    height: 8px;
    border-radius: 8px;
    background: var(--gray-200);
}

.visual-card.main::before {
    top: 26px;
}

.visual-card.main::after {
    top: 48px;
    right: 70px;
    background: var(--brand-light);
}

.visual-card.small {
    right: 34px;
    width: 112px;
    height: 64px;
}

.visual-card.small.one {
    top: 54px;
}

.visual-card.small.two {
    top: 132px;
}

.visual-card.small::before {
    top: 28px;
}

.factory-bar {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 52px;
    height: 36px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(23, 198, 83, 0.2);
}

.factory-line {
    position: absolute;
    left: 54px;
    right: 54px;
    bottom: 70px;
    height: 3px;
    background: var(--success);
}

.factory-grid {
    position: absolute;
    left: 44px;
    right: 44px;
    top: 42px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.factory-grid span {
    height: 46px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.forwho-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 7px;
}

.forwho-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: 0;
    margin: 0 0 9px;
}

.forwho-sub {
    font-size: 13.5px;
    color: var(--gray-600);
    line-height: 1.75;
    margin: 0 0 22px;
}

.adv-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 26px;
    padding: 0;
}

.adv-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.adv-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.adv-icon-brand {
    background: var(--brand-light);
    color: var(--brand);
}

.adv-icon-success {
    background: var(--success-light);
    color: var(--success-dark);
}

.adv-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1px;
}

.adv-desc {
    display: block;
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.6;
}

.stats-band {
    background: var(--gray-900);
}

.stats-band-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.stat-block {
    padding: 40px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.stat-block:last-child {
    border-right: none;
}

.stat-total {
    background: rgba(81, 81, 229, 0.18);
}

.stat-cat {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-bottom: 6px;
}

.stat-num {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0;
    margin-bottom: 2px;
}

.stat-num-accent {
    color: #a5a5f5;
}

.stat-lbl {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-cta-section {
    text-align: center;
    padding: 72px 32px;
    background: var(--brand-lighter);
    border-top: 1px solid var(--brand-light);
}

.footer-cta-section h2 {
    max-width: 520px;
    margin: 0 auto 12px;
    font-size: 26px;
}

.footer-cta-section p {
    color: var(--gray-600);
    font-size: 14.5px;
    margin: 0 0 28px;
}

.footer-cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.site-footer {
    background: var(--gray-900);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-logo-text {
    font-size: 15px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo-text span {
    color: #a5a5f5;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.footer-nav-btns {
    display: flex;
    gap: 14px;
}

.footer-nav-btns a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-nav-btns a:hover {
    color: rgba(255, 255, 255, 0.7);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fu {
    animation: fadeUp 0.55s ease both;
}

.d1 {
    animation-delay: 0.08s;
}

.d2 {
    animation-delay: 0.15s;
}

.d3 {
    animation-delay: 0.23s;
}

.d4 {
    animation-delay: 0.32s;
}

@media (max-width: 960px) {
    .topbar {
        padding: 0 16px;
    }

    .topbar-nav {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    h1 {
        font-size: 28px;
    }

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

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

    .forwho-panel {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding: 36px 20px;
    }

    .stats-band-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .topbar {
        height: auto;
        min-height: 65px;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .screen {
        padding-top: 92px;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .hero-section,
    .how-section,
    .footer-cta-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-stats,
    .hero-cta {
        gap: 10px;
    }

    .steps-grid,
    .ametrics,
    .stats-band-inner {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-nav-btns {
        flex-wrap: wrap;
    }
}
