/* ═══════════════════════════════════════════
   TradeGame Landing v2 — Liquid Glass
   ═══════════════════════════════════════════ */

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a1a;
    color: white;
    overflow-x: hidden;
    margin: 0;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* === Background Glows === */
.bg-glow-purple { background: radial-gradient(circle, rgba(124, 111, 247, 0.12) 0%, rgba(10, 10, 26, 0) 70%); }
.bg-glow-green { background: radial-gradient(circle, rgba(0, 200, 83, 0.08) 0%, rgba(10, 10, 26, 0) 70%); }
.bg-glow-gold { background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, rgba(10, 10, 26, 0) 70%); }

/* === Gradients === */
.text-gradient {
    background: linear-gradient(90deg, #7c6ff7, #00c853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

/* === Buttons === */
.btn-gradient {
    background: linear-gradient(135deg, #7c6ff7 0%, #5d52cc 100%);
    box-shadow: 0 0 20px rgba(124, 111, 247, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(124, 111, 247, 0.6);
}
.btn-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* === Animations === */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(124, 111, 247, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(124, 111, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 111, 247, 0); }
}
.animate-pulse-custom { animation: pulse-glow 2s infinite; }

@keyframes float-phone {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}
.animate-float { animation: float-phone 6s ease-in-out infinite; }

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.float-badge { animation: float-badge 3s ease-in-out infinite; }

/* === Marquee === */
.marquee {
    white-space: nowrap;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
}
.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Glass Cards === */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 111, 247, 0.3);
    transform: translateY(-8px);
}

/* === Candlestick Chart === */
.candle-bullish { fill: #00c853; }
.wick-bullish { stroke: #00c853; }
.candle-bearish { fill: #ff5252; }
.wick-bearish { stroke: #ff5252; }

/* === iPhone Mockup === */
.iphone-frame {
    width: 300px;
    height: 600px;
    border: 8px solid #1f1f2e;
    border-radius: 40px;
    position: relative;
    background: #0f0f1e;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8);
}
.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1f1f2e;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

/* === Language Selector === */
.lang-selector { position: relative; }
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    z-index: 100;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.lang-dropdown.open { display: block; }
.lang-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}
.lang-option:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.lang-option.active { color: #7c6ff7; background: rgba(124, 111, 247, 0.1); }

/* === FAQ Accordion === */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
}
.faq-item.active .faq-answer {
    max-height: 250px;
    padding-top: 16px;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RTL Support === */
[dir="rtl"] .marquee-content { animation-direction: reverse; }
[dir="rtl"] .faq-q { text-align: right; }
[dir="rtl"] .text-left { text-align: right; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a1a; }
::-webkit-scrollbar-thumb { background: #1f1f2e; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #7c6ff7; }

/* === Responsive === */
@media (max-width: 768px) {
    .iphone-frame { width: 260px; height: 520px; }
    .float-badge { display: none; }
}
@media (max-width: 480px) {
    .iphone-frame { width: 240px; height: 480px; }
}
