/* ---------- Landing-only styles ---------- */

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 75% 12%, rgba(47,107,255,0.22), transparent 65%),
    radial-gradient(ellipse 45% 38% at 12% 82%, rgba(62,219,200,0.10), transparent 65%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { color: var(--text-3); font-size: 0.9rem; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(47,107,255,0.10);
  color: var(--text-2); font-size: 0.85rem; font-weight: 600;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Mock report card in hero */
.mock-report {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow);
  max-width: 440px; margin-left: auto;
}
.mock-report .mr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mock-report .ticker { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; }
.mock-report .ticker small { display: block; font-weight: 500; color: var(--text-3); font-size: 0.78rem; letter-spacing: 0; }
.verdict-pill {
  padding: 8px 20px; border-radius: 999px; font-weight: 800; font-size: 0.95rem;
  background: rgba(52,211,153,0.15); color: var(--bull); border: 1px solid rgba(52,211,153,0.4);
}
.mr-stats { display: flex; gap: 10px; margin-bottom: 18px; }
.mr-stat {
  flex: 1; background: var(--surface-2); border-radius: 12px; padding: 10px 12px;
  font-variant-numeric: tabular-nums;
}
.mr-stat b { display: block; font-size: 1rem; }
.mr-stat span { color: var(--text-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.mr-case { border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; font-size: 0.88rem; color: var(--text-2); }
.mr-case b { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.mr-case.bull { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.25); }
.mr-case.bull b { color: var(--bull); }
.mr-case.bear { background: rgba(248,113,113,0.07); border: 1px solid rgba(248,113,113,0.25); }
.mr-case.bear b { color: var(--bear); }
.mr-foot { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 0.78rem; margin-top: 14px; }
.mr-foot svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--teal); }

/* Stats band */
.stats-band { padding: 48px 0 8px; }
.stats-band .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-raised); padding: 28px 32px;
}
.stat b { display: block; font-size: 1.9rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--text-2); font-size: 0.92rem; }

/* Pipeline diagram */
.pipeline { position: relative; max-width: 760px; margin: 0 auto; }
.pipe-stage { position: relative; display: flex; gap: 22px; padding-bottom: 36px; }
.pipe-stage:last-child { padding-bottom: 0; }
.pipe-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.pipe-num {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
  background: var(--surface-2); color: var(--blue-2);
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 5px rgba(47,107,255,0.12);
}
.pipe-stage.final .pipe-num { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 0 5px rgba(62,219,200,0.18); }
.pipe-line { flex: 1; width: 2px; margin-top: 8px; background: linear-gradient(180deg, var(--blue) 0%, rgba(47,107,255,0.18) 100%); }
.pipe-body { padding-top: 4px; }
.pipe-body h3 { margin-bottom: 6px; font-size: 1.2rem; }
.pipe-body p { color: var(--text-2); max-width: 56ch; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.agent-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2);
}
.agent-chip svg { width: 15px; height: 15px; }
.agent-chip.blue { color: #9DBBFF; }
.agent-chip.bull-c { color: var(--bull); border-color: rgba(52,211,153,0.35); }
.agent-chip.bear-c { color: var(--bear); border-color: rgba(248,113,113,0.35); }
.agent-chip.teal-c { color: var(--teal); border-color: rgba(62,219,200,0.35); }

/* Sources */
.source-card { display: flex; gap: 16px; align-items: flex-start; }
.source-card .icon-chip { flex-shrink: 0; }
.source-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.source-card p { font-size: 0.92rem; }

/* Chart section */
.chart-mock {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 20px; padding: 24px; box-shadow: var(--shadow);
}
.chart-mock .cm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-mock .cm-head b { font-size: 1rem; }
.cm-badges { display: flex; gap: 8px; }
.cm-badge { padding: 5px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.cm-badge.long { background: rgba(52,211,153,0.15); color: var(--bull); }
.cm-badge.rr { background: rgba(47,107,255,0.15); color: #9DBBFF; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; }
.checklist li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--text-2); }
.checklist svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--teal); margin-top: 2px; }
.checklist b { color: var(--text); }

/* Exchanges */
.exchange-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.exchange-chips span {
  padding: 9px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.exchange-chips span.hl { border-color: rgba(62,219,200,0.4); color: var(--teal); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .tier { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.price-card h3 { margin: 8px 0 4px; font-size: 1.25rem; }
.price-card .bill { color: var(--text-3); font-size: 0.85rem; margin-bottom: 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card li { display: flex; gap: 9px; font-size: 0.9rem; color: var(--text-2); margin-bottom: 10px; }
.price-card li svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--teal); margin-top: 3px; }
.price-card.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 16px 48px rgba(47,107,255,0.25); }
.best-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-note { text-align: center; color: var(--text-3); font-size: 0.85rem; margin-top: 24px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--blue-2); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--text-2); }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final .card {
  padding: 64px 32px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(47,107,255,0.18), transparent 70%),
    var(--surface);
  border-color: var(--border-strong);
}
.cta-final .logo-lg { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 12px 36px rgba(47,107,255,0.35); }
.cta-final h2 { margin-bottom: 12px; }
.cta-final .lead { margin: 0 auto 32px; }

/* ---------- Animations (gated on html.anim, set by JS; reduced-motion never gets it) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35); }
  50% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
}
@keyframes hueShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.15); }
}
@keyframes candleUp { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
@keyframes dashDraw { to { stroke-dashoffset: 0; } }
@keyframes labelIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollX { to { transform: translateX(-50%); } }
@keyframes scrollXrev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes railGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes numPop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Hero entrance */
html.anim .hero .pill,
html.anim .hero h1,
html.anim .hero .lead,
html.anim .hero .hero-ctas,
html.anim .hero .hero-note { animation: fadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
html.anim .hero .pill { animation-delay: 60ms; }
html.anim .hero h1 { animation-delay: 140ms; }
html.anim .hero .lead { animation-delay: 260ms; }
html.anim .hero .hero-ctas { animation-delay: 380ms; }
html.anim .hero .hero-note { animation-delay: 480ms; }
html.anim .mock-report { animation: fadeUp 800ms cubic-bezier(0.16, 1, 0.3, 1) 350ms both; }
html.anim .mock-report .mr-case.bull { animation: fadeUp 600ms ease 900ms both; }
html.anim .mock-report .mr-case.bear { animation: fadeUp 600ms ease 1150ms both; }
html.anim .mock-report .mr-foot { animation: labelIn 600ms ease 1450ms both; }
html.anim .mock-report .verdict-pill { animation: numPop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) 1400ms both, pulseGlow 2.6s ease 2s infinite; }
html.anim .mock-float { animation: floaty 6s ease-in-out 2s infinite; }
html.anim .hero h1 .grad-text,
html.anim .cta-final h2 .grad-text { background-size: 220% 220%; animation: hueShift 6s ease infinite; }

/* Hero drifting glow orb */
.hero .orb {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(70px); z-index: 0;
}
.hero .orb-1 { width: 420px; height: 420px; right: -80px; top: -60px; background: rgba(47, 107, 255, 0.16); }
.hero .orb-2 { width: 340px; height: 340px; left: -110px; bottom: -90px; background: rgba(62, 219, 200, 0.10); }
html.anim .hero .orb-1 { animation: orbDrift 14s ease-in-out infinite; }
html.anim .hero .orb-2 { animation: orbDrift 18s ease-in-out infinite reverse; }

/* Scroll reveal (class added only by JS) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Pipeline: rail draws, number pops, chips cascade */
html.anim .pipe-line { transform-origin: top; transform: scaleY(0); }
html.anim .pipe-stage.in .pipe-line { animation: railGrow 700ms cubic-bezier(0.16, 1, 0.3, 1) 250ms both; }
html.anim .pipe-stage .pipe-num { opacity: 0; }
html.anim .pipe-stage.in .pipe-num { animation: numPop 550ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
html.anim .pipe-stage .agent-chip { opacity: 0; transform: translateY(10px); transition: opacity 450ms ease, transform 450ms ease; }
html.anim .pipe-stage.in .agent-chip { opacity: 1; transform: none; }
.agent-chip { transition: border-color 200ms ease, transform 200ms ease; }
.agent-chip:hover { transform: translateY(-2px); border-color: var(--blue-2); }

/* Chart mock: candles grow, levels draw, labels pop */
html.anim .chart-mock .candle { opacity: 0; transform-box: fill-box; transform-origin: center bottom; }
html.anim .chart-mock.drawn .candle { animation: candleUp 550ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 90ms) both; }
html.anim .chart-mock .level { stroke-dasharray: 420; stroke-dashoffset: 420; }
html.anim .chart-mock.drawn .level { animation: dashDraw 1100ms ease calc(200ms + var(--i) * 250ms) both; }
html.anim .chart-mock .lvl-label { opacity: 0; }
html.anim .chart-mock.drawn .lvl-label { animation: labelIn 500ms ease calc(900ms + var(--i) * 250ms) both; }
html.anim .chart-mock .cm-badge { opacity: 0; }
html.anim .chart-mock.drawn .cm-badge { animation: numPop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(1400ms + var(--i) * 150ms) both; }

/* Exchange marquee */
.marquee { overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.m-set { display: flex; gap: 10px; padding-right: 10px; }
html.anim .marquee-track { animation: scrollX 42s linear infinite; }
html.anim .marquee.rev .marquee-track { animation: scrollXrev 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.m-set span {
  padding: 9px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.m-set span.hl { border-color: rgba(62, 219, 200, 0.4); color: var(--teal); }

/* Stat hover tick */
.stat b { transition: transform 200ms ease; }
.stat:hover b { transform: translateY(-3px); }

/* FAQ open motion */
.faq details p { animation: fadeUp 350ms ease both; }
.faq summary { transition: color 200ms ease; }
.faq summary:hover { color: var(--blue-2); }

/* ---------- Game plan block inside the sample report ---------- */
.mr-plan {
  border: 1px solid var(--border-strong); border-radius: 14px;
  background: linear-gradient(180deg, rgba(47,107,255,0.07), rgba(47,107,255,0.02));
  padding: 14px 16px 16px; margin-bottom: 12px;
}
.mp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mp-head b { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.mp-chips { display: flex; gap: 6px; }
.mp-chips i {
  font-style: normal; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border);
}
.mp-chips i.c-long { background: rgba(52,211,153,0.14); color: var(--bull); border-color: rgba(52,211,153,0.4); }
.mp-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; border-bottom: 1px dashed rgba(148,168,255,0.12);
  font-size: 0.86rem; color: var(--text-2);
}
.mp-row:last-of-type { border-bottom: 0; }
.mp-row svg { width: 15px; height: 15px; flex-shrink: 0; }
.mp-row b { margin-left: auto; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.mp-row.entry svg, .mp-row.entry b { color: var(--blue-2); }
.mp-row.stop svg, .mp-row.stop b { color: var(--bear); }
.mp-row.tp1 svg, .mp-row.tp1 b, .mp-row.tp2 svg, .mp-row.tp2 b { color: var(--bull); }
.mp-rr { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 0.8rem; color: var(--text-3); }
.mp-rr b { color: var(--text); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.rr-bar { display: flex; gap: 4px; margin-top: 7px; height: 6px; }
.rr-bar i { border-radius: 999px; display: block; }
.rr-bar .risk { flex: 1; background: var(--bear); }
.rr-bar .reward { flex: 1.9; background: var(--bull); }
html.anim .mr-plan .mp-row { opacity: 0; animation: fadeUp 500ms ease both; }
html.anim .mr-plan .mp-row.entry { animation-delay: 900ms; }
html.anim .mr-plan .mp-row.stop { animation-delay: 1020ms; }
html.anim .mr-plan .mp-row.tp1 { animation-delay: 1140ms; }
html.anim .mr-plan .mp-row.tp2 { animation-delay: 1260ms; }
html.anim .rr-bar i { transform-origin: left; animation: railGrowX 700ms cubic-bezier(0.16,1,0.3,1) 1400ms both; }
@keyframes railGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- App screenshots ---------- */
.shots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; perspective: 1200px; }
/* Phones tilt up into place, then the screen itself settles a beat later. */
.shot.reveal { transform: translateY(60px) rotateX(10deg) scale(0.94); transform-origin: 50% 100%; transition-duration: 800ms; }
.shot.reveal.in { transform: none; }
html.anim .shot .phone img { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease 220ms, transform 800ms cubic-bezier(0.16,1,0.3,1) 220ms; }
html.anim .shot.in .phone img { opacity: 1; transform: none; }
.shot figure { margin: 0; text-align: center; }
.phone {
  position: relative; margin: 0 auto 16px; max-width: 240px;
  border: 8px solid #182142; border-radius: 34px;
  background: #05091c; box-shadow: 0 22px 60px rgba(4,8,30,0.65), 0 0 0 1px rgba(148,168,255,0.16);
  overflow: hidden; transition: transform 300ms ease, box-shadow 300ms ease;
}
.phone::after {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 15px; border-radius: 999px; background: #05091c;
}
.phone img { display: block; width: 100%; height: auto; }
.shot:hover .phone { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(4,8,30,0.7), 0 0 0 1px rgba(91,141,247,0.45); }
.shot figcaption { color: var(--text-2); font-size: 0.92rem; }
.shot figcaption b { display: block; color: var(--text); font-size: 0.98rem; margin-bottom: 3px; }

/* ---------- App store buttons ---------- */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-final .store-row, .store-row.center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; min-height: 56px;
  border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  font-family: inherit; text-align: left; cursor: default;
  transition: border-color 200ms ease, background 200ms ease;
}
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn span { display: block; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.store-btn b { display: block; font-size: 1rem; font-weight: 700; line-height: 1.2; }
.store-btn[disabled] { opacity: 0.8; }
.store-btn:not([disabled]) { cursor: pointer; }
.store-btn:not([disabled]):hover { border-color: var(--blue-2); background: var(--surface-2); }
.store-note { color: var(--text-3); font-size: 0.85rem; margin-top: 14px; }
.store-note .soon {
  display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(62,219,200,0.12); color: var(--teal); border: 1px solid rgba(62,219,200,0.35);
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .mock-report { margin: 0 auto; }
  .stats-band .container { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .shots-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pipe-stage { gap: 16px; }
  .shots-grid { grid-template-columns: 1fr; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .mock-report { margin-left: 0; margin-right: auto; }
[dir="rtl"] .mp-row b { margin-left: 0; margin-right: auto; }
[dir="rtl"] .store-btn { text-align: right; }
[dir="rtl"] .store-note .soon { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .m-set { padding-right: 0; padding-left: 10px; }
