/* XirevoBot - Homepage styles (Hero bot, market ticker, trading demo, reviews).
   Uses the shared palette variables from main.css. RTL-safe. */

/* IB homepage notice */
.ib-home-banner {
    background: linear-gradient(90deg, rgba(197,160,40,.14), rgba(138,107,18,.08));
    border-bottom: 1px solid rgba(197,160,40,.35);
    padding: .85rem 0;
}
.ib-home-banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.ib-home-banner-copy { flex: 1 1 18rem; max-width: 40rem; }
.ib-home-banner-copy strong { display: block; margin-bottom: .25rem; color: #5c4a12; }
.ib-home-banner-copy p { margin: 0; font-size: .9rem; color: #4a4338; line-height: 1.5; }
.ib-home-banner-actions { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ---------- Hero — XAUUSD gold lock ---------- */
.hp-hero-gold {
    --gold: #c5a028;
    --gold-deep: #8a6b12;
    --ink: #1a1610;
    position: relative;
    min-height: min(92vh, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(197, 160, 40, .22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 15% 80%, rgba(138, 107, 18, .12), transparent 50%),
        linear-gradient(165deg, #f7f3ea 0%, #ebe4d4 45%, #e2d7c0 100%);
}
.hp-hero-gold-bg {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 48px,
            rgba(138, 107, 18, .04) 48px,
            rgba(138, 107, 18, .04) 49px
        );
    pointer-events: none;
}
.hp-hero-gold .hero-grid { position: relative; z-index: 1; width: 100%; }
.hp-brand-lockup {
    font-family: "Cormorant Garamond", "Cairo", serif;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ink);
    margin: 0 0 .35rem;
    line-height: 1.05;
}
.hp-hero-brand {
    font-family: "Outfit", "Cairo", sans-serif !important;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem) !important;
    font-weight: 600 !important;
    color: var(--gold-deep) !important;
    margin: .5rem 0 .75rem !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}
html[dir="rtl"] .hp-hero-brand { letter-spacing: 0; }
.hp-gold-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .85rem;
    padding: .35rem .85rem;
    font-family: "Outfit", "Cairo", sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(197, 160, 40, .45);
}
.hp-gold-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 40, .25);
    animation: hp-gold-pulse 2.2s ease-in-out infinite;
}
@keyframes hp-gold-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: .7; }
}
.hp-hero-gold .lead {
    font-family: "Outfit", "Cairo", sans-serif;
    max-width: 34rem;
    color: #4a4338;
    font-size: 1.05rem;
}
.hp-hero-gold .btn-primary-x {
    background: linear-gradient(135deg, #c5a028, #8a6b12);
    border-color: transparent;
    color: #fff;
}
.hp-hero-gold .btn-outline-x {
    border-color: rgba(138, 107, 18, .45);
    color: var(--ink);
}
.hp-gold-visual { min-height: 380px; }
.hp-gold-ingot {
    position: relative;
    width: 280px; height: 280px;
    display: grid; place-items: center;
}
.hp-gold-ingot-face {
    position: relative; z-index: 2;
    width: 168px; height: 112px;
    display: grid; place-content: center; gap: .15rem;
    background: linear-gradient(145deg, #f0d56e 0%, #c5a028 42%, #8a6b12 100%);
    clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
    box-shadow: 0 18px 40px rgba(138, 107, 18, .35);
    animation: hp-float 4.5s ease-in-out infinite;
    text-align: center;
    color: #1a1610;
}
.hp-gold-ingot-sym {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: .12em;
}
.hp-gold-ingot-usd {
    font-family: "Outfit", sans-serif;
    font-size: .85rem; font-weight: 600; letter-spacing: .28em;
}
.hp-gold-ring, .hp-gold-ring.r2 {
    position: absolute; inset: 0;
    border: 1.5px solid rgba(197, 160, 40, .4);
    border-radius: 50%;
    animation: hp-spin 22s linear infinite;
}
.hp-gold-ring.r2 {
    inset: 28px;
    border-color: rgba(138, 107, 18, .25);
    animation-duration: 32s;
    animation-direction: reverse;
}
.hp-hero-gold .hp-bot-state {
    border-radius: 4px;
    border-color: rgba(197, 160, 40, .35);
    font-family: "Outfit", "Cairo", sans-serif;
}
.hp-hero-gold .hp-bot-state .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ---------- Hero (legacy bot — kept for other pages) ---------- */
.hp-hero { overflow: hidden; }
.hp-hero-copy h1 { line-height: 1.15; }

.hp-bot {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 340px;
}
.hp-bot-img { max-width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(255,122,0,.25)); }

.hp-bot-core {
    position: relative;
    width: 260px; height: 260px;
    display: grid; place-items: center;
}
.hp-bot-ring, .hp-bot-ring.r2 {
    position: absolute; inset: 0;
    border: 2px dashed rgba(255,122,0,.35);
    border-radius: 50%;
    animation: hp-spin 18s linear infinite;
}
.hp-bot-ring.r2 { inset: 26px; border-color: rgba(255,122,0,.2); animation-duration: 26s; animation-direction: reverse; }
@keyframes hp-spin { to { transform: rotate(360deg); } }

.hp-bot-head {
    position: relative;
    width: 150px; height: 130px;
    background: linear-gradient(160deg, #1f1f1f, #111);
    border-radius: 26px;
    box-shadow: 0 12px 30px rgba(17,17,17,.25), inset 0 0 0 2px rgba(255,122,0,.25);
    display: grid; place-items: center;
    animation: hp-float 4s ease-in-out infinite;
}
@keyframes hp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hp-bot-face { display: flex; gap: 22px; }
.hp-bot-eye {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 16px rgba(255,122,0,.9);
    animation: hp-blink 5s infinite;
}
@keyframes hp-blink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

.hp-bot-scan {
    position: absolute; left: 12px; right: 12px; top: 20px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    border-radius: 3px; opacity: .8;
    animation: hp-scan 2.4s ease-in-out infinite;
}
@keyframes hp-scan { 0%,100% { top: 22px; } 50% { top: 96px; } }

.hp-bot-signals { position: absolute; inset: 0; pointer-events: none; }
.hp-bot-signals .sig { position: absolute; font-size: 18px; font-weight: 700; opacity: 0; }
.hp-bot-signals .up { color: var(--green); left: 6%; top: 28%; animation: hp-sig 3.2s ease-in-out infinite; }
.hp-bot-signals .down { color: var(--red); right: 6%; bottom: 26%; animation: hp-sig 3.2s ease-in-out infinite .8s; }
@keyframes hp-sig { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

.hp-bot-dots { position: absolute; bottom: 6px; display: flex; gap: 8px; }
.hp-bot-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,122,0,.5); animation: hp-pulse 1.4s infinite; }
.hp-bot-dots span:nth-child(2) { animation-delay: .2s; }
.hp-bot-dots span:nth-child(3) { animation-delay: .4s; }
.hp-bot-dots span:nth-child(4) { animation-delay: .6s; }
@keyframes hp-pulse { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

.hp-bot-state {
    position: absolute; bottom: 0;
    display: inline-flex; align-items: center; gap: .5rem;
    background: #fff; border: 1px solid var(--border);
    border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.hp-bot-state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: hp-pulse 1.6s infinite; }
.hp-bot.is-opportunity .hp-bot-state .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.hp-bot.is-risk .hp-bot-state .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }

@media (prefers-reduced-motion: reduce) {
    .hp-bot-ring, .hp-bot-head, .hp-bot-scan, .hp-bot-eye, .hp-bot-dots span, .hp-bot-signals .sig { animation: none !important; }
}

/* ---------- Market ticker ---------- */
.hp-ticker-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.hp-ticker { overflow: hidden; white-space: nowrap; }
.hp-ticker-track { display: inline-flex; gap: 2.4rem; padding: .7rem 1rem; animation: hp-marquee 40s linear infinite; }
html[dir="rtl"] .hp-ticker-track { animation-name: hp-marquee-rtl; }
@keyframes hp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hp-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.hp-ticker:hover .hp-ticker-track { animation-play-state: paused; }
.hp-ticker-item { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; }
.hp-ticker-item b { color: var(--text); }
.hp-ticker-item .tk-name { color: var(--text-2); font-size: .82rem; }
.hp-ticker-item .tk-price { font-weight: 700; }
.hp-ticker-item .tk-change.up { color: var(--green); }
.hp-ticker-item .tk-change.down { color: var(--red); }
.hp-ticker-item .tk-updated { color: var(--text-2); font-size: .72rem; }
.hp-ticker-note { text-align: center; font-size: .8rem; color: var(--text-2); padding: .3rem 0 .5rem; }
.hp-ticker-note.hidden { display: none; }

/* ---------- Trading demo (dark professional terminal) ---------- */
.hp-demo {
    --td-bg: #0a0c0f;
    --td-panel: #101418;
    --td-elev: #151a20;
    --td-line: rgba(255,255,255,.08);
    --td-muted: #8b93a1;
    --td-text: #e8ecf1;
    --td-orange: #FF7A00;
    --td-green: #22c55e;
    --td-red: #f04438;
    position: relative;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 18px;
    background:
        radial-gradient(1100px 380px at 8% -12%, rgba(255,122,0,.14), transparent 55%),
        radial-gradient(800px 320px at 92% 0%, rgba(34,197,94,.06), transparent 50%),
        #0a0c0f !important;
    box-shadow: 0 22px 55px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
    overflow: hidden;
    color: #e8ecf1 !important;
}
.hp-demo-badge {
    position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5;
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; font-weight: 600;
    padding: .35rem .8rem; border-radius: 999px;
    border: 1px solid rgba(255,122,0,.35);
    backdrop-filter: blur(8px);
}
.hp-demo-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--td-orange); animation: hp-pulse 1.6s infinite; }
.hp-demo-badge.is-live { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.15); }
.hp-demo-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem;
    padding: .95rem 1.1rem; border-bottom: 1px solid var(--td-line);
    background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.hp-demo-stat { text-align: center; }
.hp-demo-stat span { display: block; font-size: .72rem; color: var(--td-muted); margin-bottom: .25rem; }
.hp-demo-stat b { font-size: 1.2rem; font-weight: 800; color: var(--td-text); font-variant-numeric: tabular-nums; }
.hp-demo-stat b.is-up, #demo-pnl.is-up, .hp-demo .text-up { color: var(--td-green); }
.hp-demo-stat b.is-down, #demo-pnl.is-down { color: var(--td-red); }
.hp-demo-grid { display: grid; grid-template-columns: 2.2fr 0.9fr; }
.hp-demo-chart-wrap { padding: 1rem 1.1rem 1.15rem; border-inline-end: 1px solid var(--td-line); }
.hp-demo-topbar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .75rem; }
.hp-demo-symbol { font-size: .92rem; color: var(--td-muted); }
.hp-demo-symbol b { color: var(--td-text); font-size: 1.08rem; }
.hp-demo-price { font-weight: 800; font-size: 1.35rem; color: var(--td-text); font-variant-numeric: tabular-nums; }
.hp-demo-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.hp-demo .chip {
    background: var(--td-elev); border: 1px solid var(--td-line); color: var(--td-text);
    border-radius: 999px; padding: .28rem .75rem; font-size: .78rem;
}
.hp-demo .chip b { color: var(--td-orange); }
.hp-demo-chart {
    width: 100%; height: 520px; min-height: 280px; position: relative;
    border-radius: 12px; overflow: hidden;
    background: #07090c !important;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: inset 0 0 40px rgba(0,0,0,.45);
}
.hp-demo-chart .hp-chart-surface {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hp-demo-chart canvas.hp-chart-surface {
    display: block;
}
.hp-demo-chart-overlay {
    position: absolute; inset: 10px auto auto 10px; z-index: 5;
    display: flex; flex-direction: column; gap: .35rem; pointer-events: none;
    max-width: min(280px, 72%);
}
html[dir="rtl"] .hp-demo-chart-overlay { inset: 10px 10px auto auto; left: auto; }
.hp-demo-strat-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(10,12,15,.88); color: #fff;
    border: 1px solid rgba(255,122,0,.4);
    border-radius: 8px; padding: .28rem .55rem; font-size: .72rem; font-weight: 600;
    backdrop-filter: blur(6px);
}
.hp-demo-strat-pill .tag { color: var(--td-orange); font-weight: 800; }
.hp-demo-target-rail {
    display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .7rem;
}
.hp-demo-target-card {
    border-radius: 10px; padding: .55rem .7rem;
    border: 1px solid var(--td-line); background: var(--td-panel);
}
.hp-demo-target-card.up { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.hp-demo-target-card.down { border-color: rgba(240,68,56,.35); background: rgba(240,68,56,.08); }
.hp-demo-target-card .lbl {
    display: block; font-size: .68rem; color: var(--td-muted); margin-bottom: .2rem; font-weight: 600;
}
.hp-demo-target-card.up .lbl { color: #86efac; }
.hp-demo-target-card.down .lbl { color: #fca5a5; }
.hp-demo-target-card b { font-size: .86rem; font-variant-numeric: tabular-nums; color: var(--td-text); }
.hp-demo-target-card .sub { display: block; font-size: .68rem; color: var(--td-muted); margin-top: .15rem; }
.hp-demo-indicators { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }
.hp-demo-indicators span {
    font-size: .7rem; color: var(--td-muted);
    border: 1px solid var(--td-line); border-radius: 6px; padding: .18rem .5rem;
    background: rgba(255,255,255,.02);
}
.hp-demo-indicators span.is-active {
    color: #fff; border-color: rgba(255,122,0,.45); background: rgba(255,122,0,.12);
}
.hp-demo-trades-wrap { margin-top: .9rem; }
.hp-demo-trades-wrap h4 { font-size: .82rem; margin: 0 0 .45rem; color: var(--td-muted); font-weight: 600; }
.hp-demo-trades { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; max-height: 112px; overflow: auto; }
.hp-demo-trades li {
    font-size: .78rem; padding: .35rem .55rem; border-radius: 7px;
    background: rgba(34,197,94,.08); border-inline-start: 3px solid var(--td-green); color: var(--td-text);
}
.hp-demo-trades .is-up { color: var(--td-green); font-weight: 700; }

.hp-demo-side { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .95rem; background: rgba(0,0,0,.22); }
.hp-demo-side-title {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--td-muted); margin: 0 0 .35rem; font-weight: 700;
}
.hp-demo-levels { display: grid; gap: .35rem; }
.hp-demo-levels .lvl {
    display: flex; justify-content: space-between; align-items: center;
    padding: .42rem .7rem; border-radius: 8px; font-size: .84rem;
    border: 1px solid var(--td-line); background: var(--td-elev);
}
.hp-demo-levels .lvl span { color: var(--td-muted); }
.hp-demo-levels .lvl b { font-variant-numeric: tabular-nums; color: var(--td-text); }
.hp-demo-levels .entry { border-inline-start: 3px solid var(--td-orange); }
.hp-demo-levels .sl { border-inline-start: 3px solid var(--td-red); }
.hp-demo-levels .tp { border-inline-start: 3px solid var(--td-green); }
.hp-demo-strategies { display: flex; flex-wrap: wrap; gap: .35rem; }
.hp-demo-strategies .s-chip {
    font-size: .7rem; padding: .28rem .55rem; border-radius: 7px;
    border: 1px solid var(--td-line); color: var(--td-muted); background: transparent;
}
.hp-demo-strategies .s-chip.is-on {
    color: #fff; border-color: rgba(255,122,0,.5); background: rgba(255,122,0,.15);
}
.hp-demo-status .row {
    display: flex; justify-content: space-between; font-size: .84rem;
    padding: .35rem 0; border-bottom: 1px dashed var(--td-line); color: var(--td-muted);
}
.hp-demo-status .row b { color: var(--td-text); }
.hp-demo-log h4 { font-size: .82rem; margin: 0 0 .45rem; color: var(--td-muted); font-weight: 600; }
.hp-demo-log ul, .hp-demo-log-list {
    list-style: none; margin: 0; padding: 0; max-height: 210px; overflow: auto;
    display: flex; flex-direction: column; gap: .3rem;
}
.hp-demo-log li, .hp-demo-log-list li {
    font-size: .78rem; padding: .35rem .55rem; border-radius: 7px;
    background: var(--td-elev); border-inline-start: 3px solid var(--td-line);
    color: #c5ccd6; animation: hp-fadein .3s ease;
}
.hp-demo-log li.info, .hp-demo-log-list li.info { border-inline-start-color: var(--td-orange); }
.hp-demo-log li.success, .hp-demo-log-list li.success { border-inline-start-color: var(--td-green); }
.hp-demo-log li.warning, .hp-demo-log-list li.warning { border-inline-start-color: #f59e0b; }
.hp-demo-log li.danger, .hp-demo-log-list li.danger { border-inline-start-color: var(--td-red); }
@keyframes hp-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Steps / features / plans ---------- */
.hp-step { text-align: center; position: relative; }
.hp-step-ico { margin-inline: auto; animation: hp-step-in .5s ease both; animation-delay: calc(var(--hp-step-i, 1) * .05s); }
.hp-step-num {
    position: absolute; top: .85rem; inset-inline-end: .85rem;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--orange-soft); color: var(--orange);
    font-size: .72rem; font-weight: 800;
    display: grid; place-items: center;
}
.hp-step:hover .hp-step-ico { transform: translateY(-3px); }
.hp-step .hp-step-ico { transition: transform .2s ease; }
@keyframes hp-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .hp-step-ico { animation: none !important; }
}

.hp-feature p { font-size: .88rem; margin: .4rem 0 0; }
.hp-feature .feature-icon svg { stroke: var(--orange); }
.hp-feature { transition: transform .2s ease, box-shadow .2s ease; }
.hp-feature:hover { transform: translateY(-3px); }

.plan-card { position: relative; }
.plan-badge { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; }
html[dir="rtl"] .plan-badge { transform: translateX(50%); }
.plan-meta { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .3rem; }
.plan-meta li { font-size: .84rem; color: var(--text-2); }

/* Reviews — continuous moving strip */
.hp-reviews-section {
    overflow: hidden;
    padding-block: 3.5rem 4rem;
    background:
        linear-gradient(180deg, rgba(255,122,0,.06), transparent 40%),
        #0a0c10;
}
.hp-reviews-section .section-head h2 { color: #fff; }
.hp-reviews-section .section-head p { color: #a7b0bd; }
.hp-reviews-section .eyebrow { color: var(--orange); }
.hp-reviews-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-block: .5rem 1.2rem;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.hp-reviews-track {
    display: flex;
    gap: 1.15rem;
    width: max-content;
    padding: .5rem 1rem 1.1rem;
    will-change: transform;
    /* JS drives transform; CSS animation is a non-JS fallback */
    animation: hp-reviews-fall 55s linear infinite;
}
.hp-reviews-marquee.is-js .hp-reviews-track {
    animation: none !important;
}
@keyframes hp-reviews-fall {
    from { transform: translateX(0); }
    to { transform: translateX(-33.333%); }
}
html[dir="rtl"] .hp-reviews-track {
    animation-name: hp-reviews-fall-rtl;
}
@keyframes hp-reviews-fall-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(33.333%); }
}
.hp-review-card {
    width: min(420px, 82vw);
    min-height: 210px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #1a2030 0%, #0f1319 100%);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 1.35rem 1.45rem 1.3rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.hp-review-stars {
    color: var(--orange);
    letter-spacing: .1em;
    margin-bottom: .7rem;
    font-size: 1.05rem;
}
.hp-review-text {
    color: #e4e8ef;
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}
.hp-review-name {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}
.hp-review-meta {
    color: #8e97a5;
    font-size: .85rem;
    margin-top: .15rem;
}
.hp-review-author { display: flex; align-items: center; gap: .7rem; margin-top: 1.15rem; }
.hp-review-avatar {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    display: inline-grid; place-items: center;
    background: rgba(255,122,0,.18); color: var(--orange); font-weight: 800;
    border: 1px solid rgba(255,122,0,.35); flex-shrink: 0;
    font-size: 1.05rem;
}
.hp-verified { color: #4ade80; margin-inline-start: .25rem; }
.hp-flag { font-size: 1.05rem; }

.hp-cta-actions {
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.hp-cta-login {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.3);
}

/* ---------- Command Center (ops desk) ---------- */
.hp-cmd-section {
    background:
        radial-gradient(900px 420px at 15% 0%, rgba(255,122,0,.12), transparent 55%),
        radial-gradient(700px 360px at 90% 20%, rgba(255,255,255,.04), transparent 50%),
        #080a0e;
    color: #e8ecf1;
    overflow: hidden;
}
.hp-cmd-head .eyebrow { color: #FF7A00; }
.hp-cmd-head h2 { color: #fff; }
.hp-cmd-head p { color: #a7b0bd; }

.hp-cmd {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.1);
    background:
        linear-gradient(165deg, rgba(22,26,34,.95), rgba(10,12,16,.98));
    box-shadow: 0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
    overflow: hidden;
    padding: 1.25rem 1.25rem 1.4rem;
}
.hp-cmd-glow {
    position: absolute; inset: -20% auto auto 40%; width: 420px; height: 220px;
    background: radial-gradient(circle, rgba(255,122,0,.22), transparent 70%);
    pointer-events: none; filter: blur(8px);
    animation: hp-cmd-glow 6s ease-in-out infinite;
}
@keyframes hp-cmd-glow {
    0%,100% { opacity: .55; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(-30px); }
}

.hp-cmd-top {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.15rem;
}
.hp-cmd-brand { display: flex; align-items: center; gap: .9rem; }
.hp-cmd-kicker {
    font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    color: #8b93a1; font-weight: 700;
}
.hp-cmd-title { font-size: 1.25rem; font-weight: 800; color: #fff; }

.hp-cmd-radar {
    position: relative; width: 54px; height: 54px;
    border-radius: 50%; flex-shrink: 0;
}
.hp-cmd-radar-ring, .hp-cmd-radar-ring.r2 {
    position: absolute; inset: 0;
    border: 1px dashed rgba(255,122,0,.45);
    border-radius: 50%;
    animation: hp-cmd-spin 12s linear infinite;
}
.hp-cmd-radar-ring.r2 {
    inset: 8px; border-color: rgba(255,255,255,.18);
    animation-duration: 18s; animation-direction: reverse;
}
.hp-cmd-radar-sweep {
    position: absolute; inset: 4px; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 75%, rgba(255,122,0,.55) 100%);
    animation: hp-cmd-spin 3.2s linear infinite;
    opacity: .85;
}
.hp-cmd-radar-core {
    position: absolute; inset: 18px; border-radius: 50%;
    background: #FF7A00;
    box-shadow: 0 0 16px rgba(255,122,0,.9);
    animation: hp-cmd-pulse 1.6s ease-in-out infinite;
}
@keyframes hp-cmd-spin { to { transform: rotate(360deg); } }
@keyframes hp-cmd-pulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: .75; }
}

.hp-cmd-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.hp-cmd-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .28rem .7rem; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: #d5dbe3; font-size: .76rem; font-weight: 600;
}
.hp-cmd-pill .dot {
    width: 7px; height: 7px; border-radius: 50%; background: #8b93a1;
}
.hp-cmd-pill.is-live {
    border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.1); color: #86efac;
}
.hp-cmd-pill.is-live .dot { background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: hp-cmd-pulse 1.5s infinite; }
.hp-cmd-pill.is-scan .dot { background: #FF7A00; box-shadow: 0 0 8px #FF7A00; animation: hp-cmd-pulse 1.2s infinite; }

.hp-cmd-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.55fr 1fr; gap: 1rem;
}
.hp-cmd-main { display: flex; flex-direction: column; gap: 1rem; }

.hp-cmd-price-panel {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
    background:
        linear-gradient(180deg, rgba(255,122,0,.08), transparent 40%),
        #0d1016;
    padding: 1.25rem 1.3rem 1.1rem;
    overflow: hidden;
    min-height: 210px;
}
.hp-cmd-price-meta {
    display: flex; justify-content: space-between; align-items: center;
    color: #8b93a1; font-size: .8rem; margin-bottom: .35rem;
}
.hp-cmd-price-meta b { color: #fff; font-size: .95rem; letter-spacing: .04em; }
.hp-cmd-price-value {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800; color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    text-shadow: 0 0 24px rgba(255,122,0,.25);
    transition: color .25s ease, transform .2s ease;
}
.hp-cmd-price-value.is-flash { color: #FF7A00; transform: scale(1.03); }
.hp-cmd-price-foot {
    display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .55rem;
}
.hp-cmd-dir, .hp-cmd-decision {
    display: inline-flex; align-items: center;
    padding: .28rem .7rem; border-radius: 999px;
    font-size: .8rem; font-weight: 700;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05); color: #fff;
}
.hp-cmd-decision { border-color: rgba(255,122,0,.4); color: #FF7A00; background: rgba(255,122,0,.1); }

.hp-cmd-eq {
    display: flex; align-items: flex-end; gap: 4px;
    height: 42px; margin-top: 1rem;
}
.hp-cmd-eq span {
    flex: 1; border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #FF7A00, rgba(255,122,0,.2));
    min-height: 6px;
    animation: hp-cmd-eq 1.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * .07s);
    opacity: .85;
}
@keyframes hp-cmd-eq {
    0%,100% { height: 18%; }
    40% { height: 88%; }
    70% { height: 42%; }
}
.hp-cmd-note {
    margin-top: .75rem; font-size: .75rem; color: #8b93a1;
}

.hp-cmd-metrics {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem;
}
.hp-cmd-metric {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.03);
    padding: .85rem .9rem;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hp-cmd-metric:hover {
    border-color: rgba(255,122,0,.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.hp-cmd-metric .lbl {
    display: block; font-size: .72rem; color: #8b93a1; margin-bottom: .35rem; font-weight: 600;
}
.hp-cmd-metric b {
    font-size: 1.15rem; color: #fff; font-variant-numeric: tabular-nums;
}
.hp-cmd-metric b.is-safe { color: #4ade80; font-size: 1rem; }
.hp-cmd-metric.is-up b { color: #4ade80; }

.hp-cmd-score {
    position: relative; width: 72px; height: 72px;
    display: grid; place-items: center;
}
.hp-cmd-score b { position: relative; z-index: 1; font-size: 1.2rem; }
.hp-cmd-score-ring {
    position: absolute; inset: 0; width: 72px; height: 72px;
    transform: rotate(-90deg);
}
.hp-cmd-score-ring .track {
    fill: none; stroke: rgba(255,255,255,.08); stroke-width: 6;
}
.hp-cmd-score-ring .value {
    fill: none; stroke: #FF7A00; stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    stroke-dashoffset: 40;
    transition: stroke-dashoffset .6s ease;
    filter: drop-shadow(0 0 6px rgba(255,122,0,.55));
}

.hp-cmd-side {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
    background: #0c0f14;
    padding: 1rem 1.05rem 1.1rem;
    display: flex; flex-direction: column; gap: .7rem;
    min-height: 100%;
}
.hp-cmd-side-head {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.hp-cmd-side-head h3 { margin: 0; font-size: .95rem; color: #fff; }
.hp-cmd-live-dot {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 700; color: #86efac;
}
.hp-cmd-live-dot .dot {
    width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
    box-shadow: 0 0 8px #22c55e; animation: hp-cmd-pulse 1.4s infinite;
}
.hp-cmd-side-note { margin: 0; font-size: .76rem; color: #8b93a1; }

.hp-cmd-log {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: .4rem;
    max-height: 260px; overflow: auto;
}
.hp-cmd-log li {
    font-size: .8rem; padding: .5rem .65rem; border-radius: 10px;
    background: rgba(255,255,255,.04);
    border-inline-start: 3px solid rgba(255,255,255,.15);
    color: #c9d0da;
    animation: hp-cmd-in .35s ease;
}
.hp-cmd-log li.info { border-inline-start-color: #FF7A00; }
.hp-cmd-log li.success { border-inline-start-color: #22c55e; }
.hp-cmd-log li.warning { border-inline-start-color: #f59e0b; }
@keyframes hp-cmd-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.hp-cmd-links { display: grid; gap: .45rem; }
.hp-cmd-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: .55rem .7rem; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
    font-size: .84rem; color: #c9d0da;
}

.hp-cmd-flow {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem;
    margin-top: auto; padding-top: .4rem;
}
.hp-cmd-step {
    text-align: center; font-size: .68rem; color: #8b93a1;
    padding: .45rem .2rem; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02);
    transition: all .3s ease;
}
.hp-cmd-step span {
    display: grid; place-items: center;
    width: 22px; height: 22px; margin: 0 auto .25rem;
    border-radius: 50%; font-weight: 800; font-size: .7rem;
    background: rgba(255,255,255,.06); color: #fff;
}
.hp-cmd-step.is-on {
    border-color: rgba(255,122,0,.45);
    background: rgba(255,122,0,.12);
    color: #fff;
    box-shadow: 0 0 18px rgba(255,122,0,.15);
}
.hp-cmd-step.is-on span { background: #FF7A00; }

@media (prefers-reduced-motion: reduce) {
    .hp-cmd-glow, .hp-cmd-radar-ring, .hp-cmd-radar-sweep, .hp-cmd-radar-core,
    .hp-cmd-eq span, .hp-cmd-pill .dot, .hp-cmd-live-dot .dot { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hp-demo-grid { grid-template-columns: 1fr; }
    .hp-demo-chart-wrap { border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .hp-demo-side { background: rgba(0,0,0,.28); }
    .hp-demo-stats { grid-template-columns: repeat(2, 1fr); }
    .hp-demo-chart { height: 360px; min-height: 320px; }
    .hp-bot { min-height: 260px; }
    .hp-cmd-grid { grid-template-columns: 1fr; }
    .hp-cmd-metrics { grid-template-columns: repeat(2, 1fr); }
    .hp-cmd-flow { grid-template-columns: repeat(2, 1fr); }
    .hp-cmd-top { flex-direction: column; align-items: flex-start; }
    .hp-cmd-pills { flex-wrap: wrap; }
    .hp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 640px) {
    .hp-hero { padding-block: 2rem 1.5rem; }
    .hp-hero-copy h1 { font-size: clamp(1.55rem, 7vw, 2.1rem); line-height: 1.25; }
    .hp-hero-copy .lead { font-size: .98rem; }
    .hero-cta { display: flex; flex-direction: column; align-items: stretch; gap: .55rem; }
    .hero-cta .btn-x { width: 100%; justify-content: center; }
    .hp-ticker-wrap { margin-block: .35rem; }
    .hp-ticker-item { padding-inline: .85rem; font-size: .84rem; }
    .hp-demo { border-radius: 14px; margin-inline: 0; }
    .hp-demo-badge { top: 8px; inset-inline-end: 8px; font-size: .72rem; }
    .hp-demo-stats { gap: .4rem; padding: .75rem .7rem; }
    .hp-demo-stat span { font-size: .66rem; }
    .hp-demo-stat b { font-size: 1rem; }
    .hp-demo-chart-wrap, .hp-demo-side { padding: .8rem .75rem; }
    .hp-demo-chart { height: 300px; min-height: 280px; }
    .hp-demo-price { font-size: 1.15rem; }
    .hp-demo-target-rail { grid-template-columns: 1fr; }
    .hp-review-card {
        width: min(340px, 78vw);
        min-height: 190px;
        padding: 1.1rem 1.15rem;
    }
    .hp-review-text { font-size: .95rem; }
    .hp-steps { grid-template-columns: 1fr !important; }
    .hp-cmd-metrics { grid-template-columns: 1fr 1fr; }
    .hp-cmd-price-value { font-size: clamp(1.6rem, 8vw, 2.2rem); }
    .hp-cta-actions .btn-x { width: 100%; }
    .faq-q { font-size: .95rem; padding: 1rem 1.05rem; }
}
