/* =====================================================
   GROWVEST WEBSITE
   style.css
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #020806;
    color: #f4f7f5;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.section {
    position: relative;
    padding: 120px 0;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --bg: #020806;
    --bg-soft: #06100c;
    --bg-card: #08140f;

    --green: #22c55e;
    --green-light: #4ade80;
    --green-dark: #15803d;

    --text: #f4f7f5;
    --text-soft: #98a8a0;
    --text-muted: #65756d;

    --border: rgba(255, 255, 255, .08);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(2, 8, 6, .78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.navbar__container {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 11px;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.navbar__logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

.navbar__menu a {
    position: relative;

    font-size: 14px;
    font-weight: 500;

    color: var(--text-soft);

    transition: .25s ease;
}

.navbar__menu a:hover {
    color: #fff;
}

.navbar__menu a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--green);

    transition: .25s ease;
}

.navbar__menu a:hover::after {
    width: 100%;
}

.navbar__download {
    padding: 10px 20px;

    border-radius: 10px;

    background: var(--green);
    color: #031008;

    font-size: 13px;
    font-weight: 800;

    transition: .25s ease;
}

.navbar__download:hover {
    transform: translateY(-2px);
    background: var(--green-light);
}

/* =====================================================
   MOBILE NAVIGATION
===================================================== */

.navbar__toggle {
    width: 42px;
    height: 42px;

    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;

    background: rgba(255, 255, 255, .03);

    cursor: pointer;

    position: relative;
    z-index: 1002;
}

.navbar__toggle span {
    width: 18px;
    height: 2px;

    display: block;

    border-radius: 10px;

    background: #ffffff;

    transition:
        transform .3s ease,
        opacity .3s ease;
}


/* HAMBURGER MENJADI X */

.navbar__toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* MOBILE MENU */

.mobile-menu {
    position: fixed;

    top: 68px;
    left: 0;

    width: 100%;

    max-height: 0;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    background: rgba(2, 8, 6, .98);

    border-bottom: 1px solid rgba(255, 255, 255, .07);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    transition:
        max-height .4s ease,
        opacity .3s ease,
        visibility .3s ease;
}

.mobile-menu.active {
    max-height: calc(100vh - 68px);

    opacity: 1;
    visibility: visible;
}

.mobile-menu__nav {
    width: min(100% - 32px, 1180px);

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    padding: 20px 0 28px;
}

.mobile-menu__nav > a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 52px;

    border-bottom: 1px solid rgba(255, 255, 255, .06);

    color: var(--text-soft);

    font-size: 14px;
    font-weight: 600;

    transition:
        color .2s ease,
        padding-left .2s ease;
}

.mobile-menu__nav > a:hover,
.mobile-menu__nav > a.active {
    color: #ffffff;

    padding-left: 5px;
}

.mobile-menu__nav > a.active::before {
    content: "";

    position: absolute;

    left: 0;

    width: 3px;
    height: 18px;

    border-radius: 10px;

    background: var(--green);
}


/* DOWNLOAD BUTTON DI MOBILE MENU */

.mobile-menu__nav .mobile-menu__download {
    min-height: 50px;

    justify-content: center;

    margin-top: 20px;
    padding: 0 20px;

    border: none;
    border-radius: 12px;

    background: var(--green);

    color: #031008;

    font-size: 13px;
    font-weight: 800;
}

.mobile-menu__nav .mobile-menu__download:hover {
    padding-left: 20px;

    background: var(--green-light);

    color: #031008;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 100vh;

    position: relative;

    display: flex;
    align-items: center;

    padding: 150px 0 100px;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -250px;
    top: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(34, 197, 94, .13),
            transparent 67%
        );

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -250px;
    bottom: -280px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(34, 197, 94, .06),
            transparent 70%
        );

    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.1fr .9fr;

    align-items: center;
    gap: 80px;
}

.hero__content {
    max-width: 680px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;

    padding: 7px 13px;

    margin-bottom: 24px;

    border: 1px solid rgba(34, 197, 94, .25);
    border-radius: 100px;

    background: rgba(34, 197, 94, .06);

    color: var(--green-light);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero__title {
    font-size: clamp(54px, 6vw, 82px);
    line-height: .98;

    letter-spacing: -4px;

    max-width: 750px;
}

.hero__title span {
    display: block;

    color: var(--green);

    margin-top: 10px;
}

.hero__description {
    max-width: 580px;

    margin-top: 28px;

    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 34px;
}


/* =====================================================
   BUTTONS
===================================================== */

.btn {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    border-radius: 12px;

    font-size: 13px;
    font-weight: 800;

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn--primary {
    background: var(--green);
    color: #031008;
}

.btn--primary:hover {
    background: var(--green-light);
}

.btn--secondary {
    border: 1px solid var(--border);

    background: rgba(255, 255, 255, .025);

    color: #fff;
}

.btn--secondary:hover {
    border-color: rgba(34, 197, 94, .35);
    background: rgba(34, 197, 94, .05);
}


/* =====================================================
   HERO INFO
===================================================== */

.hero__info {
    display: flex;
    gap: 36px;

    margin-top: 48px;
    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.hero__info div {
    display: flex;
    flex-direction: column;
}

.hero__info strong {
    font-size: 14px;
}

.hero__info span {
    margin-top: 2px;

    color: var(--text-muted);

    font-size: 11px;
}


/* =====================================================
   HERO PHONE
===================================================== */

.hero__visual {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

.phone {
    position: relative;
    z-index: 3;

    width: 290px;

    padding: 9px;

    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 38px;

    background: #07100c;

    box-shadow:
        0 40px 100px rgba(0, 0, 0, .55),
        0 0 70px rgba(34, 197, 94, .08);

    transform: rotate(3deg);
}

.phone__screen {
    overflow: hidden;

    border-radius: 30px;

    background: #020806;
}

.phone__screen img {
    width: 100%;
}

.hero__glow {
    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(34, 197, 94, .18),
            transparent 68%
        );

    filter: blur(10px);
}


/* =====================================================
   SECTION HEADER
===================================================== */

.section__header {
    max-width: 680px;

    margin-bottom: 60px;
}

.section__header--center {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}

.section__label {
    display: block;

    margin-bottom: 15px;

    color: var(--green);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 2.4px;
}

.section__header h2 {
    font-size: clamp(38px, 5vw, 58px);

    line-height: 1.05;

    letter-spacing: -2px;
}

.section__header p {
    margin-top: 20px;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.8;
}


/* =====================================================
   ABOUT
===================================================== */

.about {
    background: #040b08;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.about__card {
    min-height: 270px;

    position: relative;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .035),
            rgba(255, 255, 255, .01)
        );

    transition: .3s ease;
}

.about__card:hover {
    transform: translateY(-6px);

    border-color: rgba(34, 197, 94, .25);
}

.about__number {
    color: var(--green);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 1px;
}

.about__card h3 {
    margin-top: 80px;

    font-size: 22px;
}

.about__card p {
    margin-top: 12px;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.7;
}


/* =====================================================
   FEATURES
===================================================== */

.features {
    background: var(--bg);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.feature-card {
    min-height: 240px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, .018);

    transition: .3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);

    border-color: rgba(34, 197, 94, .25);

    background: rgba(34, 197, 94, .025);
}

.feature-card__icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(34, 197, 94, .18);
    border-radius: 12px;

    background: rgba(34, 197, 94, .08);

    color: var(--green);

    font-size: 18px;
    font-weight: 800;
}

.feature-card h3 {
    margin-top: 45px;

    font-size: 18px;
}

.feature-card p {
    margin-top: 10px;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.7;
}


/* =====================================================
   JOURNEY
===================================================== */

.journey {
    background: #040b08;

    overflow: hidden;
}

.journey__timeline {
    position: relative;

    max-width: 880px;

    margin-top: 20px;
}


/* GARIS TIMELINE */

.journey__timeline::before {
    content: "";

    position: absolute;

    left: 8px;
    top: 9px;

    width: 1px;

    bottom: -100px;

    background:
        linear-gradient(
            to bottom,
            var(--green) 0%,
            rgba(34, 197, 94, .55) 75%,
            rgba(34, 197, 94, 0) 100%
        );
}


/* ITEM */

.journey__item {
    position: relative;

    display: grid;

    grid-template-columns: 170px 1fr;

    gap: 40px;

    padding-left: 50px;
    padding-bottom: 70px;
}


/* DOT */

.journey__dot {
    position: absolute;

    left: 0;
    top: 5px;

    width: 17px;
    height: 17px;

    border: 4px solid #040b08;
    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 1px rgba(34, 197, 94, .5),
        0 0 18px rgba(34, 197, 94, .3);

    z-index: 2;
}


/* DATE */

.journey__date {
    padding-top: 1px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .5px;
}


/* CONTENT */

.journey__content {
    max-width: 570px;

    padding-bottom: 5px;
}

.journey__status {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--green);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1.8px;
}

.journey__content h3 {
    font-size: 24px;

    letter-spacing: -.5px;
}

.journey__content p {
    margin-top: 11px;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.75;
}


/* FUTURE */

.journey__item--future .journey__dot {
    background: #07100c;

    border-color: #040b08;

    box-shadow:
        inset 0 0 0 2px var(--green),
        0 0 0 1px rgba(34, 197, 94, .25);
}

.journey__item--future .journey__content {
    opacity: .82;
}


/* =====================================================
   PREVIEW
===================================================== */

.preview {
    overflow: hidden;

    background: var(--bg);
}

.preview__phones {
    min-height: 600px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 28px;

    padding-top: 30px;
}

.preview-phone {
    width: 240px;

    padding: 7px;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 32px;

    background: #07100c;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, .45);

    overflow: hidden;

    transform: translateY(25px) rotate(-4deg);
}

.preview-phone img {
    border-radius: 25px;
}

.preview-phone--main {
    position: relative;
    z-index: 2;

    width: 280px;

    transform: translateY(-5px);
}

.preview-phone:last-child {
    transform: translateY(25px) rotate(4deg);
}


/* =====================================================
   DOWNLOAD
===================================================== */

.download {
    padding-top: 80px;
    padding-bottom: 80px;
}

.download__container {
    min-height: 480px;

    position: relative;

    display: grid;
    grid-template-columns: 1fr .75fr;

    align-items: center;

    overflow: hidden;

    padding: 70px;

    border: 1px solid rgba(34, 197, 94, .15);
    border-radius: 34px;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(34, 197, 94, .12),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #07120d,
            #040a07
        );
}

.download__content {
    position: relative;
    z-index: 3;

    max-width: 580px;
}

.download__content h2 {
    font-size: clamp(40px, 5vw, 62px);

    line-height: 1;

    letter-spacing: -2.5px;
}

.download__content p {
    max-width: 500px;

    margin-top: 20px;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.8;
}

.download__buttons {
    margin-top: 30px;
}

.download__note {
    display: block;

    margin-top: 13px;

    color: var(--text-muted);

    font-size: 10px;
}

.download__visual {
    position: absolute;

    width: 280px;

    right: 90px;
    bottom: -150px;

    padding: 8px;

    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 38px;

    background: #07100c;

    transform: rotate(5deg);

    box-shadow:
        0 40px 80px rgba(0, 0, 0, .45);
}

.download__visual img {
    width: 100%;
    height: auto;

    display: block;

    border-radius: 30px;
}


/* =====================================================
   FAQ
===================================================== */

.faq {
    background: #040b08;
}

.faq__list {
    max-width: 850px;
}

.faq__item {
    border-bottom: 1px solid var(--border);
}

.faq__item summary {
    position: relative;

    padding: 25px 45px 25px 0;

    cursor: pointer;

    list-style: none;

    font-size: 16px;
    font-weight: 700;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "+";

    position: absolute;

    right: 5px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--green);

    font-size: 24px;
    font-weight: 300;

    transition: transform .25s ease;
}

.faq__item[open] summary::after {
    transform:
        translateY(-50%)
        rotate(45deg);
}

.faq__item p {
    max-width: 700px;

    padding: 0 0 25px;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.8;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    padding: 70px 0 30px;

    background: #020604;
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr auto;

    align-items: start;

    gap: 40px;
}

.footer__brand {
    display: flex;
    align-items: center;

    gap: 12px;
}

.footer__brand img {
    width: 42px;
    height: 42px;

    object-fit: contain;
}

.footer__brand div {
    display: flex;
    flex-direction: column;
}

.footer__brand strong {
    font-size: 18px;
}

.footer__brand span {
    color: var(--text-muted);

    font-size: 10px;
}

.footer__links {
    display: flex;

    gap: 28px;
}

.footer__links a {
    color: var(--text-soft);

    font-size: 12px;

    transition: .2s ease;
}

.footer__links a:hover {
    color: var(--green);
}

.footer__bottom {
    grid-column: 1 / -1;

    display: flex;
    justify-content: space-between;

    margin-top: 45px;
    padding-top: 22px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 10px;
}

@media (min-width: 1001px) {

    .mobile-menu {
        display: none !important;
    }

    .navbar__toggle {
        display: none !important;
    }

}
/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .navbar__menu {
        display: none;
    }

    .navbar__download {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }
    .hero__container {
        grid-template-columns: 1fr;
    }

    .hero__content {
        max-width: 760px;
    }

    .hero__visual {
        margin-top: 30px;
    }

    .about__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download__container {
        grid-template-columns: 1fr;

        padding: 55px;
    }

    .download__content {
        max-width: 65%;
    }

    .download__visual {
        width: 240px;

        right: 40px;
        bottom: -120px;
    }

}


/* =====================================================
   TABLET / MOBILE
===================================================== */

@media (max-width: 700px) {

    .container {
        width: min(100% - 32px, 1180px);
    }

    .section {
        padding: 85px 0;
    }


    /* NAVBAR */

    .navbar__container {
        height: 68px;
    }

    .navbar__logo {
        width: 32px;
        height: 32px;
    }

    .navbar__brand {
        font-size: 17px;
    }

    .navbar__download {
        padding: 9px 14px;

        font-size: 11px;
    }


    /* HERO */

    .hero {
        min-height: auto;

        padding: 130px 0 85px;
    }

    .hero__container {
        gap: 50px;
    }

    .hero__title {
        font-size: 50px;

        letter-spacing: -2.7px;
    }

    .hero__description {
        font-size: 14px;
    }

    .hero__buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .hero__info {
        gap: 15px;

        justify-content: space-between;
    }

    .hero__info strong {
        font-size: 12px;
    }

    .hero__info span {
        font-size: 9px;
    }

    .phone {
        width: 235px;
    }


    /* HEADER */

    .section__header {
        margin-bottom: 42px;
    }

    .section__header h2 {
        font-size: 39px;

        letter-spacing: -1.7px;
    }


    /* ABOUT */

    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__card {
        min-height: 210px;
    }

    .about__card h3 {
        margin-top: 45px;
    }


    /* FEATURES */

    .features__grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 210px;
    }

    .feature-card h3 {
        margin-top: 35px;
    }


    /* JOURNEY */

    .journey__item {
        display: block;

        padding-left: 42px;
        padding-bottom: 58px;
    }

    .journey__timeline::before {
        left: 7px;
    }

    .journey__dot {
        width: 15px;
        height: 15px;
    }

    .journey__date {
        margin-bottom: 10px;
    }

    .journey__content h3 {
        font-size: 21px;
    }

    .journey__content p {
        font-size: 13px;
    }


    /* PREVIEW */

    .preview__phones {
        min-height: 450px;

        gap: 10px;
    }

    .preview-phone {
        width: 130px;

        border-radius: 20px;

        padding: 4px;
    }

    .preview-phone img {
        border-radius: 16px;
    }

    .preview-phone--main {
        width: 165px;
    }


    /* =================================================
       DOWNLOAD MOBILE - FIX
    ================================================= */

    .download {
        padding-top: 65px;
        padding-bottom: 65px;
        padding-left: 0;
        padding-right: 0;
    }

    .download__container {
        min-height: auto;

        display: flex;
        flex-direction: column;

        align-items: flex-start;

        gap: 38px;

        padding: 45px 28px 0;

        overflow: hidden;
    }

    .download__content {
        width: 100%;
        max-width: 100%;
    }

    .download__content h2 {
        font-size: 42px;
    }

    .download__content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .download__buttons {
        width: 100%;

        margin-top: 28px;
    }

    .download__buttons .btn {
        width: 100%;
    }

    .download__note {
        margin-top: 14px;

        font-size: 9px;
        line-height: 1.5;
    }

    .download__visual {
        position: relative;

        width: 210px;

        right: auto;
        bottom: auto;

        align-self: center;

        flex-shrink: 0;

        margin-top: 5px;
        margin-bottom: -70px;

        padding: 6px;

        border-radius: 30px;

        transform: rotate(3deg);
    }

    .download__visual img {
        width: 100%;
        max-width: none;
        height: auto;

        display: block;

        margin: 0;

        border-radius: 24px;
    }


    /* FOOTER */

    .footer__container {
        grid-template-columns: 1fr;
    }

    .footer__links {
        flex-wrap: wrap;

        gap: 18px 25px;
    }

    .footer__bottom {
        flex-direction: column;

        gap: 7px;

        margin-top: 15px;
    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 430px) {

    .hero__title {
        font-size: 44px;
    }

    .hero__info {
        display: grid;
        grid-template-columns: repeat(3, 1fr);

        gap: 8px;
    }

    .preview__phones {
        transform: scale(.9);
    }

    /*
       HP pada Start Your Journey dibuat
       sedikit lebih kecil lagi di layar sempit.
    */

    .download__visual {
        width: 195px;
    }

}


/* =====================================================
   NAVBAR SCROLLED
===================================================== */

.navbar--scrolled {
    background: rgba(2, 8, 6, .94);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, .25);
}


/* =====================================================
   ACTIVE NAVIGATION
===================================================== */

.navbar__menu a.active {
    color: #ffffff;
}

.navbar__menu a.active::after {
    width: 100%;
}


/* =====================================================
   SCROLL REVEAL
===================================================== */

.reveal {
    opacity: 0;

    transform: translateY(28px);

    transition:
        opacity .7s ease,
        transform .7s ease;

    transition-delay: var(--delay, 0ms);
}

.reveal.reveal--visible {
    opacity: 1;

    transform: translateY(0);
}


/* =====================================================
   PHONE REVEAL
===================================================== */

.preview-phone.reveal {
    opacity: 0;
}

.preview-phone:first-child.reveal {
    transform:
        translateY(45px)
        rotate(-4deg);
}

.preview-phone--main.reveal {
    transform:
        translateY(20px);
}

.preview-phone:last-child.reveal {
    transform:
        translateY(45px)
        rotate(4deg);
}


.preview-phone:first-child.reveal--visible {
    opacity: 1;

    transform:
        translateY(25px)
        rotate(-4deg);
}

.preview-phone--main.reveal--visible {
    opacity: 1;

    transform:
        translateY(-5px);
}

.preview-phone:last-child.reveal--visible {
    opacity: 1;

    transform:
        translateY(25px)
        rotate(4deg);
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }

}
