:root {
    color-scheme: dark;
    --bg: #101314;
    --panel: #181d1f;
    --panel-soft: #202729;
    --text: #f4f0e8;
    --muted: #b6c0bd;
    --line: rgba(244, 240, 232, 0.14);
    --accent: #25a67a;
    --accent-strong: #2fd093;
    --amber: #d6a24d;
    --blue: #55a8d8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.hero {
    min-height: 92vh;
    padding: 24px clamp(18px, 4vw, 56px) 56px;
    background:
        linear-gradient(120deg, rgba(16, 19, 20, 0.72), rgba(16, 19, 20, 0.94)),
        url("https://images.unsplash.com/photo-1642790106117-e829e14a795f?auto=format&fit=crop&w=1800&q=80") center/cover;
    border-bottom: 1px solid var(--line);
}

.topbar,
.hero-grid,
.section,
.footer {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 15px;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a,
.language-switcher a {
    text-decoration: none;
}

.nav-links a:hover,
.language-switcher a:hover {
    color: var(--text);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.language-switcher a {
    padding: 6px 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.language-switcher a + a {
    border-left: 1px solid var(--line);
}

.language-switcher a[aria-current="page"] {
    background: var(--accent);
    color: #07120e;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: end;
    min-height: calc(92vh - 92px);
    padding-top: 64px;
}

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

.eyebrow,
.panel-label {
    margin: 0 0 12px;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(40px, 8vw, 84px);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.lead {
    max-width: 680px;
    margin: 24px 0 0;
    color: #e8e0d2;
    font-size: 22px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 18px;
    text-decoration: none;
    font-weight: 800;
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #07120e;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.06);
}

.market-panel {
    border: 1px solid var(--line);
    background: rgba(24, 29, 31, 0.86);
    border-radius: 8px;
    padding: 22px;
    backdrop-filter: blur(12px);
}

.pair-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pair-grid span {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 800;
}

.section {
    padding: clamp(52px, 8vw, 92px) clamp(18px, 4vw, 32px);
}

.band {
    width: 100%;
    max-width: none;
    padding-left: max(18px, calc((100vw - 1180px) / 2 + 32px));
    padding-right: max(18px, calc((100vw - 1180px) / 2 + 32px));
    background: #15191a;
    border-block: 1px solid var(--line);
}

.section-head {
    max-width: 780px;
    margin-bottom: 28px;
}

.section-head p:not(.eyebrow) {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.status-line {
    margin-bottom: 18px;
    color: var(--muted);
}

.status-line.is-error {
    color: #ffb88f;
}

.stat-grid,
.feature-grid,
.guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-card,
.feature-grid article,
.guide-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 18px;
}

.stat-card span {
    display: block;
    min-height: 42px;
    color: var(--muted);
    font-size: 14px;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 30px;
    line-height: 1.1;
}

.stat-card.wide {
    grid-column: span 2;
}

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

.feature-grid p,
.guide-grid p,
.risk-list p {
    margin: 0;
    color: var(--muted);
}

.step {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 900;
}

.volume-wrap {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    padding: 18px;
}

.volume-list {
    display: grid;
    gap: 10px;
}

.volume-row {
    display: grid;
    grid-template-columns: 0.7fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.muted {
    color: var(--muted);
}

.risk-list {
    display: grid;
    gap: 14px;
    max-width: 880px;
    font-size: 18px;
}

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

.text-columns p,
.faq-list p {
    color: var(--muted);
    margin: 0;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.faq-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 18px;
}

.final-cta {
    margin-top: 28px;
}

.legal-note {
    max-width: 880px;
    margin: 22px 0 0;
    color: var(--muted);
}

.legal-note a,
.footer-links a {
    color: var(--text);
    text-underline-offset: 3px;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 28px clamp(18px, 4vw, 32px);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.legal-page {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: clamp(34px, 7vw, 76px) clamp(18px, 4vw, 32px);
}

.legal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.legal-page h1 {
    margin-top: 34px;
    font-size: clamp(34px, 6vw, 62px);
}

.legal-page h2 {
    margin-top: 34px;
    font-size: clamp(24px, 4vw, 34px);
}

.legal-page p {
    color: var(--muted);
    font-size: 18px;
}

.legal-page li {
    margin: 8px 0;
    color: var(--muted);
    font-size: 18px;
}

.legal-page a {
    text-underline-offset: 3px;
}

.legal-updated {
    margin: -10px 0 28px;
    font-size: 15px !important;
}

.legal-summary {
    color: var(--text) !important;
}

.legal-doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.legal-doc-links a {
    color: var(--text);
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
    }

    .hero-grid,
    .stat-grid,
    .feature-grid,
    .guide-grid,
    .text-columns,
    .faq-list {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: 0;
        align-items: start;
    }

    .stat-card.wide {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .topbar,
    .footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-links {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .lead {
        font-size: 18px;
    }

    .pair-grid,
    .volume-row {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }
}
