:root {
    --ink: #0d1b2a;
    --muted: #5f6f86;
    --line: #dbe5f2;
    --paper: #ffffff;
    --soft: #f4f8fc;
    --blue: #1769e8;
    --blue-dark: #0f4fbd;
    --green: #16b887;
    --orange: #ff8b4a;
    --navy: #10223d;
    --shadow: 0 24px 70px rgba(16, 34, 61, 0.14);
    --radius: 8px;
    --container: min(1180px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

button,
input {
    font: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 50;
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 14px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid rgba(219, 229, 242, 0.9);
    backdrop-filter: blur(18px);
}

.notice-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 38px;
    padding: 7px 20px;
    color: #dbeafe;
    background: var(--navy);
    font-size: 0.86rem;
}

.notice-bar a {
    color: #8ff0ce;
    font-weight: 700;
}

.nav-wrap {
    width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 210px;
}

.brand img {
    width: 196px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #20334e;
    padding: 0 12px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item.open .nav-link {
    color: var(--blue);
    background: #eef5ff;
    outline: none;
}

.mega-panel {
    position: absolute;
    left: 50%;
    top: calc(100% + 18px);
    width: 330px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.mega-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}

.nav-item:hover .mega-panel,
.nav-item.open .mega-panel,
.nav-item:focus-within .mega-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.mega-link {
    display: grid;
    gap: 5px;
    padding: 13px;
    border-radius: var(--radius);
}

.mega-link:hover,
.mega-link:focus-visible {
    background: #f4f8ff;
    outline: none;
}

.mega-link strong {
    color: var(--ink);
}

.mega-link span {
    color: var(--muted);
    font-size: 0.92rem;
}

.plain-link {
    text-decoration: none;
}

.nav-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-actions {
    flex-shrink: 0;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius);
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 14px 30px rgba(23, 105, 232, 0.22);
}

.primary-button:hover,
.primary-button:focus-visible {
    background: var(--blue-dark);
    transform: translateY(-1px);
    outline: none;
}

.secondary-button {
    color: var(--blue-dark);
    background: #eaf3ff;
}

.secondary-button:hover,
.secondary-button:focus-visible {
    background: #dcecff;
    outline: none;
}

.secondary-button.light {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.ghost-button {
    color: #233957;
    background: transparent;
    border: 1px solid var(--line);
}

.large {
    min-height: 52px;
    padding-inline: 22px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
    transition: transform 160ms ease, opacity 160ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.section {
    width: var(--container);
    margin: 0 auto;
    padding: 92px 0;
}

.hero {
    position: relative;
    width: 100%;
    min-height: clamp(580px, calc(100vh - 170px), 760px);
    overflow: hidden;
    padding: 86px max(20px, calc((100vw - 1180px) / 2)) 72px;
    background:
        linear-gradient(105deg, rgba(244, 248, 252, 0.99) 0%, rgba(244, 248, 252, 0.92) 48%, rgba(230, 242, 255, 0.96) 100%),
        repeating-linear-gradient(90deg, rgba(15, 79, 189, 0.06) 0 1px, transparent 1px 82px),
        repeating-linear-gradient(0deg, rgba(15, 79, 189, 0.05) 0 1px, transparent 1px 82px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(244, 248, 252, 0.98) 0%, rgba(244, 248, 252, 0.9) 42%, rgba(244, 248, 252, 0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 3;
    width: min(690px, 100%);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.95;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4.5vw, 3.45rem);
    line-height: 1.02;
}

h3 {
    font-size: 1.16rem;
    line-height: 1.22;
}

.hero-text,
.section-heading p,
.split-copy p,
.contact-cta p,
.footer-brand p {
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-text {
    max-width: 650px;
    margin-bottom: 30px;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.trust-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    color: #24415f;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.exchange-card,
.wallet-card,
.floating-card,
.app-preview,
.solution-card,
.step-card,
.insight-card,
.contact-card {
    background: var(--paper);
    border: 1px solid rgba(219, 229, 242, 0.94);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.exchange-card {
    position: absolute;
    top: 68px;
    right: max(22px, calc((100vw - 1180px) / 2));
    z-index: 2;
    width: min(420px, 36vw);
    padding: 22px;
}

.exchange-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 6px;
    margin-bottom: 20px;
    background: #eef4fb;
    border-radius: var(--radius);
}

.exchange-tabs button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.exchange-tabs .active {
    color: var(--blue-dark);
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 34, 61, 0.1);
}

.quote-row {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.quote-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

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

.quote-row input {
    min-width: 0;
    width: 100%;
    border: 0;
    color: var(--ink);
    font-size: 1.7rem;
    font-weight: 900;
    outline: none;
}

.quote-row span {
    color: var(--blue-dark);
    background: #eaf3ff;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
}

.swap-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin: -2px auto;
    color: #fff;
    background: var(--blue);
    border: 4px solid #fff;
    border-radius: 50%;
    font-weight: 900;
}

.quote-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.quote-summary strong {
    color: var(--ink);
}

.quote-button {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: var(--radius);
    color: #fff;
    background: var(--green);
    font-weight: 900;
    cursor: pointer;
}

.floating-card {
    position: absolute;
    top: 94px;
    right: max(390px, calc((100vw - 1180px) / 2 + 360px));
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 244px;
    padding: 14px;
}

.floating-card small,
.floating-card span,
.preview-balance small,
.preview-list em,
.asset-pill small {
    color: var(--muted);
}

.status-dot {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: inset 0 0 0 8px #dff8ef;
}

.wallet-card {
    position: absolute;
    right: max(90px, calc((100vw - 1180px) / 2 + 70px));
    bottom: 44px;
    z-index: 1;
    width: 360px;
    padding: 22px;
    background: var(--navy);
    color: #fff;
}

.wallet-card span {
    color: #a9bdd7;
    font-size: 0.9rem;
}

.wallet-card strong {
    display: block;
    margin-top: 4px;
    font-size: 2rem;
}

.wallet-card svg {
    margin-top: 22px;
}

.wallet-card path {
    fill: none;
    stroke: #60e6bb;
    stroke-width: 5;
    stroke-linecap: round;
}

.wallet-card path + path {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 2;
}

.asset-strip {
    width: min(1320px, calc(100vw - 24px));
    margin: -28px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    z-index: 4;
}

.asset-pill {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(16, 34, 61, 0.08);
}

.token,
.mini-token {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--token-color, var(--blue));
    font-weight: 900;
    border-radius: 50%;
}

.token {
    width: 42px;
    height: 42px;
}

.asset-pill strong,
.asset-pill small {
    display: block;
}

.asset-pill > span:last-of-type {
    color: var(--ink);
    font-weight: 900;
}

.asset-pill em {
    color: var(--green);
    font-style: normal;
    font-weight: 900;
}

.intro-band {
    padding-top: 110px;
}

.section-heading {
    max-width: 790px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading.narrow {
    max-width: 640px;
}

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

.solution-card {
    padding: 24px;
    box-shadow: 0 16px 44px rgba(16, 34, 61, 0.08);
    transition: transform 180ms ease, border-color 180ms ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(23, 105, 232, 0.35);
}

.icon-box {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    color: var(--blue);
    background: #eaf3ff;
    border-radius: var(--radius);
}

.icon-box svg {
    width: 26px;
    height: 26px;
}

.icon-box path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.solution-card p,
.step-card p,
.insight-card p {
    color: var(--muted);
}

.solution-card a {
    color: var(--blue-dark);
    font-weight: 900;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) 1fr;
    gap: 64px;
    align-items: center;
}

.app-preview {
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
        linear-gradient(135deg, rgba(23, 105, 232, 0.12), rgba(22, 184, 135, 0.14));
}

.preview-header {
    display: flex;
    gap: 7px;
    margin-bottom: 24px;
}

.preview-header span {
    width: 10px;
    height: 10px;
    background: #cdd9e8;
    border-radius: 50%;
}

.preview-balance {
    padding: 26px;
    color: #fff;
    background: var(--navy);
    border-radius: var(--radius);
}

.preview-balance strong {
    display: block;
    margin: 6px 0;
    font-size: 2.65rem;
    line-height: 1;
}

.preview-balance span {
    color: #9ceac9;
}

.preview-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.preview-list div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.mini-token {
    width: 34px;
    height: 34px;
}

.mini-token.blue {
    background: var(--blue);
}

.mini-token.orange {
    background: var(--orange);
}

.mini-token.green {
    background: var(--green);
}

.split-copy {
    max-width: 580px;
}

.check-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.check-list span {
    position: relative;
    padding-left: 32px;
    color: #29415e;
    font-weight: 800;
}

.check-list span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: inset 0 0 0 5px #dff8ef;
}

.metrics-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.metric {
    padding: 32px;
    color: #fff;
    background: var(--navy);
    border-radius: var(--radius);
}

.metric:nth-child(2) {
    background: var(--blue-dark);
}

.metric:nth-child(3) {
    background: #11674f;
}

.metric strong {
    display: block;
    margin-bottom: 4px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
}

.metric span {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
}

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

.step-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    min-height: 260px;
    box-shadow: 0 16px 44px rgba(16, 34, 61, 0.08);
}

.step-card > span {
    display: inline-flex;
    margin-bottom: 62px;
    color: var(--blue-dark);
    font-size: 0.9rem;
    font-weight: 900;
}

.step-card::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 110px;
    height: 110px;
    background: #eaf3ff;
    border-radius: 50%;
}

.insight-section {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.insight-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 410px;
    padding: 36px;
    color: #fff;
    background: var(--navy);
    border-radius: var(--radius);
}

.insight-panel .eyebrow,
.contact-cta .eyebrow {
    color: #8ff0ce;
}

.insight-panel h2 {
    max-width: 620px;
}

.insight-grid {
    position: relative;
    min-height: 410px;
}

.insight-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.insight-card.active {
    opacity: 1;
    transform: translateX(0);
}

.avatar {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    color: #fff;
    background: var(--blue);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 900;
}

.carousel-controls {
    position: absolute;
    right: 22px;
    bottom: 22px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-controls button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.faq-item button {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    padding: 18px 22px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    font-weight: 900;
    cursor: pointer;
}

.faq-item button span {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 1.45rem;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 180ms ease;
}

.faq-answer p {
    overflow: hidden;
    margin: 0;
    padding: 0 22px;
    color: var(--muted);
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
    padding-bottom: 22px;
}

.faq-item.open button span {
    transform: rotate(45deg);
}

.contact-cta {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: center;
    margin-bottom: 80px;
    padding: 46px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-dark), var(--navy) 58%, #0f684f);
    border-radius: var(--radius);
}

.contact-cta h2 {
    max-width: 760px;
}

.contact-cta p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.76);
}

.contact-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.contact-card a,
.contact-card span {
    color: #fff;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.page-hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(244, 248, 252, 0.99) 0%, rgba(244, 248, 252, 0.94) 54%, rgba(224, 241, 255, 0.98) 100%),
        repeating-linear-gradient(90deg, rgba(15, 79, 189, 0.06) 0 1px, transparent 1px 82px),
        repeating-linear-gradient(0deg, rgba(15, 79, 189, 0.05) 0 1px, transparent 1px 82px);
}

.page-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 42px;
    align-items: center;
    padding-top: 86px;
    padding-bottom: 86px;
}

.page-hero-copy {
    max-width: 760px;
}

.page-hero-copy p {
    color: var(--muted);
    font-size: 1.12rem;
}

.page-hero-panel {
    padding: 30px;
    color: #fff;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.page-hero-panel .panel-kicker {
    display: inline-flex;
    margin-bottom: 26px;
    color: #8ff0ce;
    font-size: 0.86rem;
    font-weight: 900;
}

.page-hero-panel strong {
    display: block;
    margin-bottom: 12px;
    font-size: 2.1rem;
    line-height: 1.05;
}

.page-hero-panel p {
    margin-bottom: 0;
    color: #c7d8ea;
}

.page-section {
    padding-top: 82px;
}

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

.detail-card {
    min-height: 250px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 44px rgba(16, 34, 61, 0.08);
}

.detail-card.solution-card:hover {
    transform: none;
}

.detail-card > span {
    display: block;
    width: 46px;
    height: 46px;
    margin-bottom: 58px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: var(--radius);
}

.detail-card p,
.process-strip p,
.page-cta p {
    color: var(--muted);
}

.process-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.process-strip article {
    padding: 26px;
    color: #fff;
    background: var(--navy);
    border-radius: var(--radius);
}

.process-strip article:nth-child(2) {
    background: var(--blue-dark);
}

.process-strip article:nth-child(3) {
    background: #11674f;
}

.process-strip span {
    display: inline-flex;
    margin-bottom: 46px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
}

.process-strip p {
    color: rgba(255, 255, 255, 0.76);
}

.page-cta {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: center;
    margin-bottom: 80px;
    padding: 46px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.page-cta .contact-card {
    background: var(--navy);
    border-color: var(--navy);
}

.site-footer {
    color: #d6e2f1;
    background: #081522;
    padding: 56px max(20px, calc((100vw - 1180px) / 2)) 28px;
}

.footer-brand {
    display: grid;
    grid-template-columns: 250px minmax(0, 570px);
    gap: 34px;
    align-items: center;
    padding-bottom: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand img {
    width: 220px;
    filter: brightness(1.28);
}

.footer-brand p {
    color: #a9bdd7;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 38px 0;
}

.footer-grid div {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-grid h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1rem;
}

.footer-grid a,
.footer-grid span,
.footer-bottom {
    color: #a9bdd7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

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

    .hero {
        min-height: clamp(620px, calc(100vh - 150px), 760px);
    }

    .hero-visual {
        width: 100%;
        margin: 0;
    }

    .exchange-card {
        width: min(390px, 44vw);
        right: 22px;
        top: 92px;
    }

    .wallet-card {
        right: 42px;
        width: 330px;
    }

    .floating-card {
        right: 332px;
        top: 64px;
    }

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

@media (max-width: 1060px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        left: 14px;
        right: 14px;
        top: 108px;
        display: none;
        max-height: calc(100vh - 126px);
        overflow: auto;
        padding: 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .menu-open .main-nav {
        display: block;
    }

    .nav-item,
    .nav-link,
    .plain-link {
        width: 100%;
    }

    .nav-link {
        justify-content: space-between;
        min-height: 48px;
    }

    .mega-panel {
        position: static;
        width: 100%;
        display: none;
        margin: 0 0 8px;
        padding: 6px;
        box-shadow: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav-item.open .mega-panel {
        display: block;
    }
}

@media (max-width: 880px) {
    :root {
        --container: min(100% - 28px, 720px);
    }

    .notice-bar {
        justify-content: space-between;
        font-size: 0.78rem;
    }

    .nav-wrap {
        min-height: 68px;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 176px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        left: 14px;
        right: 14px;
        top: 108px;
        display: none;
        max-height: calc(100vh - 126px);
        overflow: auto;
        padding: 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .menu-open .main-nav {
        display: block;
    }

    .nav-item,
    .nav-link,
    .plain-link {
        width: 100%;
    }

    .nav-link {
        justify-content: space-between;
        min-height: 48px;
    }

    .mega-panel {
        position: static;
        width: 100%;
        display: none;
        margin: 0 0 8px;
        padding: 6px;
        box-shadow: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav-item.open .mega-panel {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 46px 14px 44px;
    }

    .hero::before {
        display: none;
    }

    h1 {
        font-size: clamp(2.75rem, 13vw, 4.2rem);
    }

    .section {
        padding: 66px 0;
    }

    .hero-actions,
    .trust-strip {
        align-items: stretch;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-visual {
        position: relative;
        inset: auto;
        min-height: 540px;
        margin-top: 30px;
        pointer-events: auto;
    }

    .exchange-card {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .floating-card {
        left: 12px;
        top: auto;
        bottom: 118px;
    }

    .wallet-card {
        right: 0;
        bottom: 0;
        width: min(360px, 92%);
    }

    .split-section,
    .insight-section,
    .contact-cta,
    .footer-brand {
        grid-template-columns: 1fr;
    }

    .metrics-band,
    .steps-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .insight-panel,
    .insight-grid {
        min-height: 340px;
    }

    .contact-cta {
        padding: 32px 22px;
        margin-bottom: 42px;
    }

    .page-hero-inner,
    .page-cta {
        grid-template-columns: 1fr;
    }

    .page-hero {
        min-height: auto;
    }

    .page-hero-inner {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .detail-grid,
    .process-strip {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .notice-bar {
        display: none;
    }

    .main-nav {
        top: 82px;
    }

    .hero {
        padding-top: 36px;
    }

    .asset-strip,
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .asset-pill {
        grid-template-columns: auto 1fr auto;
    }

    .asset-pill em {
        grid-column: 3;
    }

    .floating-card {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        margin-top: 14px;
    }

    .wallet-card {
        position: relative;
        width: 100%;
        right: auto;
        bottom: auto;
        margin-top: 14px;
    }

    .hero-visual {
        min-height: auto;
    }

    .preview-balance strong {
        font-size: 2.1rem;
    }

    .insight-card {
        padding: 28px 22px 76px;
    }

    .section-heading {
        text-align: left;
    }
}

/* Final device coverage: tablet and phone refinements. */
@media (max-width: 1280px) {
    .nav-wrap {
        gap: 14px;
    }

    .brand {
        min-width: 180px;
    }

    .brand img {
        width: 176px;
    }

    .nav-link {
        padding: 0 9px;
    }
}

@media (max-width: 1180px) {
    :root {
        --container: min(100% - 32px, 1000px);
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .nav-actions {
        display: none;
    }

    .main-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 108px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        max-height: calc(100vh - 126px);
        overflow: auto;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .menu-open .main-nav {
        display: flex;
    }

    .nav-item,
    .nav-link,
    .plain-link {
        width: 100%;
    }

    .nav-link {
        justify-content: space-between;
        min-height: 48px;
        padding: 0 12px;
        white-space: normal;
    }

    .mega-panel {
        position: static;
        width: 100%;
        display: none;
        margin: 0 0 8px;
        padding: 6px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
    }

    .nav-item.open .mega-panel {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .split-section {
        gap: 34px;
    }

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

@media (max-width: 1024px) {
    .section {
        padding: 74px 0;
    }

    .hero {
        padding: 64px 16px 56px;
    }

    .hero::before {
        display: none;
    }

    .hero-copy {
        width: min(720px, 100%);
    }

    .hero-visual {
        position: relative;
        inset: auto;
        width: var(--container);
        min-height: 560px;
        margin: 34px auto 0;
        pointer-events: auto;
    }

    .exchange-card {
        position: relative;
        top: auto;
        right: auto;
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .floating-card {
        top: auto;
        left: max(0px, calc(50% - 300px));
        right: auto;
        bottom: 122px;
    }

    .wallet-card {
        right: max(0px, calc(50% - 250px));
        bottom: 0;
        width: min(360px, 100%);
    }

    .split-section,
    .insight-section,
    .page-hero-inner,
    .contact-cta,
    .page-cta {
        grid-template-columns: 1fr;
    }

    .app-preview,
    .split-copy {
        width: min(680px, 100%);
        margin: 0 auto;
    }

    .insight-panel,
    .insight-grid {
        min-height: 330px;
    }

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

    .page-hero-inner {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .page-hero-panel {
        width: min(680px, 100%);
    }
}

@media (max-width: 760px) {
    :root {
        --container: min(100% - 24px, 640px);
    }

    .notice-bar {
        display: none;
    }

    .nav-wrap {
        min-height: 70px;
    }

    .brand img {
        width: 158px;
    }

    .main-nav {
        left: 12px;
        right: 12px;
        top: 82px;
        max-height: calc(100vh - 96px);
    }

    h1 {
        font-size: clamp(2.35rem, 11vw, 3.6rem);
        line-height: 1;
    }

    h2 {
        font-size: clamp(1.8rem, 8vw, 2.55rem);
    }

    .hero {
        padding: 46px 12px 40px;
    }

    .hero-text,
    .section-heading p,
    .split-copy p,
    .contact-cta p,
    .page-hero-copy p,
    .footer-brand p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button,
    .ghost-button {
        width: 100%;
        min-height: 48px;
        text-align: center;
    }

    .hero-visual {
        width: 100%;
        min-height: auto;
    }

    .floating-card,
    .wallet-card {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 14px;
    }

    .asset-strip,
    .solution-grid,
    .detail-grid,
    .metrics-band,
    .steps-grid,
    .process-strip,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .asset-pill {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
    }

    .asset-pill > span:last-of-type {
        font-size: 0.94rem;
    }

    .asset-pill em {
        grid-column: 3;
    }

    .quote-row input {
        font-size: 1.45rem;
    }

    .preview-list div {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .preview-list em {
        grid-column: 2;
    }

    .insight-card {
        position: relative;
        min-height: 330px;
    }

    .insight-card:not(.active) {
        display: none;
    }

    .page-hero {
        min-height: auto;
    }

    .page-hero-inner {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .page-hero-panel strong {
        font-size: 1.65rem;
    }

    .contact-cta,
    .page-cta {
        padding: 28px 18px;
        margin-bottom: 48px;
    }

    .contact-card {
        width: 100%;
    }

    .footer-brand {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    :root {
        --container: min(100% - 20px, 480px);
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 146px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .section {
        padding: 54px 0;
    }

    .hero {
        padding-top: 34px;
    }

    h1 {
        font-size: clamp(2.05rem, 12vw, 3rem);
    }

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

    .exchange-card,
    .solution-card,
    .step-card,
    .detail-card,
    .insight-card,
    .page-hero-panel,
    .contact-card {
        padding: 20px;
    }

    .quote-row {
        padding: 13px;
    }

    .quote-row div {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .wallet-card strong,
    .preview-balance strong {
        font-size: 1.9rem;
    }

    .asset-pill {
        min-height: 84px;
        padding: 12px;
    }

    .token {
        width: 38px;
        height: 38px;
    }

    .metric,
    .process-strip article {
        padding: 24px 20px;
    }

    .footer-brand img {
        width: 180px;
    }

    .footer-bottom {
        font-size: 0.84rem;
    }
}
