/* =====================================================================
   STOCKSENSE AI — LANDING PAGE CSS
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg:        #060912;
    --bg2:       #0b0f1a;
    --panel:     rgba(14, 20, 38, 0.7);
    --border:    rgba(255,255,255,0.07);
    --blue:      #3b82f6;
    --purple:    #8b5cf6;
    --green:     #10b981;
    --red:       #ef4444;
    --yellow:    #f59e0b;
    --text:      #f1f5f9;
    --muted:     #94a3b8;
    --dim:       #475569;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── UTILITIES ──────────────────────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #10b981);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradShift 4s ease infinite;
}
@keyframes gradShift { 0%{background-position:0%} 50%{background-position:100%} 100%{background-position:0%} }

.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section-tag {
    display: inline-block;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.3);
    color: var(--blue);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 600px; }

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

/* Animate in (hero elements) */
.animate-in { animation: animIn 0.7s ease forwards; opacity: 0; animation-delay: var(--delay, 0s); }
@keyframes animIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(6, 9, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.4rem; font-weight: 800; color: var(--text);
    text-decoration: none; white-space: nowrap;
}
.logo-icon { font-size: 1.6rem; }
.logo-ai {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-login-btn { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-login-btn:hover { color: var(--text); }
.nav-hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

.btn-glow {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white; text-decoration: none;
    padding: 0.7rem 1.5rem; border-radius: 8px;
    font-weight: 700; font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139,92,246,0.3);
    white-space: nowrap;
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(139,92,246,0.5); }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-bg-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(100px); z-index: 0; pointer-events: none;
}
.hero-orb-1 { width: 500px; height: 500px; background: rgba(59,130,246,0.15); top: -100px; left: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: rgba(139,92,246,0.12); bottom: 0; right: -100px; }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
    color: #f87171; padding: 0.4rem 1rem; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #ef4444; animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900; line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--muted); margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-subtitle strong { color: var(--text); }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-hero-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white; text-decoration: none; padding: 1rem 2rem;
    border-radius: 10px; font-weight: 700; font-size: 1.05rem;
    transition: all 0.3s; box-shadow: 0 0 30px rgba(139,92,246,0.4);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(139,92,246,0.6); }
.btn-hero-secondary {
    color: var(--muted); text-decoration: none; padding: 1rem 2rem;
    border-radius: 10px; font-weight: 600; font-size: 1.05rem;
    border: 1px solid var(--border); transition: all 0.3s;
}
.btn-hero-secondary:hover { border-color: var(--blue); color: var(--text); }

.hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 2rem; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Mockup */
.hero-mockup { position: relative; z-index: 1; margin-top: 4rem; width: 100%; max-width: 700px; }
.mockup-window {
    background: rgba(11,15,26,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(59,130,246,0.1);
}
.mockup-bar {
    background: rgba(0,0,0,0.4); padding: 0.6rem 1rem;
    display: flex; align-items: center; gap: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }
.mockup-url { margin-left: 0.5rem; color: var(--dim); font-size: 0.8rem; }
.mockup-content { padding: 1.5rem; }
.mock-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mock-title { font-weight: 700; font-size: 1rem; }
.mock-badge { background: linear-gradient(135deg, var(--blue), var(--purple)); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.7rem; }
.mock-live { display: flex; align-items: center; gap: 0.4rem; color: var(--red); font-size: 0.8rem; font-weight: 600; }
.live-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: blink 1s infinite; }
.mock-signal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.mock-signal { background: rgba(0,0,0,0.3); border-radius: 8px; padding: 0.8rem; border: 1px solid var(--border); }
.mock-signal.buy { border-color: rgba(16,185,129,0.3); }
.mock-signal.sell { border-color: rgba(239,68,68,0.3); }
.mock-sym { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.mock-sig-badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.3rem; }
.buy-badge { background: rgba(16,185,129,0.15); color: var(--green); }
.sell-badge { background: rgba(239,68,68,0.15); color: var(--red); }
.mock-price { font-size: 0.78rem; color: var(--muted); }
.mock-bars { display: flex; flex-direction: column; gap: 0.4rem; }
.mock-bar-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; }
.mock-bar-row span:first-child { width: 50px; color: var(--muted); }
.mock-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(16,185,129,0.6); }
.mock-bar.b1 { width: 75%; }
.mock-bar.b2 { width: 60%; }
.mock-bar.b3 { width: 80%; }
.buy-col { color: var(--green); font-weight: 600; }

/* ── TRUSTED ─────────────────────────────────────────────────────────────── */
.trusted-section { padding: 2rem 1.5rem; text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trusted-label { color: var(--dim); font-size: 0.85rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.trusted-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.trusted-logos span { color: var(--dim); font-weight: 600; font-size: 0.9rem; }

/* ── FEATURES ─────────────────────────────────────────────────────────────── */
.features-section { padding: 6rem 1.5rem; }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 3rem;
}
.feature-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}
.feature-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ── HOW IT WORKS ─────────────────────────────────────────────────────────── */
.how-section { padding: 6rem 1.5rem; background: rgba(255,255,255,0.01); }
.steps-row { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; }
.step-card {
    flex: 1; background: var(--panel); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem; text-align: center;
    transition: all 0.3s;
}
.step-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-4px); }
.step-num { font-size: 0.8rem; color: var(--blue); font-weight: 700; letter-spacing: 2px; margin-bottom: 1rem; }
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { color: var(--muted); font-size: 0.9rem; }
.step-arrow { font-size: 2rem; color: var(--dim); flex-shrink: 0; }

/* ── PRICING ─────────────────────────────────────────────────────────────── */
.pricing-section { padding: 6rem 1.5rem; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.pricing-card {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 20px; padding: 2.5rem; position: relative; overflow: hidden;
    transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card-featured {
    border-color: rgba(59,130,246,0.4);
    background: linear-gradient(135deg, rgba(14,20,38,0.95), rgba(59,130,246,0.08));
    box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 20px 60px rgba(59,130,246,0.1);
}
.plan-popular-badge {
    position: absolute; top: -1px; right: -1px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white; font-size: 0.75rem; font-weight: 700;
    padding: 0.4rem 0.9rem; border-radius: 0 20px 0 10px;
}
.plan-name { font-size: 0.9rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.2rem; margin-bottom: 0.5rem; }
.price-currency { font-size: 1.5rem; font-weight: 700; }
.price-amount { font-size: 4rem; font-weight: 900; line-height: 1; }
.price-period { color: var(--muted); font-size: 0.95rem; }
.plan-per-day { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.plan-savings { color: var(--green); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; }
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li { padding: 0.45rem 0; font-size: 0.93rem; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border: none; }
.plan-btn {
    display: block; text-align: center; text-decoration: none;
    padding: 0.9rem; border-radius: 10px; font-weight: 700; font-size: 1rem;
    transition: all 0.3s;
}
.plan-btn-outline { border: 1px solid var(--border); color: var(--text); }
.plan-btn-outline:hover { border-color: var(--blue); background: rgba(59,130,246,0.08); }
.plan-btn-primary { background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; box-shadow: 0 0 20px rgba(59,130,246,0.3); }
.plan-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(59,130,246,0.5); }
.pricing-note { text-align: center; color: var(--dim); font-size: 0.85rem; margin-top: 1.5rem; }

/* ── TESTIMONIALS ─────────────────────────────────────────────────────────── */
.testimonials-section { padding: 6rem 1.5rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.testimonial-card {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem; transition: all 0.3s;
}
.testimonial-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-4px); }
.test-stars { font-size: 1rem; margin-bottom: 1rem; }
.testimonial-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 0.75rem; }
.test-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.test-name { font-weight: 700; font-size: 0.9rem; }
.test-role { color: var(--dim); font-size: 0.8rem; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-section { padding: 6rem 1.5rem; }
.faq-list { margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 0; background: none; border: none; color: var(--text);
    font-size: 1rem; font-weight: 600; cursor: pointer; font-family: inherit;
    text-align: left; transition: color 0.2s;
}
.faq-q:hover { color: var(--blue); }
.faq-q span { font-size: 1.4rem; color: var(--dim); flex-shrink: 0; }
.faq-a { color: var(--muted); font-size: 0.95rem; line-height: 1.7; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 1.2rem; }

/* ── CTA SECTION ─────────────────────────────────────────────────────────── */
.cta-section {
    padding: 6rem 1.5rem; text-align: center; position: relative; overflow: hidden;
    border-top: 1px solid var(--border);
}
.cta-orb {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(59,130,246,0.12), transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; }
.cta-inner p { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }
.btn-glow-large { padding: 1.1rem 2.5rem; font-size: 1.1rem; border-radius: 12px; }
.cta-note { color: var(--dim); font-size: 0.85rem; margin-top: 1rem; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer { padding: 4rem 1.5rem 2rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 4rem; flex-wrap: wrap; margin-bottom: 3rem; }
.footer-brand { flex: 2; min-width: 200px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; line-height: 1.7; }
.footer-links { display: flex; gap: 4rem; flex: 1; }
.footer-links h4 { font-size: 0.85rem; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-links a { display: block; color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 1.5rem; color: var(--dim); font-size: 0.83rem; line-height: 1.6; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .steps-row { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 680px) {
    .nav-links, .nav-actions { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(6,9,18,0.98); padding: 1.5rem; border-bottom: 1px solid var(--border); gap: 1rem; }
    .nav-links.open, .nav-actions.open { display: flex; }
    .nav-hamburger { display: block; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 1rem; }
    .stat-divider { display: none; }
    .footer-inner { flex-direction: column; gap: 2rem; }
    .footer-links { flex-direction: column; gap: 2rem; }
}
