/* =========================================================
   TruStart — refined design system
   Display: Space Grotesk · Body: Nunito Sans · Data: JetBrains Mono
   ========================================================= */

:root {
    /* Brand */
    --navy-900: #030C28;
    --navy-800: #071740;
    --navy-700: #0C1D4A;
    --teal:     #50919C;
    --cyan:     #81D5E3;
    --cyan-2:   #5FCADB;

    /* Neutrals */
    --ink:      #0F1B2D;
    --slate:    #5A6B82;
    --slate-2:  #8496AB;
    --paper:    #FFFFFF;
    --mist:     #F4F7FB;
    --mist-2:   #EEF3F9;
    --line:     #E6ECF3;

    /* Signals */
    --green:    #12B981;
    --red:      #F0475B;

    /* Accent gradient */
    --grad-brand: linear-gradient(118deg, #03164F 4%, #2E6E93 62%, #81D5E3 118%);
    --grad-brand-h: linear-gradient(118deg, #021242 4%, #276184 62%, #6BC0CF 118%);
    --grad-surface: linear-gradient(135deg, #0C2A54 0%, #16687E 55%, #2E8B9B 100%);

    /* Radii */
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    /* Shadows — layered, soft */
    --shadow-soft: 0 1px 2px rgba(15,27,45,.04), 0 4px 14px rgba(15,27,45,.05);
    --shadow-card: 0 2px 6px rgba(15,27,45,.05), 0 14px 34px rgba(15,27,45,.09);
    --shadow-lift: 0 10px 20px rgba(15,27,45,.08), 0 28px 56px rgba(15,27,45,.16);
    --shadow-glow: 0 10px 30px rgba(63,150,180,.45);

    /* Type */
    --font-display: 'Space Grotesk', 'Nunito Sans', sans-serif;
    --font-body: 'Nunito Sans', 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(--ink);
    background: var(--paper);
    width: 100%;
    position: relative;
    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, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.02em;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }

.text-accent { color: var(--cyan-2); }

::selection { background: rgba(129,213,227,.35); color: var(--navy-900); }

/* ---------- Buttons ---------- */
.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    border: none;
    padding: 0 1.75rem;
    height: 46px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s cubic-bezier(.2,.7,.3,1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15,27,45,.10), 0 6px 16px rgba(63,150,180,.20);
    white-space: nowrap;
    will-change: transform;
    transform: translateZ(0) scale(1);
    transform-origin: center;
    backface-visibility: hidden;
}
.btn-primary:hover {
    transform: translateZ(0) scale(1.035);
    box-shadow: 0 6px 12px rgba(15,27,45,.12), 0 16px 34px rgba(63,150,180,.42);
}
.btn-primary:active { transform: translateZ(0) scale(1.01); }
.btn-primary:focus-visible { outline: 3px solid rgba(129,213,227,.6); outline-offset: 2px; }

.nav-actions .btn-primary { width: 150px; }

.btn-large { height: 50px; padding: 0 2.25rem; font-size: 1rem; }

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    z-index: 1000;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
    height: 76px;
    border-bottom: 1px solid rgba(230,236,243,.9);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 76px;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform .3s ease;
    flex-shrink: 0;
    z-index: 10;
}
.logo:hover { transform: scale(1.04); }
.logo-placeholder { display: flex; align-items: center; gap: .75rem; }
.logo-icon { width: 172px; height: 36px; object-fit: contain; }

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

.nav-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.burger-menu {
    display: none;
    flex-direction: column;
    background: var(--navy-900);
    border: none;
    cursor: pointer;
    border-radius: 12px;
    width: 46px; height: 42px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: transform .2s ease;
}
.burger-menu:active { transform: scale(.94); }
.burger-menu span {
    width: 20px; height: 2px;
    background: #fff;
    border-radius: 2px;
    display: block;
    transition: .3s cubic-bezier(.2,.7,.3,1);
}

.mobile-menu {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(255,255,255,.96);
    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;
    box-shadow: var(--shadow-card);
    visibility: hidden;
}
.mobile-menu.active { transform: translateY(0); visibility: visible; }
.mobile-menu-content {
    padding: 1.5rem 24px 2rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.mobile-menu-content a {
    color: var(--ink);
    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(--teal); padding-left: .6rem; }
.mobile-menu .mobile-cta { margin-top: 1rem; width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: calc(76px + 40px) 0 40px;
}
.hero .container {
    max-width: 1200px;
}
.hero-inner {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
    isolation: isolate;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(129,213,227,.18);
}
.hero-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3,10,32,.94) 0%, rgba(3,10,32,.78) 34%, rgba(3,10,32,.30) 70%, rgba(3,10,32,.10) 100%),
        url('crypto-chart-bg.png') center right / cover no-repeat,
        var(--navy-900);
    z-index: -1;
}
.hero-content {
    max-width: 620px;
    padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
    color: #fff;
}
.hero-content h1 {
    font-family: var(--font-display);
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.1rem;
    background: linear-gradient(92deg, #fff 40%, var(--cyan) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: rgba(255,255,255,.94);
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: .4rem;
}
.hero-description {
    font-size: clamp(.95rem, 1.8vw, 1.1rem);
    color: var(--cyan);
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 1.9rem;
    letter-spacing: .01em;
}
.hero-actions { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }

/* ---------- Features ---------- */
.features-section { padding: 72px 0; background: var(--paper); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    text-align: center;
    padding: 2.5rem 1.75rem;
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: rgba(129,213,227,.55);
}
.feature-icon {
    width: 76px; height: 76px;
    margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
}
.icon-placeholder {
    width: 80px; height: 80px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}
.feature-svg-icon { object-fit: contain; }

/* icon-1 & icon-2 embed their own coloured badge — show at full size, no tile behind */
.security-icon, .global-icon { background: transparent; }
.security-icon .feature-svg-icon,
.global-icon .feature-svg-icon { width: 80px; height: 80px; }

/* icon-3 is white line-art — give it a matching gradient tile */
.multi-currency-icon {
    background: linear-gradient(135deg, #3E7F8A, #62B0BC);
    box-shadow: 0 8px 20px rgba(12,42,84,.22);
}
.multi-currency-icon::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.4);
    pointer-events: none;
}
.multi-currency-icon .feature-svg-icon { width: 40px; height: 48px; }

.feature-card h3 {
    margin-bottom: .75rem;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 600;
}
.feature-card p {
    color: var(--slate);
    font-weight: 400;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* ---------- Section headers ---------- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
    color: var(--ink);
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 56px; height: 4px;
    margin: 1.1rem auto 0;
    border-radius: 4px;
    background: var(--grad-brand);
}

/* ---------- Security ---------- */
.security-section { padding: 96px 0; background: var(--mist); overflow: hidden; }
.security-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    gap: 4rem;
}
.security-features { display: flex; flex-direction: column; gap: 2.25rem; }
.security-feature {
    position: relative;
    padding-left: 1.5rem;
}
.security-feature::before {
    content: '';
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: var(--grad-brand);
    opacity: .85;
}
.security-feature h4 {
    margin-bottom: .5rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.security-feature p {
    color: var(--slate);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
}
.security-visual { display: flex; justify-content: center; align-items: center; }
.security-image-placeholder {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
}
.security-image { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Rates (signature: terminal ticker) ---------- */
.rates-section { padding: 88px 0; background: var(--paper); }
.rates-section .section-header { margin-bottom: 2.5rem; }
.rates-groups {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}
.rates-tabs {
    display: none;
    max-width: 1120px;
    margin: 0 auto 1.5rem;
    gap: .5rem;
    background: var(--mist);
    border: 1px solid var(--line);
    padding: 5px;
    border-radius: var(--r-pill);
}
.rates-tab {
    flex: 1;
    border: none;
    background: transparent;
    height: 40px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    color: var(--slate);
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.rates-tab.is-active {
    background: var(--paper);
    color: var(--navy-900);
    box-shadow: var(--shadow-soft);
}
.rate-group-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 600;
    color: var(--slate-2);
    letter-spacing: .02em;
    margin-bottom: 1rem;
}
.rate-group-label span {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .8rem;
    color: var(--ink);
    background: var(--mist);
    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-unified-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.rate-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.15rem 1.25rem;
    transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, border-color .28s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}
.rate-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--slate-2);
    opacity: .0;
    transition: opacity .28s ease;
}
.rate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(129,213,227,.6);
}
.rate-card:hover::before { opacity: .9; }
.rate-info { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.crypto-info { display: flex; flex-direction: column; }
.crypto-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}
.crypto-name::before {
    content: '';
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--slate-2);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0,0,0,.03);
}
/* per-coin accents (class-based so any number/order of coins works) */
.rate-card.coin-btc  .crypto-name::before { background: #F7931A; }
.rate-card.coin-btc::before  { background: #F7931A; }
.rate-card.coin-eth  .crypto-name::before { background: #627EEA; }
.rate-card.coin-eth::before  { background: #627EEA; }
.rate-card.coin-sol  .crypto-name::before { background: #14F195; }
.rate-card.coin-sol::before  { background: #14F195; }
.rate-card.coin-xrp  .crypto-name::before { background: #23A8D8; }
.rate-card.coin-xrp::before  { background: #23A8D8; }
.rate-card.coin-usdc .crypto-name::before { background: #2775CA; }
.rate-card.coin-usdc::before { background: #2775CA; }

.crypto-symbol {
    color: var(--slate-2);
    font-family: var(--font-mono);
    font-size: .78rem;
    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.2rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.change {
    font-family: var(--font-mono);
    font-size: .8rem;
    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(18,185,129,.10); }
.change.negative { color: var(--red); background: rgba(240,71,91,.10); }
.change.neutral  { color: var(--slate); background: rgba(90,107,130,.10); }

/* ---------- Exchange ---------- */
.exchange-section { padding: 88px 0 96px; background: var(--paper); }
.exchange-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    border-radius: var(--r-lg);
    background:
        linear-gradient(115deg, rgba(4,11,34,.94) 0%, rgba(6,26,58,.86) 45%, rgba(14,63,78,.72) 100%),
        url('crypto-chart-bg.png') center / cover no-repeat,
        var(--navy-900);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2.5rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(129,213,227,.18);
}
.exchange-wrapper::before {
    content: '';
    position: absolute;
    top: -30%; right: -8%;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(129,213,227,.28), transparent 68%);
    pointer-events: none;
}
.exchange-info { max-width: 460px; min-width: 0; position: relative; z-index: 1; }
.exchange-info h2 { color: #fff; margin-bottom: 1rem; font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.exchange-info h2 .text-accent { color: var(--cyan); }
.exchange-info p { color: rgba(255,255,255,.9); font-size: 1.08rem; line-height: 1.6; }

.exchange-form-container {
    background: var(--paper);
    border-radius: var(--r-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-lift);
    width: 340px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.exchange-form { width: 100%; }
.exchange-form .form-group { margin-bottom: .75rem; }
.exchange-form label {
    display: block;
    margin-bottom: .3rem;
    font-weight: 600;
    color: var(--ink);
    font-size: .85rem;
}
.exchange-form input,
.exchange-form select {
    width: 100%;
    height: 46px;
    padding: 0 .9rem;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: .95rem;
    font-family: var(--font-body);
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    background: var(--mist);
}
.exchange-form input::placeholder { color: var(--slate-2); }
.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='%235A6B82' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    padding-right: 2.2rem;
}
.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: 92px; flex-shrink: 0; }
.exchange-form input:focus,
.exchange-form select:focus {
    outline: none;
    border-color: var(--cyan-2);
    background: var(--paper);
    box-shadow: 0 0 0 4px rgba(129,213,227,.18);
}

.btn-send {
    background: var(--grad-brand);
    color: #fff;
    border: none;
    padding: 0;
    border-radius: var(--r-sm);
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s cubic-bezier(.2,.7,.3,1);
    font-size: 1rem;
    width: 100%;
    height: 50px;
    margin-top: .5rem;
    box-shadow: 0 2px 6px rgba(15,27,45,.10), 0 6px 16px rgba(63,150,180,.20);
    will-change: transform;
    transform: translateZ(0) scale(1);
    transform-origin: center;
    backface-visibility: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}
.btn-send:hover {
    transform: translateZ(0) scale(1.02);
    box-shadow: 0 6px 12px rgba(15,27,45,.12), 0 16px 34px rgba(63,150,180,.42);
}
.btn-send:active { transform: translateZ(0) scale(1.005); }
.btn-send:focus-visible { outline: 3px solid rgba(129,213,227,.6); outline-offset: 2px; }
.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: btnspin .7s linear infinite;
    flex-shrink: 0;
}
.btn-send.is-success { background: linear-gradient(120deg, #12B981, #34D3A0); }
@keyframes btnspin { to { transform: rotate(360deg); } }

.form-error-banner {
    background: rgba(240,71,91,.10);
    color: var(--red);
    border: 1px solid rgba(240,71,91,.30);
    border-radius: var(--r-sm);
    padding: .6rem .85rem;
    font-size: .82rem;
    line-height: 1.4;
    margin-bottom: .6rem;
    text-align: center;
}

.form-notice { margin-top: 1rem; text-align: center; }
.form-notice p { font-size: .78rem; color: var(--slate); line-height: 1.5; }
.form-notice a { color: var(--teal); text-decoration: none; font-weight: 600; }
.form-notice a:hover { text-decoration: underline; }

.error { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(240,71,91,.14) !important; }
.error-message { color: var(--red); font-size: .78rem; margin-top: .3rem; display: block; }

/* ---------- Footer ---------- */
.footer {
    background: var(--navy-900);
    color: #fff;
    padding: 72px 0 28px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129,213,227,.5), transparent);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}
.footer-logo-placeholder { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-logo-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.footer-logo-image { width: 100%; height: 100%; object-fit: contain; }
.footer-logo-placeholder .logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}
.footer-section h4 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .7rem; }
.footer-links a {
    color: rgba(255,255,255,.62);
    text-decoration: none;
    font-size: .95rem;
    transition: color .25s ease, padding-left .25s ease;
}
.footer-links a:hover { color: var(--cyan); padding-left: .3rem; }
.contact-info p { color: rgba(255,255,255,.62); margin-bottom: .7rem; font-size: .92rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 2rem;
    text-align: center;
}
.footer-bottom > p { color: rgba(255,255,255,.7); margin-bottom: .5rem; font-size: .95rem; }
.disclaimer { font-size: .8rem; max-width: 820px; margin: 0 auto; line-height: 1.6; color: rgba(255,255,255,.5) !important; }

/* ---------- Modals (legal) ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3,10,32,.55);
    backdrop-filter: blur(6px);
    -webkit-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(--paper);
    border-radius: var(--r-lg);
    width: min(720px, 100%);
    max-height: min(82vh, 760px);
    position: relative;
    box-shadow: var(--shadow-lift);
    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: translateY(0) scale(1); 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(--mist);
    color: var(--slate);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--mist-2); color: var(--ink); transform: rotate(90deg); }
.modal-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: .4rem;
    padding-right: 2.5rem;
}
.modal-body { color: var(--slate); font-size: .98rem; line-height: 1.7; }
.modal-body .modal-updated { font-size: .82rem; color: var(--slate-2); margin-bottom: 1.4rem; font-family: var(--font-mono); }
.modal-body h3 {
    color: var(--ink);
    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(--teal); font-weight: 600; text-decoration: none; }
.modal-body a:hover { text-decoration: underline; }
.modal-body strong { color: var(--ink); }
.legal-meta {
    margin-top: 1.75rem;
    padding: 1.1rem 1.25rem;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: .9rem;
}
.legal-meta p { margin-bottom: .35rem; }
.legal-meta p:last-child { margin-bottom: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translate(-50%, 140%);
    width: min(1040px, calc(100% - 32px));
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lift);
    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(--slate); line-height: 1.5; margin: 0; }
.cookie-text a { color: var(--teal); font-weight: 600; text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.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), box-shadow .25s cubic-bezier(.2,.7,.3,1), background .2s ease;
    will-change: transform;
    white-space: nowrap;
}
.cookie-decline { background: var(--mist); color: var(--ink); }
.cookie-decline:hover { background: var(--mist-2); transform: scale(1.03); }
.cookie-accept {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 2px 6px rgba(15,27,45,.10), 0 6px 16px rgba(63,150,180,.22);
}
.cookie-accept:hover { transform: scale(1.03); box-shadow: 0 6px 12px rgba(15,27,45,.12), 0 16px 30px rgba(63,150,180,.4); }
.cookie-btn { transform-origin: center; }
.cookie-btn:focus-visible { outline: 3px solid rgba(129,213,227,.6); outline-offset: 2px; }

.modal-overlay { overscroll-behavior: contain; }
html.modal-open, body.modal-open { overflow: hidden; }
body.modal-open { overflow: hidden; }

/* ---------- Animations / states ---------- */
@keyframes priceUpdate {
    0% { background-color: rgba(129,213,227,.28); }
    100% { background-color: transparent; }
}
.price-updated { animation: priceUpdate 1s ease-out; }

.header-hidden { transform: translateY(-100%); }

/* Scroll reveal — smooth, staggered */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(.16,.68,.32,1),
                transform .8s cubic-bezier(.16,.68,.32,1);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.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); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .security-wrapper { gap: 2.5rem; }
    .rates-unified-grid { grid-template-columns: repeat(3, 1fr); }
    .exchange-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .exchange-info { max-width: 100%; }
    .exchange-form-container { width: 100%; max-width: 440px; min-width: 0; justify-self: stretch; }
}

@media (max-width: 768px) {
    .container { padding: 0 18px; }
    .navbar { padding: 0 18px; }

    .nav-menu { display: none !important; }
    .nav-actions .btn-primary { display: none !important; }
    .burger-menu { display: flex !important; }

    .hero { padding: calc(76px + 28px) 0 32px; }
    .hero-inner { min-height: 300px; }
    .hero-inner::before {
        background:
            linear-gradient(180deg, rgba(3,10,32,.86) 0%, rgba(3,10,32,.72) 55%, rgba(3,10,32,.55) 100%),
            url('crypto-chart-bg.png') center / cover no-repeat,
            var(--navy-900);
    }
    .hero-content { padding: 2.5rem 1.75rem; text-align: center; margin: 0 auto; }
    .hero-actions { justify-content: center; }

    .features-section { padding: 56px 0; }
    .features-grid { grid-template-columns: 1fr; gap: 1.25rem; max-width: 440px; margin: 0 auto; }
    .feature-card { padding: 2rem 1.5rem; }

    .security-section { padding: 64px 0; }
    .security-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
    .security-visual { order: -1; }
    .security-image-placeholder { max-width: 300px; }
    .security-feature p { font-size: 1rem; }

    .rates-section { padding: 60px 0; }
    .rates-unified-grid { grid-template-columns: repeat(2, 1fr); }
    .rates-tabs { display: flex; }
    .rates-groups { gap: 0; }
    .rate-group { display: none; }
    .rate-group.is-active { display: block; }
    .rate-group-label { display: none; }
    .exchange-section { padding: 60px 0 72px; }

    .footer { padding: 56px 0 24px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
    .footer-section:first-child { grid-column: 1 / -1; text-align: center; }
    .footer-section:first-child .footer-logo-placeholder { justify-content: center; }

    .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; }
    .hero-inner { min-height: 270px; }
    .hero-content { padding: 2rem 1.25rem; }
    .rates-unified-grid { grid-template-columns: 1fr; }
    .exchange-form-container { padding: 1.5rem 1.25rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-logo-placeholder { justify-content: center; }
    .security-feature { padding-left: 1.1rem; }
}

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