/* CSS RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background: #FAFBFF;
    color: #181A2F;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    min-height: 100vh;
}
ol, ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s;
}
img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Orbitron:700&display=swap');

:root {
    --color-bg: #FAFBFF;
    --color-bg-dark: #181A2F;
    --color-primary: #181A2F;
    --color-secondary: #4F24C7;
    --color-accent: #39C4F1;
    --color-card: #FFF;
    --color-card-border: rgba(24,26,47,0.09);
    --color-muted: #606480;
    --color-shadow: 0 4px 24px 0 rgba(24,26,47,0.06);
    --radius: 14px;
    --transition: 0.18s cubic-bezier(.4,0,.2,1);
    --font-display: 'Orbitron', Arial, Helvetica, sans-serif;
    --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
    --shadow-minimal: 0 2px 10px 0 rgba(24,26,47,0.09);
}

/* TYPOGRAPHY */
h1, .hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.25rem;
    color: var(--color-primary);
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    line-height: 1.15;
}
h2 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
    letter-spacing: .01em;
    line-height: 1.2;
}
h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 8px;
}
p, ul, ol, table, .container > p, .container > ul, .container > ol {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-muted);
}
strong { font-weight: 600; color: var(--color-primary); }
em { color: var(--color-secondary); }

.text-section {
    max-width: 700px;
    margin: 0 auto;
}

/* LAYOUT CONTAINERS */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}
.section, section {
    margin-bottom: 60px;
    padding: 40px 20px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-minimal);
    margin-bottom: 20px;
    position: relative;
    min-width: 240px;
    padding: 24px 20px;
    flex: 1 1 260px;
    border: 1px solid var(--color-card-border);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
    box-shadow: 0 6px 20px 0 rgba(79, 36, 199, 0.10);
    border-color: var(--color-accent);
    transform: translateY(-2px) scale(1.015);
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: #FFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow-minimal);
    margin-bottom: 20px;
    border: 1px solid var(--color-card-border);
    max-width: 510px;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover {
    box-shadow: 0 6px 20px 0 rgba(57,196,241,0.13);
    border-color: var(--color-secondary);
    transform: translateY(-2px) scale(1.013);
}
.testimonial-card p {
    color: var(--color-primary);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 4px;
}
.testimonial-card div {
    color: var(--color-muted);
    font-size: 0.96rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: #FFF;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-minimal);
}

.market-cards,
.pair-grid,
.team-member-cards,
.advantages-list,
ul.security-feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.market-cards > div,
.pair-grid > div,
.team-member-card {
    background: #FFF;
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius);
    padding: 20px 18px;
    min-width: 190px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-minimal);
    flex: 1 1 180px;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.market-cards > div:hover, .pair-grid > div:hover, .team-member-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 18px 0 rgba(57,196,241,0.13);
    transform: translateY(-2px);
}

.values-icons, .security-icons, .shield-icons, .certificate-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

/* HERO / BANNER */
.hero {
    background: linear-gradient(100deg, #FAFBFF 0%, #F6F8FF 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-minimal);
    min-height: 220px;
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}
.hero h1 {
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-size: 2.1rem;
}
.hero h2 {
    color: var(--color-primary);
    font-weight: 400;
    margin-bottom: 18px;
}

.cta-banner {
    background: #F5F6FE;
    border-radius: var(--radius);
    box-shadow: var(--shadow-minimal);
    padding: 36px 20px;
}
.cta-banner h2 {
    font-family: var(--font-display);
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* BUTTONS & INTERACTIVE */
.cta-primary,
button,
input[type="submit"] {
    display: inline-block;
    background: var(--color-secondary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    padding: 12px 28px;
    border: none;
    border-radius: calc(var(--radius) * 0.9);
    box-shadow: 0 3px 9px 0 rgba(79,36,199,0.09);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
    letter-spacing: .02em;
}
.cta-primary:hover, .cta-primary:focus {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 3px 22px 0 rgba(57,196,241,0.09);
    transform: translateY(-1.5px) scale(1.025);
}
button:active { outline: none; }
button:focus { box-shadow: 0 0 0 2px var(--color-accent); outline: none; }

a.cta-primary { text-align: center; }

/* NAVIGATION */
header {
    background: #FFF;
    border-bottom: 1px solid var(--color-card-border);
    box-shadow: 0 2px 10px 0 rgba(24,26,47,0.07);
    position: relative;
    z-index: 100;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 0 0 0;
    height: 72px;
}
nav > a img {
    height: 36px;
    margin-right: 18px;
}
nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}
nav ul li {
    margin-bottom: 0;
}
nav ul li a, .mobile-nav a {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-primary);
    padding: 7px 13px;
    border-radius: 6px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
nav ul li a:hover, .mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--color-accent);
    color: #fff;
}
nav ul li .cta-primary {
    margin-left: 6px;
    font-size: 1rem;
    padding: 9px 18px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 2.1rem;
    color: var(--color-secondary);
    cursor: pointer;
    margin-left: 8px;
    z-index: 115;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus {
    background: var(--color-bg);
    color: var(--color-primary);
    outline: none;
}
.mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0; left: 0; height: 100%; width: 100vw;
    background: rgba(24,26,47,0.99);
    z-index: 3000;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform .22s cubic-bezier(.61,.09,.42,1), opacity .22s;
    pointer-events: none;
}
.mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    font-size: 2.4rem;
    color: var(--color-accent);
    margin: 16px 24px 8px 0;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 10px;
    transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:focus {
    background: var(--color-secondary);
    color: #fff;
    outline: none;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 28px;
    padding-left: 28px;
}
.mobile-nav a {
    color: #fff;
    background: transparent;
    font-size: 1.12rem;
    padding: 10px 8px 10px 0;
    width: 95%;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 500;
}
.mobile-nav a.cta-primary {
    color: var(--color-bg-dark);
    background: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 12px;
    width: auto;
}
@media (max-width: 1024px) {
    nav ul {
        display: none;
    }
    .mobile-menu-toggle {
        display: inline-block;
    }
}
@media (min-width: 1025px) {
    .mobile-menu { display: none!important; }
}

/* SECTIONS: Spacing & Layouts */
.features ul, .security-feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 8px;
}
.features ul li, .security-feature-grid li {
    background: #FFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow-minimal);
    padding: 22px 16px 20px 16px;
    flex: 1 1 210px;
    min-width: 190px;
    border: 1px solid var(--color-card-border);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.features ul li:hover, .security-feature-grid li:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 6px 20px 0 rgba(79,36,199,0.10);
    transform: scale(1.012);
}
.features ul li img, .security-feature-grid li img {
    height: 36px;
    margin-bottom: 8px;
}
.markets-ticker {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: #F2F3FA;
    border-radius: var(--radius);
    padding: 11px 16px;
    margin-bottom: 18px;
    font-size: 1.02rem;
    color: var(--color-muted);
}
.pair-grid {
    margin-bottom: 24px;
}
.pair-grid > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-size: 1.02rem;
}
.sparkline-trends {
    color: var(--color-secondary);
    font-size: 1.02rem;
    padding-top: 9px;
}

.team-member-card {
    font-size: 1rem;
    color: var(--color-primary);
    background: #FFF;
    border-radius: var(--radius);
    box-shadow: var(--shadow-minimal);
    padding: 20px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--color-card-border);
    min-width: 180px;
    max-width: 300px;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.team-member-card strong { color: var(--color-secondary); }

.trend-graphs {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}
.trend-graphs img {
    height: 46px;
}

.market-filters {
    display: flex;
    gap: 13px;
    align-items: center;
    font-size: 1.05rem;
    color: var(--color-secondary);
    margin-top: 22px;
}

.advantages-list {
    margin-top: 23px;
    padding-left: 0;
}
.advantages-list li {
    background: #F6F8FF;
    color: var(--color-primary);
    border-radius: 10px;
    padding: 11px 18px;
    margin-bottom: 14px;
    font-size: 1rem;
}

.comparison-chart {
    background: #FAFBFF;
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-minimal);
    padding: 22px 19px;
    color: var(--color-primary);
    margin-top: 14px;
    font-size: 1.04rem;
}

.location-map, .interactive-map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.infographic-steps {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
}
.infographic-steps img {
    height: 39px;
}

.security-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

/* Step-by-step guide */
.step-by-step-guide {
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.step-by-step-guide ol {
    flex: 2 1 270px;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* TABLES */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px 8px 0 0;
    box-shadow: var(--shadow-minimal);
    overflow: hidden;
}
thead {
    background: #F5F6FE;
}
th, td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--color-card-border);
    color: var(--color-primary);
    text-align: left;
}
th {
    font-weight: 600;
    color: var(--color-secondary);
}
tr:last-child td {
    border-bottom: none;
}

/* FOOTER */
footer {
    background: #F7F8FD;
    border-top: 1px solid var(--color-card-border);
    padding: 38px 0 24px 0;
    font-size: 1rem;
}
footer .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--font-display);
    color: var(--color-primary);
}
.footer-brand img {
    height: 37px;
}
footer nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1rem;
}
footer nav a {
    color: var(--color-muted);
    font-size: 1rem;
    margin-bottom: 3px;
    padding: 2px 0;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}
footer nav a:hover {
    background: var(--color-accent);
    color: #fff;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-primary);
    font-size: 0.98rem;
}
.footer-contact img {
    height: 16px;
    margin-right: 6px;
    vertical-align: -2px;
    display: inline;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .container, .content-wrapper { padding-left: 13px; padding-right: 13px; }
    .footer-brand img { height: 30px; }
    .footer-brand { font-size: 1rem; }
}
@media (max-width: 900px) {
    .container { max-width: 96vw; }
    .footer-contact, footer nav { font-size: 0.98rem; }
}
@media (max-width: 768px) {
    .content-wrapper, .content-grid, .card-container, .pair-grid, .features ul, .security-feature-grid, .testimonials > .container > .content-wrapper, .footer-brand, .footer-contact, footer .container {
        flex-direction: column !important;
        gap: 26px !important;
    }
    .market-cards > div, .pair-grid > div, .team-member-card, .card {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }
    nav > a img { margin-right: 3px; height: 29px; }
    .section, section { padding: 30px 5px; margin-bottom: 38px; }
    .markets-ticker { flex-direction: column; gap: 10px; }
    .hero { min-height: 150px; margin-bottom: 12px; }
    .step-by-step-guide { flex-direction: column; gap: 22px; }
    footer .container { gap: 15px; }
}
@media (max-width: 480px) {
    h1, .hero h1 { font-size: 1.3rem; }
    h2 { font-size: 1.08rem; }
    .cta-primary, button, input[type="submit"] { font-size: 1rem; padding: 9px 12px; }
    nav { height: 52px; }
    .footer-brand img { height: 20px; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9100;
    background: #fff;
    border-top: 1.5px solid var(--color-card-border);
    box-shadow: 0 -2px 15px 0 rgba(24,26,47,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 19px 8px;
    gap: 19px;
    font-size: 1rem;
    transition: transform 0.35s cubic-bezier(.86,.06,.14,1), opacity 0.25s;
}
.cookie-banner.hide {
    transform: translateY(200%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner p {
    color: var(--color-primary);
    font-size: 0.98rem;
    margin-right: 13px;
}
.cookie-btn {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    padding: 9px 17px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    margin-right: 7px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-btn.accept {
    background: var(--color-secondary);
    color: #FFF;
}
.cookie-btn.reject {
    background: #F6F8FF;
    color: var(--color-primary);
    border: 1px solid var(--color-card-border);
}
.cookie-btn.settings {
    background: var(--color-bg);
    color: var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    transform: translateY(-1px) scale(1.05);
    outline: none;
}
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 19px 10px 30px 10px;
    }
    .cookie-banner p { margin: 0 0 7px 0; }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(24,26,47,0.41);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
}
.cookie-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.cookie-modal-dialog {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 40px 0 rgba(57,196,241,0.14);
    padding: 34px 26px 26px 26px;
    min-width: 325px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    gap: 21px;
    position: relative;
    animation: showModalFadeIn .33s cubic-bezier(.44,.03,.78,1);
}
@keyframes showModalFadeIn {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.cookie-modal-close {
    position: absolute;
    right: 18px; top: 11px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-accent);
    cursor: pointer;
    transition: color var(--transition);
    border-radius: 6px;
    padding: 4px 6px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
    color: var(--color-secondary);
    background: #F2F3FA;
}

.cookie-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.cookie-category input[type="checkbox"] {
    width: 22px; height: 22px;
    accent-color: var(--color-accent);
}
.cookie-category label {
    font-size: 1rem;
    color: var(--color-primary);
    font-family: var(--font-body);
}
.cookie-toggle-disabled {
    opacity: 0.61;
    pointer-events: none;
    color: #bbb !important;
}

.cookie-modal-actions {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    flex-direction: row;
    justify-content: flex-end;
}
@media (max-width: 570px) {
    .cookie-modal-dialog { min-width: 98vw; padding: 24px 7px; }
    .cookie-modal-actions { flex-direction: column; gap: 7px; }
}

/* ANIMATIONS & TRANSITIONS */
[data-animate], .animate {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .45s 0.05s, transform .69s .05s;
}
[data-animate].visible, .animate.visible {
    opacity: 1;
    transform: none;
}

/* UTILITY CLASSES */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom:0 !important; }
.mt-3 { margin-top: 3px !important; }
.mt-7 { margin-top: 7px !important; }
.mt-12 { margin-top: 12px !important; }
.mb-20 { margin-bottom: 20px !important; }
.text-center { text-align: center; }

/* COMPATIBILITY ENHANCEMENTS */
::-webkit-input-placeholder { color: #B3B6CF; }
::-moz-placeholder { color: #B3B6CF; }
:-ms-input-placeholder { color: #B3B6CF; }
::placeholder { color: #B3B6CF; }

/* Hide number input arrows */
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance:textfield; }

/* FOCUS VISIBLE FOR ACCESSIBILITY */
:focus-visible {
    outline: 2px dashed var(--color-accent);
    outline-offset: 2px;
}

/* PRINT */
@media print {
    header, nav, footer, .cta-banner, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
    body { color: #111; background: #fff; }
    section, .container, .content-wrapper { box-shadow: none !important; background: #fff !important; padding: 0 !important; }
}
