/* ==========================================================================
   P2P EXPERT TRADER - Standalone Modern Dark Theme & Mobile Responsive Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-black: #000000;
    --bg-surface: #07090e;
    --bg-card: #0c0f17;
    --bg-card-hover: #111622;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 245, 160, 0.35);
    
    --accent-emerald: #00F5A0;
    --accent-cyan: #00D2FF;
    --accent-lime: #CCFF00;
    
    --grad-primary: linear-gradient(135deg, #00F5A0 0%, #00D2FF 100%);
    --grad-glow: linear-gradient(135deg, rgba(0,245,160,0.15) 0%, rgba(0,210,255,0.05) 100%);
    --grad-card: linear-gradient(180deg, rgba(16, 20, 30, 0.7) 0%, rgba(8, 10, 15, 0.95) 100%);
    
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, .font-heading {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
}

/* Gradient Text */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-lime {
    background: linear-gradient(135deg, #CCFF00 0%, #00F5A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Buttons */
.btn-primary {
    background: var(--grad-primary);
    color: #000000;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 245, 160, 0.25);
    border: none;
    cursor: pointer;
    text-decoration: none;
    touch-action: manipulation;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 245, 160, 0.45);
    filter: brightness(1.08);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Glass Cards */
.card-glass {
    background: var(--grad-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 1.25rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-glass:hover {
    border-color: var(--border-hover);
}

/* Subtle glow orb behind elements */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    max-width: 100vw;
}

/* Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-flex;
    gap: 2rem;
    animation: marqueeScroll 25s linear infinite;
    will-change: transform;
}

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

/* Live Operational Pulse */
.pulse-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(0, 245, 160, 0.1);
    border: 1px solid rgba(0, 245, 160, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-emerald);
    max-width: 100%;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: dotPulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

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

.modal-container {
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Stepper Component */
.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-line {
    height: 2px;
    flex: 1;
    margin: 0 0.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.fade-slide {
    animation: fadeSlide 0.35s ease both;
}

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

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease;
}

.faq-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-emerald);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-content {
    max-height: 300px;
    opacity: 1;
    padding-bottom: 1.25rem;
}

/* Responsive Utilities */
@media (max-width: 640px) {
    .step-dot {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .step-line {
        margin: 0 0.25rem;
    }
    .card-glass {
        border-radius: 1rem;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 0.85rem 1.25rem;
    }
}
