/* ==========================================================================
   Front Page Hero
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Grid background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Gradient overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(123, 104, 238, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Chart container */
.hero__chart {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Animated chart lines */
.hero__chart-line {
    position: absolute;
    width: 200%;
    height: 100%;
    left: -50%;
    opacity: 0.15;
}

.hero__chart-line svg {
    width: 100%;
    height: 100%;
}

.hero__chart-line path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero__chart-line--1 path {
    stroke: var(--color-primary);
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: chartDraw 8s ease-in-out infinite;
}

.hero__chart-line--2 path {
    stroke: var(--color-accent);
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: chartDraw 8s ease-in-out infinite 2s;
}

.hero__chart-line--3 path {
    stroke: var(--color-success);
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: chartDraw 8s ease-in-out infinite 4s;
}

@keyframes chartDraw {
    0% {
        stroke-dashoffset: 2000;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -2000;
        opacity: 0;
    }
}

/* Candlestick bars */
.hero__candles {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    opacity: 0.12;
    pointer-events: none;
}

.hero__candle {
    width: 6px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: candleGrow 3s ease-in-out infinite;
}

.hero__candle--down {
    background: var(--color-danger);
}

.hero__candle:nth-child(1) { animation-delay: 0s; }
.hero__candle:nth-child(2) { animation-delay: 0.15s; }
.hero__candle:nth-child(3) { animation-delay: 0.3s; }
.hero__candle:nth-child(4) { animation-delay: 0.45s; }
.hero__candle:nth-child(5) { animation-delay: 0.6s; }
.hero__candle:nth-child(6) { animation-delay: 0.75s; }
.hero__candle:nth-child(7) { animation-delay: 0.9s; }
.hero__candle:nth-child(8) { animation-delay: 1.05s; }
.hero__candle:nth-child(9) { animation-delay: 1.2s; }
.hero__candle:nth-child(10) { animation-delay: 1.35s; }
.hero__candle:nth-child(11) { animation-delay: 1.5s; }
.hero__candle:nth-child(12) { animation-delay: 1.65s; }
.hero__candle:nth-child(13) { animation-delay: 1.8s; }
.hero__candle:nth-child(14) { animation-delay: 1.95s; }
.hero__candle:nth-child(15) { animation-delay: 2.1s; }

@keyframes candleGrow {
    0%, 100% {
        height: 40px;
        opacity: 0.5;
    }
    50% {
        height: var(--candle-height, 100px);
        opacity: 1;
    }
}

/* Floating price tickers */
.hero__ticker {
    position: absolute;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--color-primary);
    opacity: 0;
    animation: tickerFloat 6s ease-in-out infinite;
}

.hero__ticker--1 {
    top: 25%;
    left: 10%;
    animation-delay: 0s;
}

.hero__ticker--2 {
    top: 40%;
    right: 15%;
    animation-delay: 2s;
}

.hero__ticker--3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.hero__ticker--up {
    color: var(--color-success);
    border-color: rgba(0, 230, 118, 0.2);
}

.hero__ticker--down {
    color: var(--color-danger);
    border-color: rgba(255, 82, 82, 0.2);
}

@keyframes tickerFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(20px);
    }
    20%, 80% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero__title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
