/* ============================================================
   Retreyger - modern redesign
   Dark fintech theme · fluid type · responsive · accessible
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
    font-family: 'RF Tone';
    src: url('/font/RFTone-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'RF Tone';
    src: url('/font/RFTone-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'RF Tone';
    src: url('/font/RFTone-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'RF Tone';
    src: url('/font/RFTone-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mulish';
    src: url('/font/mulish-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Mulish';
    src: url('/font/mulish-latin-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Mulish';
    src: url('/font/mulish-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Mulish';
    src: url('/font/mulish-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
    --bg-0: #0b1230;
    --bg-1: #161e43;
    --bg-2: #1d2752;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(140, 231, 251, 0.14);
    --border-strong: rgba(140, 231, 251, 0.3);
    --border-input: rgba(140, 231, 251, 0.42);
    --text: #eef2ff;
    --text-soft: #b9c4e8;
    --text-dim: #8d99c4;
    --accent-1: #4dabff;
    --accent-2: #8ce7fb;
    --accent-grad: linear-gradient(101.84deg, #4dabff 28.44%, #8ce7fb 89.43%);
    --danger: #ff7b8a;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 60px rgba(4, 8, 30, 0.55);
    --font-display: 'RF Tone', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Mulish', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --header-h: 76px;
    --container: 1200px;
    color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-0);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Fixed decorative backdrop as a pseudo-element: background-attachment:fixed
   is broken/janky on iOS Safari, a fixed layer behind everything is not. */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1000px 600px at 85% -100px, rgba(77, 171, 255, 0.16), transparent 60%),
        radial-gradient(900px 700px at -150px 40%, rgba(93, 76, 231, 0.14), transparent 60%),
        radial-gradient(1000px 800px at 110% 85%, rgba(140, 231, 251, 0.08), transparent 60%),
        linear-gradient(180deg, #0b1230 0%, #131b3f 45%, #0e1536 100%);
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #fff;
}

::selection {
    background: rgba(77, 171, 255, 0.45);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Old browsers that don't support :focus-visible keep default outlines */

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 18px;
    background: var(--accent-1);
    color: #04102b;
    font-weight: 700;
    border-radius: 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
    color: #04102b;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 40px);
}

.container.narrow {
    max-width: 860px;
}

/* ---------- Typography scale ---------- */
h1 {
    font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.section-title {
    font-size: clamp(1.7rem, 1rem + 2.8vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: clamp(24px, 4vw, 48px);
}

.section-title.center {
    text-align: center;
}

.lead {
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
    color: var(--text-soft);
    max-width: 60ch;
}

.lead.center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1.2em;
}

.grad-text {
    color: var(--accent-1); /* fallback for old browsers */
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .grad-text {
        background: var(--accent-grad);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.btn-primary {
    color: #04102b;
    background: var(--accent-grad);
    box-shadow: 0 10px 30px rgba(77, 171, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(77, 171, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    color: var(--text);
    background: transparent;
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    border-color: var(--accent-2);
    background: rgba(140, 231, 251, 0.08);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.link-button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--accent-2);
    cursor: pointer;
}

.link-button:hover {
    color: #fff;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: clamp(24px, 3vw, 36px);
}

.cta-row.center {
    justify-content: center;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 19, 48, 0.9);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header {
        background: rgba(13, 19, 48, 0.62);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
        backdrop-filter: blur(14px) saturate(160%);
    }
}

.site-header.scrolled {
    box-shadow: 0 8px 30px rgba(3, 6, 24, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: clamp(150px, 18vw, 210px);
    height: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
}

.main-nav a {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
    padding: 8px 2px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent-grad);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #fff;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social a {
    display: inline-flex;
    padding: 6px;
    border-radius: 50%;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social a:hover {
    transform: translateY(-2px);
    background: rgba(140, 231, 251, 0.12);
}

.social img {
    width: 22px;
    height: 22px;
}

/* Burger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Sections ---------- */
.section {
    padding: clamp(64px, 9vw, 120px) 0;
    scroll-margin-top: calc(var(--header-h) + 16px);
    position: relative;
}

/* ---------- Hero ---------- */
.hero {
    padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px));
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.hero-visual img {
    display: block;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    filter: drop-shadow(0 30px 60px rgba(3, 8, 30, 0.6));
}

/* ---------- Check list ---------- */
.check-list li {
    position: relative;
    padding-left: 38px;
    margin: 12px 0;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    font-weight: 600;
    color: var(--text-soft);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(77, 171, 255, 0.16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%238CE7FB' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 15px;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border-strong);
}

.check-list.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    -moz-column-gap: 24px;
    column-gap: 24px;
    margin-top: 20px;
}

/* ---------- Feature cards ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(20px, 2.5vw, 30px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface-strong);
}

.feature-card img {
    width: 56px;
    height: 56px;
    -o-object-fit: contain;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    margin: 0;
    text-transform: uppercase;
}

/* ---------- Security ---------- */
.security-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.security-copy .section-title {
    margin-bottom: 20px;
}

.security-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: clamp(24px, 3vw, 40px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- eBanking marquee ---------- */
.ebanking .lead {
    margin-bottom: clamp(32px, 4vw, 56px);
}

.marquee {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    width: -moz-max-content;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.paused .marquee-track {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: stretch;
    gap: clamp(16px, 2vw, 28px);
    padding-right: clamp(16px, 2vw, 28px);
}

.marquee-content li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 170px;
    padding: 26px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.marquee-content img {
    width: 52px;
    height: 52px;
    -o-object-fit: contain;
    object-fit: contain;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Payments ---------- */
.pay-logos {
    text-align: center;
    margin: clamp(16px, 3vw, 32px) 0 clamp(32px, 5vw, 56px);
}

.pay-logos img {
    max-width: min(860px, 92%);
}

.payments-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.payments-visual img {
    display: block;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
    filter: drop-shadow(0 30px 60px rgba(3, 8, 30, 0.6));
}

.numbered-list {
    counter-reset: pay-step;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 24px);
}

.numbered-list li {
    counter-increment: pay-step;
    position: relative;
    padding: 22px 24px 22px 86px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.numbered-list li:hover {
    border-color: var(--border-strong);
    background: var(--surface-strong);
}

.numbered-list li::before {
    content: counter(pay-step, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: 24px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-1);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .numbered-list li::before {
        background: var(--accent-grad);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.numbered-list h3 {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.numbered-list p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
}

/* ---------- Control ---------- */
.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(16px, 2.5vw, 28px);
    margin-top: clamp(24px, 4vw, 48px);
}

.control-card {
    padding: clamp(28px, 3.5vw, 44px) clamp(22px, 3vw, 36px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.control-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.control-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    color: var(--accent-1);
    margin-bottom: 8px;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .control-num {
        background: var(--accent-grad);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.control-card h3 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.control-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
}

/* ---------- FAQ ---------- */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item[open] {
    border-color: var(--border-strong);
}

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238CE7FB' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 24px 22px;
    margin: 0;
    color: var(--text-soft);
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(8, 12, 34, 0.65);
    padding: clamp(40px, 6vw, 72px) 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.footer-brand .logo img {
    width: 180px;
}

.copyright {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-top: 14px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a,
.footer-nav .link-button {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.footer-nav a:hover,
.footer-nav .link-button:hover {
    color: #fff;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-legal {
    margin-top: clamp(32px, 5vw, 56px);
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-legal p {
    margin-bottom: 0.6em;
}

/* ---------- Modals ---------- */
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(5, 8, 25, 0.78);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .modal-backdrop {
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: min(88vh, 720px);
    overflow-y: auto;
    padding: clamp(28px, 4vw, 40px);
    background: linear-gradient(160deg, #1b2450 0%, #141b3e 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: modal-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.modal-panel-sm {
    max-width: 420px;
    text-align: center;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-panel h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.modal-note {
    color: var(--text-soft);
    font-size: 0.98rem;
    margin-bottom: 22px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    color: var(--text-soft);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: #fff;
    border-color: var(--border-strong);
    transform: rotate(90deg);
}

/* ---------- Forms ---------- */
.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 7px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field textarea {
    resize: vertical;
    min-height: 96px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-dim);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(77, 171, 255, 0.3);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

.error-msg {
    color: var(--danger);
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 14px;
}

.error-msg[hidden] {
    display: none;
}

/* ---------- Cookie bar ---------- */
.cookie-bar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 140;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    width: min(720px, calc(100% - 32px));
    padding: 16px 22px;
    background: rgba(20, 27, 62, 0.92);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .cookie-bar {
        background: rgba(20, 27, 62, 0.75);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}

.cookie-bar[hidden] {
    display: none;
}

.cookie-bar p {
    margin: 0;
    flex: 1 1 300px;
    font-size: 0.95rem;
    color: var(--text-soft);
}

.cookie-bar a {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* No-JS and reduced motion: show everything */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .security-grid,
    .payments-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        text-align: left;
    }

    .hero-visual {
        order: -1;
    }

    .hero-visual img {
        max-width: 440px;
    }

    .payments-visual {
        order: 2;
    }

    /* Drawer is positioned relative to the header: backdrop-filter on
       .site-header makes it the containing block even for fixed children,
       so top:100% + explicit height is the only reliable geometry. */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        background: rgba(10, 15, 40, 0.98);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
        overflow-y: auto;
        z-index: 99;
    }

    @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .main-nav {
            background: rgba(10, 15, 40, 0.88);
            -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
        }
    }

    .main-nav.open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.3s ease;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px clamp(20px, 4vw, 40px) 40px;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border);
    }

    .main-nav li.nav-cta-wrap {
        border-bottom: 0;
        padding-top: 24px;
    }

    .main-nav a {
        display: block;
        padding: 18px 4px;
        font-size: 1rem;
    }

    .main-nav a::after {
        display: none;
    }

    .nav-cta-wrap .btn {
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .header-actions .social {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 1rem;
    }

    .check-list.two-col {
        grid-template-columns: 1fr;
    }

    .cta-row .btn {
        flex: 1 1 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-cta {
        align-items: stretch;
    }

    .footer-cta .btn {
        width: 100%;
    }

    .numbered-list li {
        padding: 18px 18px 18px 66px;
    }

    .numbered-list li::before {
        left: 18px;
        top: 20px;
        font-size: 1.3rem;
    }

    .cookie-bar {
        bottom: 12px;
        padding: 14px 16px;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-buttons .btn {
        flex: 1;
    }
}

/* ---------- Print ---------- */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .site-header,
    .cookie-bar,
    .modal,
    .nav-toggle,
    .cta-row,
    .footer-cta {
        display: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
