/* =========================================================================
   TrueNorth — dark Canadian crypto exchange
   Display: Bricolage Grotesque · Body: Figtree · Data: JetBrains Mono
   Accent: maple red + amber
   ========================================================================= */

:root {
    --void:    #0C0F12;
    --panel:   #141A20;
    --panel-2: #1B232B;
    --raised:  #212C36;
    --line:    #2A343E;
    --line-2:  #37444F;

    --text:    #F1EDE6;
    --muted:   #9AA7B2;
    --faint:   #6B7883;

    --red:     #E23A3A;
    --red-2:   #F0514F;
    --amber:   #E8913A;
    --amber-2: #F2A54E;

    --green:   #37C98B;
    --down:    #F0514F;

    --grad: linear-gradient(115deg, #E23A3A 0%, #E8913A 100%);
    --grad-soft: linear-gradient(115deg, rgba(226,58,58,.16), rgba(232,145,58,.16));

    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-pill: 999px;

    --shadow: 0 2px 8px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.45);
    --glow: 0 8px 30px rgba(226,58,58,.38);

    --font-display: 'Bricolage Grotesque', 'Figtree', sans-serif;
    --font-body: 'Figtree', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; width: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--void);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--text); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .06em;
    color: var(--amber-2);
    margin-bottom: 1rem;
}
.eyebrow .leaf { width: 15px; height: 15px; color: var(--red-2); display: inline-flex; }
.eyebrow .leaf svg { width: 100%; height: 100%; }

::selection { background: rgba(226,58,58,.32); color: #fff; }

.leaf-inline { display: inline-flex; }
.leaf-inline svg { width: 100%; height: 100%; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 50px; padding: 0 1.9rem;
    border: none; border-radius: var(--r-pill);
    font-family: var(--font-display); font-weight: 600; font-size: .98rem;
    cursor: pointer; text-decoration: none;
    transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s cubic-bezier(.2,.7,.3,1);
    transform: translateZ(0) scale(1); transform-origin: center; backface-visibility: hidden;
    will-change: transform; white-space: nowrap;
}
.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 2px 10px rgba(226,58,58,.28);
}
.btn-primary:hover { transform: translateZ(0) scale(1.035); box-shadow: var(--glow); }
.btn-primary:active { transform: translateZ(0) scale(1.01); }
.btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--red-2); color: #fff; transform: translateZ(0) scale(1.03); }
.btn:focus-visible { outline: 3px solid rgba(232,145,58,.6); outline-offset: 2px; }

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto 0; height: 74px; z-index: 1000;
    background: rgba(12,15,18,.72);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--line);
    transition: transform .3s ease;
}
.header-hidden { transform: translateY(-100%); }
.navbar { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 74px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo .logo-leaf { width: 30px; height: 30px; color: var(--red-2); display: inline-flex; }
.logo .logo-leaf svg { width: 100%; height: 100%; }
.logo .logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo .logo-text b { color: var(--amber-2); font-weight: 800; }

.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-menu a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; transition: color .2s ease; cursor: pointer; }
.nav-menu a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; border-radius: 2px; background: var(--grad); transition: width .28s cubic-bezier(.2,.7,.3,1); }
.nav-menu a:hover { color: var(--text); }
.nav-menu a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-actions .btn { height: 44px; padding: 0 1.5rem; font-size: .92rem; }

.burger-menu { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 46px; height: 42px; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 12px; cursor: pointer; }
.burger-menu span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s cubic-bezier(.2,.7,.3,1); display: block; }
.burger-menu.active span:nth-child(1) { transform: rotate(-45deg) translate(-4px, 5px); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: rotate(45deg) translate(-4px, -5px); }

.mobile-menu { position: fixed; top: 74px; left: 0; right: 0; background: rgba(16,21,26,.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s cubic-bezier(.2,.7,.3,1); z-index: 999; visibility: hidden; }
.mobile-menu.active { transform: translateY(0); visibility: visible; }
.mobile-menu-content { padding: 1.25rem 24px 2rem; display: flex; flex-direction: column; gap: .25rem; }
.mobile-menu-content a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; padding: .9rem .25rem; border-bottom: 1px solid var(--line); transition: color .2s ease, padding-left .2s ease; }
.mobile-menu-content a:hover { color: var(--amber-2); padding-left: .5rem; }
.mobile-menu .btn { margin-top: 1rem; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(74px + 72px) 0 88px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: -10%; right: -6%; width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(226,58,58,.16), rgba(232,145,58,.06) 45%, transparent 70%);
    pointer-events: none; z-index: 0;
}
.hero-leaf {
    position: absolute; top: 40px; right: -80px; width: 560px; height: 560px;
    color: var(--red); opacity: .06; z-index: 0; transform: rotate(-12deg); pointer-events: none;
}
.hero-leaf svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; margin-bottom: 1.5rem; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--muted); max-width: 540px; margin-bottom: 2.25rem; line-height: 1.5; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* live ticker strip */
.ticker { margin-top: 3rem; position: relative; z-index: 1; border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(180deg, rgba(27,35,43,.6), rgba(20,26,32,.6)); overflow: hidden; }
.ticker-track { display: flex; }
.ticker-item { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: 1rem 1.15rem; border-right: 1px solid var(--line); }
.ticker-item:last-child { border-right: none; }
.tk-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tk-body { min-width: 0; }
.tk-sym { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); letter-spacing: .04em; }
.tk-price { font-family: var(--font-mono); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.tk-chg { font-family: var(--font-mono); font-size: .72rem; margin-left: auto; }
.tk-chg.positive { color: var(--green); }
.tk-chg.negative { color: var(--down); }
.tk-chg.neutral  { color: var(--faint); }
.coin-btc  .tk-dot { background: #F7931A; }
.coin-eth  .tk-dot { background: #7B8CF4; }
.coin-sol  .tk-dot { background: #14F195; }
.coin-xrp  .tk-dot { background: #4FB6E6; }
.coin-usdc .tk-dot { background: #4C8DF0; }
.coin-usdt .tk-dot { background: #26A17B; }

/* ---------- Section frame ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: .85rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { position: relative; padding: 2rem 1.75rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .3s ease, transform .3s cubic-bezier(.2,.7,.3,1); }
.step:hover { border-color: var(--line-2); transform: translateY(-4px); }
.step-n { font-family: var(--font-mono); font-size: .8rem; color: var(--amber-2); margin-bottom: 1.1rem; letter-spacing: .05em; }
.step-icon { width: 56px; height: 56px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--grad-soft); border: 1px solid var(--line-2); margin-bottom: 1.25rem; color: var(--red-2); }
.step-icon .leaf-inline { width: 28px; height: 28px; }
.step-icon svg { width: 28px; height: 28px; }
.step h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.step p { color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* ---------- Rates ---------- */
.rates-tabs { display: none; max-width: 1120px; margin: 0 auto 1.75rem; gap: .4rem; background: var(--panel); border: 1px solid var(--line); padding: 5px; border-radius: var(--r-pill); }
.rates-tab { flex: 1; border: none; background: transparent; height: 42px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; transition: color .25s ease, background .25s ease; }
.rates-tab.is-active { color: #fff; background: var(--grad); box-shadow: 0 4px 16px rgba(226,58,58,.3); }

.rates-groups { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.25rem; }
.rate-group-label { display: flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 600; color: var(--faint); margin-bottom: 1rem; }
.rate-group-label span { font-family: var(--font-mono); font-weight: 700; font-size: .78rem; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 7px; letter-spacing: .04em; }
.rate-group-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.rates-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }

.rate-card { position: relative; padding: 1.15rem 1.25rem; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .28s cubic-bezier(.2,.7,.3,1), border-color .28s ease, box-shadow .28s ease; }
.rate-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; opacity: 0; transition: opacity .28s ease; }
.rate-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.rate-card:hover::before { opacity: 1; }
.rate-info { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.crypto-name { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 1rem; display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.crypto-name::before { content: ''; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.crypto-symbol { color: var(--faint); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; margin-top: .35rem; margin-left: 1.15rem; }
.rate-price { text-align: right; }
.price { display: block; font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.change { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; margin-top: .3rem; display: inline-block; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.change.positive { color: var(--green); background: rgba(55,201,139,.12); }
.change.negative { color: var(--down); background: rgba(240,81,79,.12); }
.change.neutral  { color: var(--muted); background: rgba(154,167,178,.10); }

.coin-btc  .crypto-name::before, .coin-btc.rate-card::before  { background: #F7931A; }
.coin-eth  .crypto-name::before, .coin-eth.rate-card::before  { background: #7B8CF4; }
.coin-sol  .crypto-name::before, .coin-sol.rate-card::before  { background: #14F195; }
.coin-xrp  .crypto-name::before, .coin-xrp.rate-card::before  { background: #4FB6E6; }
.coin-usdc .crypto-name::before, .coin-usdc.rate-card::before { background: #4C8DF0; }
.coin-usdt .crypto-name::before, .coin-usdt.rate-card::before { background: #26A17B; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .85rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); overflow: hidden; transition: border-color .25s ease; }
.faq-item.open { border-color: var(--line-2); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1.35rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.faq-icon { width: 26px; height: 26px; flex-shrink: 0; position: relative; border-radius: 50%; border: 1px solid var(--line-2); transition: background .25s ease, border-color .25s ease; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--amber-2); border-radius: 2px; top: 50%; left: 50%; transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.faq-icon::before { width: 11px; height: 2px; transform: translate(-50%,-50%); }
.faq-icon::after { width: 2px; height: 11px; transform: translate(-50%,-50%); }
.faq-item.open .faq-icon { background: var(--grad); border-color: transparent; }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: #fff; }
.faq-item.open .faq-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.2,.7,.3,1); }
.faq-a-inner { padding: 0 1.5rem 1.4rem; color: var(--muted); line-height: 1.65; }

/* ---------- Exchange form ---------- */
.exchange { position: relative; }
.exchange-wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 400px; gap: 3rem; align-items: center; background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3.25rem); position: relative; overflow: hidden; }
.exchange-wrap::before { content: ''; position: absolute; top: -30%; left: -8%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(226,58,58,.18), transparent 68%); pointer-events: none; }
.exchange-leaf { position: absolute; bottom: -60px; left: -40px; width: 260px; height: 260px; color: var(--amber); opacity: .05; transform: rotate(18deg); pointer-events: none; }
.exchange-leaf svg { width: 100%; height: 100%; }
.exchange-copy { position: relative; z-index: 1; min-width: 0; }
.exchange-copy h2 { margin-bottom: 1rem; }
.exchange-copy p { color: var(--muted); font-size: 1.05rem; max-width: 420px; }
.exchange-copy .trust { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .7rem; }
.exchange-copy .trust li { list-style: none; display: flex; align-items: center; gap: .65rem; color: var(--text); font-size: .96rem; }
.exchange-copy .trust .leaf-inline { width: 17px; height: 17px; color: var(--red-2); flex-shrink: 0; }

.form-card { position: relative; z-index: 2; min-width: 0; background: var(--void); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 1.75rem; box-shadow: var(--shadow); }
.form-group { margin-bottom: .8rem; }
.exchange-form label { display: block; margin-bottom: .3rem; font-weight: 600; font-size: .82rem; color: var(--muted); }
.exchange-form input, .exchange-form select {
    width: 100%; height: 48px; padding: 0 .95rem;
    background: var(--panel-2); border: 1.5px solid var(--line); border-radius: var(--r-sm);
    color: var(--text); font-size: .95rem; font-family: var(--font-body);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.exchange-form input::placeholder { color: var(--faint); }
.exchange-form select { cursor: pointer; -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239AA7B2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .95rem center; padding-right: 2.2rem; }
.exchange-form input:focus, .exchange-form select:focus { outline: none; border-color: var(--red-2); background: var(--panel); box-shadow: 0 0 0 4px rgba(226,58,58,.16); }
.input-with-select { display: flex; gap: .6rem; }
.input-with-select input { flex: 1 1 auto; width: auto; min-width: 0; }
.input-with-select select { width: 96px; flex-shrink: 0; }

.btn-send { width: 100%; height: 52px; margin-top: .6rem; border: none; border-radius: var(--r-sm); background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s cubic-bezier(.2,.7,.3,1); transform: translateZ(0) scale(1); transform-origin: center; will-change: transform; box-shadow: 0 2px 10px rgba(226,58,58,.28); }
.btn-send:hover { transform: translateZ(0) scale(1.02); box-shadow: var(--glow); }
.btn-send:active { transform: translateZ(0) scale(1.005); }
.btn-send.is-loading { pointer-events: none; }
.btn-send.is-loading::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; flex-shrink: 0; }
.btn-send.is-success { background: linear-gradient(115deg, #37C98B, #2FB07A); }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note { margin-top: 1rem; text-align: center; }
.form-note p { font-size: .78rem; color: var(--faint); line-height: 1.5; }
.form-note a { color: var(--amber-2); text-decoration: none; font-weight: 600; }
.form-note a:hover { text-decoration: underline; }
.form-error-banner { background: rgba(240,81,79,.12); color: var(--down); border: 1px solid rgba(240,81,79,.35); border-radius: var(--r-sm); padding: .6rem .85rem; font-size: .82rem; margin-bottom: .6rem; text-align: center; }
.error { border-color: var(--down) !important; box-shadow: 0 0 0 4px rgba(240,81,79,.16) !important; }
.error-message { color: var(--down); font-size: .78rem; margin-top: .3rem; display: block; }

/* ---------- Footer ---------- */
.footer { background: #090C0F; border-top: 1px solid var(--line); padding: 72px 0 28px; }
.footer-top { max-width: 1120px; margin: 0 auto 3rem; display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr; gap: 3rem; }
.footer .logo { margin-bottom: 1rem; }
.footer-blurb { color: var(--muted); font-size: .95rem; max-width: 280px; line-height: 1.6; }
.footer h4 { font-size: 1rem; margin-bottom: 1.25rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .7rem; }
.footer a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .2s ease, padding-left .2s ease; }
.footer a:hover { color: var(--amber-2); padding-left: .3rem; }
.footer .contact p { color: var(--muted); font-size: .92rem; margin-bottom: .7rem; }
.footer-bottom { max-width: 1120px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 2rem; text-align: center; }
.footer-bottom > p { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.disclaimer { font-size: .8rem; color: var(--faint); max-width: 820px; margin: 0 auto; line-height: 1.6; }

/* ---------- Modals ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(6,8,10,.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity .32s cubic-bezier(.2,.7,.3,1), visibility .32s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); width: min(720px, 100%); max-height: min(82vh, 760px); position: relative; box-shadow: var(--shadow); transform: translateY(24px) scale(.98); opacity: 0; transition: transform .38s cubic-bezier(.2,.7,.3,1), opacity .38s ease; display: flex; flex-direction: column; overflow: hidden; }
.modal-overlay.active .modal { transform: none; opacity: 1; }
.modal-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 2.5rem clamp(1.5rem, 3vw, 2.75rem); }
.modal-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: none; background: var(--panel-2); color: var(--muted); border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease, transform .2s ease; }
.modal-close:hover { background: var(--raised); color: var(--text); transform: rotate(90deg); }
.modal-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4rem; padding-right: 2.5rem; }
.modal-body { color: var(--muted); font-size: .98rem; line-height: 1.7; }
.modal-body .modal-updated { font-size: .82rem; color: var(--faint); margin-bottom: 1.4rem; font-family: var(--font-mono); }
.modal-body h3 { color: var(--text); font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.modal-body p { margin-bottom: .85rem; }
.modal-body ul { margin: 0 0 .85rem 1.1rem; }
.modal-body li { margin-bottom: .4rem; }
.modal-body a { color: var(--amber-2); font-weight: 600; text-decoration: none; }
.modal-body strong { color: var(--text); }
.legal-meta { margin-top: 1.75rem; padding: 1.1rem 1.25rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .9rem; }
.legal-meta p { margin-bottom: .35rem; }
body.modal-open { overflow: hidden; }
html.modal-open, body.modal-open { overflow: hidden; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 160%); width: min(1040px, calc(100% - 32px)); background: rgba(20,26,32,.92); backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow); z-index: 1500; transition: transform .45s cubic-bezier(.2,.7,.3,1); visibility: hidden; }
.cookie-banner.active { transform: translate(-50%, 0); visibility: visible; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 1.4rem; }
.cookie-text { font-size: .92rem; color: var(--muted); line-height: 1.5; }
.cookie-text a { color: var(--amber-2); font-weight: 600; text-decoration: none; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-btn { border: none; cursor: pointer; height: 42px; padding: 0 1.4rem; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 600; font-size: .9rem; transition: transform .25s cubic-bezier(.2,.7,.3,1); transform-origin: center; white-space: nowrap; }
.cookie-decline { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); }
.cookie-decline:hover { transform: scale(1.03); }
.cookie-accept { background: var(--grad); color: #fff; }
.cookie-accept:hover { transform: scale(1.03); box-shadow: var(--glow); }

/* ---------- states ---------- */
@keyframes priceUpdate { 0% { color: var(--amber-2); } 100% { color: var(--text); } }
.price-updated { animation: priceUpdate 1s ease-out; }

/* hero entrance (single orchestrated moment) */
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: heroRise .7s cubic-bezier(.2,.7,.3,1) both; }
.hero-inner > *:nth-child(2) { animation-delay: .08s; }
.hero-inner > *:nth-child(3) { animation-delay: .16s; }
.hero-inner > *:nth-child(4) { animation-delay: .24s; }
.ticker { animation: heroRise .7s cubic-bezier(.2,.7,.3,1) .32s both; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    .exchange-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .form-card { width: 100%; max-width: 440px; min-width: 0; justify-self: stretch; }
    .rates-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .container { padding: 0 18px; }
    .navbar { padding: 0 18px; }
    .nav-menu, .nav-actions .btn { display: none !important; }
    .burger-menu { display: flex !important; }
    .section { padding: 64px 0; }
    .hero { padding: calc(74px + 40px) 0 60px; }
    .hero-leaf { width: 380px; right: -120px; top: 80px; }
    .ticker-track { flex-wrap: wrap; }
    .ticker-item { flex: 1 1 45%; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .rates-tabs { display: flex; }
    .rates-groups { gap: 0; }
    .rate-group { display: none; }
    .rate-group.is-active { display: block; }
    .rate-group-label { display: none; }
    .rates-grid { grid-template-columns: 1fr; }
    .exchange-wrap { padding: 1.5rem; }
    .form-card { max-width: 100%; padding: 1.4rem; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
    .footer-brand { grid-column: 1 / -1; text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .footer-blurb { margin: 0 auto; }
    .cookie-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 1rem; }
    .cookie-actions { justify-content: center; }
    .cookie-btn { flex: 1; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .ticker-item { flex: 1 1 100%; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-brand .logo, .footer .logo { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .hero-inner > *, .ticker { animation: none !important; opacity: 1 !important; transform: none !important; }
}