/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, sans-serif;
    background: #f5f7fa;
    color: #1a1d23;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Nav ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    z-index: 100;
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 64px;
}
.logo { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.5px; color: #1a1d23; }
.logo-cn {
    font-weight: 400; font-size: 0.9rem;
    color: #d4a030;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 0.9rem; color: #5a5e6e;
    transition: color 0.2s;
    position: relative;
}
.nav-links a:hover { color: #1a1d23; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: #d4a030; transform: scaleX(0);
    transition: transform 0.25s;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; gap: 10px; }
.btn-outline-sm {
    padding: 6px 16px; border: 1px solid rgba(0,0,0,0.12);
    border-radius: 6px; font-size: 0.85rem; color: #4a4e5e;
    transition: all 0.2s;
}
.btn-outline-sm:hover { border-color: #d4a030; color: #d4a030; }
.btn-sm {
    padding: 6px 16px; border: none; border-radius: 6px;
    font-size: 0.85rem; background: #d4a030; color: #fff;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-sm:hover { background: #e0b040; }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    padding: 120px 24px 80px;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212,160,48,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 80% 80%, rgba(212,160,48,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content {
    max-width: 800px; text-align: center; position: relative;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700; line-height: 1.15;
    margin-bottom: 20px;
    color: #1a1d23;
}
.hero-sub {
    font-size: 1.15rem; color: #6a6e7e;
    margin-bottom: 40px;
}
.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    margin-bottom: 48px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: #d4a030; }
.stat-label { font-size: 0.85rem; color: #8a8fa0; }
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn-primary {
    display: inline-block; padding: 14px 32px;
    background: #d4a030; color: #fff; font-weight: 600;
    border-radius: 10px; font-size: 1rem;
    transition: all 0.25s; border: none; cursor: pointer;
}
.btn-primary:hover { background: #e0b040; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,160,48,0.2); }

.btn-secondary {
    display: inline-block; padding: 14px 32px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px; font-size: 1rem; color: #4a4e5e;
    transition: all 0.25s;
}
.btn-secondary:hover { border-color: #d4a030; color: #d4a030; }

/* ── Quote bar ── */
.quote-bar {
    background: #ffffff; border-block: 1px solid rgba(0,0,0,0.06);
    padding: 28px 24px;
}
.quote-inner {
    max-width: 800px; margin: 0 auto;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.quote-label {
    font-weight: 600; font-size: 0.95rem; color: #d4a030;
    white-space: nowrap;
}
.quote-inputs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1; }
.q-field { display: flex; flex-direction: column; gap: 4px; }
.q-field label { font-size: 0.75rem; color: #8a8fa0; }
.q-row { display: flex; align-items: center; background: #f0f2f5; border-radius: 8px; padding: 2px; }
.q-amount {
    background: transparent; border: none; color: #1a1d23;
    font-size: 1.1rem; padding: 10px 14px; width: 140px;
    font-family: inherit; outline: none;
}
.q-amount[readonly] { color: #d4a030; font-weight: 600; }
.q-ccy {
    background: #e4e6eb; border: none; color: #4a4e5e;
    padding: 10px 10px; border-radius: 6px; font-size: 0.85rem;
    font-family: inherit; cursor: pointer; outline: none;
}
.q-arrow { font-size: 1.3rem; color: #8a8fa0; }
.btn-accent {
    padding: 12px 28px; background: #d4a030; color: #fff;
    font-weight: 600; border-radius: 8px; font-size: 0.95rem;
    border: none; cursor: pointer; transition: all 0.25s;
    white-space: nowrap;
}
.btn-accent:hover { background: #e0b040; }

/* ── Section ── */
.section { padding: 100px 24px; }
.section.alt { background: #eef0f4; }
.section-title {
    text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700; margin-bottom: 60px;
    color: #1a1d23;
}

/* ── Steps ── */
.steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px; max-width: 900px; margin: 0 auto;
}
.step {
    background: #ffffff; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px; padding: 36px 28px; text-align: center;
    transition: all 0.3s;
}
.step:hover { border-color: rgba(212,160,48,0.3); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.step-icon { font-size: 2.2rem; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: #6a6e7e; }

/* ── Features ── */
.features {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; max-width: 1000px; margin: 0 auto;
}
.feature {
    background: #ffffff; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px; padding: 28px 24px;
    transition: all 0.3s;
}
.feature:hover { border-color: rgba(212,160,48,0.2); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: 0.85rem; color: #6a6e7e; line-height: 1.65; }

/* ── CTA ── */
.cta-section { padding-bottom: 80px; }
.cta-card {
    max-width: 720px; margin: 0 auto; text-align: center;
    background: #ffffff;
    border: 1px solid rgba(212,160,48,0.2);
    border-radius: 18px; padding: 56px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.cta-card h2 { font-size: 1.8rem; margin-bottom: 14px; color: #1a1d23; }
.cta-card p { color: #6a6e7e; margin-bottom: 28px; }
.cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-note { font-size: 0.8rem; margin-top: 20px; color: #9a9ea8 !important; }

/* ── Footer ── */
.footer {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 60px 24px 24px;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; gap: 48px;
    flex-wrap: wrap;
}
.footer-brand { max-width: 260px; }
.footer-desc { font-size: 0.85rem; color: #8a8fa0; margin-top: 10px; }
.footer-links { display: flex; gap: 48px; }
.fl-col { display: flex; flex-direction: column; gap: 10px; }
.fl-col h4 { font-size: 0.85rem; color: #8a8fa0; text-transform: uppercase; letter-spacing: 0.5px; }
.fl-col a { font-size: 0.9rem; color: #5a5e6e; transition: color 0.2s; }
.fl-col a:hover { color: #1a1d23; }
.footer-bottom {
    max-width: 1100px; margin: 40px auto 0;
    padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center; font-size: 0.8rem; color: #9a9ea8;
}

/* ── Page header (inner pages) ── */
.page-header {
    padding: 120px 24px 60px;
    text-align: center;
}
.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #1a1d23;
    margin-bottom: 12px;
}
.page-header p { color: #6a6e7e; max-width: 600px; margin: 0 auto; }

/* ── Table ── */
.table-wrap {
    max-width: 1000px; margin: 0 auto 80px;
    padding: 0 24px;
    overflow-x: auto;
}
.table-wrap table {
    width: 100%; border-collapse: collapse;
    font-size: 0.9rem;
}
.table-wrap th {
    text-align: left; padding: 14px 16px;
    color: #8a8fa0; font-weight: 500; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.table-wrap td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.table-wrap tr:hover td { background: rgba(212,160,48,0.04); }
.rate-best { color: #28a745; font-weight: 600; }
.rate-mid { color: #1a1d23; }
.rate-worst { color: #dc3545; }
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 600;
}
.badge-green { background: rgba(40,167,69,0.1); color: #28a745; }
.badge-yellow { background: rgba(212,160,48,0.12); color: #b8860b; }
.badge-blue { background: rgba(0,122,255,0.1); color: #007bff; }
.badge-gray { background: rgba(0,0,0,0.05); color: #8a8fa0; }

/* ── Exchanger cards ── */
.card-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px; max-width: 1000px; margin: 0 auto 80px;
    padding: 0 24px;
}
.ex-card {
    background: #ffffff; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px; padding: 24px;
    display: flex; gap: 20px; align-items: start;
    transition: all 0.25s;
}
.ex-card:hover { border-color: rgba(212,160,48,0.25); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.ex-avatar {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; flex-shrink: 0;
}
.ex-body { flex: 1; }
.ex-name {
    font-weight: 600; font-size: 1rem;
    display: flex; align-items: center; gap: 8px;
}
.ex-name .badge { font-size: 0.7rem; }
.ex-meta {
    font-size: 0.8rem; color: #8a8fa0;
    margin: 6px 0 10px;
}
.ex-rate {
    display: flex; justify-content: space-between;
    align-items: center;
}
.ex-rate-num { font-size: 1.05rem; font-weight: 600; color: #28a745; }
.ex-rate-label { font-size: 0.75rem; color: #8a8fa0; }
.ex-action {
    padding: 6px 18px; background: rgba(212,160,48,0.1);
    color: #b8860b; border-radius: 6px; font-size: 0.8rem;
    font-weight: 600; border: 1px solid rgba(212,160,48,0.2);
    cursor: pointer; transition: all 0.2s;
}
.ex-action:hover { background: #d4a030; color: #fff; }

/* ── How it works page ── */
.content-section {
    max-width: 720px; margin: 0 auto; padding: 0 24px 80px;
}
.content-section h2 {
    font-size: 1.4rem; margin: 48px 0 16px;
    color: #b8860b;
}
.content-section h2:first-child { margin-top: 0; }
.content-section p { color: #5a5e6e; margin-bottom: 16px; line-height: 1.75; }
.content-section ul { list-style: none; margin-bottom: 20px; }
.content-section ul li {
    padding: 10px 0 10px 28px;
    position: relative; color: #5a5e6e;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.content-section ul li::before {
    content: '→'; position: absolute; left: 0;
    color: #d4a030;
}
.rev-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin: 24px 0;
}
.rev-card {
    background: #ffffff; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px; padding: 20px;
}
.rev-card .num { font-size: 1.5rem; font-weight: 700; color: #b8860b; }
.rev-card .label { font-size: 0.85rem; color: #8a8fa0; margin-top: 4px; }
.rev-card .desc { font-size: 0.8rem; color: #9a9ea8; margin-top: 6px; }

/* ── Select (marketplace filter) ── */
select.q-ccy { height: auto; }

/* ── Content section table (how-it-works) ── */
.content-section table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.content-section table th { text-align: left; padding: 10px 8px; color: #8a8fa0; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,0.06); }
.content-section table td { padding: 10px 8px; border-bottom: 1px solid rgba(0,0,0,0.04); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions { gap: 6px; }
    .btn-outline-sm, .btn-sm { font-size: 0.8rem; padding: 5px 12px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .steps { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .quote-inputs { flex-direction: column; align-items: stretch; }
    .q-amount { width: 100%; }
    .q-arrow { transform: rotate(90deg); align-self: center; }
    .card-grid { grid-template-columns: 1fr; }
    .rev-row { grid-template-columns: 1fr; }
    .footer-links { gap: 24px; flex-wrap: wrap; }
    .footer-inner { flex-direction: column; }
    .table-wrap { padding: 0 12px; }
    .table-wrap td, .table-wrap th { padding: 10px 10px; font-size: 0.8rem; }
}
