/* ========================================
   NQ Lab — Dark Trading Theme
   ======================================== */

:root {
    --bg: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --border: #1e1e1e;
    --border-light: #2a2a2a;
    --text: #f0f0f0;
    --text-muted: #888888;
    --text-dim: #555555;
    --accent: #00e676;
    --accent-dim: rgba(0, 230, 118, 0.1);
    --accent-glow: rgba(0, 230, 118, 0.15);
    --red: #ff4444;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    color: var(--accent);
    font-size: 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--accent);
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: opacity 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.9;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}

.mobile-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
}

.mobile-nav.open {
    display: flex;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 12px;
}

/* ========================================
   Hero
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Candlestick chart background */
.hero-candles {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: 300px;
    z-index: 0;
    opacity: 0.4;
    mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.3) 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

.candle-chart {
    width: 100%;
    height: 100%;
    animation: chartSlide 30s linear infinite;
}

@keyframes chartSlide {
    0% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
    100% { transform: translateX(0); }
}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float var(--d) ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); opacity: 0.2; }
    25% { transform: translate(15px, -20px); opacity: 0.5; }
    50% { transform: translate(-10px, -40px); opacity: 0.3; }
    75% { transform: translate(20px, -15px); opacity: 0.4; }
}

/* Price line divider */
.price-line-divider {
    width: 100%;
    height: 40px;
    overflow: hidden;
    opacity: 0.3;
}

.price-line-divider svg {
    width: 100%;
    height: 100%;
}

.hero-glow-2 {
    position: absolute;
    bottom: -300px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
    50% { box-shadow: 0 0 20px 2px rgba(0, 230, 118, 0.15); }
}

.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

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

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* ========================================
   Ticker
   ======================================== */

.ticker {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    background: var(--bg-card);
}

.ticker-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
}

.ticker-dot.live {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   Features
   ======================================== */

.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-dim);
    margin-bottom: 20px;
    position: relative;
}

.feature-card:hover .feature-icon {
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

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

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

/* ========================================
   How It Works / Pipeline
   ======================================== */

.how-it-works {
    padding: 100px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.pipeline-step {
    flex: 1;
    max-width: 240px;
    text-align: center;
    padding: 24px 16px;
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

.pipeline-step h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pipeline-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.pipeline-arrow {
    display: flex;
    align-items: center;
    padding-top: 40px;
}

.pipeline-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--border-light);
}

/* ========================================
   Alert Preview (Discord-style)
   ======================================== */

.preview {
    padding: 100px 0;
}

.preview-cards {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #2b2d31;
    border-radius: 12px;
    padding: 16px;
}

.discord-msg {
    display: flex;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.1s;
}

.discord-msg:hover {
    background: rgba(255, 255, 255, 0.02);
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    color: white;
}

.discord-body {
    flex: 1;
    min-width: 0;
}

.discord-name {
    font-size: 15px;
    font-weight: 600;
    color: #5865f2;
    margin-bottom: 4px;
}

.discord-tag {
    font-size: 10px;
    background: #5865f2;
    color: white;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 500;
    vertical-align: middle;
    margin-left: 4px;
}

.discord-time {
    font-size: 12px;
    color: #72767d;
    font-weight: 400;
    margin-left: 8px;
}

.discord-text {
    font-size: 14px;
    color: #dbdee1;
    line-height: 1.5;
}

.discord-text strong {
    color: #ffffff;
}

/* ========================================
   Models
   ======================================== */

.models {
    padding: 100px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.model-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
}

.model-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.model-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.08), inset 0 0 30px rgba(0, 230, 118, 0.02);
    animation: cardGlow 3s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 230, 118, 0.08), inset 0 0 30px rgba(0, 230, 118, 0.02); }
    50% { box-shadow: 0 0 40px rgba(0, 230, 118, 0.15), inset 0 0 40px rgba(0, 230, 118, 0.04); }
}

.model-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text-dim);
}

.model-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.model-dot.live {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}

.model-dot.upcoming {
    background: var(--text-dim);
}

.model-card.active .model-status {
    color: var(--accent);
}

.model-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.model-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 10px;
    margin-bottom: 16px;
}

.model-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.model-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.model-detail {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.detail-label {
    color: var(--text-dim);
}

.detail-value {
    color: var(--text);
    font-weight: 600;
}

/* ========================================
   FAQ
   ======================================== */

.faq {
    padding: 100px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    transition: border-color 0.2s;
}

.faq-item.open {
    border-color: var(--border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question svg {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   Join CTA
   ======================================== */

.join {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
    animation: scanDown 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes scanDown {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { top: 100%; opacity: 0; }
}

.join-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.join-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.join h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.join p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.join-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */

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

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    max-width: 500px;
    line-height: 1.5;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
    .features-grid,
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pipeline {
        flex-direction: column;
        align-items: center;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .pipeline-step {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .features-grid,
    .models-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-value {
        font-size: 22px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .preview-cards {
        border-radius: 8px;
        padding: 12px;
    }

    .discord-msg {
        gap: 12px;
    }

    .discord-avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
