:root {
    --qfx-bg: #010b4f;
    --qfx-bg-soft: #08165f;
    --qfx-card: #02104f;
    --qfx-border: #152b7d;
    --qfx-gold: #dec469;
    --qfx-text: #f8f9ff;
    --qfx-muted: #b7bfd9;
    --qfx-green: #13cf7d;
    --qfx-red: #ef6f73;
    --qfx-font-body: "Manrope", sans-serif;
    --qfx-font-heading: "Poppins", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--qfx-font-body);
    color: var(--qfx-text);
    background: radial-gradient(circle at 20% 0%, #1a2384 0%, var(--qfx-bg) 40%);
}

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

.qfx-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.qfx-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(4, 15, 87, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(222, 196, 105, 0.18);
}

.qfx-header .qfx-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 18px;
}

.qfx-logo img {
    width: 150px;
    height: auto;
    display: block;
}

.qfx-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 600;
}

.qfx-nav a {
    opacity: 0.95;
}

.qfx-dropdown {
    position: relative;
}

.qfx-drop-trigger {
    background: transparent;
    border: 0;
    color: var(--qfx-text);
    opacity: 0.95;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qfx-drop-trigger::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.8px solid rgba(255, 255, 255, 0.85);
    border-bottom: 1.8px solid rgba(255, 255, 255, 0.85);
    transform: rotate(45deg) translateY(-2px);
}

.qfx-drop-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    min-width: 210px;
    padding: 10px 0;
    border-radius: 10px;
    background: #061762;
    border: 1px solid rgba(222, 196, 105, 0.2);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.qfx-drop-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #e9ecff;
}

.qfx-drop-menu a:hover {
    background: rgba(255, 255, 255, 0.07);
}

.qfx-dropdown:hover .qfx-drop-menu,
.qfx-dropdown:focus-within .qfx-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.qfx-btn {
    border-radius: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.qfx-btn-primary {
    color: #10131e;
    background: linear-gradient(90deg, #cfac4d 0%, #f0de9b 100%);
}

.qfx-btn-outline {
    color: var(--qfx-text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.24);
}

.qfx-btn-block {
    margin-top: 14px;
    width: 100%;
}

.qfx-main {
    padding-bottom: 54px;
}

.qfx-bg-section {
    position: relative;
    isolation: isolate;
}

.qfx-bg-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--qfx-bg-image);
    background-size: cover;
    background-position: top center;
    opacity: 0.34;
    pointer-events: none;
}

.qfx-bg-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(1, 11, 79, 0.85), rgba(1, 11, 79, 0.93));
    pointer-events: none;
}

.qfx-section {
    padding: 64px 0;
}

.qfx-tight {
    padding-top: 36px;
    padding-bottom: 36px;
}

.qfx-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: clamp(31px, 4vw, 54px);
    line-height: 1.1;
    color: var(--qfx-gold);
    font-family: var(--qfx-font-heading);
    font-weight: 700;
}

.qfx-title.left {
    text-align: left;
}

.qfx-subtitle {
    margin: 0 0 30px;
    text-align: center;
    color: var(--qfx-muted);
}

.qfx-hero {
    padding: 78px 0 72px;
}

.qfx-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
}

.qfx-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(42px, 5vw, 76px);
    line-height: 1.03;
    color: var(--qfx-gold);
}

.qfx-hero p {
    margin: 0 0 26px;
    font-size: clamp(24px, 2.3vw, 48px);
    font-weight: 800;
}

.qfx-hero-art {
    min-height: 350px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(6, 27, 138, 0.3) 0%, rgba(12, 21, 64, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 30px 20px;
}

.qfx-bars-3d {
    position: relative;
    width: min(420px, 100%);
    height: 280px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 22px;
    perspective: 700px;
}

.qfx-bars-3d::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 18px;
    background: linear-gradient(90deg, rgba(194, 167, 76, 0.15), rgba(240, 220, 140, 0.25));
    filter: blur(4px);
}

.qfx-bar {
    position: relative;
    width: 58px;
    border-radius: 6px 6px 2px 2px;
    transform: skewY(-8deg) rotateX(8deg);
    box-shadow: -18px 14px 28px rgba(0, 0, 0, 0.36);
}

.qfx-bar::before,
.qfx-bar::after {
    content: "";
    position: absolute;
}

.qfx-bar::before {
    left: -14px;
    top: 7px;
    width: 14px;
    height: calc(100% - 7px);
    background: linear-gradient(180deg, rgba(107, 85, 20, 0.9), rgba(59, 43, 11, 0.95));
    transform: skewY(42deg);
    transform-origin: right top;
}

.qfx-bar::after {
    left: 0;
    top: -12px;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #e0c56c, #f2de98);
    transform: skewX(48deg);
    transform-origin: left bottom;
}

.qfx-bar span {
    position: absolute;
    inset: 8px 6px 0;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(255, 251, 225, 0.52), rgba(255, 226, 122, 0.12));
}

.qfx-bar-1 {
    height: 96px;
    background: linear-gradient(180deg, #5d6476 0%, #3f4557 100%);
}

.qfx-bar-2 {
    height: 138px;
    background: linear-gradient(180deg, #6f778c 0%, #474f62 100%);
}

.qfx-bar-3 {
    height: 178px;
    background: linear-gradient(180deg, #8f99b0 0%, #545f75 100%);
}

.qfx-bar-4 {
    height: 228px;
    background: linear-gradient(180deg, #d7b55a 0%, #a77f2e 100%);
}

.qfx-growth-arrow {
    position: absolute;
    left: 48px;
    bottom: 138px;
    width: 290px;
    height: 6px;
    background: linear-gradient(90deg, #e0c66d 0%, #f5e6b2 100%);
    transform: rotate(30deg);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(230, 203, 108, 0.45);
}

.qfx-growth-arrow::before {
    content: "";
    position: absolute;
    right: -7px;
    top: -7px;
    border-left: 18px solid #f3df9b;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.qfx-cards {
    display: grid;
    gap: 20px;
}

.qfx-cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qfx-card {
    background: linear-gradient(180deg, #04135b 0%, #010a3f 100%);
    border: 1px solid var(--qfx-border);
    border-radius: 12px;
    padding: 28px;
}

.qfx-card h3 {
    margin: 0 0 12px;
    font-size: 38px;
}

.qfx-card h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--qfx-gold);
}

.qfx-card p,
.qfx-card li {
    color: var(--qfx-muted);
    line-height: 1.65;
}

.qfx-card ul {
    margin: 14px 0;
    padding-left: 18px;
}

.qfx-card > a:first-of-type {
    display: inline-block;
    margin-top: 4px;
    margin-bottom: 6px;
    text-decoration: underline;
    font-weight: 700;
}

.qfx-tier {
    position: relative;
    overflow: hidden;
    border: 0;
    min-height: 640px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.qfx-tier h4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(240, 240, 246, 0.72);
    color: #2e365d;
    font-size: 14px;
    font-weight: 700;
    margin-top: 225px;
    margin-bottom: 12px;
    font-family: var(--qfx-font-heading);
}

.qfx-tier h3 {
    color: #1a2248;
    font-size: clamp(28px, 1.95vw, 42px);
    line-height: 1.25;
    margin: 0 0 18px;
    font-family: var(--qfx-font-heading);
    font-weight: 700;
}

.qfx-tier ul {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.qfx-tier li {
    position: relative;
    color: #2f3658;
    padding-left: 28px;
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 1.45;
    font-family: var(--qfx-font-body);
    font-weight: 500;
}

.qfx-tier li::before {
    content: "⊙";
    position: absolute;
    left: 0;
    top: 0;
    color: #2f3658;
    font-size: 15px;
    font-weight: 700;
}

.qfx-tier-prime {
    background: linear-gradient(165deg, #aebbe9 0%, #c8d0ef 45%, #9caee2 100%);
}

.qfx-tier:not(.qfx-tier-prime):not(.qfx-tier-legacy) {
    background: linear-gradient(165deg, #f3f4f8 0%, #e5e7ee 48%, #f7f8fb 100%);
}

.qfx-tier-legacy {
    background: linear-gradient(165deg, #ddc169 0%, #f6ecbe 52%, #d6b14f 100%);
}

.qfx-tier-orb {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 174px;
    height: 174px;
    border-radius: 50%;
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.22));
}

.qfx-tier-orb::before,
.qfx-tier-orb::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.qfx-tier-orb-prime {
    background:
        radial-gradient(circle at 35% 35%, rgba(210, 241, 255, 0.9), rgba(116, 170, 233, 0.75) 62%, rgba(94, 147, 217, 0.85) 100%);
    box-shadow: inset -18px -20px 40px rgba(47, 106, 188, 0.35), inset 18px 16px 28px rgba(230, 246, 255, 0.65);
}

.qfx-tier-orb-prime::before {
    inset: 18px;
    border: 2px solid rgba(233, 247, 255, 0.55);
}

.qfx-tier-orb-prime::after {
    inset: 40px;
    border: 2px solid rgba(215, 237, 254, 0.52);
}

.qfx-tier-orb-elite {
    background:
        radial-gradient(circle at 35% 30%, #f6f8ff 0%, #bfc8db 40%, #7a8298 68%, #292e39 100%);
    box-shadow: inset -14px -18px 34px rgba(24, 27, 33, 0.55), inset 12px 12px 24px rgba(255, 255, 255, 0.4);
}

.qfx-tier-orb-elite::before {
    width: 112px;
    height: 112px;
    top: 20px;
    left: 40px;
    border: 10px solid rgba(255, 255, 255, 0.48);
    border-left-color: rgba(66, 71, 86, 0.58);
}

.qfx-tier-orb-elite::after {
    width: 142px;
    height: 142px;
    top: 18px;
    left: 20px;
    border: 8px solid rgba(54, 58, 71, 0.44);
    border-right-color: rgba(235, 241, 255, 0.48);
}

.qfx-tier-orb-legacy {
    background:
        radial-gradient(circle at 42% 30%, #ffe996 0%, #ffcb3a 32%, #bf8930 70%, #6c471f 100%);
    box-shadow: inset -14px -18px 32px rgba(98, 64, 21, 0.5), inset 10px 10px 24px rgba(255, 247, 205, 0.58);
}

.qfx-tier-orb-legacy::before {
    width: 148px;
    height: 148px;
    top: 18px;
    left: 17px;
    border: 8px solid rgba(255, 216, 95, 0.52);
    border-left-color: rgba(106, 68, 25, 0.55);
}

.qfx-tier-orb-legacy::after {
    width: 102px;
    height: 102px;
    top: 38px;
    left: 40px;
    border: 8px solid rgba(255, 230, 140, 0.52);
    border-right-color: rgba(121, 80, 26, 0.52);
}

.qfx-bonus {
    border-radius: 16px;
    border: 1px solid rgba(140, 168, 255, 0.28);
    background:
        linear-gradient(180deg, rgba(3, 46, 130, 0.42), rgba(8, 31, 93, 0.5)),
        url('http://127.0.0.1:8080/frontend-reference/bonus');
    background-size: cover;
    background-position: center;
    padding: 20px 28px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.qfx-bonus span {
    display: inline-block;
    font-size: clamp(110px, 12vw, 215px);
    font-weight: 800;
    color: var(--qfx-gold);
    line-height: 0.84;
    letter-spacing: -0.04em;
}

.qfx-bonus h3 {
    margin: -6px 0 8px;
    font-size: clamp(46px, 4.3vw, 74px);
    color: var(--qfx-gold);
    line-height: 1;
}

.qfx-bonus p {
    margin: 0;
    color: #e9edf9;
    font-size: clamp(22px, 1.55vw, 28px);
    max-width: 760px;
}

.qfx-bonus-cta {
    display: block;
    width: 100%;
    border-radius: 10px;
    padding: 14px 22px;
    text-align: center;
    font-size: clamp(27px, 1.5vw, 31px);
    font-weight: 800;
    color: #12192f;
    background: linear-gradient(90deg, #cca849 0%, #f2dd95 100%);
    border: 1px solid rgba(255, 222, 120, 0.45);
}

.qfx-two-col {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.qfx-table-wrap {
    margin-top: 26px;
    border: 1px solid var(--qfx-border);
    border-radius: 14px;
    overflow: auto;
}

.qfx-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(2, 11, 62, 0.92);
}

.qfx-table th,
.qfx-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    white-space: nowrap;
}

.qfx-table th {
    color: var(--qfx-muted);
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.up {
    color: var(--qfx-green);
}

.down {
    color: var(--qfx-red);
}

.qfx-demo {
    margin-top: 26px;
    border: 1px solid var(--qfx-border);
    border-radius: 14px;
    padding: 20px;
    background: linear-gradient(90deg, #07155f 0%, #0e2f8e 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.qfx-demo h3 {
    margin: 0 0 6px;
    font-size: 38px;
}

.qfx-ticker {
    margin-top: 18px;
    border: 1px solid var(--qfx-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #1b1b1b;
    padding: 8px 0;
    overflow: hidden;
    font-size: 13px;
}

.qfx-ticker-track {
    display: flex;
    align-items: center;
    gap: 34px;
    white-space: nowrap;
    width: max-content;
    animation: qfxTickerLoop 28s linear infinite;
    will-change: transform;
}

.qfx-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
}

.qfx-ticker-item .symbol {
    font-weight: 700;
    color: #2b2d3f;
}

.qfx-ticker-item .price {
    color: #4b4f68;
}

.qfx-ticker-item .change {
    font-weight: 700;
}

.qfx-ticker-item .change.up {
    color: #0e9f5b;
}

.qfx-ticker-item .change.down {
    color: #c8384c;
}

@keyframes qfxTickerLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.qfx-step-box {
    border: 1px solid var(--qfx-border);
    border-radius: 14px;
    background: rgba(1, 10, 63, 0.9);
    overflow: hidden;
}

.qfx-step {
    padding: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qfx-step:last-child {
    border-bottom: 0;
}

.qfx-step h3 {
    margin: 0 0 10px;
    font-size: 36px;
}

.qfx-step p {
    margin: 0;
    color: var(--qfx-muted);
}

.qfx-growth-art {
    border-radius: 16px;
    min-height: 350px;
    background:
        linear-gradient(to top, rgba(222, 196, 105, 0.9) 0 55%, transparent 55% 100%) right 50px bottom 30px / 72px 250px no-repeat,
        linear-gradient(to top, rgba(175, 183, 206, 0.92) 0 55%, transparent 55% 100%) right 145px bottom 30px / 72px 180px no-repeat,
        linear-gradient(to top, rgba(70, 74, 97, 0.95) 0 55%, transparent 55% 100%) right 240px bottom 30px / 72px 130px no-repeat,
        linear-gradient(140deg, #0d1f7a 0%, #04135f 100%);
    border: 1px solid var(--qfx-border);
}

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

.qfx-faq details {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: rgba(4, 15, 87, 0.55);
}

.qfx-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.qfx-faq p {
    margin: 12px 0 4px;
    color: var(--qfx-muted);
    line-height: 1.7;
}

.qfx-withdraw-alert {
    position: fixed;
    right: 22px;
    top: 92px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px) translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.qfx-withdraw-alert.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) translateY(0);
}

.qfx-withdraw-alert-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 330px;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(222, 196, 105, 0.42);
    background: linear-gradient(135deg, rgba(4, 14, 71, 0.98), rgba(10, 27, 106, 0.98));
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.36);
}

.qfx-withdraw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #17ca79;
    box-shadow: 0 0 0 6px rgba(23, 202, 121, 0.2);
    flex-shrink: 0;
}

.qfx-withdraw-alert p {
    margin: 0;
    color: #eaf0ff;
    font-size: 14px;
    line-height: 1.45;
    flex: 1;
}

.qfx-withdraw-close {
    border: 0;
    background: transparent;
    color: #c7d0f4;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}

.qfx-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 48px 0 56px;
    background: #01093b;
}

.qfx-footer-top {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 18px;
}

.qfx-footer h4 {
    margin: 0 0 10px;
    color: var(--qfx-text);
}

.qfx-footer p {
    margin: 0 0 8px;
    color: #98a2cd;
    line-height: 1.5;
}

.qfx-footer-logo {
    width: 170px;
    display: block;
    margin-bottom: 16px;
}

.qfx-socials {
    display: flex;
    gap: 9px;
}

.qfx-socials span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--qfx-muted);
}

.qfx-disclaimer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qfx-disclaimer p {
    font-size: 13px;
    color: #8993be;
    margin-bottom: 10px;
}

@media (max-width: 1100px) {
    .qfx-nav {
        display: none;
    }
}

@media (max-width: 900px) {
    .qfx-hero-grid,
    .qfx-two-col,
    .qfx-cards-3,
    .qfx-footer-top {
        grid-template-columns: 1fr;
    }

    .qfx-actions .qfx-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .qfx-demo {
        flex-direction: column;
        align-items: flex-start;
    }

    .qfx-bonus {
        padding: 18px;
    }

    .qfx-bonus h3 {
        margin-top: 6px;
    }

    .qfx-tier {
        min-height: 0;
    }

    .qfx-tier h4 {
        margin-top: 195px;
    }

    .qfx-tier h3 {
        font-size: 34px;
    }

    .qfx-withdraw-alert {
        right: 12px;
        top: 84px;
        left: auto;
    }

    .qfx-withdraw-alert-inner {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}
