/* ==========================================================================
   CSS DESIGN SYSTEM & STYLESHEET (VIEWPORT-LOCKED REDESIGN)
   Project: Libertex Welcome Bonus Landing Page
   Aesthetic: Dark Mode / Neon Trading Accents (Outfit Font, Orange Glow)
   Goal: Zero scroll, 100% viewport-fit
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root variables & Resets
   -------------------------------------------------------------------------- */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0c;
    --bg-card: #121214;
    --bg-card-hover: #18181c;
    
    --primary-orange: #ff5a00;
    --primary-orange-glow: rgba(255, 90, 0, 0.4);
    --primary-orange-light: rgba(255, 90, 0, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --green-up: #10b981;
    --red-down: #ef4444;
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --container-width: 480px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #050505;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden; /* Lock page scroll */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

/* --------------------------------------------------------------------------
   2. Layout & Shell Container (Desktop Frame Simulation)
   -------------------------------------------------------------------------- */
.app-container {
    width: 100%;
    max-width: var(--container-width);
    background-color: var(--bg-primary);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden; /* Strictly prevent container scroll */
}

/* Desktop-only subtle container highlight */
@media (min-width: 481px) {
    .app-container {
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        height: calc(100vh - 20px);
        max-height: calc(100vh - 20px);
        box-shadow: 0 0 50px rgba(255, 90, 0, 0.08), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
}

/* --------------------------------------------------------------------------
   3. Ticker Section (Infinite Horizontal Scroll)
   -------------------------------------------------------------------------- */
.ticker-wrap {
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    padding: 6px 0;
    flex-shrink: 0;
    z-index: 100;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    gap: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-icon {
    width: 13px;
    height: 13px;
}

.ticker-symbol {
    color: var(--text-primary);
    opacity: 0.9;
}

.ticker-price {
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.ticker-change {
    font-weight: 500;
    font-size: 10px;
}

.pos-green .ticker-price,
.pos-green .ticker-change {
    color: var(--green-up);
}

.pos-red .ticker-price,
.pos-red .ticker-change {
    color: var(--red-down);
}

/* --------------------------------------------------------------------------
   4. Hero Section (Clean background with Overlay text)
   -------------------------------------------------------------------------- */
.hero-section {
    background-color: var(--bg-primary);
    position: relative;
    padding: 10px 16px 8px 16px;
    flex: 1.1; /* Take up flexible portion of screen height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    overflow: visible;
}

.hero-woman {
    position: absolute;
    right: 20px;
    top: 55px;
    height: 420px;
    width: auto;
    z-index: 5;
    pointer-events: none;
    display: block;
}

.logo-container {
    position: relative;
    z-index: 10;
    margin-bottom: 4px;
}

.brand-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Regulated Badge */
.badge-regulated {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.badge-icon {
    width: 11px;
    height: 11px;
}

/* Headings */
.main-heading {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    max-width: 220px;
}

.orange-highlight {
    color: var(--primary-orange);
    position: relative;
}

.hero-description {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    max-width: 220px;
}

.hero-description span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Premium Primary Button */
.btn-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ff7115 0%, #ff4b00 100%);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding: 10px 16px;
    border-radius: 10px;
    width: 100%;
    max-width: 240px;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 90, 0, 0.4);
}

.btn-arrow {
    width: 14px;
    height: 14px;
}

/* Demo account text */
.demo-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

.demo-icon {
    width: 12px;
    height: 12px;
}

/* --------------------------------------------------------------------------
   5. Welcome Bonus Card Section (Horizontal Compact Redesign)
   -------------------------------------------------------------------------- */
.bonus-container {
    padding: 4px 16px 6px 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    margin-top: -30px;
}

.bonus-card {
    background-color: rgba(18, 18, 20, 0.7);
    border: 1.2px solid var(--primary-orange);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: row; /* Horizontal */
    align-items: center;
    gap: 12px;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 90, 0, 0.1), inset 0 0 10px rgba(255, 90, 0, 0.03);
    backdrop-filter: blur(10px);
}

/* Custom glowing accent */
.bonus-card::after {
    content: '';
    position: absolute;
    top: -1.2px;
    left: -1.2px;
    right: -1.2px;
    bottom: -1.2px;
    border-radius: 12px;
    border: 1.2px solid transparent;
    background: linear-gradient(135deg, var(--primary-orange), transparent, var(--primary-orange)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.8;
}

.gift-icon-container {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.gift-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px var(--primary-orange-glow));
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 4px var(--primary-orange-glow));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 8px var(--primary-orange));
        transform: scale(1.03);
    }
}

.bonus-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.bonus-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.orange-highlight-text {
    color: var(--primary-orange);
}

.bonus-description {
    font-size: 10px;
    line-height: 1.3;
    color: var(--text-secondary);
}

/* Interactive Promo Box */
.promo-box {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary-orange-light);
    border: 1px dashed var(--primary-orange);
    border-radius: 6px;
    padding: 4px 8px;
    font-family: var(--font-main);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s ease;
    outline: none;
}

.promo-box:hover {
    background-color: rgba(255, 90, 0, 0.12);
}

.promo-text {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.promo-text strong {
    color: var(--primary-orange);
    font-weight: 700;
    margin-left: 2px;
}

.copy-icon,
.check-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.copy-icon {
    opacity: 0.8;
}

.hide {
    display: none !important;
}

/* --------------------------------------------------------------------------
   6. Instrument Showcase section
   -------------------------------------------------------------------------- */
.instruments-section {
    padding: 2px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--text-primary);
    padding: 0 16px;
    letter-spacing: -0.02em;
}

/* Touch-ready horizontal swiping list */
.cards-scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 16px 6px 16px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cards-scroll-container::-webkit-scrollbar {
    display: none;
}

.instrument-card {
    flex: 0 0 92px;
    scroll-snap-align: start;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    cursor: grab;
}

.instrument-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 90, 0, 0.3);
    background-color: var(--bg-card-hover);
}

.card-icon-wrapper {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.instrument-svg {
    width: 20px;
    height: 20px;
}

.card-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-sub {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. Stats Section
   -------------------------------------------------------------------------- */
.stats-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    margin: 2px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 2px;
}

.stat-icon {
    width: 18px;
    height: 18px;
    opacity: 0.95;
    margin-bottom: 2px;
}

.stat-num {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-lbl {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 6px;
}

/* --------------------------------------------------------------------------
   8. Footer / Risk Warning Section
   -------------------------------------------------------------------------- */
.footer-warning {
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.warning-icon-wrapper {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.warning-icon {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.warning-text {
    font-size: 9px;
    line-height: 1.35;
    color: var(--text-muted);
    font-weight: 400;
}
