/* ─────────────────────────────────────────────────────────────
   Market Alerts — marketing site
   Dark trader-themed landing page; single stylesheet.
   Palette: navy/slate background, cyan-blue accent, emerald gain,
   crimson loss, violet for "edge" elements.
   ───────────────────────────────────────────────────────────── */

:root {
    --bg:        #0b1020;
    --bg-soft:   #111933;
    --bg-card:   #141d3a;
    --bg-card-2: #1a2347;
    --line:      rgba(148, 163, 184, 0.12);
    --line-2:    rgba(148, 163, 184, 0.20);

    --text:      #e2e8f0;
    --text-mute: #94a3b8;
    --text-dim:  #64748b;

    --accent:        #38bdf8;
    --accent-2:      #2563eb;
    --accent-glow:   rgba(56, 189, 248, 0.35);

    --green:  #22c55e;
    --red:    #ef4444;
    --amber:  #f59e0b;
    --purple: #a78bfa;
    --cyan:   #22d3ee;

    --radius:   14px;
    --radius-2: 22px;

    --max-w: 1180px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
            "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 16, 32, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; }
.logo-mark {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    box-shadow: 0 0 24px var(--accent-glow);
    position: relative;
}
.logo-mark::after {
    content: ""; position: absolute; inset: 6px;
    border-radius: 4px;
    background: var(--bg);
}
.logo-text { font-size: 17px; }
.logo-text span { color: var(--accent); font-weight: 600; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
    color: var(--text-mute);
    font-size: 14px;
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600 !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px var(--accent-glow);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 100px 24px 120px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 30%, rgba(168, 85, 247, 0.10), transparent 60%);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: 920px; margin: 0 auto; text-align: center;
}
.hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--green);
    font-size: 12px; font-weight: 600;
    border-radius: 999px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.hero-pill-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(36px, 6.5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 22px;
    color: #f1f5f9;
}
.grad {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--text-mute);
    max-width: 720px; margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600; font-size: 15px;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
                background 0.15s ease, border-color 0.15s ease;
    cursor: pointer; border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #061021;
    box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--accent-glow); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--accent); }

.hero-marquee {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px 16px;
    color: var(--text-dim);
    font-size: 13px;
    font-family: var(--mono);
    letter-spacing: 0.4px;
}
.hero-marquee .dot { color: var(--accent); }

/* ── SECTIONS ───────────────────────────────────────────────── */
section { padding: 100px 24px; position: relative; }

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-eyebrow.light { color: rgba(255,255,255,0.85); }

.section-title {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: #f8fafc;
}
.section-sub {
    color: var(--text-mute);
    font-size: 16px;
    margin: 0 0 50px;
    max-width: 700px;
}

/* ── STATS ──────────────────────────────────────────────────── */
.stats { background: var(--bg-soft); border-block: 1px solid var(--line); }
.stats-asof {
    display: inline-block;
    margin-left: 8px;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 12px;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.stat-value {
    font-family: var(--mono);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    line-height: 1.1;
}
.stat-label { color: var(--text-mute); font-size: 13px; letter-spacing: 0.2px; }
.pnl-pos { color: var(--green); }
.pnl-neg { color: var(--red); }

@media (max-width: 880px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

/* ── FEATURES ───────────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px 22px;
    transition: transform 0.18s ease, border-color 0.18s ease,
                box-shadow 0.18s ease;
}
.feature:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 14px 42px rgba(56, 189, 248, 0.10);
}
.feature h3 {
    margin: 14px 0 8px;
    font-size: 17px;
    color: #f1f5f9;
    font-weight: 700;
}
.feature p {
    margin: 0;
    color: var(--text-mute);
    font-size: 13.5px;
    line-height: 1.55;
}
.feature-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: 18px; font-weight: 700;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent);
}
.icon-blue   { background: rgba(56, 189, 248, 0.12); color: var(--accent); }
.icon-green  { background: rgba(34, 197, 94, 0.12);  color: var(--green); }
.icon-red    { background: rgba(239, 68, 68, 0.12);  color: var(--red); }
.icon-amber  { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.icon-purple { background: rgba(167, 139, 250, 0.14); color: var(--purple); }
.icon-cyan   { background: rgba(34, 211, 238, 0.12); color: var(--cyan); }

@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .feature-grid { grid-template-columns: 1fr; } }

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.how { background:
    radial-gradient(ellipse at top, rgba(168, 85, 247, 0.06), transparent 60%);
}
.flow {
    list-style: none;
    counter-reset: step;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.flow li {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 18px;
    position: relative;
}
.flow-num {
    display: inline-flex;
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #061021;
    font-family: var(--mono);
    font-weight: 700;
    align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.flow h3 { margin: 0 0 6px; font-size: 15px; color: #f1f5f9; }
.flow p { margin: 0; font-size: 13px; color: var(--text-mute); line-height: 1.55; }

@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .flow { grid-template-columns: 1fr; } }

/* ── STRATEGIES ─────────────────────────────────────────────── */
.strat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.strat-card {
    background: var(--bg-card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.strat-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(56, 189, 248, 0.08), transparent 50%);
    pointer-events: none;
}
.strat-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 1px; font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.strat-long  .strat-tag { background: rgba(34, 197, 94, 0.14); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.35); }
.strat-short .strat-tag { background: rgba(239, 68, 68, 0.14); color: var(--red);   border: 1px solid rgba(239, 68, 68, 0.35); }

.strat-card h3 { margin: 0 0 10px; font-size: 22px; color: #f8fafc; font-weight: 700; }
.strat-card p  { color: var(--text-mute); margin: 0 0 18px; }
.strat-rules { list-style: none; padding: 0; margin: 0; }
.strat-rules li {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    padding: 6px 0;
    border-top: 1px solid var(--line);
}
.strat-rules li::before {
    content: "▸ "; color: var(--accent); margin-right: 6px;
}

@media (max-width: 760px) { .strat-grid { grid-template-columns: 1fr; } }

/* ── PROOF QUOTES ───────────────────────────────────────────── */
.proof {
    background: var(--bg-soft);
    border-block: 1px solid var(--line);
}
.proof .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.quote {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    margin: 0;
}
.quote blockquote {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: 18px;
    color: #f1f5f9;
    line-height: 1.5;
    font-style: italic;
}
.quote figcaption { color: var(--text-dim); font-size: 13px; }

@media (max-width: 760px) { .proof .container { grid-template-columns: 1fr; } }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 4px;
    cursor: pointer;
}
.faq-item summary {
    list-style: none;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 16px;
    display: flex; justify-content: space-between; align-items: center;
    transition: color 0.15s ease;
}
.faq-item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 22px; font-weight: 300;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
    margin: 14px 0 4px;
    color: var(--text-mute);
    font-size: 14.5px;
}
.faq-item code {
    font-family: var(--mono);
    background: rgba(56, 189, 248, 0.10);
    padding: 1px 6px; border-radius: 4px;
    color: var(--accent);
    font-size: 12.5px;
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta {
    background: linear-gradient(135deg, var(--accent-2) 0%, #1e3a8a 60%, #312e81 100%);
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.30), transparent 50%),
        radial-gradient(ellipse at 10% 80%, rgba(56, 189, 248, 0.25), transparent 50%);
    pointer-events: none;
}
.cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center; gap: 40px;
}
.cta h2 { color: #fff; font-size: clamp(28px, 3vw, 38px); margin: 0 0 8px; }
.cta p  { color: rgba(255,255,255,0.85); margin: 0; }
.cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.btn-signup {
    min-width: 220px;
    justify-content: space-between;
    gap: 36px;
    background: #fff;
    color: var(--accent-2);
    box-shadow: 0 12px 32px rgba(0,0,0,0.20);
}
.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.28);
}
.cta-action > span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; } }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
    background: #06091a;
    padding: 60px 24px 30px;
    border-top: 1px solid var(--line);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-blurb { color: var(--text-mute); font-size: 13.5px; max-width: 360px; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.footer-cols h4 {
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 14px;
}
.footer-cols a {
    display: block;
    color: var(--text-mute);
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.15s ease;
}
.footer-cols a:hover { color: var(--accent); }
.footer-foot {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    color: var(--text-dim);
    font-size: 12.5px;
    text-align: center;
}
.logo-footer { margin-bottom: 14px; }

@media (max-width: 760px) {
    .footer-inner   { grid-template-columns: 1fr; }
    .footer-cols    { grid-template-columns: repeat(3, 1fr); }
    .nav-links a:not(.nav-cta) { display: none; }
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
