/* ===================================
   PayForge — Redesigned Styles
   Inspired by paykassma.com
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,500&family=Outfit:wght@800;900&display=swap');

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #E2E8F0;
    background: linear-gradient(160deg, #090B12 0%, #11141E 40%, #0A0C18 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: #D4A340;
    color: #0B0E14;
}

/* ---------- Variables ---------- */
:root {
    --graphite: #E2E8F0;
    --graphite-light: #C8CDD5;
    --graphite-muted: #8A919C;
    --white: #FFFFFF;
    --off-white: #0F1219;
    --deep-red: #C0392B;
    --deep-red-light: #E74C3C;
    --dark-emerald: #1A8A5C;
    --muted-gold: #D4A340;
    --border: rgba(255,255,255,0.08);
    --accent-gradient: linear-gradient(135deg, #0B0E14 0%, #111827 50%, #0B0E14 100%);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 8px 32px rgba(212, 163, 64, 0.15);
    --radius: 32px;
    --radius-sm: 18px;
    --radius-pill: 100px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --container: 1120px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section--alt {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-radius: 48px;
    margin: 0 16px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.28);
    border-left: 1.5px solid rgba(255, 255, 255, 0.20);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.28);
    border-right: 1.5px solid rgba(255, 255, 255, 0.20);
    box-shadow:
        0 12px 80px rgba(0, 0, 0, 0.25),
        0 3px 12px rgba(255, 255, 255, 0.05),
        2px 2px 0 rgba(255,255,255,0.04) inset,
        -2px -2px 0 rgba(255,255,255,0.04) inset;
}

.section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section__label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.10);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.18);
}

.section__title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section__title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--deep-red);
}

.section__subtitle {
    font-size: 17px;
    color: var(--graphite-muted);
    line-height: 1.7;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 12px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1.5px solid rgba(255, 255, 255, 0.28);
    border-left: 1.5px solid rgba(255, 255, 255, 0.20);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.28);
    border-right: 1.5px solid rgba(255, 255, 255, 0.20);
    border-radius: 24px;
    height: 56px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 3px 10px rgba(255,255,255,0.06);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 70px !important;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition);
}

.nav__logo:hover {
    opacity: 0.85;
}

.nav__brand {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--graphite);
    letter-spacing: -0.04em;
    line-height: 56px;
    /* Match nav height for perfect vertical centering */
    display: inline-block;
    vertical-align: middle;
    margin-top: -4px;
}

.nav__brand-dot {
    color: var(--deep-red);
}

.nav__links {
    display: flex;
    gap: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav__link {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--graphite-light);
    letter-spacing: 0.01em;
    transition: color var(--transition);
}

.nav__link:hover {
    color: var(--graphite);
}

.nav__link--mobile-cta {
    display: none !important;
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* ---------- Language Switcher ---------- */
.lang-switch {
    position: relative;
}

.lang-switch__btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--graphite);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
    white-space: nowrap;
}

.lang-switch__btn:hover {
    border-color: var(--deep-red);
    color: var(--deep-red);
}

.lang-switch__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 18, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    min-width: 160px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all 0.2s ease;
}

.lang-switch__menu--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-switch__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--graphite);
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.lang-switch__option:hover {
    background: var(--bg-soft);
}

.lang-switch__option--active {
    color: var(--deep-red);
    font-weight: 700;
}

.nav__cta {
    background: #FFFFFF;
    color: #0B0E14;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}

.nav__cta:hover {
    background: #E2E8F0;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,255,255,0.15);
}

.nav__cta--dashboard {
    transform: translateY(-2px);
    background: transparent;
    color: #FFFFFF;
    padding: 9px 24px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    border: 1.5px solid rgba(255,255,255,0.3);
}
.nav__cta--dashboard:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-1px);
}

/* --- Hide desktop messenger icons; use floating widget instead --- */
.nav__messenger:not(.nav__messenger--mobile) {
    display: none !important;
}

/* --- Floating Contact Widget --- */
.float-contact {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 9999;
}
.float-contact--visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}
.float-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px 11px 14px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    transition: all 0.25s ease;
    white-space: nowrap;
    transform: translateX(0);
}
.float-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.float-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.float-btn--tg  { background: #2AABEE; }
.float-btn--wa  { background: #25D366; }
.float-btn--ch  { background: #1A1D2E; border: 1px solid rgba(255,255,255,0.25); }

/* --- Messenger icon buttons (Telegram & WhatsApp) --- */
.nav__messenger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition);
    flex-shrink: 0;
}

.nav__messenger svg {
    width: 18px;
    height: 18px;
}

.nav__messenger--tg {
    background: #2AABEE;
    color: #fff !important;
}

.nav__messenger--tg:hover {
    background: #239AD5;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(42, 171, 238, 0.28);
}

.nav__messenger--wa {
    background: #25D366;
    color: #fff !important;
}

.nav__messenger--wa:hover {
    background: #1EBE57;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}

/* Mobile-only messenger buttons — hidden on desktop */
.nav__messenger--mobile {
    display: none;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--graphite);
    transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: visible;
}

.hero__title {
    font-size: 90px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop: override for min-width 769px — keep as blocks, apply spacing */
@media (min-width: 769px) {
    .hero__line--sm {
        font-size: 0.65em;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: rgba(255,255,255,0.9);
        font-style: normal;
        display: block;
        padding-bottom: 0;
    }
    .hero__line--big {
        display: block;
        font-family: 'Playfair Display', serif;
        font-style: italic;
        font-weight: 500;
        color: var(--deep-red);
        line-height: 1.0;
        font-size: 1.05em;
    }
    .hero__line--amp {
        display: block;
        font-size: 0.45em;
        font-weight: 400;
        color: rgba(255,255,255,0.9);
        letter-spacing: 0.05em;
        line-height: 1.1;
        font-style: normal;
    }
    .hero__line--md {
        font-size: 0.7em;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: rgba(255,255,255,0.9);
        font-style: normal;
        display: block;
        padding-top: 20px;
    }
}

.hero__title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--deep-red);
}

/* Line-by-line stacked hero text — base (mobile-first) */
.hero__line {
    display: block;
}

.hero__line--sm {
    font-size: 0.65em;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
    font-family: inherit;
    font-style: normal;
}

.hero__line--big {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--deep-red);
    line-height: 1.0;
    font-size: 1.05em;
}

.hero__line--md {
    font-size: 0.7em;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.9);
    margin-top: 6px;
    font-style: normal;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--graphite-muted);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 40px;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #0B0E14;
    padding: 16px 40px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.hero__cta:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn--primary {
    background: #FFFFFF;
    color: #0B0E14;
    font-weight: 700;
}

.btn--primary:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.12);
}

.btn--outline {
    border: 2px solid var(--border);
    color: var(--graphite);
}

.btn--outline:hover {
    border-color: var(--graphite);
}

.btn--tg {
    background: #2AABEE;
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
}

.btn--tg:hover {
    background: #239AD5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 171, 238, 0.25);
}

/* ---------- Feature Cards ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(15, 18, 25, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1.5px solid rgba(255, 255, 255, 0.1);
    border-left: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    border-color: rgba(212, 163, 64, 0.3);
    box-shadow: 0 16px 40px rgba(212, 163, 64, 0.08);
    transform: translateY(-4px);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.feature-card__icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.feature-card__icon--red {
    background: rgba(192, 57, 43, 0.12);
    color: var(--deep-red);
}

.feature-card__icon--green {
    background: rgba(26, 138, 92, 0.12);
    color: var(--dark-emerald);
}

.feature-card__icon--gold {
    background: rgba(212, 163, 64, 0.12);
    color: var(--muted-gold);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--graphite-muted);
    line-height: 1.7;
}

/* ---------- Flow ---------- */
.flow-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 0 0 auto;
    transition: transform var(--transition);
}

.flow-step:hover {
    transform: translateY(-4px);
}

.flow-step__circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(15, 18, 25, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--graphite);
    margin-bottom: 10px;
    transition: all var(--transition);
}

.flow-step:hover .flow-step__circle {
    border-color: var(--deep-red);
    background: var(--deep-red);
    color: var(--white);
}

.flow-step__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--graphite);
}

.flow-step__desc {
    font-size: 10px;
    color: var(--graphite-muted);
    margin-top: 2px;
}

.flow-arrow {
    font-size: 18px;
    color: var(--border);
    margin: 0 6px;
    padding-bottom: 30px;
}

/* ---------- Partner Area & Custom Dropdown ---------- */
.partner-box {
    background: rgba(15, 18, 25, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1.5px solid rgba(255, 255, 255, 0.1);
    border-left: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.partner-box p {
    font-size: 16px;
    color: var(--graphite-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 24px;
    text-align: left;
}

.custom-select {
    position: relative;
    width: 100%;
    background: rgba(15, 18, 25, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--graphite);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.custom-select:hover,
.custom-select--active {
    border-color: var(--deep-red);
}

.custom-select::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--graphite);
    border-bottom: 2px solid var(--graphite);
    transform: translateY(-4px) rotate(45deg);
    transition: transform 0.2s;
}

.custom-select--active::after {
    transform: translateY(2px) rotate(225deg);
}

.custom-select__options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 18, 25, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    max-height: 250px;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all var(--transition);
}

.custom-select__options--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.custom-select__option {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background var(--transition);
}

.custom-select__option:hover {
    background: var(--off-white);
}

.custom-select__option-flag {
    font-size: 20px;
}

/* ---------- Modal ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 14, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay--active {
    display: flex;
}

.modal {
    background: rgba(15, 18, 25, 0.9);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    padding: 40px;
    position: relative;
    animation: modalIn 0.3s var(--transition);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--graphite-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.modal__close:hover {
    background: var(--graphite);
    color: var(--white);
}

.modal__flag {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal p {
    font-size: 14px;
    color: var(--graphite-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ---------- Scroll Arrow (mobile only, hidden on desktop) ---------- */
.scroll-arrow {
    display: none;
}

/* ---------- Floating Gaming Decor (Images) ---------- */
.decor {
    display: block;
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* ========== Animated decorations are injected by js/parallax.js ========== */

.decor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Overdrive brightness to snap off-white anti-aliased shadows to pure white */
    /* This allows the parent's mix-blend-mode: darken to erase the box entirely */
    filter: contrast(1.2) brightness(1.1);
}

.decor--float {
    animation: floatBounce 6s ease-in-out infinite;
}

@keyframes floatBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) rotate(2deg);
    }

    50% {
        transform: translateY(-6px) rotate(-1deg);
    }

    75% {
        transform: translateY(-14px) rotate(1.5deg);
    }
}

.decor--float-alt {
    animation: floatBounceAlt 7s ease-in-out infinite;
}

@keyframes floatBounceAlt {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-16px) rotate(-3deg);
    }

    66% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.decor--float-slow {
    animation: floatBounceSlow 9s ease-in-out infinite;
}

@keyframes floatBounceSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

/* Decor Sizes */
.decor-dice {
    width: 155px;
    height: 155px;
}

.decor-chip {
    width: 125px;
    height: 125px;
}

.decor-cards {
    width: 180px;
    height: 180px;
}

.decor-slot {
    width: 150px;
    height: 150px;
}

.decor-roulette {
    width: 185px;
    height: 185px;
}

.decor-sevens {
    width: 175px;
    height: 175px;
}

.decor-clover {
    width: 140px;
    height: 140px;
}

.decor-ticket {
    width: 125px;
    height: 175px;
}

.decor-dealer {
    width: 115px;
    height: 115px;
}

.decor-token {
    width: 140px;
    height: 140px;
}

.decor-seven {
    font-size: 36px;
    font-weight: 800;
    color: rgba(212, 163, 64, 0.08);
    letter-spacing: 0.1em;
    mix-blend-mode: normal;
}

/* ---------- Quote / Founder ---------- */
.founder-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.founder-block__avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--deep-red);
}

.founder-block__text {
    font-size: 17px;
    color: var(--graphite-light);
    line-height: 1.8;
    font-style: italic;
    position: relative;
}

.founder-block__text::before {
    content: '\201C';
    font-size: 64px;
    color: var(--deep-red);
    opacity: 0.15;
    position: absolute;
    top: -20px;
    left: -8px;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.founder-block__author {
    margin-top: 16px;
    font-style: normal;
}

.founder-block__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--graphite);
}

.founder-block__role {
    font-size: 13px;
    color: var(--graphite-muted);
}

/* ---------- Contact CTA ---------- */
.cta-block {
    background:
        linear-gradient(135deg,
            rgba(212, 163, 64, 0.06) 0%,
            rgba(192, 57, 43, 0.04) 30%,
            rgba(26, 138, 92, 0.04) 60%,
            rgba(212, 163, 64, 0.06) 100%);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-radius: 48px;
    padding: 80px 40px;
    text-align: center;
    color: var(--graphite);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1.5px solid rgba(255, 255, 255, 0.1);
    border-left: 1.5px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 12px 80px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(255, 255, 255, 0.03) inset,
        0 -2px 30px rgba(212, 163, 64, 0.04) inset;
}

.cta-block h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--graphite);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-block h2 em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--deep-red-light);
}

.cta-block p {
    font-size: 16px;
    color: var(--graphite-muted);
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto 32px;
}

.cta-block .btn--primary {
    background: #FFFFFF;
    color: #0B0E14;
    font-weight: 700;
}

.cta-block .btn--primary:hover {
    background: #E2E8F0;
    color: #0B0E14;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.12);
}

/* ---------- Divider ---------- */
.divider {
    height: 1px;
    background: var(--border);
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
}

.divider::after {
    content: '♠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 0 16px;
    font-size: 12px;
    color: var(--border);
}

.section--alt .divider::after {
    background: var(--off-white);
}

.divider--diamond::after {
    content: '♦';
}

.divider--heart::after {
    content: '♥';
}

.divider--club::after {
    content: '♣';
}

/* ---------- Legal Pages ---------- */
.legal-page__updated {
    font-size: 13px;
    color: var(--graphite-muted);
    margin-bottom: 40px;
}

.legal-page__content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--graphite);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-page__content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--graphite-light);
    margin-bottom: 16px;
}

.legal-page__content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page__content li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--graphite-light);
    margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.footer__copy {
    font-size: 12px;
    color: var(--graphite-muted);
    text-align: center;
}

.footer__mark {
    font-size: 14px;
    font-weight: 800;
    color: var(--border);
    letter-spacing: 0.2em;
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__legal-link {
    font-size: 12px;
    color: var(--graphite-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__legal-link:hover {
    color: var(--graphite);
    text-decoration: underline;
}

.footer__legal-sep {
    color: var(--border);
    font-size: 12px;
    user-select: none;
}

.footer__registration {
    font-size: 11px;
    color: var(--graphite-muted);
    text-align: center;
    line-height: 1.6;
    opacity: 0.7;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__title {
        font-size: 48px;
    }

    .section__title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {

    /* --- Navigation: slightly frosted on mobile for contrast --- */
    .nav {
        background: rgba(11, 14, 20, 0.85);
        backdrop-filter: blur(16px) saturate(1.1);
        -webkit-backdrop-filter: blur(16px) saturate(1.1);
        border-bottom: none;
    }

    .nav__inner {
        padding: 0 16px !important;
    }

    /* Hide desktop messenger buttons on mobile (mobile versions are inside the drawer) */
    .nav__messenger:not(.nav__messenger--mobile) {
        display: none;
    }

    .nav.nav--scrolled {
        background: rgba(11, 14, 20, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
    }

    .nav__brand {
        font-size: 24px;
        line-height: 64px;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 12px;
        right: 12px;
        bottom: auto;
        width: auto;
        height: auto;
        background: rgba(15, 18, 25, 0.95);
        backdrop-filter: blur(24px) saturate(1.2);
        -webkit-backdrop-filter: blur(24px) saturate(1.2);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 24px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 2000;
        padding: 32px 24px;
        transform: none;
    }

    .nav__links--open {
        display: flex !important;
        animation: fadeInFull 0.3s ease forwards;
    }

    @keyframes fadeInFull {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav__link {
        font-size: 20px;
        font-weight: 700;
        color: var(--graphite);
        text-align: center;
    }

    /* Mobile specific dashboard link in menu */
    .nav__link--mobile-cta {
        background: #FFFFFF !important;
        color: #0B0E14 !important;
        padding: 14px 20px !important;
        border-radius: var(--radius-pill) !important;
        margin-top: auto !important;
        margin-bottom: 0px !important;
        text-align: center !important;
        letter-spacing: 0.5px !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;
        align-self: stretch !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .nav__toggle {
        display: flex;
        z-index: 2101; /* Above drawer */
    }

    .nav__toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav__toggle--active span:nth-child(2) { opacity: 0; }
    .nav__toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    .nav__cta {
        display: none;
    }

    /* Shrink floating widget on mobile */
    .float-contact {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    .float-contact--visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}
.float-btn {
        padding: 8px 16px 8px 12px;
        font-size: 12px;
        transform: scale(0.9);
        transform-origin: right bottom;
    }
    .float-btn svg {
        width: 16px;
        height: 16px;
    }

    .nav__right {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
    }

    .lang-switch__btn {
        padding: 4px 10px;
        font-size: 12px;
    }

    .lang-switch__menu {
        right: 0;
        min-width: 150px;
    }

    /* --- Hero: full screen, vertically centered --- */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero .container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ===== BIG MOBILE HERO ===== */
    .hero {
        padding-top: 140px;
        padding-bottom: 60px;
        min-height: 95vh;
        display: flex;
        align-items: center;
    }

    .hero__title {
        font-size: 52px;
        font-weight: 900;
        line-height: 1.05;
        letter-spacing: -0.03em;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* "Become a" — same size as & Earn Well */
    .hero__line--sm {
        font-size: 40px;
        letter-spacing: -0.02em;
        margin-bottom: 0px;
        font-weight: 800;
        color: rgba(255,255,255,0.9);
    }

    /* "Payment Agent" — the BIG line */
    .hero__line--big {
        font-size: 58px;
        line-height: 1.0;
    }

    /* "& Earn Well" */
    .hero__line--md {
        font-size: 40px;
        margin-top: 16px;
    }

    .hero__subtitle {
        font-size: 16px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 24px;
        line-height: 1.6;
    }

    .hero__cta {
        padding: 18px 40px;
        font-size: 17px;
        font-weight: 700;
        margin-top: 12px;
    }


    /* --- Sections & Text --- */
    .section__title {
        font-size: 28px;
    }

    .section__subtitle {
        font-size: 16px;
    }

    .section__label {
        font-size: 12px;
    }

    /* --- Feature Cards --- */
    .features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 26px 22px;
    }

    .feature-card h3 {
        font-size: 19px;
    }

    .feature-card p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* --- Payment Flow --- */
    .flow-visual {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .flow-arrow {
        display: none;
    }

    .flow-step {
        text-align: center;
    }

    .flow-step__circle {
        width: 44px;
        height: 44px;
        font-size: 15px;
        margin: 0 auto 8px;
    }

    .flow-step__label {
        font-size: 13px;
    }

    .flow-step__desc {
        font-size: 12px;
    }

    /* --- Partner Box --- */
    .partner-box {
        padding: 24px 16px;
    }

    .partner-box p {
        font-size: 13px;
    }

    .custom-select__options {
        max-height: 250px;
        background: rgba(15, 18, 25, 0.98);
        z-index: 9999;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    /* --- Founder --- */
    .founder-block {
        flex-direction: column;
        text-align: center;
    }

    .founder-block__text {
        font-size: 14px;
    }

    .founder-block__text::before {
        display: none;
    }

    /* --- CTA / Footer --- */
    .cta-block {
        padding: 40px 20px;
    }

    .cta-block h2 {
        font-size: 24px;
    }

    .cta-block p {
        font-size: 13px;
    }

    .footer__inner {
        flex-direction: column;
        gap: 12px;
    }

    .footer__top {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .footer__mark {
        display: none;
    }

    /* --- Modal --- */
    .modal {
        padding: 24px;
    }

    /* --- DECOR: show small decor on mobile hero only --- */
    .decor {
        display: none !important;
    }

    .hero .decor {
        display: block !important;
        opacity: 1;
    }

    .hero .decor--float {
        animation: floatMobile 4s ease-in-out infinite;
    }

    .hero .decor--float-alt {
        animation: floatMobileAlt 5s ease-in-out infinite;
    }

    .hero .decor--float-slow {
        animation: floatMobileSlow 6s ease-in-out infinite;
    }

    @keyframes floatMobile {

        0%,
        100% {
            transform: translateY(0) rotate(0deg);
        }

        50% {
            transform: translateY(-25px) rotate(4deg);
        }
    }

    @keyframes floatMobileAlt {

        0%,
        100% {
            transform: translateY(0) rotate(0deg);
        }

        33% {
            transform: translateY(-30px) rotate(-5deg);
        }

        66% {
            transform: translateY(-12px) rotate(3deg);
        }
    }

    @keyframes floatMobileSlow {

        0%,
        100% {
            transform: translateY(0) rotate(0deg);
        }

        50% {
            transform: translateY(-20px) rotate(-3deg);
        }
    }

    .hero .decor-chip {
        width: 80px;
        height: 80px;
        left: 8% !important;
    }

    .hero .decor-dice {
        width: 85px;
        height: 85px;
        top: 78% !important;
        left: 12% !important;
    }

    .hero .decor-cards {
        width: 90px;
        height: 90px;
        right: 6% !important;
    }

    .hero .decor-roulette {
        width: 100px;
        height: 100px;
        top: 75% !important;
        right: 8% !important;
    }

    /* --- Scroll arrow indicator --- */
    .scroll-arrow {
        display: block;
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
        height: 32px;
        z-index: 20;
        animation: scrollBounce 2s ease-in-out infinite;
    }

    .scroll-arrow svg {
        width: 100%;
        height: 100%;
        stroke: var(--graphite-muted);
        stroke-width: 2;
        fill: none;
    }

    @keyframes scrollBounce {

        0%,
        100% {
            transform: translateX(-50%) translateY(0);
            opacity: 0.6;
        }

        50% {
            transform: translateX(-50%) translateY(10px);
            opacity: 1;
        }
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .section__title {
        font-size: 22px;
    }

    .flow-visual {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .flow-step__circle {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .flow-step__label {
        font-size: 12px;
    }

    .flow-step__desc {
        font-size: 11px;
    }
}
/* --- Animations and KYC Blur --- */
.fade-in {
    animation: fadeInPage 0.6s ease forwards;
}
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.kyc-blur {
    filter: blur(6px);
    pointer-events: none;
    opacity: 0.7;
    position: relative;
    user-select: none;
}

@media (min-width: 769px) {
    .nav__link--mobile-cta {
        display: none !important;
    }
}

/* ── Hide Unicorn Studio watermark ── */
[data-us-project] a[href*="unicorn.studio"],
[data-us-project] a[href*="unicornstudio"],
.unicorn-studio-badge,
.us-badge,
#us-badge,
[class*="unicorn-badge"],
[class*="us-watermark"],
[id*="us-watermark"],
[class*="watermark"],
canvas + a[target="_blank"],
div[data-us-project] > a {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ---------- Unicorn Studio WebGL Background ---------- */
.us-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 115vh; /* pushes watermark badge off-screen */
    z-index: -2;
    pointer-events: none;
}

/* ---------- Parallax iGaming Figures ---------- */
.parallax-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}
.parallax-item {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    transition: margin 0.3s ease-out;
    animation: floatBounce 6s ease-in-out infinite;
}
.parallax-item:nth-child(2n) {
    animation: floatBounceAlt 7s ease-in-out infinite;
}
.parallax-item:nth-child(3n) {
    animation: floatBounceSlow 9s ease-in-out infinite;
}
.parallax-item img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
}
.parallax-cards   { width: 220px; top: 8%;   left: 3%;  }
.parallax-chip    { width: 170px; top: 18%;  right: 5%; }
.parallax-clover  { width: 180px; top: 55%;  left: 4%;  }
.parallax-dealer  { width: 240px; bottom: 5%;right: 8%; }
.parallax-dice    { width: 160px; top: 70%;  right: 15%;}
.parallax-roulette{ width: 350px; top: 2%;   right: 22%;}
.parallax-sevens  { width: 200px; top: 35%;  left: 14%; }
.parallax-ticket  { width: 200px; bottom: 8%;left: 6%;  }

@media (max-width: 768px) {
    .parallax-wrapper { display: none; }
}

/* ---------- Dynamic Conditions Panel ---------- */
#conditionsDisplay {
    display: none;
    margin-top: 28px;
    background: rgba(11, 14, 20, 0.85);
    border: 1px solid rgba(212, 163, 64, 0.15);
    border-radius: var(--radius-sm);
    padding: 28px;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 20;
    animation: condFadeIn 0.5s ease forwards;
}
@keyframes condFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cond-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 22px;
    font-weight: 700;
    color: var(--muted-gold);
}

.cond-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cond-stat {
    flex: 1;
    min-width: 140px;
}

.cond-stat-label {
    font-size: 11px;
    color: var(--graphite-muted);
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cond-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

/* Progress bar */
.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.progress-bar-fill--traffic {
    background: linear-gradient(90deg, #1A8A5C, #D4A340);
    box-shadow: 0 0 8px rgba(26, 138, 92, 0.3);
}
.progress-bar-fill--earnings {
    background: linear-gradient(90deg, #D4A340, #C0392B);
    box-shadow: 0 0 8px rgba(212, 163, 64, 0.3);
}

.cond-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}
.cond-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--graphite-light);
}
.cond-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--dark-emerald);
    font-weight: 800;
    font-size: 14px;
}
