/* ==========================================================================
   TRADING JOURNAL
   LANDING VISUAL EFFECTS
   ========================================================================== */


/* ==========================================================================
   HERO IMMERSIVE
   ========================================================================== */

.hero-immersive {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}


.hero-stage {
    position: relative;
    min-height: 690px;
    z-index: 2;
}


.hero-copy-front {
    position: relative;
    z-index: 20;

    width: min(610px, 52%);

    padding-top: 74px;
    padding-bottom: 60px;
}


/* ==========================================================================
   DIGITAL GRID
   ========================================================================== */

.hero-digital-grid {
    position: absolute;

    width: 1100px;
    height: 800px;

    right: -260px;
    top: -60px;

    opacity: .13;

    background-image:
        linear-gradient(
            rgba(54, 255, 112, .14) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(54, 255, 112, .14) 1px,
            transparent 1px
        );

    background-size:
        48px 48px;

    transform:
        perspective(800px)
        rotateX(65deg)
        rotateZ(-8deg);

    transform-origin:
        center center;

    mask-image:
        linear-gradient(
            to left,
            #000 15%,
            rgba(0,0,0,.85) 42%,
            transparent 88%
        );

    pointer-events: none;

    z-index: 0;
}


/* ==========================================================================
   LIGHT LINES
   ========================================================================== */

.hero-light-line {
    position: absolute;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(53,255,114,.68),
            transparent
        );

    opacity: .35;

    filter:
        drop-shadow(
            0 0 12px
            rgba(53,255,114,.35)
        );

    pointer-events: none;

    z-index: 1;
}


.hero-light-line-a {
    width: 720px;

    top: 145px;
    right: -80px;

    transform:
        rotate(-15deg);
}


.hero-light-line-b {
    width: 950px;

    top: 550px;
    right: -170px;

    opacity: .17;

    transform:
        rotate(13deg);
}


/* ==========================================================================
   DASHBOARD SCENE
   ========================================================================== */

.hero-dashboard-scene {
    position: absolute;

    width: min(850px, 68vw);
    height: 640px;

    top: 58px;
    right: -145px;

    z-index: 5;

    perspective: 1600px;

    pointer-events: none;

    transform-style: preserve-3d;

    will-change: transform;
}


/* big green aura */

.hero-dashboard-scene::before {
    content: "";

    position: absolute;

    width: 740px;
    height: 540px;

    left: 40px;
    top: 40px;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(43, 255, 109, .23),
            rgba(43, 255, 109, .08) 38%,
            transparent 72%
        );

    filter: blur(70px);

    opacity: .72;

    pointer-events: none;

    z-index: -5;
}


/* secondary blue/green atmospheric light */

.hero-dashboard-scene::after {
    content: "";

    position: absolute;

    width: 520px;
    height: 420px;

    right: -10px;
    top: 140px;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(35, 127, 103, .18),
            transparent 68%
        );

    filter: blur(85px);

    pointer-events: none;

    z-index: -5;
}


/* ==========================================================================
   MAIN DASHBOARD
   ========================================================================== */

.hero-dashboard-3d {
    position: absolute;

    width: 760px;

    right: 0;
    top: 74px;

    margin: 0;

    opacity: .76;

    transform:
        perspective(1600px)
        rotateY(-18deg)
        rotateX(5deg)
        rotateZ(-1.6deg)
        scale(.94);

    transform-origin:
        center right;

    filter:
        brightness(.84)
        saturate(.95)
        contrast(1.04);

    transition:
        opacity .5s ease,
        filter .5s ease;

    will-change: transform;

    z-index: 5;
}


.hero-dashboard-3d .dashboard-frame {
    box-shadow:
        -30px 42px 90px
        rgba(0, 0, 0, .58),
        0 0 80px
        rgba(37, 255, 105, .055),
        inset 0 0 0 1px
        rgba(255,255,255,.015);
}


/* fade left edge so it passes behind hero text */

.hero-dashboard-3d::before {
    content: "";

    position: absolute;

    inset: -30px;

    pointer-events: none;

    z-index: 20;

    background:
        linear-gradient(
            90deg,
            rgba(5, 11, 8, .96) 0%,
            rgba(5, 11, 8, .70) 10%,
            rgba(5, 11, 8, .28) 24%,
            transparent 44%
        );
}


/* ==========================================================================
   GHOST PANELS
   ========================================================================== */

.dashboard-ghost {
    position: absolute;

    border:
        1px solid
        rgba(76, 255, 124, .13);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 43, 28, .23),
            rgba(7, 15, 10, .10)
        );

    box-shadow:
        0 35px 90px
        rgba(0,0,0,.18);

    backdrop-filter:
        blur(3px);

    opacity: .35;

    transform-style: preserve-3d;
}


.dashboard-ghost::before,
.dashboard-ghost::after {
    content: "";

    position: absolute;

    border-radius: 10px;

    border:
        1px solid
        rgba(71,255,117,.08);

    background:
        rgba(34,255,93,.025);
}


.dashboard-ghost::before {
    width: 44%;
    height: 38%;

    top: 15%;
    left: 8%;
}


.dashboard-ghost::after {
    width: 32%;
    height: 55%;

    right: 8%;
    top: 20%;
}


.dashboard-ghost-back {
    width: 610px;
    height: 410px;

    right: -95px;
    top: 3px;

    opacity: .21;

    transform:
        rotateY(-21deg)
        rotateX(3deg)
        rotateZ(4deg)
        translateZ(-180px);
}


.dashboard-ghost-mid {
    width: 680px;
    height: 450px;

    right: -45px;
    top: 185px;

    opacity: .16;

    transform:
        rotateY(-14deg)
        rotateX(-3deg)
        rotateZ(6deg)
        translateZ(-100px);
}


/* ==========================================================================
   HERO COPY
   ========================================================================== */

.hero-copy-front h1 {
    text-shadow:
        0 8px 40px
        rgba(0,0,0,.44);
}


.hero-copy-front .hero-text {
    max-width: 555px;
}


.hero-login-link {
    margin-top: 18px;

    font-size: 12px;
}


.hero-login-link a {
    color: #b6c0b9;

    font-weight: 750;

    text-decoration: none;

    transition:
        color .18s ease;
}


.hero-login-link a:hover {
    color: #65ff89;
}


/* ==========================================================================
   TRIAL BANNER
   ========================================================================== */

.hero-trial-banner {
    max-width: 570px;

    margin:
        18px
        0
        4px;

    padding:
        14px
        16px;

    display: flex;
    align-items: center;

    gap: 14px;

    border:
        1px solid
        rgba(72, 255, 116, .32);

    border-radius: 14px;

    background:
        linear-gradient(
            120deg,
            rgba(44, 255, 105, .10),
            rgba(44, 255, 105, .025)
        );

    box-shadow:
        inset 0 1px
        rgba(255,255,255,.018),
        0 14px 50px
        rgba(0,0,0,.11);

    backdrop-filter:
        blur(8px);
}


.hero-trial-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: #29ef70;

    color: #041009;

    box-shadow:
        0 0 30px
        rgba(41, 239, 112, .17);

    font-weight: 900;
}


.hero-trial-copy {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.hero-trial-copy strong {
    color: #7bff9b;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .08em;
}


.hero-trial-copy span {
    color: #8e9c92;

    font-size: 11px;
    line-height: 1.45;
}


.hero-trial-note {
    margin-top: 13px;

    color: #6f7d73;

    font-size: 11px;
    line-height: 1.55;
}


/* ==========================================================================
   HERO ANIMATION
   ========================================================================== */

@keyframes heroDashboardFloat {

    0% {
        transform:
            perspective(1600px)
            rotateY(-18deg)
            rotateX(5deg)
            rotateZ(-1.6deg)
            translateY(0)
            scale(.94);
    }

    50% {
        transform:
            perspective(1600px)
            rotateY(-17deg)
            rotateX(4.5deg)
            rotateZ(-1.1deg)
            translateY(-9px)
            scale(.945);
    }

    100% {
        transform:
            perspective(1600px)
            rotateY(-18deg)
            rotateX(5deg)
            rotateZ(-1.6deg)
            translateY(0)
            scale(.94);
    }

}


.hero-dashboard-3d {
    animation:
        heroDashboardFloat
        8s
        ease-in-out
        infinite;
}


/* ==========================================================================
   REVEAL
   ========================================================================== */

.reveal {
    opacity: 0;

    transform:
        translateY(38px)
        scale(.992);

    filter:
        blur(5px);

    transition:
        opacity .72s ease,
        transform .72s
        cubic-bezier(.18,.82,.25,1),
        filter .72s ease;

    will-change:
        opacity,
        transform,
        filter;
}


.reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    filter:
        blur(0);
}


/* ==========================================================================
   CHILD STAGGER
   ========================================================================== */

.reveal .reveal-child {
    opacity: 0;

    transform:
        translateY(24px);

    transition:
        opacity .64s ease,
        transform .64s
        cubic-bezier(.18,.82,.25,1);

    will-change:
        opacity,
        transform;
}


.reveal.is-visible
.reveal-child {
    opacity: 1;

    transform:
        translateY(0);
}


.reveal.is-visible
.reveal-child:nth-child(1) {
    transition-delay: .06s;
}


.reveal.is-visible
.reveal-child:nth-child(2) {
    transition-delay: .13s;
}


.reveal.is-visible
.reveal-child:nth-child(3) {
    transition-delay: .20s;
}


.reveal.is-visible
.reveal-child:nth-child(4) {
    transition-delay: .27s;
}


.reveal.is-visible
.reveal-child:nth-child(5) {
    transition-delay: .34s;
}


.reveal.is-visible
.reveal-child:nth-child(6) {
    transition-delay: .41s;
}


/* ==========================================================================
   CARD HOVER
   ========================================================================== */

.plan-card,
.chat-preview,
.feature-visual,
.step-card,
.trial-offer-card {
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}


.plan-card:hover,
.chat-preview:hover,
.feature-visual:hover,
.step-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(74, 255, 116, .22);

    box-shadow:
        0 24px 70px
        rgba(0,0,0,.17);
}


.trial-offer-card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 35px 100px
        rgba(0,0,0,.29),
        0 0 70px
        rgba(47,255,109,.05);
}


/* ==========================================================================
   CTA GLOW
   ========================================================================== */

.btn-primary {
    position: relative;

    overflow: hidden;
}


.btn-primary::after {
    content: "";

    position: absolute;

    width: 60px;
    height: 160%;

    top: -30%;
    left: -100px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.30),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left .52s ease;

    pointer-events: none;
}


.btn-primary:hover::after {
    left: calc(100% + 40px);
}


/* ==========================================================================
   TRIAL SECTION
   ========================================================================== */

.trial-section {
    position: relative;

    padding:
        95px
        0;

    overflow: hidden;

    border-top:
        1px solid
        rgba(255,255,255,.04);

    border-bottom:
        1px solid
        rgba(255,255,255,.04);

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(39, 239, 112, .12),
            transparent 32rem
        ),
        #08100b;
}


.trial-section::before {
    content: "";

    position: absolute;

    width: 760px;
    height: 430px;

    right: -220px;
    top: 40px;

    border-radius: 50%;

    background:
        rgba(41,239,112,.09);

    filter:
        blur(90px);

    pointer-events: none;
}


.trial-section-grid {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(300px, .8fr);

    gap: 58px;

    align-items: center;

    z-index: 2;
}


.trial-section-copy h2 {
    max-width: 720px;

    margin:
        13px
        0
        18px;

    font-size:
        clamp(
            35px,
            5vw,
            56px
        );

    line-height: 1.04;

    letter-spacing: -.04em;
}


.trial-section-copy > p {
    max-width: 680px;

    margin: 0;

    color: #909c93;

    font-size: 15px;
    line-height: 1.75;
}


.trial-points {
    margin:
        30px
        0
        0;

    padding: 0;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;

    list-style: none;
}


.trial-points li {
    min-height: 64px;

    padding: 15px;

    display: flex;
    align-items: center;

    gap: 11px;

    border:
        1px solid
        #213229;

    border-radius: 12px;

    background:
        rgba(255,255,255,.018);

    color: #aab5ad;

    font-size: 12px;
    line-height: 1.45;
}


.trial-points i {
    width: 23px;
    height: 23px;

    flex: 0 0 23px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(41,239,112,.10);

    color: #5cff87;

    font-style: normal;
    font-size: 10px;
    font-weight: 900;
}


/* ==========================================================================
   TRIAL OFFER
   ========================================================================== */

.trial-offer-card {
    padding: 28px;

    border:
        1px solid
        rgba(76, 255, 121, .3);

    border-radius: 20px;

    background:
        linear-gradient(
            155deg,
            rgba(24, 48, 31, .95),
            rgba(9, 18, 12, .98)
        );

    box-shadow:
        0 30px 90px
        rgba(0,0,0,.27);
}


.trial-offer-badge {
    display: inline-flex;

    padding:
        6px
        9px;

    border-radius: 999px;

    background: #29ef70;

    color: #041009;

    font-size: 9px;
    font-weight: 950;

    letter-spacing: .08em;
}


.trial-offer-free {
    margin-top: 22px;

    color: #fff;

    font-size: 39px;
    font-weight: 900;

    letter-spacing: -.04em;
}


.trial-offer-sub {
    margin-top: 3px;

    color: #6f7d73;

    font-size: 12px;
}


.trial-offer-separator {
    height: 1px;

    margin:
        24px
        0;

    background:
        #24342b;
}


.trial-offer-title {
    color: #89968d;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .07em;
}


.trial-offer-price {
    margin-top: 7px;

    color: #fff;

    font-size: 24px;
    font-weight: 900;
}


.trial-offer-yearly {
    margin-top: 4px;

    color: #8e9c92;

    font-size: 12px;
}


.trial-offer-tax {
    margin-top: 10px;

    color: #607067;

    font-size: 10px;
}


.trial-offer-actions {
    margin-top: 24px;

    display: grid;

    gap: 9px;
}


.trial-offer-actions .btn {
    width: 100%;
}


/* ==========================================================================
   BASIC
   ========================================================================== */

.plan-card.trial-plan {
    position: relative;

    border-color:
        rgba(70, 255, 111, .52);

    box-shadow:
        0 0 0 1px
        rgba(70,255,111,.04),
        0 30px 80px
        rgba(0,0,0,.15);
}


.plan-trial-badge {
    position: absolute;

    top: 15px;
    right: 15px;

    padding:
        6px
        9px;

    border-radius: 999px;

    background: #29ef70;

    color: #041009;

    font-size: 8px;
    font-weight: 950;

    letter-spacing: .08em;
}


.plan-trial-copy {
    margin-top: 13px;

    padding:
        11px
        12px;

    border:
        1px solid
        rgba(41,239,112,.15);

    border-radius: 10px;

    background:
        rgba(41,239,112,.055);

    color: #89a090;

    font-size: 11px;
    line-height: 1.5;
}


/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.final-trial-badge {
    display: inline-flex;

    margin-bottom: 10px;

    padding:
        6px
        9px;

    border-radius: 999px;

    background:
        rgba(42,239,113,.11);

    border:
        1px solid
        rgba(42,239,113,.2);

    color: #74ff98;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .09em;
}


.final-cta-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


/* ==========================================================================
   LARGE DESKTOP
   ========================================================================== */

@media (min-width: 1500px) {

    .hero-dashboard-scene {
        right: -95px;

        width: 900px;
    }


    .hero-dashboard-3d {
        width: 810px;
    }

}


/* ==========================================================================
   LAPTOP
   ========================================================================== */

@media (max-width: 1180px) {

    .hero-dashboard-scene {
        right: -250px;

        opacity: .72;
    }


    .hero-copy-front {
        width: 58%;
    }

}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 920px) {

    .hero-stage {
        min-height: auto;

        padding-bottom: 80px;
    }


    .hero-copy-front {
        width: 100%;

        max-width: 650px;

        padding-top: 45px;
    }


    .hero-dashboard-scene {
        width: 780px;
        height: 500px;

        top: 170px;
        right: -450px;

        opacity: .27;

        z-index: 1;
    }


    .hero-dashboard-3d {
        width: 680px;

        opacity: .48;
    }


    .hero-dashboard-3d::before {
        background:
            linear-gradient(
                90deg,
                rgba(5,11,8,.98) 0%,
                rgba(5,11,8,.75) 28%,
                transparent 70%
            );
    }


    .trial-section-grid {
        grid-template-columns: 1fr;
    }


    .trial-points {
        grid-template-columns: 1fr;
    }


    .final-cta-buttons {
        width: 100%;
    }


    .final-cta-buttons .btn {
        width: 100%;
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 650px) {

    .hero-stage {
        min-height: auto;
    }


    .hero-copy-front {
        padding-top: 28px;
        padding-bottom: 45px;
    }


    .hero-dashboard-scene {
        width: 620px;
        height: 420px;

        top: 280px;
        right: -440px;

        opacity: .20;
    }


    .hero-dashboard-3d {
        width: 560px;

        opacity: .32;

        animation: none;
    }


    .dashboard-ghost {
        display: none;
    }


    .hero-digital-grid {
        opacity: .07;
    }


    .hero-light-line {
        opacity: .16;
    }


    .hero-trial-banner {
        align-items: flex-start;
    }


    .reveal {
        transform:
            translateY(25px);

        filter:
            blur(3px);
    }


    .plan-card:hover,
    .chat-preview:hover,
    .feature-visual:hover,
    .step-card:hover,
    .trial-offer-card:hover {
        transform: none;
    }

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal .reveal-child {
        opacity: 1;

        transform: none;

        filter: none;

        transition: none;
    }


    .hero-dashboard-3d {
        animation: none;
    }


    .btn-primary::after {
        display: none;
    }

}