:root {
    color-scheme: dark;
    --bg: #0b0d12;
    --panel: #12151d;
    --panel-2: #171b25;
    --line: rgba(255,255,255,.09);
    --muted: #9098aa;
    --text: #f5f7fb;
    --accent: #6f7cff;
    --accent-2: #9c7cff;
    --success: #40d39c;
    --danger: #ff6b74;
    --warning: #f3c66b;
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(111,124,255,.12), transparent 32rem),
        radial-gradient(circle at 95% 18%, rgba(156,124,255,.08), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.page-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.topbar {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-weight: 800;
    background:
        linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 30px rgba(111,124,255,.28);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 16px;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
}

.ghost-button,
.text-button,
.small-button,
.copy-button {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255,255,255,.035);
}

.ghost-button {
    padding: 10px 16px;
    border-radius: 12px;
}

.hero {
    padding: 75px 0 65px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 54px;
    align-items: center;
}

.eyebrow,
.section-kicker,
.modal-kicker {
    color: #9ba5ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
}

.hero h1 {
    margin: 16px 0 20px;
    max-width: 760px;
    font-size: clamp(48px, 8vw, 92px);
    line-height: .96;
    letter-spacing: -.055em;
}

.hero-copy > p {
    max-width: 580px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.hero-tags span {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #b8bfd0;
    font-size: 12px;
}

.hero-card {
    min-height: 300px;
    padding: 30px;
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(111,124,255,.15), rgba(255,255,255,.03)),
        var(--panel);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.hero-card-label,
.hero-small {
    color: var(--muted);
    font-size: 13px;
}

.network-name {
    margin-top: 38px;
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.asset-name {
    color: #aab2c5;
}

.hero-separator {
    height: 1px;
    background: var(--line);
    margin: 46px 0 22px;
}

.products-section,
.how-section {
    padding: 60px 0;
}

.section-heading {
    margin-bottom: 26px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.section-heading h2 {
    margin: 6px 0 0;
    font-size: 34px;
    letter-spacing: -.03em;
}

.text-button {
    padding: 8px 12px;
    border-radius: 10px;
}

.loading-card,
.empty-card {
    padding: 45px 24px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18,21,29,.85);
    transition:
        transform .18s ease,
        border-color .18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139,150,255,.35);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.product-card h3 {
    margin: 28px 0 10px;
    font-size: 21px;
}

.product-description {
    flex: 1;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.price-row {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.price strong {
    display: block;
    font-size: 25px;
}

.price small {
    color: var(--muted);
}

.buy-button,
.primary-button {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px rgba(111,124,255,.18);
}

.buy-button {
    padding: 11px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.buy-button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.step {
    padding: 28px 24px;
    min-height: 190px;
    background: rgba(18,21,29,.56);
}

.step + .step {
    border-left: 1px solid var(--line);
}

.step > span {
    color: #8e99ff;
    font-size: 12px;
    font-weight: 800;
}

.step strong {
    display: block;
    margin-top: 40px;
}

.step p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

footer {
    padding: 36px 0 50px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: #737b8c;
    font-size: 12px;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 18px;
    background: rgba(4,5,8,.78);
    backdrop-filter: blur(14px);
    overflow-y: auto;
}

.overlay[hidden],
[hidden] {
    display: none !important;
}

.modal {
    position: relative;
    width: min(620px, 100%);
    margin: max(34px, 5vh) auto;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #11141c;
    box-shadow: 0 30px 100px rgba(0,0,0,.5);
}

.modal h2 {
    margin: 8px 0 26px;
    font-size: 30px;
    letter-spacing: -.03em;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 37px;
    height: 37px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-size: 23px;
}

.quantity-area > label,
.field > span {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 13px;
}

.quantity-row {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    margin-bottom: 20px;
}

.quantity-row button,
.quantity-row input {
    height: 48px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--text);
}

.quantity-row button:first-child {
    border-radius: 12px 0 0 12px;
}

.quantity-row button:last-child {
    border-radius: 0 12px 12px 0;
}

.quantity-row input {
    width: 100%;
    text-align: center;
    outline: none;
}

.full {
    width: 100%;
}

.primary-button,
.secondary-button {
    padding: 14px 18px;
    border-radius: 13px;
    font-weight: 750;
}

.secondary-button {
    margin-top: 18px;
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--panel-2);
}

.status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(243,198,107,.12);
    color: var(--warning);
    font-size: 12px;
    font-weight: 700;
}

.countdown {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.warning-box,
.token-warning {
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.55;
}

.warning-box {
    margin-bottom: 18px;
    color: #d6c28f;
    background: rgba(243,198,107,.08);
    border: 1px solid rgba(243,198,107,.16);
}

.token-warning {
    margin-top: 10px;
    color: #9da5b7;
    background: rgba(255,255,255,.025);
}

.payment-amount-card {
    position: relative;
    padding: 20px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(111,124,255,.15), rgba(156,124,255,.07)),
        var(--panel-2);
    border: 1px solid rgba(130,140,255,.2);
}

.payment-amount-card > span,
.address-card > span,
.order-meta span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
}

.payment-amount-card strong {
    font-size: 38px;
    letter-spacing: -.04em;
}

.payment-amount-card small {
    margin-left: 5px;
    color: var(--muted);
}

.copy-button {
    padding: 8px 11px;
    border-radius: 10px;
}

.payment-amount-card .copy-button {
    position: absolute;
    right: 16px;
    bottom: 16px;
}

.payment-layout {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
}

.qr-card,
.address-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}

.qr-card {
    text-align: center;
}

.qr-card img {
    display: block;
    width: 118px;
    height: 118px;
    margin: 0 auto 8px;
    border-radius: 8px;
    background: white;
}

.qr-card small {
    color: var(--muted);
    font-size: 10px;
}

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

.address-card code {
    display: block;
    margin: 7px 0 13px;
    overflow-wrap: anywhere;
    color: #e8eaff;
    line-height: 1.55;
}

.order-meta {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.order-meta > div {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.order-meta code {
    overflow-wrap: anywhere;
}

.token-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.small-button {
    padding: 5px 9px;
    border-radius: 8px;
}

.payment-message,
.form-message {
    margin-top: 16px;
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.delivery-area {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid rgba(64,211,156,.22);
    border-radius: 18px;
    background: rgba(64,211,156,.06);
}

.success-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--success);
    color: #08120e;
    font-size: 23px;
    font-weight: 900;
}

.delivery-area h3 {
    margin: 14px 0 5px;
}

.delivery-area p {
    color: var(--muted);
}

.card-list {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.delivered-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    border-radius: 12px;
    background: rgba(0,0,0,.2);
}

.delivered-card code {
    overflow-wrap: anywhere;
    color: #e9fff7;
}

.field {
    display: block;
    margin-bottom: 16px;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-2);
    color: var(--text);
    outline: none;
}

.field input:focus {
    border-color: rgba(111,124,255,.65);
}

.toast {
    position: fixed;
    z-index: 200;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #202431;
    box-shadow: 0 15px 40px rgba(0,0,0,.3);
    font-size: 13px;
}

@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 48px;
    }

    .hero-card {
        min-height: 230px;
    }

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

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

    .step:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .step:nth-child(4) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 580px) {
    .page-shell {
        width: min(100% - 24px, 1180px);
    }

    .topbar {
        height: 70px;
    }

    .hero {
        padding: 42px 0;
    }

    .hero h1 {
        font-size: 52px;
    }

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

    .step + .step {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .modal {
        margin: 10px auto;
        padding: 24px 18px;
        border-radius: 22px;
    }

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

    .qr-card img {
        width: 150px;
        height: 150px;
    }

    .payment-amount-card strong {
        font-size: 30px;
    }

    .payment-amount-card .copy-button {
        position: static;
        display: block;
        margin-top: 14px;
    }

    footer {
        gap: 10px;
        flex-direction: column;
    }
}
