@import url("fonts.css");

:root {
    --navy: #112544;
    --deep: #0b1930;
    --red: #df1d31;
    --ink: #17253b;
    --muted: #66738a;
    --line: #dce2eb;
    --bg: #f5f7fb
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Manrope, Arial, sans-serif;
    color: var(--ink);
    background: #fff
}

a {
    color: inherit;
    text-decoration: none
}

button,
input {
    font: inherit
}

.container {
    width: min(1320px, calc(100% - 72px));
    margin-inline: auto
}

.header {
    background: white;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 30
}

.header-row {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px
}

.logo img {
    display: block;
    width: 146px
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 32px)
}

.desktop-nav a {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    padding: 29px 0 26px;
    border-bottom: 3px solid transparent
}

.desktop-nav a.active,
.desktop-nav a:hover {
    border-color: var(--red)
}

.mobile-nav {
    display: none;
    position: relative
}

.mobile-nav summary {
    cursor: pointer;
    list-style: none;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 9px
}

.mobile-nav summary::-webkit-details-marker {
    display: none
}

.mobile-nav summary span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--navy);
    margin: 5px
}

.mobile-nav nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 255px;
    max-width: calc(100vw - 30px);
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 35px #12213d29;
    padding: 10px;
    display: flex;
    flex-direction: column
}

.mobile-nav nav a {
    padding: 13px;
    border-radius: 8px;
    font-size: 14px
}

.mobile-nav nav a:hover {
    background: var(--bg);
    color: var(--red)
}

.hero {
    background: linear-gradient(110deg, #0e2242, #173f6b);
    overflow: hidden;
    color: white
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 430px;
    align-items: center;
    gap: 25px
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 55px 0
}

.eyebrow,
.section-overline {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--red)
}

.hero .eyebrow {
    color: #e4eaf5
}

.hero h1 {
    font-size: clamp(34px, 3.5vw, 55px);
    line-height: 1.14;
    letter-spacing: -.035em;
    margin: 20px 0;
    border-left: 7px solid var(--red);
    padding-left: 22px
}

.hero h1 span {
    color: #fff
}

.hero-copy>p:not(.eyebrow) {
    color: #dbe5f3;
    line-height: 1.75;
    font-size: 16px;
    max-width: 560px
}

.hero-action {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    background: var(--red);
    padding: 15px 24px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 800;
    margin-top: 12px
}

.hero-action:hover {
    background: #b80d23
}

.hero-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 26px;
    font-size: 11px;
    color: #d7e2f0
}

.hero-tags span:before {
    content: '✓';
    color: #ff5b69;
    margin-right: 6px
}

.hero-visual {
    height: 100%;
    display: flex;
    align-items: end;
    position: relative
}

.hero-visual img {
    width: 118%;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px #08152e40)
}

.ticker {
    background: #10223e;
    color: #dbe5f4
}

.ticker-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 17px 0;
    font-size: 12px
}

.ticker-inner span:first-child {
    font-weight: 800;
    color: #fff;
    letter-spacing: .1em
}

.exchange-area {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(280px, .85fr);
    gap: 25px;
    padding-block: 55px 70px;
    align-items: start;
    background: #fff
}

.exchange-card,
.market-card {
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px #1727440c;
    border-radius: 15px;
    padding: 32px;
    min-width: 0
}

.exchange-card h2,
.market-card h2,
.features h2,
.about h2 {
    font-size: clamp(23px, 2.1vw, 31px);
    margin: 9px 0 10px;
    letter-spacing: -.03em
}

.subhead,
.market-card>p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 26px
}

.exchange-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.form-exchange {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start
}

.select__give-away,
.select__You-receive,
.exchange-wallet,
.exchange-email {
    min-width: 0
}

.select__text,
.exchange-wallet label,
.exchange-email label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 9px
}

.exchange-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(80px, .7fr);
    gap: 8px
}

.crypto-select {
    position: relative;
    min-width: 0
}

.crypto-select.open {
    z-index: 20
}

.crypto-current {
    width: 100%;
    height: 52px;
    background: #f7f9fc;
    border: 1px solid #cbd4e2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 9px;
    cursor: pointer;
    color: var(--navy)
}

.crypto-current:hover,
.crypto-select.open .crypto-current {
    border-color: var(--red)
}

.crypto-current-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden
}

.crypto-current-left img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    flex-shrink: 0
}

.crypto-current-left span {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.crypto-arrow {
    font-size: 10px
}

.crypto-select.open .crypto-arrow {
    transform: rotate(180deg)
}

.crypto-list {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: max(100%, 245px);
    max-width: min(330px, 85vw);
    max-height: 310px;
    overflow: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 14px 35px #0d1b3640;
    z-index: 25
}

.crypto-select.open .crypto-list {
    display: block
}

.crypto-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    color: var(--navy);
    text-align: left;
    font-size: 12px;
    cursor: pointer
}

.crypto-item:hover,
.crypto-item.active {
    background: #f2f4f9;
    color: var(--red)
}

.crypto-item img {
    width: 25px;
    height: 25px;
    object-fit: contain
}

.crypto-item span {
    white-space: nowrap
}

.real-crypto-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none
}

.input-give,
.input-email-wallet {
    width: 100%;
    height: 52px;
    min-width: 0;
    background: white;
    border: 1px solid #cbd4e2;
    border-radius: 8px;
    color: var(--navy);
    padding: 0 12px;
    outline: 0;
    font-size: 13px
}

.input-give:focus,
.input-email-wallet:focus {
    border-color: var(--red)
}

.input-give:disabled {
    background: #f7f9fc;
    opacity: 1
}

.input-give::-webkit-inner-spin-button,
.input-give::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.input-give[type=number] {
    appearance: textfield;
    -moz-appearance: textfield
}

.limits-info {
    min-height: 18px;
    font-size: 10px;
    color: var(--muted);
    margin-top: 9px;
    overflow-wrap: anywhere
}

.exchange-swap {
    height: 43px;
    width: 43px;
    margin-top: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--red);
    font-size: 27px;
    cursor: pointer
}

.exchange-swap:hover {
    background: var(--red);
    color: #fff
}

.input-wrap {
    position: relative
}

.input-wrap>span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7c8799;
    pointer-events: none
}

.input-email-wallet {
    padding-left: 35px
}

.button-Exchange {
    grid-column: 1/-1;
    border: 0;
    background: var(--red);
    color: white;
    border-radius: 8px;
    height: 54px;
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px
}

.button-Exchange:hover {
    background: #b80d23
}

.button-Exchange span {
    font-size: 23px
}

#result {
    font-size: 13px
}

.security-note {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    margin: 16px 0 0
}

.asset-list {
    margin-top: 25px
}

.asset-list>div {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
    font-size: 14px
}

.asset-list img {
    width: 34px;
    height: 34px;
    object-fit: contain
}

.asset-list small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 2px
}

.market-foot {
    background: #f4f6fa;
    border-left: 3px solid var(--red);
    padding: 13px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    margin-top: 22px
}

.features {
    background: var(--bg);
    padding: 65px 0
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-top: 25px
}

.features article {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px
}

.feature-icon {
    font-size: 34px;
    color: var(--red)
}

.features h3 {
    font-size: 16px;
    margin: 16px 0 9px
}

.features p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
    padding-block: 75px
}

.about-visual {
    background: #f0f4fa;
    border-radius: 14px;
    overflow: hidden
}

.about-visual img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block
}

.about p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85
}

.text-link {
    display: inline-block;
    color: var(--red);
    font-weight: 800;
    font-size: 14px;
    margin-top: 12px
}

.coin-band {
    background: #f6f8fb;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.coin-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-block: 22px
}

.coin-band-inner strong {
    font-size: 12px;
    letter-spacing: .08em
}

.coin-band-inner span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800
}

.coin-band-inner img {
    width: 27px;
    height: 27px
}

footer {
    background: var(--deep);
    color: #fff
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 45px;
    padding-block: 52px
}

.footer-logo {
    width: 120px;
    background: #fff;
    padding: 5px;
    border-radius: 5px
}

.footer-grid p {
    color: #aebdd0;
    font-size: 12px;
    line-height: 1.7
}

.footer-grid strong {
    display: block;
    font-size: 13px;
    margin-bottom: 15px
}

.footer-grid a {
    display: block;
    font-size: 12px;
    color: #d7e1ef;
    margin: 10px 0
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid #35455e;
    color: #b8c4d6;
    font-size: 11px
}

@media(max-width:1100px) {
    .container {
        width: calc(100% - 48px)
    }

    .desktop-nav {
        gap: 15px
    }

    .desktop-nav a {
        font-size: 11px
    }

    .exchange-area {
        grid-template-columns: minmax(0, 1.65fr) minmax(250px, .9fr)
    }

    .exchange-card,
    .market-card {
        padding: 22px
    }

    .exchange-layout {
        grid-template-columns: 1fr
    }

    .form-exchange {
        grid-column: auto
    }

    .exchange-wallet,
    .exchange-email,
    .button-Exchange {
        grid-column: 1/-1
    }

    .exchange-field-row {
        grid-template-columns: 1fr
    }

    .hero-inner {
        min-height: 390px
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:850px) {
    .desktop-nav {
        display: none
    }

    .mobile-nav {
        display: block
    }

    .exchange-area {
        grid-template-columns: 1fr
    }

    .exchange-layout {
        grid-template-columns: 1fr 1fr
    }

    .form-exchange {
        grid-column: 1/-1
    }

    .exchange-wallet,
    .exchange-email {
        grid-column: auto
    }

    .hero-inner {
        grid-template-columns: 1.3fr 1fr
    }

    .hero-visual img {
        width: 140%
    }

    .about {
        gap: 25px
    }
}

@media(max-width:600px) {
    .container {
        width: calc(100% - 30px)
    }

    .header-row {
        min-height: 66px
    }

    .logo img {
        width: 120px
    }

    .hero-inner {
        display: block;
        min-height: 390px;
        position: relative
    }

    .hero-copy {
        padding: 48px 0 70px
    }

    .hero h1 {
        font-size: 32px
    }

    .hero-copy>p:not(.eyebrow) {
        font-size: 13px;
        max-width: 360px
    }

    .hero-visual {
        position: absolute;
        right: -80px;
        bottom: -40px;
        width: 65%;
        height: auto;
        opacity: .25
    }

    .hero-visual img {
        width: 100%
    }

    .hero-tags {
        font-size: 10px;
        gap: 9px
    }

    .ticker-inner {
        gap: 10px;
        font-size: 10px
    }

    .exchange-area {
        padding-block: 25px 40px
    }

    .exchange-card,
    .market-card {
        padding: 21px 15px
    }

    .form-exchange {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .exchange-field-row {
        grid-template-columns: minmax(0, 1.35fr) minmax(85px, .75fr)
    }

    .exchange-swap {
        margin: 0 auto;
        transform: rotate(90deg);
        height: 38px;
        width: 38px
    }

    .exchange-layout {
        grid-template-columns: 1fr
    }

    .exchange-wallet,
    .exchange-email {
        grid-column: 1/-1
    }

    .crypto-list {
        max-width: min(330px, 90vw)
    }

    .features {
        padding: 42px 0
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .features article {
        padding: 15px
    }

    .features h3 {
        font-size: 14px
    }

    .features p {
        font-size: 11px
    }

    .about {
        grid-template-columns: 1fr;
        padding-block: 40px
    }

    .about-visual img {
        height: 220px
    }

    .coin-band-inner {
        justify-content: center
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px
    }

    .footer-grid>div:first-child {
        grid-column: 1/-1
    }
}

@media(max-width:360px) {
    .exchange-field-row {
        grid-template-columns: 1fr
    }

    .crypto-current-left span {
        font-size: 11px
    }

    .features-grid {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 28px
    }
}

/* Language selector — SGX */
.language-menu {
    position: relative;
    flex-shrink: 0;
    z-index: 35
}

.language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 100px;
    min-height: 43px;
    padding: 9px 14px;
    cursor: pointer;
    list-style: none;
    border: 1px solid #cbd4e2;
    border-radius: 24px;
    background: #fff;
    color: #112544;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap
}

.language-btn::-webkit-details-marker {
    display: none
}

.language-btn:hover,
.language-menu[open] .language-btn {
    border-color: #df1d31
}

.language-list {
    position: absolute;
    right: 0;
    top: calc(100% + 9px);
    width: 185px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 7px;
    background: #fff;
    border: 1px solid #dce2eb;
    border-radius: 12px;
    box-shadow: 0 14px 35px #1125442b
}

.language-list a {
    display: block;
    padding: 12px 13px;
    border-radius: 8px;
    color: #17253b;
    font-size: 13px;
    font-weight: 700
}

.language-list a:hover,
.language-list a.active {
    background: #fff0f1;
    color: #df1d31
}

@media(max-width:1100px) {
    .header-row {
        gap: 13px
    }

    .desktop-nav {
        gap: 11px
    }

    .desktop-nav a {
        font-size: 11px
    }

    .language-btn {
        min-width: 83px;
        padding: 8px 10px
    }
}

@media(max-width:850px) {
    .language-menu {
        margin-left: auto
    }

    .header-row {
        justify-content: space-between
    }
}

@media(max-width:420px) {
    .logo img {
        width: 102px
    }

    .header-row {
        gap: 9px
    }

    .language-btn {
        min-width: 75px;
        min-height: 38px;
        font-size: 12px
    }

    .language-list {
        width: 155px
    }

    .mobile-nav summary {
        padding: 7px
    }
}