* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    /*color: var(--text);*/
    overflow-x: hidden;
}

:root,
html[data-theme="light"] {
    --accent: #34e88f;
    --bg: #ffffff;
    --surface: #ffffff;
    --soft: #f7f8fa;
    --surface-muted: #f1f1f1;
    --text: #111111;
    --text-strong: #151515;
    --text-soft: #222222;
    --muted: #777777;
    --muted-2: #9a9a9a;
    --placeholder: #b9b9b9;
    --line: rgba(17, 17, 17, 0.08);
    --line-strong: rgba(17, 17, 17, 0.12);
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.06);
    --card-shadow: 0 16px 42px rgba(0, 0, 0, 0.05);
    --button-bg: #181818;
    --button-text: #ffffff;
    --button-hover-text: #101010;
    --inverse-text: #ffffff;
    --coin-icon-text: #ffffff;
    --secondary-button-bg: #e8eaee;
    --qr-bg: #ffffff;
    --qr-color: #111111;
    --phone-shell: #111111;
    --video-bg: #000000;
    --phone-shadow: rgba(0, 0, 0, 0.75);
    --hover-row-bg: rgba(52, 232, 143, 0.08);
    --accent-border: rgba(52, 232, 143, 0.45);
    --accent-shadow: 0 24px 70px rgba(52, 232, 143, 0.16);
    --container: 1160px;
}

html[data-theme="dark"] {
    --bg: #070a0d;
    --surface: #0d1218;
    --soft: #111821;
    --surface-muted: #141c25;
    --text: #f3f7f5;
    --text-strong: #ffffff;
    --text-soft: #dce5e1;
    --muted: #93a09b;
    --muted-2: #74827d;
    --placeholder: #66736f;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.12);
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
    --card-shadow: 0 18px 48px rgba(0, 0, 0, 0.30);
    --button-bg: var(--accent);
    --button-text: #07100c;
    --button-hover-text: #07100c;
    --inverse-text: #ffffff;
    --coin-icon-text: #ffffff;
    --secondary-button-bg: #18222c;
    --qr-bg: #0d1218;
    --qr-color: #e9fff5;
    --phone-shell: #090d11;
    --video-bg: #000000;
    --phone-shadow: rgba(0, 0, 0, 0.85);
    --hover-row-bg: rgba(52, 232, 143, 0.12);
    --accent-border: rgba(52, 232, 143, 0.50);
    --accent-shadow: 0 24px 70px rgba(52, 232, 143, 0.12);
    color-scheme: dark;
}

.reveal {
    opacity: 0;
    transform: translateY(42px) scale(0.985);
    transition:
            opacity 0.8s ease,
            transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero {
    position: relative;
    width: 100%;
    min-height: 650px;
    padding: 58px 24px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    overflow: hidden;
    background: var(--bg);
}

.hero-left {
    position: relative;
    z-index: 5;
    width: min(520px, 48vw);
}

.hero-title {
    margin: 0 0 52px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-strong);
}

.hero-title span {
    color: var(--accent);
}

.register-form {
    width: min(435px, 100%);
    height: 52px;
    display: flex;
    align-items: center;
    background: var(--surface-muted);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 34px;
}

.register-form input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 22px;
    font-size: 15px;
    color: var(--text-soft);
}

.register-form input::placeholder {
    color: var(--placeholder);
}

.register-form button {
    min-width: 116px;
    height: 42px;
    margin-right: 6px;
    border: none;
    border-radius: 10px;
    background: var(--button-bg);
    color: var(--button-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.register-form button:hover {
    background: var(--accent);
    color: var(--button-hover-text);
    transform: translateY(-1px);
}



.login-form {
    width: min(435px, 100%);
    height: 52px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 34px;
}

.login-form input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 22px;
    font-size: 15px;
    color: var(--text-soft);
}

.login-form input::placeholder {
    color: var(--placeholder);
}

.login-form button {
    min-width: 116px;
    height: 42px;
    margin-right: 6px;
    border: none;
    border-radius: 10px;
    background: var(--button-bg);
    color: var(--button-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.login-form button:hover {
    background: var(--accent);
    color: var(--button-hover-text);
    transform: translateY(-1px);
}


.download {
    display: flex;
    align-items: center;
    gap: 24px;
}

.qr {
    position: relative;
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    background:
            linear-gradient(90deg, var(--qr-color) 8px, transparent 8px) 0 0 / 18px 18px,
            linear-gradient(var(--qr-color) 8px, transparent 8px) 0 0 / 18px 18px,
            var(--qr-bg);
    border: 2px solid var(--qr-color);
}

.qr::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
}

.download-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-soft);
}

.store-row {
    display: flex;
    gap: 14px;
}

.store-btn {
    width: 150px;
    height: 44px;
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--text-soft);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: 0.25s ease;
}

.store-btn:hover {
    background: var(--accent);
    color: var(--button-hover-text);
    transform: translateY(-2px);
}

.store-icon {
    font-size: 24px;
    line-height: 1;
}

.store-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.store-text small {
    font-size: 8px;
    font-weight: 500;
    margin-bottom: 3px;
}

.store-text strong {
    font-size: 16px;
    font-weight: 700;
}

.hero-right {
    position: relative;
    width: 360px;
    height: 510px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.green-bg {
    position: absolute;
    right: -46px;
    top: 58px;
    width: 315px;
    height: 405px;
    background: var(--accent);
    overflow: hidden;
}

.green-bg::before,
.green-bg::after {
    content: "";
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.green-bg::before {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    left: -115px;
    top: 94px;
}

.green-bg::after {
    width: 145px;
    height: 145px;
    right: -64px;
    top: 112px;
    transform: rotate(45deg);
}

.decor-box {
    position: absolute;
    right: -46px;
    bottom: 112px;
    width: 165px;
    height: 110px;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.star {
    position: absolute;
    width: 68px;
    height: 68px;
    background: rgba(52, 232, 143, 0.14);
    clip-path: polygon(50% 0%, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0% 50%, 38% 35%);
    opacity: 0.9;
}

.star-one {
    top: 16px;
    left: -20px;
}

.star-two {
    top: 34px;
    right: 0;
    width: 48px;
    height: 48px;
}

.phone-wrap {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: phoneFloat 4s ease-in-out infinite;
}

.phone-img {
    width: 230px;
    max-width: 70vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 22px 16px rgba(0, 0, 0, 0.26));
}

.phone-shadow {
    position: absolute;
    left: 50%;
    bottom: -34px;
    width: 116px;
    height: 10px;
    border-radius: 50%;
    background: var(--phone-shadow);
    transform: translateX(-50%);
    filter: blur(1px);
    animation: shadowPulse 4s ease-in-out infinite;
}

.market-section,
.guide-section,
.stats-section,
.platform-section {
    width: 100%;
    background: var(--bg);
}

.market-section {
    padding: 26px 20px 70px;
}

.guide-section {
    padding: 26px 20px 78px;
}

.stats-section {
    padding: 24px 20px 82px;
}

.platform-section {
    padding: 24px 20px 90px;
}

.market-container,
.guide-container,
.stats-container,
.platform-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

.market-title,
.guide-title,
.platform-title {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
}

.market-title {
    margin: 0 0 36px;
}

.market-card {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.market-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 24px 14px;
}

.market-tab {
    border: none;
    background: transparent;
    padding: 0;
    color: var(--muted-2);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.market-tab.active,
.market-tab:hover {
    color: var(--text);
}

.market-row {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.1fr 0.9fr;
    align-items: center;
    min-height: 64px;
    padding: 0 24px;
    transition: 0.25s ease;
}

.market-row:not(.market-head):hover {
    background: var(--hover-row-bg);
}

.market-head {
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
}

.pair {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.coin-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--coin-icon-text);
    font-size: 17px;
    font-weight: 800;
    flex-shrink: 0;
}

.btc { background: #f7931a; }
.eth { background: #627eea; }
.xrp { background: #23292f; }
.trx { background: #ec002b; }
.sol { background: linear-gradient(135deg, #14f195, #9945ff); }
.doge { background: #c2a633; }

.price {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.change {
    font-size: 16px;
    font-weight: 600;
}

.change.down { color: #ff3b55; }
.change.up { color: #00c889; }

.trend {
    display: flex;
    justify-content: flex-end;
}

.sparkline {
    width: 108px;
    height: 38px;
}

.sparkline path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sparkline.down path { stroke: #ff3b55; }
.sparkline.up path { stroke: #00c889; }

.market-more {
    display: flex;
    justify-content: center;
    padding: 14px 0 24px;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    transition: 0.25s ease;
}

.more-link:hover {
    color: var(--accent);
}

.more-link span {
    font-size: 21px;
    line-height: 1;
}

.guide-title {
    margin: 0 0 42px;
    text-align: center;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.guide-card {
    min-height: 380px;
    padding: 32px 28px 30px;
    border-radius: 22px;
    background: var(--soft);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-border);
    box-shadow: var(--accent-shadow);
}

.guide-art {
    width: 165px;
    height: 128px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-art img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 30px;
    filter: drop-shadow(0 16px 20px rgba(52, 232, 143, 0.16));
}

.guide-card h3 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-strong);
}

.guide-card p {
    margin: 0 auto 28px;
    max-width: 330px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
}

.guide-btn {
    margin-top: auto;
    min-width: 166px;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: none;
    background: var(--secondary-button-bg);
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.guide-btn.primary {
    background: var(--accent);
    color: var(--button-hover-text);
}

.guide-btn:hover {
    background: var(--phone-shell);
    color: var(--inverse-text);
    transform: translateY(-2px);
}

.stats-card {
    width: 100%;
    padding: 42px 50px;
    border-radius: 26px;
    background:
            linear-gradient(135deg, rgba(52, 232, 143, 0.10), rgba(52, 232, 143, 0.02)),
            var(--soft);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.stat-value {
    font-size: clamp(36px, 4vw, 46px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    white-space: nowrap;
    transition: 0.25s ease;
}

.stat-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.stat-item:hover .stat-value {
    color: var(--accent);
}

.platform-container {
    min-height: 480px;
    display: grid;
    grid-template-columns: 340px 1fr;
    align-items: center;
    gap: 62px;
}

.platform-video-wrap {
    position: relative;
    width: 245px;
    height: 490px;
    margin: 0 auto;
    border-radius: 40px;
    padding: 9px;
    background: var(--phone-shell);
    border: 2px solid rgba(52, 232, 143, 0.35);
    box-shadow:
            0 24px 65px rgba(0, 0, 0, 0.18),
            0 0 0 8px rgba(52, 232, 143, 0.06);
    overflow: hidden;
}

.platform-video-wrap::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 88px;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 0 0 15px 15px;
    background: var(--phone-shell);
    z-index: 3;
}

.platform-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 31px;
    display: block;
    background: var(--video-bg);
}

.platform-content {
    text-align: center;
    min-width: 0;
}

.platform-title {
    margin: 0 0 64px;
}

.platform-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: center;
}

.platform-link {
    min-height: 112px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 22px;
    background: var(--soft);
    border: 1px solid var(--line);
    box-shadow: var(--card-shadow);
    transition: 0.25s ease;
}

.platform-link:hover {
    transform: translateY(-6px);
    border-color: var(--accent-border);
    box-shadow: var(--accent-shadow);
}

.platform-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 38px;
    line-height: 1;
}

.platform-icon.testflight {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--text);
    color: var(--accent);
    font-size: 28px;
}

.platform-icon.android {
    font-size: 34px;
}

.platform-link span {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-strong);
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@keyframes shadowPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.75;
    }

    50% {
        transform: translateX(-50%) scale(0.84);
        opacity: 0.42;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
}

@media (max-width: 1050px) {
    :root {
        --container: 960px;
    }

    .hero {
        gap: 36px;
    }

    .hero-left {
        width: min(470px, 50vw);
    }

    .hero-right {
        width: 320px;
        height: 470px;
    }

    .phone-img {
        width: 250px;
    }

    .green-bg {
        width: 280px;
        height: 370px;
        right: -38px;
    }

    .guide-grid {
        gap: 18px;
    }

    .guide-card {
        padding: 28px 20px;
    }

    .stats-card {
        padding: 38px 30px;
    }

    .stat-item {
        flex-direction: column;
        align-items: center;
        gap: 7px;
    }

    .platform-container {
        grid-template-columns: 300px 1fr;
        gap: 42px;
    }

    .platform-title {
        margin-bottom: 44px;
    }

    .platform-video-wrap {
        width: 225px;
        height: 455px;
    }
}

@media (max-width: 880px) {
    .hero {
        min-height: auto;
        padding: 54px 18px 380px;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
    }

    .hero-left {
        width: 100%;
        max-width: none;
    }

    .hero-title {
        margin-bottom: 36px;
    }

    .hero-right {
        position: absolute;
        top: auto;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 360px;
    }

    .green-bg {
        top: 28px;
        right: 0;
        width: 72%;
        height: 290px;
    }

    .phone-img {
        width: 215px;
    }

    .star-one {
        top: 20px;
        left: 25%;
    }

    .star-two {
        right: 14%;
    }

    .market-row {
        grid-template-columns: 1.7fr 1fr 1fr;
    }

    .market-row > :nth-child(4) {
        display: none;
    }

    .guide-grid,
    .stats-card,
    .platform-container,
    .platform-links {
        grid-template-columns: 1fr;
    }

    .guide-card {
        min-height: 340px;
    }

    .stat-item {
        align-items: flex-start;
    }

    .platform-content {
        order: -1;
    }

    .platform-container {
        gap: 46px;
    }

    .platform-title {
        margin-bottom: 30px;
    }

    .platform-link {
        min-height: 88px;
    }
}

@media (max-width: 620px) {
    .market-section,
    .guide-section,
    .stats-section,
    .platform-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .market-title,
    .guide-title,
    .platform-title {
        font-size: 32px;
    }

    .register-form {
        height: 50px;
    }

    .register-form button {
        min-width: 104px;
        font-size: 13px;
    }

    .login-form {
        height: 50px;
    }

    .login-form button {
        min-width: 104px;
        font-size: 13px;
    }

    .download {
        align-items: flex-start;
        gap: 16px;
    }

    .store-row {
        flex-direction: column;
        gap: 10px;
    }

    .store-btn {
        width: 158px;
    }

    .qr {
        width: 66px;
        height: 66px;
    }

    .market-card,
    .guide-card,
    .stats-card,
    .platform-link {
        border-radius: 18px;
    }

    .market-tabs {
        padding: 20px 14px 10px;
    }

    .market-row {
        grid-template-columns: 1.35fr 0.9fr 0.75fr;
        min-height: 60px;
        padding: 0 14px;
        gap: 8px;
    }

    .market-head {
        font-size: 12px;
    }

    .pair {
        gap: 8px;
        font-size: 13px;
    }

    .coin-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .price,
    .change {
        font-size: 13px;
    }

    .guide-card h3 {
        font-size: 22px;
    }

    .stats-card {
        padding: 30px 20px;
        gap: 28px;
    }

    .stat-value {
        font-size: 34px;
    }

    .platform-video-wrap {
        width: 210px;
        height: 430px;
        border-radius: 34px;
    }

    .platform-video {
        border-radius: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .phone-wrap,
    .phone-shadow {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.market-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    align-items: center;
    min-height: 64px;
    padding: 0 24px;
    transition: 0.25s ease;
}

.coin-icon.img-icon {
    background: transparent;
    overflow: hidden;
}

.coin-icon.img-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.volume {
    color: #111111;
    font-size: 16px;
    font-weight: 700;
}

.coin-graphics {
    width: 112px;
    height: 42px;
    margin-left: auto;
}

.coin-graphics canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

@media (max-width: 900px) {
    .market-row {
        grid-template-columns: 1.7fr 1fr 1fr 1fr;
    }

    .market-row > :nth-child(5) {
        display: none;
    }
}

@media (max-width: 620px) {
    .market-row {
        grid-template-columns: 1.35fr 0.9fr 0.75fr;
        min-height: 60px;
        padding: 0 14px;
        gap: 8px;
    }

    .market-row > :nth-child(3) {
        display: none;
    }

    .market-row > :nth-child(5) {
        display: none;
    }
}