/* =========================================================
   ALPHA STRIKE — HERO SIGNAL COMPONENT
   Version: 1.0
   Status: Active (Renko Signal System page hero visual, 13 Oct 2026)

   Renko bricks lay themselves down one by one - a falling run, then
   the trend flips and a rising run follows. The SuperTrend line steps
   above the falling bricks and below the rising ones. At the flip a
   marker pulses and the call card appears ("BUY NIFTY 22500 CE")
   with a speaker sending out sound waves - the hooter + voice alert.
   Loops every 8 s. Every element shares the same keyframes and is
   staggered with animation-delay, so the sequence stays in step.

   Pure inline SVG + CSS. Colour follows the locked brand accent.
   ========================================================= */

.as-sig-outer {
    --as-sig-accent-rgb: 245, 184, 0;
    --as-sig-accent: var(--alpha-color-brand-yellow, #F5B800);
    --as-sig-loop: 8s;
    --as-sig-step: .3s;

    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

[data-theme="light"] .as-sig-outer {
    --as-sig-accent-rgb: 75, 85, 99;
    --as-sig-accent: var(--alpha-color-brand-chrome-steel, #4B5563);
}

.as-sig-svg { width: 100%; height: 100%; display: block; }

.as-sig-glow-bg { fill: url(#asSigGlow); }
.as-sig-glow-s0 { stop-color: var(--as-sig-accent); stop-opacity: .14; }
.as-sig-glow-s1 { stop-color: var(--as-sig-accent); stop-opacity: .04; }
.as-sig-glow-s2 { stop-color: var(--as-sig-accent); stop-opacity: 0; }

.as-sig-grid line {
    stroke: rgba(var(--as-sig-accent-rgb), .07);
    stroke-width: 1;
}

/* one shared show/hide cycle for everything */
@keyframes as-sig-show {
    0%        { opacity: 0; transform: translateY(4px); }
    4%, 82%   { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 0; transform: translateY(0); }
}

.as-sig-brick,
.as-sig-trend,
.as-sig-flip,
.as-sig-call {
    opacity: 0;
    animation: as-sig-show var(--as-sig-loop) cubic-bezier(.3, 0, .2, 1) infinite both;
}

.as-sig-brick {
    animation-delay: calc(var(--i) * var(--as-sig-step));
    transform-box: fill-box;
}

.as-sig-brick--dn {
    fill: transparent;
    stroke: rgba(var(--as-sig-accent-rgb), .55);
    stroke-width: 1.2;
}

.as-sig-brick--up {
    fill: var(--as-sig-accent);
    fill-opacity: .85;
}

.as-sig-trend {
    animation-delay: calc(var(--i) * var(--as-sig-step) + .08s);
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.as-sig-trend--dn {
    stroke: rgba(var(--as-sig-accent-rgb), .45);
    stroke-dasharray: 4 3;
}

.as-sig-trend--up {
    stroke: var(--as-sig-accent);
}

.as-sig-flip { animation-delay: 1.6s; }
.as-sig-call { animation-delay: 1.9s; }

.as-sig-flip__dot { fill: var(--as-sig-accent); }

.as-sig-flip__ring {
    fill: none;
    stroke: var(--as-sig-accent);
    stroke-width: 1.2;
    transform-box: fill-box;
    transform-origin: center;
    animation: as-sig-ping 1.6s ease-out infinite;
}

@keyframes as-sig-ping {
    0%   { transform: scale(.8); opacity: .9; }
    100% { transform: scale(2.4); opacity: 0; }
}

.as-sig-text {
    fill: rgba(var(--as-sig-accent-rgb), .85);
    font-family: var(--alpha-font-mono, ui-monospace, monospace);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
}

.as-sig-text--muted { fill: rgba(var(--as-sig-accent-rgb), .55); }

.as-sig-call__box {
    fill: rgba(var(--as-sig-accent-rgb), .08);
    stroke: var(--as-sig-accent);
    stroke-width: 1.3;
}

.as-sig-call__title {
    fill: var(--as-sig-accent);
    font-family: var(--alpha-font-display, sans-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
}

.as-sig-speaker path:first-child { fill: var(--as-sig-accent); }

.as-sig-wave {
    stroke: var(--as-sig-accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    animation: as-sig-wave 1.2s ease-in-out infinite;
}

.as-sig-wave--2 { animation-delay: .15s; }
.as-sig-wave--3 { animation-delay: .3s; }

@keyframes as-sig-wave {
    0%, 100% { opacity: .15; }
    40%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .as-sig-brick,
    .as-sig-trend,
    .as-sig-flip,
    .as-sig-call { animation: none; opacity: 1; }
    .as-sig-flip__ring,
    .as-sig-wave { animation: none; }
}
