/* ============================================
   Quotex Coin - Landing Page
   ============================================ */

.landing-page {
    background: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: visible;
    max-width: var(--mobile-max, 480px);
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.landing-page a { text-decoration: none; }

/* === NAVBAR (mobile compact) === */
.site-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-max, 480px);
    z-index: 1000;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.3s;
}

.site-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 16px;
}

.nav-brand .brand-name {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-links {
    display: none;
}

.nav-actions {
    display: flex;
    gap: 8px;
}

.btn-nav {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-toggle {
    display: none;
}

.nav-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--text-primary);
    font-size: 14px;
}

.btn-nav-ghost {
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-nav-ghost:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.btn-nav-primary {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

.btn-nav-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(37,99,235,0.4);
}

/* === TICKER STRIP === */
.market-ticker {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-max, 480px);
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    height: 36px;
}

.ticker-track {
    display: flex;
    animation: tickerScroll 40s linear infinite;
    white-space: nowrap;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 12px;
    font-family: 'Inter', monospace;
}

.ticker-symbol {
    font-weight: 700;
    color: var(--text-primary);
}

.ticker-price { color: var(--text-muted); }

.ticker-change.up { color: var(--green); }
.ticker-change.down { color: var(--red); }

.ticker-live {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 11px;
    color: var(--accent-light);
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    animation: pulseDot 1.5s ease infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* === HERO (mobile single column) === */
.hero-section {
    position: relative;
    padding: 108px 16px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero-gradient-1 {
    top: -200px;
    left: -100px;
    background: var(--accent-light);
}

.hero-gradient-2 {
    bottom: -200px;
    right: -100px;
    background: var(--accent);
    animation-delay: -4s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content { position: relative; z-index: 2; text-align: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease 0.1s both;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
    animation: fadeUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    animation: fadeUp 0.8s ease 0.3s both;
}

.btn-hero {
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
}

.btn-hero-outline {
    background: #ffffff;
    color: #334155;
    border: 1px solid #e7e5e4;
}

.btn-hero-outline:hover {
    border-color: #5eead4;
    color: #0f766e;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeUp 0.8s ease 0.4s both;
}

.hero-stat-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* === HERO CHART PREVIEW === */
.hero-visual {
    position: relative;
    z-index: 2;
    animation: fadeUp 0.8s ease 0.3s both;
}

.chart-preview-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.chart-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.chart-preview-asset {
    display: flex;
    align-items: center;
    gap: 10px;
}

.asset-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7931a, #e2761b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    color: var(--text-primary);
}

.chart-preview-name {
    font-weight: 700;
    font-size: 15px;
}

.chart-preview-source {
    font-size: 10px;
    color: #64748b;
}

.chart-preview-price {
    text-align: right;
}

.preview-live-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: monospace;
}

.preview-change {
    font-size: 12px;
    font-weight: 600;
}

.preview-change.up { color: var(--green); }
.preview-change.down { color: var(--red); }

.chart-preview-body {
    position: relative;
    height: 220px;
    background: var(--bg-app);
}

#homeChart {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-preview-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.preview-trade-btn {
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    border: none;
    cursor: default;
}

.preview-trade-btn.up {
    background: rgba(37,99,235,0.15);
    color: var(--accent-light);
}

.preview-trade-btn.down {
    background: rgba(255,71,87,0.15);
    color: var(--red);
}

.floating-coin {
    display: none;
}

/* === SHOWCASE === */
.showcase-section {
    padding: 40px 16px;
}

.showcase-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.showcase-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), transparent 60%);
}

.showcase-content h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 12px;
}

.showcase-desc {
    color: #64748b;
    line-height: 1.7;
    margin-top: 12px;
}

.showcase-list {
    list-style: none;
    margin: 16px 0 24px;
}

.showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.showcase-list li svg {
    flex-shrink: 0;
    color: var(--accent-light);
    margin-top: 2px;
}

/* === FEATURES === */
.features-section {
    padding: 48px 16px;
}

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

.features-grid-lg {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #ccfbf1;
    border: 1px solid #99f6e4;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 16px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #334155;
}

.section-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 auto;
}

.feature-card-lg {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card-lg:hover {
    border-color: rgba(37,99,235,0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card-lg:hover::before { opacity: 1; }

.feature-icon-lg {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 26px;
}

.feature-icon-lg.green { background: rgba(37,99,235,0.12); }
.feature-icon-lg.blue { background: rgba(59,130,246,0.12); }
.feature-icon-lg.purple { background: rgba(139,92,246,0.12); }
.feature-icon-lg.orange { background: rgba(245,158,11,0.12); }
.feature-icon-lg.red { background: rgba(255,71,87,0.12); }
.feature-icon-lg.cyan { background: rgba(6,182,212,0.12); }

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

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

/* === HOW IT WORKS === */
.steps-section {
    padding: 48px 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.step-card {
    text-align: center;
    padding: 20px 16px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0fdfa;
    border: 2px solid #99f6e4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #0f766e;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

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

/* === CTA === */
.cta-section {
    padding: 40px 16px 64px;
}

.cta-card {
    background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
    border: 1px solid #99f6e4;
    border-radius: 20px;
    padding: 32px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* === FOOTER === */
.site-footer {
    border-top: 1px solid var(--border-light);
    background: var(--bg-panel);
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-copy {
    color: var(--text-dim);
    font-size: 11px;
}

/* === REVEAL ANIMATION === */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-title {
    font-size: 32px;
}

.feature-card-lg {
    padding: 24px 20px;
}

.btn-nav-ghost {
    display: none;
}
