:root {
    --ct-ink: #111111;
    --ct-muted: #6b7280;
    --ct-soft: #9ca3af;
    --ct-line: #ececef;
    --ct-bg: #ffffff;
    --ct-wash: #f7f7f8;
    --ct-card: #ffffff;
    --ct-shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
    --ct-shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.06);
    --ct-radius: 24px;
    --ct-radius-sm: 16px;
    --ct-max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ct-home {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--ct-ink);
    background: var(--ct-bg);
    line-height: 1.5;
    overflow-x: hidden;
}

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

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

button, input, select, textarea { font-family: inherit; }

.ct-wrap {
    width: min(var(--ct-max), calc(100% - 40px));
    margin: 0 auto;
}

.ct-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}

.ct-header.is-scrolled { border-bottom-color: var(--ct-line); }

.ct-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.ct-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ct-ink);
    flex-shrink: 0;
}

.ct-logo img,
.ct-header .ct-logo img,
a.ct-logo img {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: none !important;
    flex-shrink: 0;
    display: block !important;
    object-fit: contain;
}

.ct-logo span { font-weight: 500; color: #3f3f46; }

.ct-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ct-links a {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.ct-links a:hover { color: var(--ct-ink); }

.ct-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ct-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border: 1px solid var(--ct-ink);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-ink);
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}

.ct-btn:hover { transform: translateY(-1px); }

.ct-btn-dark {
    background: var(--ct-ink);
    color: #fff;
    min-height: 44px;
}

.ct-btn-ghost {
    background: transparent;
    color: var(--ct-ink);
    padding-left: 0;
    padding-right: 0;
}

.ct-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.ct-menu-toggle span,
.ct-menu-toggle span:before,
.ct-menu-toggle span:after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ct-ink);
    position: relative;
}

.ct-menu-toggle span:before,
.ct-menu-toggle span:after {
    content: "";
    position: absolute;
    left: 0;
}

.ct-menu-toggle span:before { top: -6px; }
.ct-menu-toggle span:after { top: 6px; }

.ct-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 48px;
}

.ct-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
    min-height: 620px;
}

.ct-kicker {
    max-width: 460px;
}

.ct-hero h1 {
    margin: 0;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.ct-lead {
    max-width: 430px;
    margin: 22px 0 0;
    color: var(--ct-muted);
    font-size: 17px;
}

.ct-hero-cta {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.ct-trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin-top: 48px;
    max-width: 460px;
}

.ct-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
}

.ct-trust-item svg {
    flex: 0 0 auto;
    margin-top: 1px;
}

.ct-hero-visual {
    position: relative;
    min-height: 620px;
}

.ct-globe {
    position: absolute;
    right: -90px;
    top: 50%;
    width: 640px;
    height: 640px;
    transform: translateY(-50%);
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}

.ct-globe img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.65);
    filter: saturate(1.05) contrast(1.05);
}

.ct-exchange {
    position: relative;
    z-index: 2;
    width: min(390px, 100%);
    margin-left: auto;
    margin-right: 70px;
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--ct-shadow);
    padding: 28px 26px 22px;
}

.ct-exchange h2 {
    margin: 0 0 18px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.ct-tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--ct-line);
}

.ct-tab {
    background: none;
    border: 0;
    padding: 0 0 12px;
    font-size: 14px;
    color: var(--ct-soft);
    cursor: pointer;
}

.ct-tab.is-active {
    color: var(--ct-ink);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--ct-ink);
}

.ct-field {
    background: var(--ct-wash);
    border-radius: 18px;
    padding: 14px 16px;
}

.ct-field label {
    display: block;
    font-size: 12px;
    color: var(--ct-muted);
    margin-bottom: 6px;
}

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

.ct-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.04em;
    outline: none;
    color: var(--ct-ink);
}

.ct-field label.ct-coin,
.ct-coin {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    width: auto;
    background: #3a3a3a;
    border: 0;
    border-radius: 999px;
    padding: 5px 14px 5px 5px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
}

.ct-coin select {
    border: 0;
    background-color: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding: 0 16px 0 0;
    cursor: pointer;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4d4d4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.ct-coin-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    background: transparent;
}

.ct-rate-line {
    margin: 14px 0 0;
    text-align: center;
    color: var(--ct-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.ct-swap {
    width: 36px;
    height: 36px;
    margin: -8px auto;
    border: 1px solid var(--ct-line);
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.ct-exchange .ct-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
}

.ct-fineprint {
    margin: 12px 0 0;
    text-align: center;
    color: var(--ct-soft);
    font-size: 12px;
}

.ct-aside-note {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 150px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.35;
    z-index: 2;
}

.ct-logos {
    padding: 10px 0 8px;
    color: var(--ct-soft);
}

.ct-logos-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ct-logo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 40px;
    align-items: center;
    color: #9aa0a6;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.ct-features {
    padding: 56px 0 20px;
}

.ct-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.ct-feature h3 {
    margin: 14px 0 8px;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.ct-feature p {
    margin: 0;
    color: var(--ct-muted);
    font-size: 14px;
}

.ct-icon {
    width: 36px;
    height: 36px;
    color: var(--ct-ink);
}

.ct-product {
    padding: 36px 0 20px;
}

.ct-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.ct-panel {
    background: #fbfbfc;
    border: 1px solid #f0f0f2;
    border-radius: 28px;
    padding: 22px 22px 18px;
    min-height: 390px;
    box-shadow: var(--ct-shadow-soft);
}

.ct-panel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    color: #6b7280;
    font-size: 12px;
}

.ct-mini-links {
    display: flex;
    gap: 16px;
}

.ct-mini-user {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ececef;
}

.ct-panel h3 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.ct-panel .sub {
    margin: 0 0 22px;
    color: var(--ct-muted);
    font-size: 14px;
}

.ct-dash {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
}

.ct-side-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

.ct-side-nav span.is-on { color: var(--ct-ink); font-weight: 600; }

.ct-balance {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin: 4px 0 4px;
}

.ct-delta { color: #16a34a; font-size: 13px; }

.ct-mini-actions {
    display: flex;
    gap: 8px;
    margin: 16px 0 22px;
}

.ct-chip {
    border: 0;
    background: var(--ct-ink);
    color: #fff;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
}

.ct-chip.alt { background: #ececef; color: var(--ct-ink); }

.ct-asset,
.ct-tx {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f2;
    font-size: 13px;
}

.ct-asset-name,
.ct-tx-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ct-pos { text-align: right; }
.ct-pos small { display: block; color: #16a34a; }

.ct-table-head,
.ct-table-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr 0.8fr 0.9fr;
    gap: 8px;
    font-size: 12px;
}

.ct-table-head {
    color: var(--ct-soft);
    padding-bottom: 10px;
}

.ct-table-row {
    padding: 11px 0;
    border-top: 1px solid #f0f0f2;
    align-items: center;
}

.ct-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px 8px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 11px;
}

.ct-search {
    width: 100%;
    border: 1px solid var(--ct-line);
    border-radius: 999px;
    padding: 10px 14px;
    margin: 8px 0 16px;
    background: #fff;
}

.ct-about,
.ct-fees,
.ct-help {
    padding: 72px 0;
}

.ct-about { background: var(--ct-wash); }

.ct-section-head {
    max-width: 560px;
    margin-bottom: 36px;
}

.ct-section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.ct-section-head p {
    margin: 0;
    color: var(--ct-muted);
}

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

.ct-fee-card,
.ct-help-card {
    background: #fff;
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-radius);
    padding: 28px;
}

.ct-fee-card h3 { margin: 0 0 8px; font-size: 20px; }
.ct-fee-card .price {
    font-size: 36px;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin: 12px 0;
}

.ct-fee-card p { margin: 0; color: var(--ct-muted); }

.ct-help-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: start;
}

.ct-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ct-form .full { grid-column: 1 / -1; }

.ct-form input,
.ct-form select,
.ct-form textarea {
    width: 100%;
    border: 1px solid var(--ct-line);
    background: var(--ct-wash);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    outline: none;
}

.ct-form input:focus,
.ct-form select:focus,
.ct-form textarea:focus {
    border-color: #d4d4d8;
    background: #fff;
}

.ct-hp { display: none; }

.ct-footer {
    padding: 56px 0 24px;
    border-top: 1px solid var(--ct-line);
}

.ct-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
    gap: 28px;
}

.ct-footer h4 {
    margin: 0 0 14px;
    font-size: 14px;
}

.ct-footer p,
.ct-footer a,
.ct-copy {
    color: var(--ct-muted);
    font-size: 14px;
}

.ct-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ct-mail {
    display: flex;
    gap: 8px;
}

.ct-mail input {
    flex: 1;
    border: 1px solid var(--ct-line);
    border-radius: 4px;
    padding: 10px 14px;
}

.ct-mail button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 4px;
    background: var(--ct-ink);
    color: #fff;
    cursor: pointer;
}

.ct-copy {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--ct-line);
    font-size: 13px;
}

.ct-mobile-panel {
    display: none;
}

@media (max-width: 1100px) {
    .ct-hero-grid,
    .ct-product-grid,
    .ct-help-grid,
    .ct-dash { grid-template-columns: 1fr; }

    .ct-globe { width: 480px; height: 480px; right: -80px; }
    .ct-exchange { margin-right: 0; }
    .ct-aside-note { display: none; }
    .ct-feature-grid,
    .ct-fee-grid,
    .ct-footer-grid { grid-template-columns: 1fr 1fr; }
    .ct-hero-visual { min-height: auto; }
}

@media (max-width: 820px) {
    .ct-links,
    .ct-nav-actions { display: none; }

    .ct-menu-toggle { display: grid; place-items: center; }

    .ct-mobile-panel.is-open {
        display: block;
        padding: 0 0 20px;
    }

    .ct-mobile-panel a {
        display: block;
        padding: 12px 0;
        border-top: 1px solid var(--ct-line);
        font-weight: 500;
    }

    .ct-hero { padding-top: 28px; }
    .ct-hero-grid { min-height: 0; }
    .ct-hero-cta { flex-wrap: wrap; gap: 14px; }
    .ct-globe { display: none; }
    .ct-exchange {
        width: 100%;
        margin: 0;
        padding: 22px 18px;
    }
    .ct-field input { font-size: 22px; }
    .ct-feature-grid,
    .ct-fee-grid,
    .ct-footer-grid,
    .ct-form,
    .ct-table-head,
    .ct-table-row { grid-template-columns: 1fr; }
    .ct-table-head { display: none; }
    .ct-copy { flex-direction: column; }
}
